public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] FreeBSD armv6 unaligned access
@ 2016-06-10 18:07 Andreas Tobler
  2016-06-10 20:26 ` Gerald Pfeifer
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Tobler @ 2016-06-10 18:07 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

Hi all,

FreeBSD 11 will bring unaligned access support for armv6 and up.
This patch enables it.

If no objection I'll commit it to trunk, gcc-6 branch and gcc-5 branch 
in the next days.

Thanks,
Andreas

2016-06-10  Andreas Tobler  <andreast@gcc.gnu.org>

	* config/arm/freebsd.h: Enable unaligned access for armv6 on
	FreeBSD 11.

[-- Attachment #2: armv6_unaligned.diff --]
[-- Type: text/plain, Size: 743 bytes --]

Index: config/arm/freebsd.h
===================================================================
--- config/arm/freebsd.h	(revision 237314)
+++ config/arm/freebsd.h	(working copy)
@@ -120,6 +120,9 @@
 #define SUBTARGET_CPU_DEFAULT   TARGET_CPU_arm9
 #endif
 
+/* FreeBSD 10 does not support unaligned access for armv6 and up.
+   Unaligned access support was added in FreeBSD 11.  */
+#if FBSD_MAJOR < 11
 #define SUBTARGET_OVERRIDE_INTERNAL_OPTIONS				\
 do {									\
     if (opts_set->x_unaligned_access == 1)				\
@@ -127,6 +130,7 @@
     if (opts->x_unaligned_access)					\
 	opts->x_unaligned_access = 0;					\
 } while (0)
+#endif
 
 #undef MAX_SYNC_LIBFUNC_SIZE
 #define MAX_SYNC_LIBFUNC_SIZE 4 /* UNITS_PER_WORD not defined yet.  */

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

* Re: [patch] FreeBSD armv6 unaligned access
  2016-06-10 18:07 [patch] FreeBSD armv6 unaligned access Andreas Tobler
@ 2016-06-10 20:26 ` Gerald Pfeifer
  2016-06-10 21:12   ` Andreas Tobler
  0 siblings, 1 reply; 3+ messages in thread
From: Gerald Pfeifer @ 2016-06-10 20:26 UTC (permalink / raw)
  To: Andreas Tobler; +Cc: gcc-patches

Hi Andreas,

On Fri, 10 Jun 2016, Andreas Tobler wrote:
> FreeBSD 11 will bring unaligned access support for armv6 and up.
> This patch enables it.
> 
> If no objection I'll commit it to trunk, gcc-6 branch and gcc-5 
> branch in the next days.

As FreeBSD maintainer, you don't need to wait, though it is 
considered good practice to first start on trunk and push back
to release branches after a few days (or weeks).  

For a straightforward change like this I don't think that is 
necessary, though.

> 2016-06-10  Andreas Tobler  <andreast@gcc.gnu.org>
> 
> 	* config/arm/freebsd.h: Enable unaligned access for armv6 on
> 	FreeBSD 11.

Two comments on this ChangeLog:  Right now all versions are enabled,
aren't they?  And this is not specific to FreeBSD 11, but 11 and above?

So, how about the following variation?

	* config/arm/freebsd.h: Only enable unaligned access for armv6 
	on FreeBSD 11 and above.

Gerald

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

* Re: [patch] FreeBSD armv6 unaligned access
  2016-06-10 20:26 ` Gerald Pfeifer
@ 2016-06-10 21:12   ` Andreas Tobler
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Tobler @ 2016-06-10 21:12 UTC (permalink / raw)
  To: Gerald Pfeifer; +Cc: gcc-patches

Hi Gerald,

On 10.06.16 22:26, Gerald Pfeifer wrote:

> On Fri, 10 Jun 2016, Andreas Tobler wrote:
>> FreeBSD 11 will bring unaligned access support for armv6 and up.
>> This patch enables it.
>>
>> If no objection I'll commit it to trunk, gcc-6 branch and gcc-5
>> branch in the next days.
>
> As FreeBSD maintainer, you don't need to wait, though it is
> considered good practice to first start on trunk and push back
> to release branches after a few days (or weeks).
>
> For a straightforward change like this I don't think that is
> necessary, though.

I know. But I prefer to make my FreeBSD only patches available for 
comments to all before I commit. I could have done a commit to all 
branches w/o timed notice, just with the patch and CL.

>> 2016-06-10  Andreas Tobler  <andreast@gcc.gnu.org>
>>
>> 	* config/arm/freebsd.h: Enable unaligned access for armv6 on
>> 	FreeBSD 11.
>
> Two comments on this ChangeLog:  Right now all versions are enabled,
> aren't they?  And this is not specific to FreeBSD 11, but 11 and above?

The first part I do not understand. The second part, sure, 11 and above.

> So, how about the following variation?
>
> 	* config/arm/freebsd.h: Only enable unaligned access for armv6
> 	on FreeBSD 11 and above.

Np with me.

Thanks,
Andreas
Thanks,
Andreas

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

end of thread, other threads:[~2016-06-10 21:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-10 18:07 [patch] FreeBSD armv6 unaligned access Andreas Tobler
2016-06-10 20:26 ` Gerald Pfeifer
2016-06-10 21:12   ` 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).