Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc Fix GCC10 for arm.



details:   https://anonhg.NetBSD.org/src/rev/d1a67b0867b2
branches:  trunk
changeset: 983945:d1a67b0867b2
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Jun 15 08:22:23 2021 +0000

description:
Fix GCC10 for arm.

Include order of bpapi.h and netbsd-elf.h was swapped when official
support for arm*--netbsdelf-eabi{,hf} was added to GCC10. This seems to
cause critical inconsistencies, which results in SIGSEGV for as(1) on
earmv6hf{,eb} and some other regressions for many arm variants.

With this fix, everything work just fine as far as I can see.

Thanks skrll and mrg for discussion!

diffstat:

 external/gpl3/gcc/dist/gcc/config.gcc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 7f41f91adbae -r d1a67b0867b2 external/gpl3/gcc/dist/gcc/config.gcc
--- a/external/gpl3/gcc/dist/gcc/config.gcc     Tue Jun 15 04:41:01 2021 +0000
+++ b/external/gpl3/gcc/dist/gcc/config.gcc     Tue Jun 15 08:22:23 2021 +0000
@@ -1280,7 +1280,7 @@
        esac
        case ${target} in
        arm*-*-netbsdelf-*eabi*)
-           tm_file="${tm_file} arm/bpabi.h arm/netbsd-elf.h arm/netbsd-eabi.h"
+           tm_file="${tm_file} arm/netbsd-elf.h arm/bpabi.h arm/netbsd-eabi.h"
            # GCC 7 vs NetBSD/eabi -> avoid arm unwinder
            #tmake_file="$tmake_file arm/t-bpabi"
            tmake_file="$tmake_file arm/t-netbsdeabi"
@@ -1288,7 +1288,7 @@
            default_use_cxa_atexit=yes
            ;;
        *)
-           tm_file="$tm_file arm/bpabi.h arm/netbsd-elf.h"
+           tm_file="$tm_file arm/netbsd-elf.h arm/bpabi.h"
            #tmake_file="$tmake_file arm/t-bpabi arm/t-netbsdeabi"
            tmake_file="$tmake_file arm/t-netbsd"
            ;;



Home | Main Index | Thread Index | Old Index