Ticket #47588: arm-none-eabi-gcc-gcc-5.1.0.patch

File arm-none-eabi-gcc-gcc-5.1.0.patch, 1.6 KB (added by IvoClarysse (Ivo Clarysse), 9 years ago)

Update arm-none-eabi-gcc Portfile to gcc-5.1.0

  • (a) Portfile-orig vs. (b) Portfile

    a b  
    44PortGroup       crossgcc 1.0
    55PortGroup       compiler_blacklist_versions 1.0
    66
    7 crossgcc.setup      arm-none-eabi 4.7.3
     7crossgcc.setup      arm-none-eabi 5.1.0
    88crossgcc.setup_libc newlib 1.20.0
    99
    1010revision        1
    1111maintainers     gmail.com:stuartwesterman openmaintainer
    1212
    1313checksums       gcc-${version}.tar.bz2 \
    14                 md5     86f428a30379bdee0224e353ee2f999e \
    15                 rmd160  b4ba153b098cad726ecd28195ee445aa542d37ae \
    16                 sha256  2f7c37eb4fc14422ff2358a9ef59c974a75ab41204ef0e49fc34ab1d8981a9c3 \
     14                rmd160  17a9623f384ce10415a603042e0592c9b4956078 \
     15                sha256  b7dafdf89cbb0e20333dbf5b5349319ae06e3d1a30bf3515b5488f7e89dca5ad \
    1716                newlib-${crossgcc.libc_version}.tar.gz \
    1817                sha1    65e7bdbeda0cbbf99c8160df573fd04d1cbe00d1 \
    1918                rmd160  e36c5337a74633456b47d09594974c7dd7a9cc3e
     
    2423# Failed to build with clang from Xcode 4.5
    2524# fatal error: error in backend: ran out of registers during register allocation
    2625compiler.blacklist {clang >= 421 < 422}
     26
     27# GCCs arm target code contains bracket nesting exceeding the clang default
     28# bracket limit.  (https://llvm.org/bugs/show_bug.cgi?id=19650)
     29if {[string match "*clang*" ${configure.compiler}]} {
     30    configure.cflags-append -fbracket-depth=512
     31    configure.cxxflags-append -fbracket-depth=512
     32}
     33
     34# -fbracket-depth is supported by clang-3.3 and above
     35compiler.blacklist macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2