From patchwork Tue Nov 10 05:20:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 9625 X-Patchwork-Delegate: vapier@gentoo.org Received: (qmail 33574 invoked by alias); 10 Nov 2015 05:20:30 -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 33374 invoked by uid 89); 10 Nov 2015 05:20:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 10 Nov 2015 05:20:27 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B0F3A33FE7D for ; Tue, 10 Nov 2015 05:20:24 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: m32c: move test code to testsuite Date: Tue, 10 Nov 2015 00:20:23 -0500 Message-Id: <1447132823-32402-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes Various target code belongs in the testsuite/ subdir, so move the m32c code to match all the other targets. --- sim/m32c/ChangeLog | 7 +++++++ sim/m32c/Makefile.in | 18 ------------------ sim/testsuite/sim/m32c/ChangeLog | 4 ++++ sim/{m32c/blinky.S => testsuite/sim/m32c/blinky.s} | 4 ++-- sim/{m32c/gloss.S => testsuite/sim/m32c/gloss.s} | 4 ++-- sim/{ => testsuite/sim}/m32c/sample.ld | 0 sim/{m32c/sample.S => testsuite/sim/m32c/sample.s} | 6 ++---- sim/{ => testsuite/sim}/m32c/sample2.c | 0 8 files changed, 17 insertions(+), 26 deletions(-) create mode 100644 sim/testsuite/sim/m32c/ChangeLog rename sim/{m32c/blinky.S => testsuite/sim/m32c/blinky.s} (93%) rename sim/{m32c/gloss.S => testsuite/sim/m32c/gloss.s} (95%) rename sim/{ => testsuite/sim}/m32c/sample.ld (100%) rename sim/{m32c/sample.S => testsuite/sim/m32c/sample.s} (87%) rename sim/{ => testsuite/sim}/m32c/sample2.c (100%) diff --git a/sim/m32c/ChangeLog b/sim/m32c/ChangeLog index 582d8dd..c44e7eb 100644 --- a/sim/m32c/ChangeLog +++ b/sim/m32c/ChangeLog @@ -1,5 +1,12 @@ 2015-11-09 Mike Frysinger + * Makefile.in (sample.x, sample.mot, sample2.x, sample2.o, gloss.o): + Delete targets. + * blinky.S: Moved to ../testsuite/sim/m32c/. + * gloss.S, sample.ld, sample.S, sample2.c: Likewise. + +2015-11-09 Mike Frysinger + * Makefile.in: Delete redundant dependency info. 2015-08-05 Nick Clifton diff --git a/sim/m32c/Makefile.in b/sim/m32c/Makefile.in index 5584563..36585a0d 100644 --- a/sim/m32c/Makefile.in +++ b/sim/m32c/Makefile.in @@ -40,8 +40,6 @@ SIM_OBJS = \ trace.o \ $(ENDLIST) -# SIM_EXTRA_ALL = sample.x sample2.x - LIBS = $B/bfd/libbfd.a $B/libiberty/libiberty.a ## COMMON_POST_CONFIG_FRAG @@ -57,22 +55,6 @@ m32c.c : m32c.opc opc2c opc2c : opc2c.o safe-fgets.o $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $^ -o $@ $(BUILD_LIBS) -sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld - ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o - ../../ld/ld-new sample.o -o sample.x -T$(srcdir)/sample.ld - -sample.mot : sample.x - ../../binutils/objcopy --srec-forceS3 -O srec sample.x sample.mot - -sample2.x : sample2.o gloss.o $(srcdir)/sample.ld - ../../ld/ld-new sample2.o gloss.o -o sample2.x -T$(srcdir)/sample.ld - -sample2.o : $(srcdir)/sample2.c - ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample2.c -o sample2.o - -gloss.o : $(srcdir)/gloss.S - ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/gloss.S -o gloss.o - encodings: grep '/\* [01]' $(srcdir)/r8c.opc | sort diff --git a/sim/testsuite/sim/m32c/ChangeLog b/sim/testsuite/sim/m32c/ChangeLog new file mode 100644 index 0000000..2c28054 --- /dev/null +++ b/sim/testsuite/sim/m32c/ChangeLog @@ -0,0 +1,4 @@ +2015-11-09 Mike Frysinger + + * blinky.s: Moved from ../../../m32c/. + * gloss.s, sample.ld, sample.s, sample2.c: Likewise. diff --git a/sim/m32c/blinky.S b/sim/testsuite/sim/m32c/blinky.s similarity index 93% rename from sim/m32c/blinky.S rename to sim/testsuite/sim/m32c/blinky.s index 42345ec..725ac7c 100644 --- a/sim/m32c/blinky.S +++ b/sim/testsuite/sim/m32c/blinky.s @@ -1,5 +1,5 @@ -;;; blinky.S --- sample program to blink LED's on M32C simulator -;;; +;;; blinky.s --- sample program to blink LED's on M32C simulator +;;; ;;; Copyright (C) 2005-2015 Free Software Foundation, Inc. ;;; Contributed by Red Hat, Inc. ;;; diff --git a/sim/m32c/gloss.S b/sim/testsuite/sim/m32c/gloss.s similarity index 95% rename from sim/m32c/gloss.S rename to sim/testsuite/sim/m32c/gloss.s index ccef95e..981036d 100644 --- a/sim/m32c/gloss.S +++ b/sim/testsuite/sim/m32c/gloss.s @@ -1,5 +1,5 @@ -;;; gloss.S --- system calls for sample2.x -;;; +;;; gloss.s --- system calls for sample2.x +;;; ;;; Copyright (C) 2005-2015 Free Software Foundation, Inc. ;;; Contributed by Red Hat, Inc. ;;; diff --git a/sim/m32c/sample.ld b/sim/testsuite/sim/m32c/sample.ld similarity index 100% rename from sim/m32c/sample.ld rename to sim/testsuite/sim/m32c/sample.ld diff --git a/sim/m32c/sample.S b/sim/testsuite/sim/m32c/sample.s similarity index 87% rename from sim/m32c/sample.S rename to sim/testsuite/sim/m32c/sample.s index 7668834..1c5f23d 100644 --- a/sim/m32c/sample.S +++ b/sim/testsuite/sim/m32c/sample.s @@ -1,5 +1,5 @@ -;;; sample.S --- simple test program for M32C simulator -;;; +;;; sample.s --- simple test program for M32C simulator +;;; ;;; Copyright (C) 2005-2015 Free Software Foundation, Inc. ;;; Contributed by Red Hat, Inc. ;;; @@ -18,8 +18,6 @@ ;;; You should have received a copy of the GNU General Public License ;;; along with this program. If not, see . -;;; See the 'sample.x' and sample.mot targets in Makefile.in. - .text .global _start diff --git a/sim/m32c/sample2.c b/sim/testsuite/sim/m32c/sample2.c similarity index 100% rename from sim/m32c/sample2.c rename to sim/testsuite/sim/m32c/sample2.c