OSDN Git Service

* Makefile.in (gnu-nat.o): New rule.
authorpalves <palves>
Wed, 10 Sep 2008 18:13:20 +0000 (18:13 +0000)
committerpalves <palves>
Wed, 10 Sep 2008 18:13:20 +0000 (18:13 +0000)
gdb/ChangeLog
gdb/Makefile.in

index 480763c..2ffa89d 100644 (file)
@@ -1,3 +1,7 @@
+2008-09-10  Pedro Alves  <pedro@codesourcery.com>
+
+       * Makefile.in (gnu-nat.o): New rule.
+
 2008-09-10  Joel Brobecker  <brobecker@adacore.com>
 
        * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
index a4bf241..be07d23 100644 (file)
@@ -1343,6 +1343,13 @@ ALLDEPFILES = \
 # Some files need explicit build rules (due to -Werror problems) or due
 # to sub-directory fun 'n' games.
 
+# "gnu-nat.c" gets "suggest parentheses around assignment used as
+# truth value" errors.  It turns out that there is a system header
+# that does `if (a = b)'.
+gnu-nat.o: $(srcdir)/gnu-nat.c
+       $(COMPILE.pre) $(INTERNAL_WARN_CFLAGS) $(COMPILE.post) $(srcdir)/gnu-nat.c
+       $(POSTCOMPILE)
+
 hpux-thread.o: $(srcdir)/hpux-thread.c
        $(COMPILE) -I$(srcdir)/osf-share -I$(srcdir)/osf-share/HP800 \
                -I/usr/include/dce $(srcdir)/hpux-thread.c