Ticket #1765: arm_v1.patch

File arm_v1.patch, 2.4 KB (added by Sebastian Huber, on 03/23/11 at 10:09:45)

Patch against GCC 4.6.0-RC-20110321.

  • gcc/config.gcc

    diff --git a/gcc/config.gcc b/gcc/config.gcc
    index 58f6787..421279d 100644
    a b arm*-*-eabi* | arm*-*-symbianelf* ) 
    895895        tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
    896896        ;;
    897897arm*-*-rtems*)
    898         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h newlib-stdint.h"
    899         tmake_file="arm/t-arm arm/t-arm-elf t-rtems arm/t-rtems"
     898        need_64bit_hwint=yes
     899        default_use_cxa_atexit=yes
     900        tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h"
     901        tm_file="$tm_file ../../libgcc/config/arm/bpabi-lib.h"
     902        tm_file="${tm_file} rtems.h arm/rtems-elf.h newlib-stdint.h"
     903        tm_file="${tm_file} arm/aout.h arm/arm.h"
     904        tmake_file="arm/t-arm arm/t-arm-elf"
     905        tmake_file="${tmake_file} arm/t-bpabi t-rtems arm/t-rtems"
    900906        tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
    901907        ;;
    902908arm*-*-elf)
  • gcc/config/arm/rtems-elf.h

    diff --git a/gcc/config/arm/rtems-elf.h b/gcc/config/arm/rtems-elf.h
    index dade74b..ad7e5b8 100644
    a b  
    2323
    2424#define HAS_INIT_SECTION
    2525
     26#undef TARGET_OS_CPP_BUILTINS
    2627#define TARGET_OS_CPP_BUILTINS()                \
    2728    do {                                        \
    2829        builtin_define ("__rtems__");           \
    29         builtin_define ("__USE_INIT_FINI__");   \
    3030        builtin_assert ("system=rtems");        \
     31        TARGET_BPABI_CPP_BUILTINS();            \
    3132    } while (0)
    32 
    33 /*
    34  * The default in gcc now is soft-float, but gcc misses it to
    35  * pass it to the assembler.
    36  */
    37 #undef SUBTARGET_EXTRA_ASM_SPEC
    38 #define SUBTARGET_EXTRA_ASM_SPEC "\
    39   %{!mhard-float: %{!msoft-float:-mfpu=softfpa}}"
    40 
    41 /*
    42  *  The default includes --start-group and --end-group which conflicts
    43  *  with how this used to be defined.
    44  */
    45 #undef LINK_GCC_C_SEQUENCE_SPEC
  • gcc/config/arm/t-rtems

    diff --git a/gcc/config/arm/t-rtems b/gcc/config/arm/t-rtems
    index 52d14ba..9c68dc0 100644
    a b  
    11# Custom rtems multilibs
    22
    3 MULTILIB_OPTIONS     = marm/mthumb
    4 MULTILIB_DIRNAMES    = arm thumb
    5 MULTILIB_EXCEPTIONS  =
    6 MULTILIB_MATCHES     = marm=mno-thumb
    7 
    8 MULTILIB_OPTIONS    += msoft-float/mhard-float
    9 MULTILIB_DIRNAMES   += soft fpu
    10 MULTILIB_EXCEPTIONS += *mthumb/*mhard-float*
     3MULTILIB_OPTIONS    = mthumb march=armv6-m/march=armv7/march=armv7-m
     4MULTILIB_DIRNAMES   = thumb armv6-m armv7 armv7-m
     5MULTILIB_EXCEPTIONS = march=armv6-m march=armv7 march=armv7-m
     6MULTILIB_MATCHES    = marm=mno-thumb