libgomp: For OpenMP offloading, only publicize GOMP_OFFLOAD_CAP_OPENMP_400 devices.
libgomp/
* target.c (num_devices_openmp): New variable.
(gomp_get_num_devices): Use it.
(gomp_target_init): Initialize it, and sort the devices array
appropriately.
With Intel MIC offloading (emulation), this fixes:
FAIL: libgomp.c/examples-4/e.57.2.c execution test
FAIL: libgomp.fortran/examples-4/e.57.2.f90 -O0 execution test
FAIL: libgomp.fortran/examples-4/e.57.2.f90 -O1 execution test
FAIL: libgomp.fortran/examples-4/e.57.2.f90 -O2 execution test
FAIL: libgomp.fortran/examples-4/e.57.2.f90 -O3 -fomit-frame-pointer execution test
FAIL: libgomp.fortran/examples-4/e.57.2.f90 -O3 -fomit-frame-pointer -funroll-loops execution test
FAIL: libgomp.fortran/examples-4/e.57.2.f90 -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions execution test
FAIL: libgomp.fortran/examples-4/e.57.2.f90 -O3 -g execution test
FAIL: libgomp.fortran/examples-4/e.57.2.f90 -Os execution test
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@219029 138bc75d-0d04-0410-961f-82ee72b054a4