From: Andreas Tobler Date: Tue, 14 Jun 2016 19:53:01 +0000 (+0200) Subject: freebsd.h: Only enable unaligned access for armv6 on FreeBSD 11 and above. X-Git-Tag: upstream/12.2.0~46406 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5618c53ff334bff75cad40cf9ac03cbaf32da218;p=platform%2Fupstream%2Fgcc.git freebsd.h: Only enable unaligned access for armv6 on FreeBSD 11 and above. 2016-06-14 Andreas Tobler * config/arm/freebsd.h: Only enable unaligned access for armv6 on FreeBSD 11 and above. From-SVN: r237457 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f95e4a65..2389681 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-06-14 Andreas Tobler + + * config/arm/freebsd.h: Only enable unaligned access for armv6 on + FreeBSD 11 and above. + 2016-06-14 Uros Bizjak * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE. diff --git a/gcc/config/arm/freebsd.h b/gcc/config/arm/freebsd.h index 948fdd6..0ade4e9 100644 --- a/gcc/config/arm/freebsd.h +++ b/gcc/config/arm/freebsd.h @@ -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 @@ do { \ 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. */