Patch to enable warning flag use in libf2c
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Thu May 30 12:09:00 GMT 2002
This patch enables warnings flags in libf2c. (So far I'm only adding
-W -Wall to keep the noise down, but once I cleanup the code a bit I
can work on adding more stringent warning flags.)
Tested on sparc-sun-solaris2.7 by rebuilding libf2c, okay to install?
Thanks,
--Kaveh
2002-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (WARN_CFLAGS): New.
(FLAGS_TO_PASS): Add WARN_CFLAGS.
* libF77/Makefile.in (ALL_CFLAGS): Likewise.
* libI77/Makefile.in (ALL_CFLAGS): Likewise.
* libU77/Makefile.in (ALL_CFLAGS): Likewise.
diff -rup orig/egcc-CVS20020521/libf2c/Makefile.in egcc-CVS20020521/libf2c/Makefile.in
--- orig/egcc-CVS20020521/libf2c/Makefile.in 2002-05-20 12:19:25.000000000 -0400
+++ egcc-CVS20020521/libf2c/Makefile.in 2002-05-22 13:07:06.576964000 -0400
@@ -67,6 +67,7 @@ INSTALL_DATA = @INSTALL_DATA@
LIBTOOL = @LIBTOOL@
CC = @CC@
+WARN_CFLAGS = -W -Wall
CFLAGS = @CFLAGS@
AR = @AR@
RANLIB = @RANLIB@
@@ -77,6 +78,7 @@ FLAGS_TO_PASS= \
CC='$(CC)' \
LD='$(LD)' \
LIBTOOL='$(LIBTOOL)' \
+ WARN_CFLAGS='$(WARN_CFLAGS)' \
CFLAGS='$(CFLAGS)' \
CPPFLAGS='$(CPPFLAGS)' \
AR='$(AR)' \
diff -rup orig/egcc-CVS20020521/libf2c/libF77/Makefile.in egcc-CVS20020521/libf2c/libF77/Makefile.in
--- orig/egcc-CVS20020521/libf2c/libF77/Makefile.in 2002-05-20 13:03:37.000000000 -0400
+++ egcc-CVS20020521/libf2c/libF77/Makefile.in 2002-05-22 12:57:47.814994000 -0400
@@ -45,7 +45,7 @@ SHELL = @SHELL@
#### End of system configuration section. ####
-ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) $(DEFS) $(CFLAGS)
+ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) $(DEFS) $(WARN_CFLAGS) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .lo
diff -rup orig/egcc-CVS20020521/libf2c/libI77/Makefile.in egcc-CVS20020521/libf2c/libI77/Makefile.in
--- orig/egcc-CVS20020521/libf2c/libI77/Makefile.in 2002-05-20 13:03:37.000000000 -0400
+++ egcc-CVS20020521/libf2c/libI77/Makefile.in 2002-05-22 12:57:28.107025000 -0400
@@ -43,7 +43,7 @@ SHELL = @SHELL@
#### End of system configuration section. ####
ALL_CFLAGS = -I. -I$(srcdir) -I$(G2C_H_DIR) -I$(F2C_H_DIR) $(CPPFLAGS) \
- $(DEFS) $(CFLAGS)
+ $(DEFS) $(WARN_CFLAGS) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .lo
diff -rup orig/egcc-CVS20020521/libf2c/libU77/Makefile.in egcc-CVS20020521/libf2c/libU77/Makefile.in
--- orig/egcc-CVS20020521/libf2c/libU77/Makefile.in 2002-05-20 13:03:38.000000000 -0400
+++ egcc-CVS20020521/libf2c/libU77/Makefile.in 2002-05-22 12:58:15.062120000 -0400
@@ -43,7 +43,7 @@ SHELL = @SHELL@
# fio.h is in libI77. config.h is in `.'.
ALL_CFLAGS = -I. -I$(srcdir) -I$(F2C_H_DIR)/libI77 -I$(G2C_H_DIR) \
- -I$(F2C_H_DIR) $(CPPFLAGS) $(DEFS) $(CFLAGS)
+ -I$(F2C_H_DIR) $(CPPFLAGS) $(DEFS) $(WARN_CFLAGS) $(CFLAGS)
# This could probably be done more elegantly, but it's currently
# just for running the u77-test test.
More information about the Gcc-patches
mailing list