This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch]: Add -Wold-style-definition to libgcc2.c etc
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 30 Nov 2003 12:43:48 -0500 (EST)
- Subject: [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