Simplify ada-exp.o rule
authorTom Tromey <tom@tromey.com>
Sat, 1 Sep 2018 16:28:34 +0000 (10:28 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 4 Sep 2018 16:45:55 +0000 (10:45 -0600)
The ada-exp.o rule no longer needs to pass -Wno-old-style-definition
to the compiler, as this option has no meaning in C++.  So, This patch
simplifies the explicit ada-exp.o rule in the Makefile.  The rule is
still needed because, according to the comment, ada-exp.c may appear
in the srcdir.

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

* Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
(ada-exp.o): Update.

gdb/ChangeLog
gdb/Makefile.in

index 5aafde6ae27261b6e74d64782bceab4e7b33f826..8e6e3617848605ef1e9bb8c0ff2bbd3ea6b88bfa 100644 (file)
@@ -1,3 +1,8 @@
+2018-09-04  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
+       (ada-exp.o): Update.
+
 2018-09-04  Tom Tromey  <tom@tromey.com>
 
        * Makefile.in (printcmd.o, target-float.o): Remove.
index 16aac9dadf2202a2d17195c233ef143f73a0aa3c..c76a4e4394cddcb03dbfb061da0463321f5364a7 100644 (file)
@@ -199,9 +199,6 @@ WERROR_CFLAGS = @WERROR_CFLAGS@
 GDB_WARN_CFLAGS = $(WARN_CFLAGS)
 GDB_WERROR_CFLAGS = $(WERROR_CFLAGS)
 
-GDB_WARN_CFLAGS_NO_DEFS = `echo " $(GDB_WARN_CFLAGS) " \
-                  | sed "s/ -Wold-style-definition / -Wno-old-style-definition /g"`
-
 RDYNAMIC = @RDYNAMIC@
 
 # Where is the INTL library?  Typically in ../intl.
@@ -2385,11 +2382,8 @@ ALLDEPFILES = \
 # development builds.
 ADA_EXP_C = `if test -f ada-exp.c; then echo ada-exp.c; else echo $(srcdir)/ada-exp.c; fi`
 
-# Some versions of flex give output that triggers
-# -Wold-style-definition.
 ada-exp.o: ada-exp.c
-       $(ECHO_CXX) $(COMPILE.pre) $(INTERNAL_CFLAGS) \
-               $(GDB_WARN_CFLAGS_NO_DEFS) $(COMPILE.post) $(ADA_EXP_C)
+       $(COMPILE) $(ADA_EXP_C)
        $(POSTCOMPILE)
 
 # Message files.  Based on code in gcc/Makefile.in.
This page took 0.032723 seconds and 4 git commands to generate.