* 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 9b003cbb027f5f54884bb9710e6e12fe7ea26103..7c106d46ab01e1193bd827cc89864fba4ae97a20 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 83ad51108d0158f7f58f82749957fc05c9428bd6..72d64fcbd9b08d253d0bece67223c0866e43e022 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;