diff mbox series

[arm,FreeBSD] add support for armv7*-*-freebsd*

Message ID 9239a945-f88e-742a-a23c-6868998b1cef@fgznet.ch
State New
Headers show
Series [arm,FreeBSD] add support for armv7*-*-freebsd* | expand

Commit Message

Andreas Tobler Oct. 8, 2017, 8:51 p.m. UTC
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  <andreast@gcc.gnu.org>

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

Comments

Andreas Tobler Oct. 10, 2017, 6:50 p.m. UTC | #1
On 08.10.17 22:51, Andreas Tobler wrote:
> 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.
> 

Commited in 253602

Andreas
diff mbox series

Patch

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