This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] rx: Make rx-parse.c depend on bfd/reloc.c
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 20 Sep 2018 09:01:07 -0700
- Subject: [PATCH] rx: Make rx-parse.c depend on bfd/reloc.c
Since rx-parse.y uses BFD_RELOC_XXX, we need to regenerate rx-parse.c
when bfd/reloc.c changhes.
PR gas/23692
* Makefile.am (rx-parse.c): Depend on $(srcdir)/../bfd/reloc.c.
* Makefile.in: Regenerated.
---
gas/Makefile.am | 2 +-
gas/Makefile.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gas/Makefile.am b/gas/Makefile.am
index 9b3d32f56d..0849ce4630 100644
--- a/gas/Makefile.am
+++ b/gas/Makefile.am
@@ -509,7 +509,7 @@ rl78-defs.h: ; @true
$(srcdir)/config/rl78-defs.h: ; @true
EXTRA_as_new_SOURCES += config/rx-parse.y
-rx-parse.c: $(srcdir)/config/rx-parse.y
+rx-parse.c: $(srcdir)/config/rx-parse.y $(srcdir)/../bfd/reloc.c
$(SHELL) $(YLWRAP) $(srcdir)/config/rx-parse.y y.tab.c rx-parse.c y.tab.h rx-parse.h -- $(YACCCOMPILE) -d ;
rx-parse.h: rx-parse.c
rx-defs.h: ; @true
diff --git a/gas/Makefile.in b/gas/Makefile.in
index 07bb7f054b..0ae57c9dce 100644
--- a/gas/Makefile.in
+++ b/gas/Makefile.in
@@ -1621,7 +1621,7 @@ rl78-parse.c: $(srcdir)/config/rl78-parse.y
rl78-parse.h: rl78-parse.c
rl78-defs.h: ; @true
$(srcdir)/config/rl78-defs.h: ; @true
-rx-parse.c: $(srcdir)/config/rx-parse.y
+rx-parse.c: $(srcdir)/config/rx-parse.y $(srcdir)/../bfd/reloc.c
$(SHELL) $(YLWRAP) $(srcdir)/config/rx-parse.y y.tab.c rx-parse.c y.tab.h rx-parse.h -- $(YACCCOMPILE) -d ;
rx-parse.h: rx-parse.c
rx-defs.h: ; @true
--
2.17.1