diff mbox

Merge current set of OpenACC changes from gomp-4_0-branch

Message ID alpine.LSU.2.11.1501161333300.2527@tuna.site
State New
Headers show

Commit Message

Gerald Pfeifer Jan. 16, 2015, 2:30 p.m. UTC
Once I work around the previous failure, I quickly get another one on
FreeBSD 8.4/amd64:

/scratch/tmp/gerald/gcc-HEAD/libgomp/target.c:67:12: error: 
\xe2\x80\x98num_devices\xe2\x80\x99 defined but not used [-Werror=unused-variable]
 static int num_devices;
            ^

This one did not require autoconf, so I went ahead and fixed it myself. 
;-)  Committed after successful bootstrap on x86_64-unknown-freebsd8.4 
(after hacking around the other failure).

Gerald


2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>

	* target.c (num_devices): Guard with PLUGIN_SUPPORT.
diff mbox

Patch

Index: target.c
===================================================================
--- target.c	(revision 219741)
+++ target.c	(revision 219742)
@@ -63,8 +63,10 @@ 
 /* 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;