This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH COMMITTED: Fix bootstrap PR 40103


PR 40103 is about how my -Wc++-compat improvements broke bootstrap when
using CLooG, because the CLooG header files are not in the C/C++ common
subset.  I committed this patch to fix the bootstrap with CLooG by
forcing -Wc++-compat to only be a warning before #including the CLooG
header file.  I tested this patch with a bootstrap using CLooG on
i686-pc-linux-gnu; I did not run the testsuite.

Ian


2009-05-11  Ian Lance Taylor  <iant@google.com>

	PR bootstrap/40103
	* graphite.c: Force -Wc++-compat to only be a warning before
	#including "cloog/cloog.h".


Index: graphite.c
===================================================================
--- graphite.c	(revision 147404)
+++ graphite.c	(working copy)
@@ -56,6 +56,13 @@ along with GCC; see the file COPYING3.  
 #include "gimple.h"
 
 #ifdef HAVE_cloog
+
+/* The CLooG header file is not -Wc++-compat ready as of 2009-05-11.
+   This #pragma should be removed when it is ready.  */
+#if GCC_VERSION >= 4003
+#pragma GCC diagnostic warning "-Wc++-compat"
+#endif
+
 #include "cloog/cloog.h"
 #include "graphite.h"
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]