public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch][arm][FreeBSD] add support for armv7*-*-freebsd*
@ 2017-10-08 20:58 Andreas Tobler
  2017-10-10 18:51 ` Andreas Tobler
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Tobler @ 2017-10-08 20:58 UTC (permalink / raw)
  To: GCC Patches

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.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch][arm][FreeBSD] add support for armv7*-*-freebsd*
  2017-10-08 20:58 [patch][arm][FreeBSD] add support for armv7*-*-freebsd* Andreas Tobler
@ 2017-10-10 18:51 ` Andreas Tobler
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Tobler @ 2017-10-10 18:51 UTC (permalink / raw)
  To: GCC Patches

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-10 18:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-08 20:58 [patch][arm][FreeBSD] add support for armv7*-*-freebsd* Andreas Tobler
2017-10-10 18:51 ` Andreas Tobler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).