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]: Add -Wold-style-definition to libgcc2.c etc


This patch adds -Wold-style-definition to target files like libgcc2.c
etc.  Bootstrapped on sparc-sun-solaris2.7.  Only one new target
specific warning arose, which I'll fix as an obvious followup if this
goes in.

Ok for mainline?

		Thanks,
		--Kaveh


2003-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
	
diff -rup orig/egcc-CVS20031129/gcc/Makefile.in egcc-CVS20031129/gcc/Makefile.in
--- orig/egcc-CVS20031129/gcc/Makefile.in	2003-11-26 20:01:58.000000000 -0500
+++ egcc-CVS20031129/gcc/Makefile.in	2003-11-30 11:59:07.154671713 -0500
@@ -288,7 +288,7 @@ GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) ./x
 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
 # It omits XCFLAGS, and specifies -B./.
 # It also specifies -isystem ./include to find, e.g., stddef.h.
-GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_WARN) $($@-warn) -isystem ./include $(TCFLAGS)
+GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_WARN) -Wold-style-definition $($@-warn) -isystem ./include $(TCFLAGS)
 
 # ---------------------------------------------------
 # Programs which produce files for the target machine


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