diff options
author | Andreas Tobler <andreast@gcc.gnu.org> | 2016-06-14 21:53:01 +0200 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2016-06-14 21:53:01 +0200 |
commit | 5618c53ff334bff75cad40cf9ac03cbaf32da218 (patch) | |
tree | 0b40194d35aba7a8240b770365cffbdea9515b2e /gcc/config/arm/freebsd.h | |
parent | 775ee7fae092287a47775c4f15deef4f4de87ece (diff) | |
download | gcc-5618c53ff334bff75cad40cf9ac03cbaf32da218.zip gcc-5618c53ff334bff75cad40cf9ac03cbaf32da218.tar.gz gcc-5618c53ff334bff75cad40cf9ac03cbaf32da218.tar.bz2 |
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
Diffstat (limited to 'gcc/config/arm/freebsd.h')
-rw-r--r-- | gcc/config/arm/freebsd.h | 4 |
1 files changed, 4 insertions, 0 deletions
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. */ |