diff options
author | Gerald Pfeifer <gerald@pfeifer.com> | 2015-01-16 14:27:55 +0000 |
---|---|---|
committer | Gerald Pfeifer <gerald@gcc.gnu.org> | 2015-01-16 14:27:55 +0000 |
commit | 973e980879f3ff4daa479d349a7edce9ac77933c (patch) | |
tree | 2ad81eb0195f5c7048b86faa50254d0fdbbe36c2 /libgomp | |
parent | 32e8464400dff0562b2ce3c97b41630f5a85e824 (diff) | |
download | gcc-973e980879f3ff4daa479d349a7edce9ac77933c.tar.gz |
* target.c (num_devices): Guard with PLUGIN_SUPPORT.
From-SVN: r219742
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 4 | ||||
-rw-r--r-- | libgomp/target.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 9b003cbb027..7c106d46ab0 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2015-01-16 Gerald Pfeifer <gerald@pfeifer.com> + + * target.c (num_devices): Guard with PLUGIN_SUPPORT. + 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> James Norris <jnorris@codesourcery.com> Tom de Vries <tom@codesourcery.com> diff --git a/libgomp/target.c b/libgomp/target.c index 83ad51108d0..72d64fcbd9b 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -63,8 +63,10 @@ static int num_offload_images; /* Array of descriptors for all available devices. */ static struct gomp_device_descr *devices; +#ifdef PLUGIN_SUPPORT /* Total number of available devices. */ static int num_devices; +#endif /* Number of GOMP_OFFLOAD_CAP_OPENMP_400 devices. */ static int num_devices_openmp; |