* target.c (num_devices): Guard with PLUGIN_SUPPORT.
authorGerald Pfeifer <gerald@pfeifer.com>
Fri, 16 Jan 2015 14:27:55 +0000 (14:27 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Fri, 16 Jan 2015 14:27:55 +0000 (14:27 +0000)
From-SVN: r219742

libgomp/ChangeLog
libgomp/target.c

index 9b003cb..7c106d4 100644 (file)
@@ -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>
index 83ad511..72d64fc 100644 (file)
@@ -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;