From b8426d169d3f8ab820f3bdaf45fbc64f8bb827ed Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 21 Sep 2018 04:24:40 -0700 Subject: [PATCH] gas: Make bfin-parse.c/rl78-parse.c/rx-parse.c depend on bfd/reloc.c Since bfin-parse.c, rl78-parse.c and rx-parse.c use BFD_RELOC_XXX, we need to regenerate them when bfd/reloc.c changhes. PR gas/23692 * Makefile.am (bfin-parse.c): Depend on $(srcdir)/../bfd/reloc.c. (rl78-parse.c): Likewise. (rx-parse.c): Likewise. * Makefile.in: Regenerated. --- gas/ChangeLog | 8 ++++++++ gas/Makefile.am | 6 +++--- gas/Makefile.in | 6 +++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index a9ff07d5091..0f685fbd68d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,11 @@ +2018-09-21 H.J. Lu + + PR gas/23692 + * Makefile.am (bfin-parse.c): Depend on $(srcdir)/../bfd/reloc.c. + (rl78-parse.c): Likewise. + (rx-parse.c): Likewise. + * Makefile.in: Regenerated. + 2018-09-21 Alan Modra * testsuite/gas/avr/large-debug-line-table.d: Update. diff --git a/gas/Makefile.am b/gas/Makefile.am index 9b3d32f56db..e9d6a0629d6 100644 --- a/gas/Makefile.am +++ b/gas/Makefile.am @@ -481,7 +481,7 @@ m68k-parse.h: ; @true $(srcdir)/config/m68k-parse.h: ; @true EXTRA_as_new_SOURCES += config/bfin-parse.y -bfin-parse.c: $(srcdir)/config/bfin-parse.y +bfin-parse.c: $(srcdir)/config/bfin-parse.y $(srcdir)/../bfd/reloc.c $(SHELL) $(YLWRAP) $(srcdir)/config/bfin-parse.y y.tab.c bfin-parse.c y.tab.h bfin-parse.h -- $(YACCCOMPILE) -d ; bfin-parse.h: bfin-parse.c bfin-parse.h: ; @true @@ -502,14 +502,14 @@ endif endif EXTRA_as_new_SOURCES += config/rl78-parse.y -rl78-parse.c: $(srcdir)/config/rl78-parse.y +rl78-parse.c: $(srcdir)/config/rl78-parse.y $(srcdir)/../bfd/reloc.c $(SHELL) $(YLWRAP) $(srcdir)/config/rl78-parse.y y.tab.c rl78-parse.c y.tab.h rl78-parse.h -- $(YACCCOMPILE) -d ; rl78-parse.h: rl78-parse.c 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 07bb7f054bc..21d6d8b3ca0 100644 --- a/gas/Makefile.in +++ b/gas/Makefile.in @@ -1602,7 +1602,7 @@ m68k-parse.@OBJEXT@: m68k-parse.c # Don't let the .y.h rule clobber m68k-parse.h. m68k-parse.h: ; @true $(srcdir)/config/m68k-parse.h: ; @true -bfin-parse.c: $(srcdir)/config/bfin-parse.y +bfin-parse.c: $(srcdir)/config/bfin-parse.y $(srcdir)/../bfd/reloc.c $(SHELL) $(YLWRAP) $(srcdir)/config/bfin-parse.y y.tab.c bfin-parse.c y.tab.h bfin-parse.h -- $(YACCCOMPILE) -d ; bfin-parse.h: bfin-parse.c bfin-parse.h: ; @true @@ -1616,12 +1616,12 @@ bfin-lex-wrapper.@OBJEXT@: $(srcdir)/config/bfin-lex-wrapper.c bfin-lex.c bfin-p @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bfin-lex-wrapper.c' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $(srcdir)/config/bfin-lex-wrapper.c $(NO_WERROR) -rl78-parse.c: $(srcdir)/config/rl78-parse.y +rl78-parse.c: $(srcdir)/config/rl78-parse.y $(srcdir)/../bfd/reloc.c $(SHELL) $(YLWRAP) $(srcdir)/config/rl78-parse.y y.tab.c rl78-parse.c y.tab.h rl78-parse.h -- $(YACCCOMPILE) -d ; 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.30.2