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
This commit is contained in:
parent
0de71e1f51
commit
33b0992375
3 changed files with 18 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
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
|
||||
|
|
|
@ -2954,6 +2954,10 @@ arm_option_override_internal (struct gcc_options *opts,
|
|||
/* 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. */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue