From patchwork Sun Mar 29 08:13:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 5880 Received: (qmail 127603 invoked by alias); 29 Mar 2015 08:13:53 -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 127573 invoked by uid 89); 29 Mar 2015 08:13:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD, URIBL_BLACK autolearn=no 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; Sun, 29 Mar 2015 08:13:51 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id A9B20340C2D for ; Sun, 29 Mar 2015 08:13:49 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 3/4] sim: mcore: use common configure options Date: Sun, 29 Mar 2015 04:13:44 -0400 Message-Id: <1427616825-27500-3-git-send-email-vapier@gentoo.org> In-Reply-To: <1427616825-27500-1-git-send-email-vapier@gentoo.org> References: <1427616825-27500-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes In preparation for converting to nrun, call the common functions that are needed. This doesn't produce any new warnings, and the generated code should be the same. Committed. --- sim/mcore/ChangeLog | 7 + sim/mcore/config.in | 15 ++ sim/mcore/configure | 417 ++++++++++++++++++++++++++++++++++++++++++++++++- sim/mcore/configure.ac | 5 + 4 files changed, 442 insertions(+), 2 deletions(-) diff --git a/sim/mcore/ChangeLog b/sim/mcore/ChangeLog index f6089c8..88e67d2 100644 --- a/sim/mcore/ChangeLog +++ b/sim/mcore/ChangeLog @@ -1,5 +1,12 @@ 2015-03-29 Mike Frysinger + * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT, + SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and + SIM_AC_OPTION_INLINE. + * config.in, configure: Regenerate. + +2015-03-29 Mike Frysinger + * interp.c (heap_ptr, int_sbrk): Delete. (handle_trap1): Change case 69 (sbrk) to always return -1. (sim_load): Delete bss checks and heap_ptr setup. diff --git a/sim/mcore/config.in b/sim/mcore/config.in index 5ded703..6003e58 100644 diff --git a/sim/mcore/configure b/sim/mcore/configure index c7e82ec..af6e579 100755 diff --git a/sim/mcore/configure.ac b/sim/mcore/configure.ac index 0daa1af..96d0ffd 100644 --- a/sim/mcore/configure.ac +++ b/sim/mcore/configure.ac @@ -5,6 +5,11 @@ sinclude(../common/acinclude.m4) SIM_AC_COMMON +SIM_AC_OPTION_ENDIAN +SIM_AC_OPTION_ALIGNMENT(STRICT_ALIGNMENT,STRICT_ALIGNMENT) +SIM_AC_OPTION_HOSTENDIAN +SIM_AC_OPTION_ENVIRONMENT +SIM_AC_OPTION_INLINE SIM_AC_OPTION_WARNINGS SIM_AC_OUTPUT