Remove unneeded explicit .o targets
authorTom Tromey <tom@tromey.com>
Sat, 1 Sep 2018 16:23:48 +0000 (10:23 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 4 Sep 2018 16:45:54 +0000 (10:45 -0600)
Makefile.in had special cases to compile printcmd.o and target-float.o
with a different set of warnings.  However, this is no longer
required, so this patch removes those rules.

gdb/ChangeLog
2018-09-04  Tom Tromey  <tom@tromey.com>

* Makefile.in (printcmd.o, target-float.o): Remove.
(GDB_WARN_CFLAGS_NO_FORMAT): Remove.

gdb/ChangeLog
gdb/Makefile.in

index e126f80b80e8ec23704eec5cf11a14efdeb173f5..5aafde6ae27261b6e74d64782bceab4e7b33f826 100644 (file)
@@ -1,3 +1,8 @@
+2018-09-04  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (printcmd.o, target-float.o): Remove.
+       (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
+
 2018-09-04  Tom Tromey  <tom@tromey.com>
 
        * gnulib/Makefile.in: Remove obsolete comment.
index e75ef66a070d679c43e1108d67ae895e645f6259..16aac9dadf2202a2d17195c233ef143f73a0aa3c 100644 (file)
@@ -199,8 +199,6 @@ WERROR_CFLAGS = @WERROR_CFLAGS@
 GDB_WARN_CFLAGS = $(WARN_CFLAGS)
 GDB_WERROR_CFLAGS = $(WERROR_CFLAGS)
 
-GDB_WARN_CFLAGS_NO_FORMAT = `echo " $(GDB_WARN_CFLAGS) " \
-                  | sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"`
 GDB_WARN_CFLAGS_NO_DEFS = `echo " $(GDB_WARN_CFLAGS) " \
                   | sed "s/ -Wold-style-definition / -Wno-old-style-definition /g"`
 
@@ -2383,20 +2381,6 @@ ALLDEPFILES = \
 # Some files need explicit build rules (due to -Werror problems) or due
 # to sub-directory fun 'n' games.
 
-# Do not try to build "printcmd.c" with -Wformat-nonliteral.  It manually
-# checks format strings.
-printcmd.o: $(srcdir)/printcmd.c
-       $(ECHO_CXX) $(COMPILE.pre) $(INTERNAL_CFLAGS) \
-               $(GDB_WARN_CFLAGS_NO_FORMAT) $(COMPILE.post) \
-               $(srcdir)/printcmd.c
-       $(POSTCOMPILE)
-
-# Same for "target-float.c".
-target-float.o: $(srcdir)/target-float.c
-       $(ECHO_CXX) $(COMPILE.pre) $(INTERNAL_CFLAGS) \
-               $(GDB_WARN_CFLAGS_NO_FORMAT) $(COMPILE.post) \
-               $(srcdir)/target-float.c
-
 # ada-exp.c can appear in srcdir, for releases; or in ., for
 # development builds.
 ADA_EXP_C = `if test -f ada-exp.c; then echo ada-exp.c; else echo $(srcdir)/ada-exp.c; fi`
This page took 0.032479 seconds and 4 git commands to generate.