Move aarch64-insn.o to arch/aarch64-insn.o and Remove a rule for arch/*.c
authorYao Qi <yao.qi@linaro.org>
Fri, 6 Oct 2017 13:53:39 +0000 (14:53 +0100)
committerYao Qi <yao.qi@linaro.org>
Fri, 6 Oct 2017 13:53:39 +0000 (14:53 +0100)
This patch moves aarch64-insn.o to arch/aarch64-insn.o.  Then, all
arch/*.c are built to arch/*.o, so we don't need a Makefile rule to build
*.o from arch/*.c.  This patch removes it too.

gdb:

2017-10-06  Yao Qi  <yao.qi@linaro.org>

* Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
arch/aarch64-insn.o.
Remove one rule.
* configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.

gdb/ChangeLog
gdb/Makefile.in
gdb/configure.tgt

index df704f8ee1c5f22824a590da145665e04a5ef910..18224e0305ed3111e9ed8c835b6234d69a77d758 100644 (file)
@@ -1,3 +1,10 @@
+2017-10-06  Yao Qi  <yao.qi@linaro.org>
+
+       * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
+       arch/aarch64-insn.o.
+       Remove one rule.
+       * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
+
 2017-10-06  Yao Qi  <yao.qi@linaro.org>
 
        * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
index 4492aca530f2f8482af28c869be7f10a2ca3f2af..da4095d4a25e1147a3f5c9a191935fdfd2d3399d 100644 (file)
@@ -759,7 +759,6 @@ TARGET_OBS = @TARGET_OBS@
 # (used with --enable-targets=all --enable-64-bit-bfd).
 ALL_64_TARGET_OBS = \
        aarch64-fbsd-tdep.o \
-       aarch64-insn.o \
        aarch64-linux-tdep.o \
        aarch64-newlib-tdep.o \
        aarch64-tdep.o \
@@ -778,6 +777,7 @@ ALL_64_TARGET_OBS = \
        amd64-sol2-tdep.o \
        amd64-tdep.o \
        amd64-windows-tdep.o \
+       arch/aarch64-insn.o \
        arch/amd64.o \
        ia64-linux-tdep.o \
        ia64-tdep.o \
@@ -1926,10 +1926,6 @@ all: gdb$(EXEEXT) $(CONFIG_ALL)
        $(POSTCOMPILE)
 
 # Rules for compiling .c files in the various source subdirectories.
-%.o: ${srcdir}/arch/%.c
-       $(COMPILE) $<
-       $(POSTCOMPILE)
-
 %.o: $(srcdir)/cli/%.c
        $(COMPILE) $<
        $(POSTCOMPILE)
index 52ae467552225e33dcf0c44b5aa0297a4d58aede..f8677b4e31145f5c4bd61b69cf400f896f0a03c5 100644 (file)
@@ -46,7 +46,7 @@ amd64_tobjs="amd64-tdep.o arch/amd64.o"
 
 case "${targ}" in
 aarch64*-*-*)
-       cpu_obs="aarch64-tdep.o aarch64-insn.o";;
+       cpu_obs="aarch64-tdep.o arch/aarch64-insn.o";;
 
 alpha*-*-*)
        # Target: Alpha