Hi all,

here is the patch witch adds support for armv7*-*-freebsd* on the gcc-7 branch.

The difference towards trunk is the target_cpu_cname.

I'll commit this one if no objections pop up.
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)
@@ -1077,11 +1077,14 @@
        case $target in
        armv6*-*-freebsd*)
            target_cpu_cname="arm1176jzfs"
-           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="genericv7a"
+           tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1"
+           ;;
        *)
            target_cpu_cname="arm9"
            ;;

Reply via email to