From patchwork Fri Oct 6 13:56:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 23377 Received: (qmail 27421 invoked by alias); 6 Oct 2017 13:56:45 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 26921 invoked by uid 89); 6 Oct 2017 13:56:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:74.125.82.66, H*RU:74.125.82.66, HX-Received:10.80.179.47 X-HELO: mail-wm0-f66.google.com Received: from mail-wm0-f66.google.com (HELO mail-wm0-f66.google.com) (74.125.82.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Oct 2017 13:56:43 +0000 Received: by mail-wm0-f66.google.com with SMTP id b189so11595764wmd.2 for ; Fri, 06 Oct 2017 06:56:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=VbGDvMEukG7Y3/kIUbHNmDUwSNk97THbbfW7ktliEjo=; b=RRvJZWZUAVk4DBe4iAoa+UsJ/lUzhDPho+0YpsfM++Pzf4kT2gVbzZDBlx955qTJ/t 57kBaLUUNhOvPTUmCYHypj1c990n6AM3+BVJLjZeITexzx1fumYT+aLLxgX/l/f/wB7/ aYLgdmrDRlQ0tlh87DIqAKUjGt7cIZo7e2q4EgTDbehyx3JUvXDrzNbR9FREjIb03jpX a+hc7NQ1CSoNajJZHtc7iwn+0+ZaulYAWdTq+RbXnPdSTs++NC/swMEoEOWqLCKVMCEb KyBebiYqUini1ljqakSRmctwxS4Yvx2yUcma54ozoRrbCWO3D4v63mwLx9prFEAt1DtR VBrw== X-Gm-Message-State: AMCzsaW9bLVqoe6LDFZoRWVRbsi3SJE++y8X9640B4+L5LHmPBvZ3hmY 16bJvTsfIi3GjJ8rA7m8QTMEZA== X-Google-Smtp-Source: AOwi7QBF+ZEv1eZeEsYcEZkqdh8HnWfG6RN6B/AJ+YGHG/AaVMRU8hcVBmoigCOVtfPG+xlNkINkPQ== X-Received: by 10.80.179.47 with SMTP id q44mr3400547edd.123.1507298200943; Fri, 06 Oct 2017 06:56:40 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id e24sm1697162edc.9.2017.10.06.06.56.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Oct 2017 06:56:40 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH] Move aarch64-insn.o to arch/aarch64-insn.o and Remove a rule for arch/*.c Date: Fri, 6 Oct 2017 14:56:34 +0100 Message-Id: <1507298194-25152-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes 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. It is tested by building GDB for aarch64-linux, aarch64-freebsd. I pushed it in. gdb: 2017-10-06 Yao Qi * 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 | 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 + * 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 + * 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