From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27311 invoked by alias); 27 Feb 2013 03:17:07 -0000 Received: (qmail 27141 invoked by uid 22791); 27 Feb 2013 03:17:04 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pa0-f51.google.com (HELO mail-pa0-f51.google.com) (209.85.220.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Feb 2013 03:16:53 +0000 Received: by mail-pa0-f51.google.com with SMTP id hz1so129796pad.38 for ; Tue, 26 Feb 2013 19:16:53 -0800 (PST) X-Received: by 10.68.31.130 with SMTP id a2mr873498pbi.213.1361935013032; Tue, 26 Feb 2013 19:16:53 -0800 (PST) Received: from pebble.twiddle.net (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPS id pp1sm265271pac.7.2013.02.26.19.16.51 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 26 Feb 2013 19:16:52 -0800 (PST) From: Richard Henderson To: libc-ports@sourceware.org Cc: Joseph Myers Subject: [PATCH 12/26] arm: Enable thumb2 mode in assembly files Date: Wed, 27 Feb 2013 03:17:00 -0000 Message-Id: <1361934986-17018-13-git-send-email-rth@twiddle.net> In-Reply-To: <1361934986-17018-1-git-send-email-rth@twiddle.net> References: <1361934986-17018-1-git-send-email-rth@twiddle.net> X-IsSubscribed: yes Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2013-02/txt/msg00095.txt.bz2 The preceeding patches have allowed for the few incompatibilities between arm and thumb2 mode, or have marked the file as not wanting to use thumb2 mode. Note that one still has to edit config.make in the build directory to add ASFLAGS to add -mthumb... --- * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Enable thumb2 if __thumb2__. --- ports/sysdeps/arm/sysdep.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ports/sysdeps/arm/sysdep.h b/ports/sysdeps/arm/sysdep.h index 2d40823..3459219 100644 --- a/ports/sysdeps/arm/sysdep.h +++ b/ports/sysdeps/arm/sysdep.h @@ -114,6 +114,17 @@ the caller. */ .eabi_attribute 24, 1 +/* The thumb2 encoding is reasonably complete. Unless suppressed, use it. */ +#ifdef NO_THUMB +# undef __thumb__ +# undef __thumb2__ + .arm +#endif +#ifdef __thumb2__ + .syntax unified + .thumb +#endif + /* We occasionally want to use the S form simply to achieve a smaller instruction form in Thumb mode. Never set the flags in ARM mode. */ #ifdef __thumb__ -- 1.8.1.2