From patchwork Fri Jul 16 10:03:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Stubbs X-Patchwork-Id: 59089 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 5B954B6F11 for ; Fri, 16 Jul 2010 20:04:09 +1000 (EST) Received: (qmail 10512 invoked by alias); 16 Jul 2010 10:04:04 -0000 Received: (qmail 10500 invoked by uid 22791); 16 Jul 2010 10:04:03 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Jul 2010 10:03:58 +0000 Received: (qmail 7675 invoked from network); 16 Jul 2010 10:03:56 -0000 Received: from unknown (HELO ?192.168.0.104?) (ams@127.0.0.2) by mail.codesourcery.com with ESMTPA; 16 Jul 2010 10:03:56 -0000 Message-ID: <4C402E89.5060403@codesourcery.com> Date: Fri, 16 Jul 2010 11:03:53 +0100 From: Andrew Stubbs User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.4) Gecko/20100608 Lightning/1.0b2 Thunderbird/3.1 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: [patch] Auto-set ARM -mimplicit-it option Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This patch causes the compiler to pass -mimplicit-it=thumb to the assembler, when the running in -mthumb mode. The default, if the compiler passes nothing, is -mimplicit-it=arm, which is inappropriate when a program is targeted at thumb mode. I've built and tested an ARM Linux cross compiler, and found no regressions. OK? Andrew 2010-07-12 Andrew Stubbs * config/arm/elf.h (ASM_SPEC): Pass -mimplicit-it=thumb if -mthumb. --- src/gcc-mainline/gcc/config/arm/elf.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gcc-mainline/gcc/config/arm/elf.h b/src/gcc-mainline/gcc/config/arm/elf.h index 8840088..c8a3572 100644 --- a/src/gcc-mainline/gcc/config/arm/elf.h +++ b/src/gcc-mainline/gcc/config/arm/elf.h @@ -63,6 +63,7 @@ %{mthumb-interwork:-mthumb-interwork} \ %{msoft-float:-mfloat-abi=soft} %{mhard-float:-mfloat-abi=hard} \ %{mfloat-abi=*} %{mfpu=*} \ +%{mthumb:%{!-mimplicit-it=*:-mimplicit-it=thumb}} \ %(subtarget_extra_asm_spec)" #endif