Hi all,

I'm going to commit this patch if no objections pop up.

We (FreeBSD folks) have added a new target tripplet for armv7*-*-freebsd*
To be able to build GCC we need the below changes.

Results will be posted to the usual place, once they completed....

While here I remove an obsolete define.

I'll post similar patches for gcc-7, gcc-6 and gcc-5 branches.
They differ a bit...

Please speak up if you do not agree.

TIA,
Andreas

2017-10-08  Andreas Tobler  <andre...@gcc.gnu.org>

        * config.gcc (armv7*-*-freebsd*): New target.
        (armv6*-*-freebsd*): Remove obsolete TARGET_FREEBSD_ARMv6 define.

Index: config.gcc
===================================================================
--- config.gcc  (revision 253528)
+++ config.gcc  (working copy)
@@ -1093,11 +1093,14 @@
        case $target in
        armv6*-*-freebsd*)
            target_cpu_cname="arm1176jzf-s"
-           tm_defines="${tm_defines} TARGET_FREEBSD_ARMv6=1"
             if test $fbsd_major -ge 11; then
                tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1"
             fi
            ;;
+       armv7*-*-freebsd*)
+           target_cpu_cname="generic-armv7-a"
+           tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1"
+           ;;
        *)
            target_cpu_cname="arm9"
            ;;

Reply via email to