aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm/freebsd.h
diff options
context:
space:
mode:
authorAndreas Tobler <andreast@gcc.gnu.org>2016-01-07 21:35:53 +0100
committerAndreas Tobler <andreast@gcc.gnu.org>2016-01-07 21:35:53 +0100
commit33b0992375d48a2101c8d3b157e3cef3fbd3f0cf (patch)
tree569ad88330263e92f955cf389737117080c4fc40 /gcc/config/arm/freebsd.h
parent0de71e1f517fd3f97f072d400991e10879d2867c (diff)
downloadgcc-33b0992375d48a2101c8d3b157e3cef3fbd3f0cf.zip
gcc-33b0992375d48a2101c8d3b157e3cef3fbd3f0cf.tar.gz
gcc-33b0992375d48a2101c8d3b157e3cef3fbd3f0cf.tar.bz2
freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
2016-01-07 Andreas Tobler <andreast@gcc.gnu.org> * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check unaligned_access on the gcc_options set. * config/arm/arm.c (arm_option_override_internal): Use SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. From-SVN: r232141
Diffstat (limited to 'gcc/config/arm/freebsd.h')
-rw-r--r--gcc/config/arm/freebsd.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/config/arm/freebsd.h b/gcc/config/arm/freebsd.h
index 0405ada..948fdd6 100644
--- a/gcc/config/arm/freebsd.h
+++ b/gcc/config/arm/freebsd.h
@@ -120,10 +120,12 @@
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9
#endif
-#define SUBTARGET_OVERRIDE_OPTIONS \
-do { \
- if (unaligned_access) \
- unaligned_access = 0; \
+#define SUBTARGET_OVERRIDE_INTERNAL_OPTIONS \
+do { \
+ if (opts_set->x_unaligned_access == 1) \
+ warning (0, "target OS does not support unaligned accesses"); \
+ if (opts->x_unaligned_access) \
+ opts->x_unaligned_access = 0; \
} while (0)
#undef MAX_SYNC_LIBFUNC_SIZE