Ticket #3438: gcc-a9-multilib.patch

File gcc-a9-multilib.patch, 3.0 KB (added by munster, on May 28, 2018 at 5:23:09 PM)
  • gcc/config/arm/t-rtems

    old new  
    1 # Custom RTEMS multilibs for ARM
     1# Custom RTEMS multilibs for ARM Cortex-A9
    22
    3 MULTILIB_OPTIONS  = mbig-endian mthumb march=armv6-m/march=armv7-a/march=armv7-r/march=armv7-m/mcpu=cortex-m7 mfpu=neon/mfpu=vfp/mfpu=vfpv3-d16/mfpu=fpv4-sp-d16/mfpu=fpv5-d16 mfloat-abi=hard
    4 MULTILIB_DIRNAMES = eb thumb armv6-m armv7-a armv7-r armv7-m cortex-m7 neon vfp vfpv3-d16 fpv4-sp-d16 fpv5-d16 hard
     3MULTILIB_OPTIONS     =
     4MULTILIB_DIRNAMES    =
     5MULTILIB_EXCEPTIONS  =
     6MULTILIB_MATCHES     =
     7MULTILIB_REUSE       =
    58
    6 # Enumeration of multilibs
     9# We have the following hierachy:
     10#   ISA: A32 (.) or T32 (thumb)
     11#   Architecture: ARMv7-A (v7-a), ARMv7VE (v7ve), or ARMv8-A (v8-a).
     12#   FPU: VFPv3-D16 (fpv3), NEONv1 (simdv1), VFPv4-D16 (fpv4),
     13#        NEON-VFPV4 (simdvfpv4), NEON for ARMv8 (simdv8), or None (.).
     14#   Float-abi: Soft (.), softfp (softfp), or hard (hardfp).
    715
    8 MULTILIB_EXCEPTIONS =
     16MULTILIB_OPTIONS       += mthumb
     17MULTILIB_DIRNAMES      += thumb
     18
     19MULTILIB_OPTIONS       += march=armv7-a
     20MULTILIB_DIRNAMES      += v7-a
     21
     22MULTILIB_OPTIONS       += mfpu=vfpv3-d16/mfpu=neon
     23MULTILIB_DIRNAMES      += fpv3 simdv1
     24
     25MULTILIB_OPTIONS       += mfloat-abi=softfp/mfloat-abi=hard
     26MULTILIB_DIRNAMES      += softfp hard
     27
     28# Option combinations to build library with
     29
     30# Default CPU/Arch (ARM is implicitly included because it uses the default
     31# multilib)
     32MULTILIB_REQUIRED      += mthumb
     33
     34# ARMv7-A
     35MULTILIB_REQUIRED      += *march=armv7-a
     36MULTILIB_REQUIRED      += *march=armv7-a/mfpu=vfpv3-d16/mfloat-abi=*
     37MULTILIB_REQUIRED      += *march=armv7-a/mfpu=neon/mfloat-abi=*
     38
     39# CPU Matches
     40MULTILIB_MATCHES       += march?armv7-a=mcpu?cortex-a8
     41MULTILIB_MATCHES       += march?armv7-a=mcpu?cortex-a9
     42MULTILIB_MATCHES       += march?armv7-a=mcpu?cortex-a5
     43
     44# FPU matches
     45MULTILIB_MATCHES       += mfpu?vfpv3-d16=mfpu?vfpv3
     46MULTILIB_MATCHES       += mfpu?vfpv3-d16=mfpu?vfpv3-fp16
     47MULTILIB_MATCHES       += mfpu?vfpv3-d16=mfpu?vfpv3-d16-fp16
     48MULTILIB_MATCHES       += mfpu?neon=mfpu?neon-fp16
     49MULTILIB_MATCHES       += mfpu?vfp=mfpu?vfpv2
     50MULTILIB_MATCHES       += mfpu?neon=mfpu?neon-vfpv3
    951
    10 MULTILIB_REQUIRED =
    11 MULTILIB_REQUIRED += mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
    12 MULTILIB_REQUIRED += mbig-endian/mthumb/march=armv7-r
    13 MULTILIB_REQUIRED += mfpu=vfp/mfloat-abi=hard
    14 MULTILIB_REQUIRED += mthumb/march=armv6-m
    15 MULTILIB_REQUIRED += mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard
    16 MULTILIB_REQUIRED += mthumb/march=armv7-a
    17 MULTILIB_REQUIRED += mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
    18 MULTILIB_REQUIRED += mthumb/march=armv7-r
    19 MULTILIB_REQUIRED += mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard
    20 MULTILIB_REQUIRED += mthumb/mcpu=cortex-m7/mfpu=fpv5-d16/mfloat-abi=hard
    21 MULTILIB_REQUIRED += mthumb/march=armv7-m
    22 MULTILIB_REQUIRED += mthumb