diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-17 09:01:17 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-17 21:44:04 +0930 |
commit | 05fbbeacaa761976fea5580d993aa6cb7f5342a0 (patch) | |
tree | 2bed8615a73bd52c398ec62a4f57f44a7e86220d /bfd/Makefile.am | |
parent | 880802688cf7322c50994716456d05499e8c0d4d (diff) | |
download | gdb-05fbbeacaa761976fea5580d993aa6cb7f5342a0.zip gdb-05fbbeacaa761976fea5580d993aa6cb7f5342a0.tar.gz gdb-05fbbeacaa761976fea5580d993aa6cb7f5342a0.tar.bz2 |
generated bfd files, and kvx regen
The elf32-kvx.c and elf64-kvx.c rules in the bfd makefile are
different to the other similar generated files, and that reminded me
that we need to have $srcdir in the generated #line reference back to
the source for debugging, but don't want it for comments in bfd.pot
(because then bfd.pot will likely reference Nick's source tree).
This patch fixes that by making all the #line use $srcdir by virtue of
using $<, and edits bfd.pot.
I also uniq list of files to remove duplicated elfxx-x86.c, sort lists
of files and regen with our standard automake/autoconf.
* configure: Regenerate.
bfd/
* Makefile.am: Sort various lists of files. Use $< in #line
directive of generated C files.
(po/SRC-POTFILES.in): uniq SRC_POTFILES.
(po/BLD-POTFILES.in): uniq BFD_POTFILES.
* Makefile.in: Regenerate.
* po/Make-in (bfd.pot): Edit out source dir from comments.
* po/SRC-POTFILES.in: Regenerate.
gas/
* Makefile.in: Regenerate.
* configure: Regenerate.
* po/POTFILES.in: Regenerate.
ld/
* Makefile.am (ALL_64_EMULATION_SOURCES): Sort.
* Makefile.in: Regenerate.
Diffstat (limited to 'bfd/Makefile.am')
-rw-r--r-- | bfd/Makefile.am | 122 |
1 files changed, 59 insertions, 63 deletions
diff --git a/bfd/Makefile.am b/bfd/Makefile.am index 464d6dd..8b0761d 100644 --- a/bfd/Makefile.am +++ b/bfd/Makefile.am @@ -117,12 +117,12 @@ ALL_MACHINES = \ cpu-h8300.lo \ cpu-hppa.lo \ cpu-i386.lo \ - cpu-iamcu.lo \ cpu-ia64.lo \ + cpu-iamcu.lo \ cpu-ip2k.lo \ cpu-iq2000.lo \ - cpu-lm32.lo \ cpu-kvx.lo \ + cpu-lm32.lo \ cpu-loongarch.lo \ cpu-m10200.lo \ cpu-m10300.lo \ @@ -130,10 +130,9 @@ ALL_MACHINES = \ cpu-m32r.lo \ cpu-m68hc11.lo \ cpu-m68hc12.lo \ + cpu-m68k.lo \ cpu-m9s12x.lo \ - cpu-s12z.lo \ cpu-m9s12xg.lo \ - cpu-m68k.lo \ cpu-mcore.lo \ cpu-mep.lo \ cpu-metag.lo \ @@ -152,10 +151,11 @@ ALL_MACHINES = \ cpu-pj.lo \ cpu-powerpc.lo \ cpu-pru.lo \ - cpu-rs6000.lo \ cpu-riscv.lo \ cpu-rl78.lo \ + cpu-rs6000.lo \ cpu-rx.lo \ + cpu-s12z.lo \ cpu-s390.lo \ cpu-score.lo \ cpu-sh.lo \ @@ -201,11 +201,11 @@ ALL_MACHINES_CFILES = \ cpu-h8300.c \ cpu-hppa.c \ cpu-i386.c \ - cpu-iamcu.c \ - cpu-kvx.c \ cpu-ia64.c \ + cpu-iamcu.c \ cpu-ip2k.c \ cpu-iq2000.c \ + cpu-kvx.c \ cpu-lm32.c \ cpu-loongarch.c \ cpu-m10200.c \ @@ -214,10 +214,9 @@ ALL_MACHINES_CFILES = \ cpu-m32r.c \ cpu-m68hc11.c \ cpu-m68hc12.c \ + cpu-m68k.c \ cpu-m9s12x.c \ - cpu-s12z.c \ cpu-m9s12xg.c \ - cpu-m68k.c \ cpu-mcore.c \ cpu-mep.c \ cpu-metag.c \ @@ -229,17 +228,18 @@ ALL_MACHINES_CFILES = \ cpu-mt.c \ cpu-nds32.c \ cpu-nfp.c \ - cpu-ns32k.c \ cpu-nios2.c \ + cpu-ns32k.c \ cpu-or1k.c \ cpu-pdp11.c \ cpu-pj.c \ cpu-powerpc.c \ cpu-pru.c \ - cpu-rs6000.c \ cpu-riscv.c \ cpu-rl78.c \ + cpu-rs6000.c \ cpu-rx.c \ + cpu-s12z.c \ cpu-s390.c \ cpu-score.c \ cpu-sh.c \ @@ -288,11 +288,11 @@ BFD32_BACKENDS = \ ecofflink.lo \ elf-attrs.lo \ elf-eh-frame.lo \ - elf-sframe.lo \ elf-ifunc.lo \ elf-m10200.lo \ elf-m10300.lo \ elf-nacl.lo \ + elf-sframe.lo \ elf-strtab.lo \ elf-vxworks.lo \ elf.lo \ @@ -316,11 +316,9 @@ BFD32_BACKENDS = \ elf32-h8300.lo \ elf32-hppa.lo \ elf32-i386.lo \ - elfxx-x86.lo \ elf32-ip2k.lo \ elf32-iq2000.lo \ elf32-kvx.lo \ - elfxx-kvx.lo \ elf32-lm32.lo \ elf32-m32c.lo \ elf32-m32r.lo \ @@ -328,7 +326,6 @@ BFD32_BACKENDS = \ elf32-m68hc12.lo \ elf32-m68hc1x.lo \ elf32-m68k.lo \ - elf32-s12z.lo \ elf32-mcore.lo \ elf32-mep.lo \ elf32-metag.lo \ @@ -344,6 +341,7 @@ BFD32_BACKENDS = \ elf32-pru.lo \ elf32-rl78.lo \ elf32-rx.lo \ + elf32-s12z.lo \ elf32-s390.lo \ elf32-sh.lo \ elf32-sparc.lo \ @@ -361,15 +359,17 @@ BFD32_BACKENDS = \ elf32-z80.lo \ elf32.lo \ elflink.lo \ + elfxx-kvx.lo \ elfxx-sparc.lo \ elfxx-tilegx.lo \ + elfxx-x86.lo \ i386aout.lo \ i386bsd.lo \ i386lynx.lo \ i386msdos.lo \ - mach-o.lo \ - mach-o-i386.lo \ mach-o-arm.lo \ + mach-o-i386.lo \ + mach-o.lo \ ns32knetbsd.lo \ pc532-mach.lo \ pdb.lo \ @@ -425,11 +425,11 @@ BFD32_BACKENDS_CFILES = \ ecofflink.c \ elf-attrs.c \ elf-eh-frame.c \ - elf-sframe.c \ elf-ifunc.c \ elf-m10200.c \ elf-m10300.c \ elf-nacl.c \ + elf-sframe.c \ elf-strtab.c \ elf-vxworks.c \ elf.c \ @@ -453,10 +453,8 @@ BFD32_BACKENDS_CFILES = \ elf32-h8300.c \ elf32-hppa.c \ elf32-i386.c \ - elfxx-x86.c \ elf32-ip2k.c \ elf32-iq2000.c \ - elfxx-kvx.c \ elf32-lm32.c \ elf32-m32c.c \ elf32-m32r.c \ @@ -464,7 +462,6 @@ BFD32_BACKENDS_CFILES = \ elf32-m68hc12.c \ elf32-m68hc1x.c \ elf32-m68k.c \ - elf32-s12z.c \ elf32-mcore.c \ elf32-mep.c \ elf32-metag.c \ @@ -480,6 +477,7 @@ BFD32_BACKENDS_CFILES = \ elf32-pru.c \ elf32-rl78.c \ elf32-rx.c \ + elf32-s12z.c \ elf32-s390.c \ elf32-sh.c \ elf32-sparc.c \ @@ -497,15 +495,17 @@ BFD32_BACKENDS_CFILES = \ elf32-z80.c \ elf32.c \ elflink.c \ + elfxx-kvx.c \ elfxx-sparc.c \ elfxx-tilegx.c \ + elfxx-x86.c \ i386aout.c \ i386bsd.c \ i386lynx.c \ i386msdos.c \ - mach-o.c \ - mach-o-i386.c \ mach-o-arm.c \ + mach-o-i386.c \ + mach-o.c \ ns32knetbsd.c \ pc532-mach.c \ pdb.c \ @@ -542,54 +542,54 @@ BFD32_BACKENDS_CFILES = \ # elf32-ia64.c requires a 64-bit bfd_vma, and hence can not be put in # BFD32_BACKENDS. BFD64_BACKENDS = \ - elf32-aarch64.lo \ - elf64-aarch64.lo \ - elfxx-aarch64.lo \ aix5ppc-core.lo \ aout64.lo \ coff-alpha.lo \ coff-x86_64.lo \ coff64-rs6000.lo \ + elf32-aarch64.lo \ elf32-ia64.lo \ + elf32-loongarch.lo \ elf32-mips.lo \ + elf32-riscv.lo \ elf32-score.lo \ elf32-score7.lo \ + elf64-aarch64.lo \ elf64-alpha.lo \ elf64-amdgcn.lo \ + elf64-bpf.lo \ elf64-gen.lo \ elf64-hppa.lo \ - elf64-ia64.lo \ elf64-ia64-vms.lo \ - elfxx-ia64.lo \ - elfxx-kvx.lo \ + elf64-ia64.lo \ elf64-kvx.lo \ - elf32-loongarch.lo \ elf64-loongarch.lo \ - elfxx-loongarch.lo \ - elfn32-mips.lo \ elf64-mips.lo \ - elfxx-mips.lo \ elf64-mmix.lo \ elf64-nfp.lo \ elf64-ppc.lo \ - elf32-riscv.lo \ elf64-riscv.lo \ - elfxx-riscv.lo \ elf64-s390.lo \ elf64-sparc.lo \ elf64-tilegx.lo \ elf64-x86-64.lo \ - elfxx-x86.lo \ - elf64-bpf.lo \ elf64.lo \ + elfn32-mips.lo \ + elfxx-aarch64.lo \ + elfxx-ia64.lo \ + elfxx-kvx.lo \ + elfxx-loongarch.lo \ + elfxx-mips.lo \ + elfxx-riscv.lo \ + elfxx-x86.lo \ mach-o-aarch64.lo \ mach-o-x86-64.lo \ mmo.lo \ + pe-aarch64.lo \ pe-aarch64igen.lo \ pe-loongarch64igen.lo \ pe-x86_64.lo \ pei-aarch64.lo \ - pe-aarch64.lo \ pei-ia64.lo \ pei-loongarch64.lo \ pei-x86_64.lo \ @@ -608,6 +608,7 @@ BFD64_BACKENDS_CFILES = \ elf32-score7.c \ elf64-alpha.c \ elf64-amdgcn.c \ + elf64-bpf.c \ elf64-gen.c \ elf64-hppa.c \ elf64-ia64-vms.c \ @@ -619,8 +620,6 @@ BFD64_BACKENDS_CFILES = \ elf64-sparc.c \ elf64-tilegx.c \ elf64-x86-64.c \ - elfxx-x86.c \ - elf64-bpf.c \ elf64.c \ elfn32-mips.c \ elfxx-aarch64.c \ @@ -629,6 +628,7 @@ BFD64_BACKENDS_CFILES = \ elfxx-loongarch.c \ elfxx-mips.c \ elfxx-riscv.c \ + elfxx-x86.c \ mach-o-aarch64.c \ mach-o-x86-64.c \ mmo.c \ @@ -748,12 +748,12 @@ BLD_POTFILES = $(BUILD_CFILES) $(BUILD_HFILES) po/SRC-POTFILES.in: @MAINT@ Makefile for file in $(SRC_POTFILES); do echo $$file; done \ - | LC_ALL=C sort > tmp.src \ + | LC_ALL=C sort | uniq > tmp.src \ && mv tmp.src $(srcdir)/po/SRC-POTFILES.in po/BLD-POTFILES.in: @MAINT@ Makefile for file in $(BLD_POTFILES); do echo $$file; done \ - | LC_ALL=C sort > tmp.bld \ + | LC_ALL=C sort | uniq > tmp.bld \ && mv tmp.bld $(srcdir)/po/BLD-POTFILES.in all diststuff: info @@ -844,67 +844,63 @@ elf64-target.h : elfxx-target.h $(AM_V_GEN)$(SED) -e s/NN/64/g < $< > $@ elf32-aarch64.c : elfnn-aarch64.c - $(AM_V_at)echo "#line 1 \"elfnn-aarch64.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/NN/32/g < $< >> $@ elf64-aarch64.c : elfnn-aarch64.c - $(AM_V_at)echo "#line 1 \"elfnn-aarch64.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/NN/64/g < $< >> $@ elf32-ia64.c : elfnn-ia64.c - $(AM_V_at)echo "#line 1 \"elfnn-ia64.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/NN/32/g < $< >> $@ elf64-ia64.c : elfnn-ia64.c - $(AM_V_at)echo "#line 1 \"elfnn-ia64.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/NN/64/g < $< >> $@ elf32-kvx.c : elfnn-kvx.c - rm -f elf32-kvx.c - echo "#line 1 \"$(srcdir)/elfnn-kvx.c\"" > elf32-kvx.new - sed -e s/NN/32/g < $(srcdir)/elfnn-kvx.c >> elf32-kvx.new - mv -f elf32-kvx.new elf32-kvx.c + $(AM_V_at)echo "#line 1 \"$<\"" > $@ + $(AM_V_GEN)$(SED) -e s/NN/32/g < $< >> $@ elf64-kvx.c : elfnn-kvx.c - rm -f elf64-kvx.c - echo "#line 1 \"$(srcdir)/elfnn-kvx.c\"" > elf64-kvx.new - sed -e s/NN/64/g < $(srcdir)/elfnn-kvx.c >> elf64-kvx.new - mv -f elf64-kvx.new elf64-kvx.c + $(AM_V_at)echo "#line 1 \"$<\"" > $@ + $(AM_V_GEN)$(SED) -e s/NN/64/g < $< >> $@ elf32-loongarch.c : elfnn-loongarch.c - $(AM_V_at)echo "#line 1 \"elfnn-loongarch.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/NN/32/g < $< >> $@ elf64-loongarch.c : elfnn-loongarch.c - $(AM_V_at)echo "#line 1 \"elfnn-loongarch.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/NN/64/g < $< >> $@ elf32-riscv.c : elfnn-riscv.c - $(AM_V_at)echo "#line 1 \"elfnn-riscv.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/NN/32/g < $< >> $@ elf64-riscv.c : elfnn-riscv.c - $(AM_V_at)echo "#line 1 \"elfnn-riscv.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/NN/64/g < $< >> $@ peigen.c : peXXigen.c - $(AM_V_at)echo "#line 1 \"peXXigen.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/XX/pe/g < $< >> $@ pepigen.c : peXXigen.c - $(AM_V_at)echo "#line 1 \"peXXigen.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/XX/pep/g < $< >> $@ pex64igen.c: peXXigen.c - $(AM_V_at)echo "#line 1 \"peXXigen.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/XX/pex64/g < $< >> $@ pe-aarch64igen.c: peXXigen.c - $(AM_V_at)echo "#line 1 \"peXXigen.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/XX/peAArch64/g < $< >> $@ pe-loongarch64igen.c: peXXigen.c - $(AM_V_at)echo "#line 1 \"peXXigen.c\"" > $@ + $(AM_V_at)echo "#line 1 \"$<\"" > $@ $(AM_V_GEN)$(SED) -e s/XX/peLoongArch64/g < $< >> $@ host-aout.lo: Makefile |