Commit 5618c53f by Andreas Tobler

freebsd.h: Only enable unaligned access for armv6 on FreeBSD 11 and above.

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

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

From-SVN: r237457
parent 775ee7fa
2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
* config/arm/freebsd.h: Only enable unaligned access for armv6 on
FreeBSD 11 and above.
2016-06-14 Uros Bizjak <ubizjak@gmail.com> 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE. * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
......
...@@ -120,6 +120,9 @@ ...@@ -120,6 +120,9 @@
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9
#endif #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 \ #define SUBTARGET_OVERRIDE_INTERNAL_OPTIONS \
do { \ do { \
if (opts_set->x_unaligned_access == 1) \ if (opts_set->x_unaligned_access == 1) \
...@@ -127,6 +130,7 @@ do { \ ...@@ -127,6 +130,7 @@ do { \
if (opts->x_unaligned_access) \ if (opts->x_unaligned_access) \
opts->x_unaligned_access = 0; \ opts->x_unaligned_access = 0; \
} while (0) } while (0)
#endif
#undef MAX_SYNC_LIBFUNC_SIZE #undef MAX_SYNC_LIBFUNC_SIZE
#define MAX_SYNC_LIBFUNC_SIZE 4 /* UNITS_PER_WORD not defined yet. */ #define MAX_SYNC_LIBFUNC_SIZE 4 /* UNITS_PER_WORD not defined yet. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment