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] Fix PR 40172 -- bootstrap breakage on some targets caused by fix for PR16302.


The fix for PR 16302 caused -Wlogical-op (part of the default -Wextra) to generate fatal warning for some code in GCC.

I propose that we supply -Wno-logical-op as a fix.

What do people think about this patch?

Currently testing on mips64-linux-gnu, but I wouldn't commit it until I also tested it on x86_64-pc-linux-gnu.

2009-05-18 David Daney <ddaney@caviumnetworks.com>

	PR c/40172
	* configure.ac(ACX_PROG_CC_WARNING_OPTS): Add -Wno-logical-op.
	* configure: Regenerate.
Index: configure.ac
===================================================================
--- configure.ac	(revision 147669)
+++ configure.ac	(working copy)
@@ -323,7 +323,7 @@ AC_CHECK_TYPES([__int64], [AC_CHECK_SIZE
 # So, we only use -pedantic if we can disable those warnings.
 
 ACX_PROG_CC_WARNING_OPTS(
-	m4_quote(m4_do([-W -Wall -Wwrite-strings -Wstrict-prototypes ],
+	m4_quote(m4_do([-W -Wno-logical-op -Wall -Wwrite-strings -Wstrict-prototypes ],
 		       [-Wmissing-prototypes -Wcast-qual])), [loose_warn])
 ACX_PROG_CC_WARNING_OPTS(
 	m4_quote(m4_do([-Wold-style-definition -Wc++-compat ], 

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