This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build regression on CentOS-5 [Re: [PATCH 3/3] add -Wold-style-definition]


On 07/02/13 13:54, Tom Tromey wrote:
Tom> As much as I dislike working around old tools, how about the appended?

Grr, wrong version.

Tom

diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index aca5dbf..7f6e7b6 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -165,6 +165,8 @@ 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"`

  RDYNAMIC = @RDYNAMIC@

@@ -1580,6 +1582,17 @@ printcmd.o: $(srcdir)/printcmd.c
  		$(COMPILE.post) $(srcdir)/printcmd.c
  	$(POSTCOMPILE)

+# 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`
+
+# Some versions of flex give output that triggers
+# -Wold-style-definition.
+ada-exp.o: ada-exp.c
+	$(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_DEFS) \
+		$(COMPILE.post) $(ADA_EXP_C)
+	$(POSTCOMPILE)
+
  # Message files.  Based on code in gcc/Makefile.in.

  # Rules for generating translated message descriptions.  Disabled by

Are you going to check in the fix for this regression?


--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]