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: Patch for 4.2 to fix inline warning


I failed to notice that gcc.dg/vmx/vmx.exp adds -std=gnu99 to the
compilation line, and that two of the test cases in that directory use
inline.  My recent patch to warn about uses of inline on gnu99 mode
caused those tests to fail.

This patch fixes the problem by adding the -fgnu89-inline option.
Committed to 4.2 branch as obvious.

There is no problem on mainline as these uses of inline are OK in C99
mode which is supported on mainline.

Ian


2007-03-13  Ian Lance Taylor  <iant@google.com>

	* gcc.dg/vmx/vmx.exp: Add -fgnu89-inline to DEFAULT_VMXCFLAGS.


Index: gcc/testsuite/gcc.dg/vmx/vmx.exp
===================================================================
--- gcc/testsuite/gcc.dg/vmx/vmx.exp	(revision 122890)
+++ gcc/testsuite/gcc.dg/vmx/vmx.exp	(working copy)
@@ -31,7 +31,7 @@ if {![istarget powerpc*-*-*]
 # nothing but extensions.
 global DEFAULT_VMXCFLAGS
 if ![info exists DEFAULT_VMXCFLAGS] then {
-    set DEFAULT_VMXCFLAGS "-maltivec -mabi=altivec -std=gnu99"
+    set DEFAULT_VMXCFLAGS "-maltivec -mabi=altivec -std=gnu99 -fgnu89-inline"
 }
 
 # If the target system supports AltiVec instructions, the default action


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