public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Prevent bfin-parse.h being clobbered
@ 2009-09-01  9:52 Jie Zhang
  0 siblings, 0 replies; only message in thread
From: Jie Zhang @ 2009-09-01  9:52 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 290 bytes --]

Rules likes these don't make sense to me:

bfin-defs.h: ; @true
$(srcdir)/config/bfin-defs.h: ; @true

It appears that they should be

bfin-parse.h: ; @true
$(srcdir)/config/bfin-parse.h: ; @true

which are used to prevent .y.h rule clobbering bfin-parse.h.

This patch fixes it. OK?


Jie

[-- Attachment #2: gas-prevent-bfin-parse-h-clobber.diff --]
[-- Type: text/x-patch, Size: 851 bytes --]


	* Makefile.am (bfin-defs.h, $(srcdir)/config/bfin-defs.h):
	Rename to ...
	(bfin-parse.h, $(srcdir)/config/bfin-parse.h): ... these. 
	* Makefile.in: Regenerate.

Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/gas/Makefile.am,v
retrieving revision 1.181
diff -u -r1.181 Makefile.am
--- Makefile.am	26 Aug 2009 18:27:36 -0000	1.181
+++ Makefile.am	1 Sep 2009 09:36:56 -0000
@@ -606,8 +606,8 @@
 bfin-parse.o: bfin-parse.c bfin-parse.h $(srcdir)/config/bfin-defs.h \
  $(INCDIR)/elf/common.h $(INCDIR)/elf/bfin.h $(BFDDIR)/libbfd.h
 
-bfin-defs.h: ; @true
-$(srcdir)/config/bfin-defs.h: ; @true
+bfin-parse.h: ; @true
+$(srcdir)/config/bfin-parse.h: ; @true
 
 bfin-lex.c: $(srcdir)/config/bfin-lex.l
 	$(SHELL) $(YLWRAP) $(srcdir)/config/bfin-lex.l lex.yy.c bfin-lex.c -- $(LEXCOMPILE)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-01  9:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-01  9:52 [PATCH] Prevent bfin-parse.h being clobbered Jie Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).