+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.
+
2016-01-07 Uros Bizjak <ubizjak@gmail.com>
PR target/69140
/* Thumb2 inline assembly code should always use unified syntax.
This will apply to ARM and Thumb1 eventually. */
opts->x_inline_asm_unified = TARGET_THUMB2_P (opts->x_target_flags);
+
+#ifdef SUBTARGET_OVERRIDE_INTERNAL_OPTIONS
+ SUBTARGET_OVERRIDE_INTERNAL_OPTIONS;
+#endif
}
/* Fix up any incompatible options that the user has specified. */
#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