This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Move aarch64-insn.o to arch/aarch64-insn.o and Remove a rule for arch/*.c
- From: Yao Qi <qiyao at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 6 Oct 2017 13:55:41 -0000
- Subject: [binutils-gdb] Move aarch64-insn.o to arch/aarch64-insn.o and Remove a rule for arch/*.c
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0d28b0a5caa6b04129e21a9aff371d4032c7ef17
commit 0d28b0a5caa6b04129e21a9aff371d4032c7ef17
Author: Yao Qi <yao.qi@linaro.org>
Date: Fri Oct 6 14:53:39 2017 +0100
Move aarch64-insn.o to arch/aarch64-insn.o and Remove a rule for arch/*.c
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.
Diff:
---
gdb/ChangeLog | 7 +++++++
gdb/Makefile.in | 6 +-----
gdb/configure.tgt | 2 +-
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index df704f8..18224e0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
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,
and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
arch/arm-linux.o respectively.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 4492aca..da4095d 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -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)
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index 52ae467..f8677b4 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -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