aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-09-01 10:28:34 -0600
committerTom Tromey <tom@tromey.com>2018-09-04 10:45:55 -0600
commit8dc9fd87b0965f24e21922f295c4af9c3f624985 (patch)
tree693757b4c570a5753c6df0f24b1a7afacb834015
parent3322c5d9a102f9af099bd87cc65a1e2a70f91c78 (diff)
downloadgdb-8dc9fd87b0965f24e21922f295c4af9c3f624985.zip
gdb-8dc9fd87b0965f24e21922f295c4af9c3f624985.tar.gz
gdb-8dc9fd87b0965f24e21922f295c4af9c3f624985.tar.bz2
Simplify ada-exp.o rule
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/Makefile.in8
2 files changed, 6 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5aafde6..8e6e361 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
(GDB_WARN_CFLAGS_NO_FORMAT): Remove.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 16aac9d..c76a4e4 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -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.