This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch][arm][FreeBSD] gcc-7 branch: add support for armv7*-*-freebsd*


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  <andreast@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"
 	    ;;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]