From patchwork Fri Jul 16 10:03:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Auto-set ARM -mimplicit-it option Date: Fri, 16 Jul 2010 00:03:53 -0000 From: Andrew Stubbs X-Patchwork-Id: 59089 Message-Id: <4C402E89.5060403@codesourcery.com> To: 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