aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/alpha/alpha.c2
-rw-r--r--gcc/config/arc/arc.c4
-rw-r--r--gcc/config/arm/arm.c9
-rw-r--r--gcc/config/bfin/bfin.c5
-rw-r--r--gcc/config/c6x/c6x.c3
-rw-r--r--gcc/config/csky/csky.c7
-rw-r--r--gcc/config/darwin.c31
-rw-r--r--gcc/config/frv/frv.c5
-rw-r--r--gcc/config/i386/djgpp.h2
-rw-r--r--gcc/config/i386/i386.c6
-rw-r--r--gcc/config/ia64/ia64.c6
-rw-r--r--gcc/config/m32c/m32c.c3
-rw-r--r--gcc/config/m32r/m32r.c3
-rw-r--r--gcc/config/m68k/m68k.c6
-rw-r--r--gcc/config/microblaze/microblaze.c3
-rw-r--r--gcc/config/mips/mips.c9
-rw-r--r--gcc/config/nios2/nios2.c3
-rw-r--r--gcc/config/nvptx/nvptx.c4
-rw-r--r--gcc/config/pa/pa.c4
-rw-r--r--gcc/config/riscv/riscv.c11
-rw-r--r--gcc/config/rs6000/aix71.h6
-rw-r--r--gcc/config/rs6000/aix72.h6
-rw-r--r--gcc/config/rs6000/aix73.h6
-rw-r--r--gcc/config/rs6000/rs6000.c70
-rw-r--r--gcc/config/rs6000/rtems.h4
-rw-r--r--gcc/config/rs6000/sysv4.h8
-rw-r--r--gcc/config/rs6000/vxworks.h2
-rw-r--r--gcc/config/s390/s390.c4
-rw-r--r--gcc/config/sh/linux.h4
-rw-r--r--gcc/config/sh/netbsd-elf.h2
-rw-r--r--gcc/config/sh/sh.c12
-rw-r--r--gcc/config/sol2.c3
-rw-r--r--gcc/config/sparc/sparc.c12
-rw-r--r--gcc/config/tilegx/tilegx.c3
-rw-r--r--gcc/config/visium/visium.c2
-rw-r--r--gcc/config/vxworks.c5
36 files changed, 145 insertions, 130 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
index c702e68..fced7ce 100644
--- a/gcc/config/alpha/alpha.c
+++ b/gcc/config/alpha/alpha.c
@@ -575,7 +575,7 @@ alpha_option_override (void)
}
/* Default the definition of "small data" to 8 bytes. */
- if (!global_options_set.x_g_switch_value)
+ if (!OPTION_SET_P (g_switch_value))
g_switch_value = 8;
/* Infer TARGET_SMALL_DATA from -fpic/-fPIC. */
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index 92797db..8244f37 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -1441,7 +1441,7 @@ arc_override_options (void)
target_flags |= MASK_NO_SDATA_SET;
/* Check for small data option */
- if (!global_options_set.x_g_switch_value && !TARGET_NO_SDATA_SET)
+ if (!OPTION_SET_P (g_switch_value) && !TARGET_NO_SDATA_SET)
g_switch_value = TARGET_LL64 ? 8 : 4;
/* A7 has an issue with delay slots. */
@@ -1455,7 +1455,7 @@ arc_override_options (void)
target_flags &= ~MASK_MILLICODE_THUNK_SET;
/* Set unaligned to all HS cpus. */
- if (!global_options_set.x_unaligned_access && TARGET_HS)
+ if (!OPTION_SET_P (unaligned_access) && TARGET_HS)
unaligned_access = 1;
/* These need to be done at start up. It's convenient to do them here. */
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 6c6e77f..471128f 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -71,6 +71,7 @@
#include "gimple.h"
#include "selftest.h"
#include "tree-vectorizer.h"
+#include "opts.h"
/* This file should be included last. */
#include "target-def.h"
@@ -3468,7 +3469,7 @@ arm_option_override (void)
arm_active_target.isa = sbitmap_alloc (isa_num_bits);
- if (!global_options_set.x_arm_fpu_index)
+ if (!OPTION_SET_P (arm_fpu_index))
{
bool ok;
int fpu_index;
@@ -3528,7 +3529,7 @@ arm_option_override (void)
flag_schedule_insns = flag_schedule_insns_after_reload = 0;
/* Override the default structure alignment for AAPCS ABI. */
- if (!global_options_set.x_arm_structure_size_boundary)
+ if (!OPTION_SET_P (arm_structure_size_boundary))
{
if (TARGET_AAPCS_BASED)
arm_structure_size_boundary = 8;
@@ -3553,12 +3554,12 @@ arm_option_override (void)
if (TARGET_VXWORKS_RTP)
{
- if (!global_options_set.x_arm_pic_data_is_text_relative)
+ if (!OPTION_SET_P (arm_pic_data_is_text_relative))
arm_pic_data_is_text_relative = 0;
}
else if (flag_pic
&& !arm_pic_data_is_text_relative
- && !(global_options_set.x_target_flags & MASK_SINGLE_PIC_BASE))
+ && !(OPTION_SET_P (target_flags) & MASK_SINGLE_PIC_BASE))
/* When text & data segments don't have a fixed displacement, the
intended use is with a single, read only, pic base register.
Unless the user explicitly requested not to do that, set
diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c
index 698dd87..3287e49 100644
--- a/gcc/config/bfin/bfin.c
+++ b/gcc/config/bfin/bfin.c
@@ -53,6 +53,7 @@
#include "hw-doloop.h"
#include "dumpfile.h"
#include "builtins.h"
+#include "opts.h"
/* This file should be included last. */
#include "target-def.h"
@@ -1046,7 +1047,7 @@ bfin_load_pic_reg (rtx dest)
if (local_info_node && local_info_node->local)
return pic_offset_table_rtx;
- if (global_options_set.x_bfin_library_id)
+ if (OPTION_SET_P (bfin_library_id))
addr = plus_constant (Pmode, pic_offset_table_rtx,
-4 - bfin_library_id * 4);
else
@@ -2369,7 +2370,7 @@ bfin_option_override (void)
#endif
/* Library identification */
- if (global_options_set.x_bfin_library_id && ! TARGET_ID_SHARED_LIBRARY)
+ if (OPTION_SET_P (bfin_library_id) && ! TARGET_ID_SHARED_LIBRARY)
error ("%<-mshared-library-id=%> specified without "
"%<-mid-shared-library%>");
diff --git a/gcc/config/c6x/c6x.c b/gcc/config/c6x/c6x.c
index ce49495..4854371 100644
--- a/gcc/config/c6x/c6x.c
+++ b/gcc/config/c6x/c6x.c
@@ -60,6 +60,7 @@
#include "dumpfile.h"
#include "builtins.h"
#include "flags.h"
+#include "opts.h"
/* This file should be included last. */
#include "target-def.h"
@@ -221,7 +222,7 @@ c6x_option_override (void)
{
unsigned i;
- if (global_options_set.x_c6x_arch_option)
+ if (OPTION_SET_P (c6x_arch_option))
{
c6x_arch = all_isas[c6x_arch_option].type;
c6x_insn_mask &= ~C6X_INSNS_ALL_CPU_BITS;
diff --git a/gcc/config/csky/csky.c b/gcc/config/csky/csky.c
index e55821f..487288b 100644
--- a/gcc/config/csky/csky.c
+++ b/gcc/config/csky/csky.c
@@ -67,6 +67,7 @@
#include "pass_manager.h"
#include "tree-pass.h"
#include "context.h"
+#include "opts.h"
/* This file should be included last. */
#include "target-def.h"
@@ -2757,15 +2758,15 @@ csky_option_override (void)
#ifdef ENABLE_TPF_DEBUG
/* Don't emit DWARF4 unless specifically selected. The TPF
debuggers do not yet support DWARF 3/4. */
- if (!global_options_set.x_dwarf_strict)
+ if (!OPTION_SET_P (dwarf_strict))
dwarf_strict = 1;
- if (!global_options_set.x_dwarf_version)
+ if (!OPTION_SET_P (dwarf_version))
dwarf_version = 3;
#endif
/* Don't run the scheduler before reload by default,
since it tends to increase register pressure. */
- if (!global_options_set.x_flag_schedule_insns)
+ if (!OPTION_SET_P (flag_schedule_insns))
flag_schedule_insns = 0;
csky_add_gc_roots ();
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 781742f..28dc55d 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -48,6 +48,7 @@ along with GCC; see the file COPYING3. If not see
#include "intl.h"
#include "optabs.h"
#include "flags.h"
+#include "opts.h"
/* Fix and Continue.
@@ -3282,7 +3283,7 @@ darwin_override_options (void)
}
/* Unless set, force ABI=2 for NeXT and m64, 0 otherwise. */
- if (!global_options_set.x_flag_objc_abi)
+ if (!OPTION_SET_P (flag_objc_abi))
global_options.x_flag_objc_abi
= (!flag_next_runtime)
? 0
@@ -3290,7 +3291,7 @@ darwin_override_options (void)
: (generating_for_darwin_version >= 9) ? 1
: 0);
- if (global_options_set.x_flag_objc_abi && flag_next_runtime)
+ if (OPTION_SET_P (flag_objc_abi) && flag_next_runtime)
{
if (TARGET_64BIT && global_options.x_flag_objc_abi != 2)
/* The Objective-C family ABI 2 is the only valid version NeXT/m64. */
@@ -3307,23 +3308,23 @@ darwin_override_options (void)
/* Don't emit DWARF3/4 unless specifically selected. This is a
workaround for tool bugs. */
- if (!global_options_set.x_dwarf_strict)
+ if (!OPTION_SET_P (dwarf_strict))
dwarf_strict = 1;
- if (!global_options_set.x_dwarf_version)
+ if (!OPTION_SET_P (dwarf_version))
dwarf_version = 2;
- if (global_options_set.x_dwarf_split_debug_info)
+ if (OPTION_SET_P (dwarf_split_debug_info))
{
inform (input_location,
"%<-gsplit-dwarf%> is not supported on this platform, ignored");
dwarf_split_debug_info = 0;
- global_options_set.x_dwarf_split_debug_info = 0;
+ OPTION_SET_P (dwarf_split_debug_info) = 0;
}
/* Do not allow unwind tables to be generated by default for m32.
fnon-call-exceptions will override this, regardless of what we do. */
if (generating_for_darwin_version < 10
- && !global_options_set.x_flag_asynchronous_unwind_tables
+ && !OPTION_SET_P (flag_asynchronous_unwind_tables)
&& !TARGET_64BIT)
global_options.x_flag_asynchronous_unwind_tables = 0;
@@ -3334,15 +3335,15 @@ darwin_override_options (void)
will be generated". If the User specifically sets flags... we assume
(s)he knows why... */
if (generating_for_darwin_version < 9
- && global_options_set.x_flag_reorder_blocks_and_partition
+ && OPTION_SET_P (flag_reorder_blocks_and_partition)
&& ((global_options.x_flag_exceptions /* User, c++, java */
- && !global_options_set.x_flag_exceptions) /* User specified... */
+ && !OPTION_SET_P (flag_exceptions)) /* User specified... */
|| (global_options.x_flag_unwind_tables
- && !global_options_set.x_flag_unwind_tables)
+ && !OPTION_SET_P (flag_unwind_tables))
|| (global_options.x_flag_non_call_exceptions
- && !global_options_set.x_flag_non_call_exceptions)
+ && !OPTION_SET_P (flag_non_call_exceptions))
|| (global_options.x_flag_asynchronous_unwind_tables
- && !global_options_set.x_flag_asynchronous_unwind_tables)))
+ && !OPTION_SET_P (flag_asynchronous_unwind_tables))))
{
inform (input_location,
"%<-freorder-blocks-and-partition%> does not work with "
@@ -3353,12 +3354,12 @@ darwin_override_options (void)
/* FIXME: flag_objc_sjlj_exceptions is no longer needed since there is only
one valid choice of exception scheme for each runtime. */
- if (!global_options_set.x_flag_objc_sjlj_exceptions)
+ if (!OPTION_SET_P (flag_objc_sjlj_exceptions))
global_options.x_flag_objc_sjlj_exceptions =
flag_next_runtime && !TARGET_64BIT;
/* FIXME: and this could be eliminated then too. */
- if (!global_options_set.x_flag_exceptions
+ if (!OPTION_SET_P (flag_exceptions)
&& flag_objc_exceptions
&& TARGET_64BIT)
flag_exceptions = 1;
@@ -3414,7 +3415,7 @@ darwin_override_options (void)
Linkers that don't need stubs, don't need the EH symbol markers either.
*/
- if (!global_options_set.x_darwin_symbol_stubs)
+ if (!OPTION_SET_P (darwin_symbol_stubs))
{
if (darwin_target_linker)
{
diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c
index a7f7f08..02cd07c 100644
--- a/gcc/config/frv/frv.c
+++ b/gcc/config/frv/frv.c
@@ -50,6 +50,7 @@ along with GCC; see the file COPYING3. If not see
#include "ifcvt.h"
#include "rtl-iter.h"
#include "calls.h"
+#include "opts.h"
/* This file should be included last. */
#include "target-def.h"
@@ -664,7 +665,7 @@ frv_option_override (void)
if (!flag_pic) /* -fPIC */
flag_pic = 2;
- if (!global_options_set.x_g_switch_value) /* -G0 */
+ if (!OPTION_SET_P (g_switch_value)) /* -G0 */
{
g_switch_value = 0;
}
@@ -757,7 +758,7 @@ frv_option_override (void)
}
/* Check for small data option */
- if (!global_options_set.x_g_switch_value && !TARGET_LIBPIC)
+ if (!OPTION_SET_P (g_switch_value) && !TARGET_LIBPIC)
g_switch_value = SDATA_DEFAULT_SIZE;
/* There is no single unaligned SI op for PIC code. Sometimes we
diff --git a/gcc/config/i386/djgpp.h b/gcc/config/i386/djgpp.h
index 9decff7..f1afad9 100644
--- a/gcc/config/i386/djgpp.h
+++ b/gcc/config/i386/djgpp.h
@@ -147,7 +147,7 @@ along with GCC; see the file COPYING3. If not see
\
/* Don't emit DWARF3/4 unless specifically selected. */ \
/* DWARF3/4 currently does not work for DJGPP. */ \
- if (!global_options_set.x_dwarf_version) \
+ if (!OPTION_SET_P (dwarf_version)) \
dwarf_version = 2; \
\
} \
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 7bc1b05..fb65609 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -22280,7 +22280,7 @@ ix86_stack_protect_guard (void)
tree type = build_qualified_type (type_node, qual);
tree t;
- if (global_options_set.x_ix86_stack_protector_guard_symbol_str)
+ if (OPTION_SET_P (ix86_stack_protector_guard_symbol_str))
{
t = ix86_tls_stack_chk_guard_decl;
@@ -22794,12 +22794,12 @@ ix86_max_noce_ifcvt_seq_cost (edge e)
bool predictable_p = predictable_edge_p (e);
if (predictable_p)
{
- if (global_options_set.x_param_max_rtl_if_conversion_predictable_cost)
+ if (OPTION_SET_P (param_max_rtl_if_conversion_predictable_cost))
return param_max_rtl_if_conversion_predictable_cost;
}
else
{
- if (global_options_set.x_param_max_rtl_if_conversion_unpredictable_cost)
+ if (OPTION_SET_P (param_max_rtl_if_conversion_unpredictable_cost))
return param_max_rtl_if_conversion_unpredictable_cost;
}
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
index 632b9df..39a0e07 100644
--- a/gcc/config/ia64/ia64.c
+++ b/gcc/config/ia64/ia64.c
@@ -6098,7 +6098,7 @@ ia64_option_override (void)
flag_ira_loop_pressure = 1;
- ia64_section_threshold = (global_options_set.x_g_switch_value
+ ia64_section_threshold = (OPTION_SET_P (g_switch_value)
? g_switch_value
: IA64_DEFAULT_GVALUE);
@@ -6120,8 +6120,8 @@ static void
ia64_override_options_after_change (void)
{
if (optimize >= 3
- && !global_options_set.x_flag_selective_scheduling
- && !global_options_set.x_flag_selective_scheduling2)
+ && !OPTION_SET_P (flag_selective_scheduling)
+ && !OPTION_SET_P (flag_selective_scheduling2))
{
flag_selective_scheduling2 = 1;
flag_sel_sched_pipelining = 1;
diff --git a/gcc/config/m32c/m32c.c b/gcc/config/m32c/m32c.c
index d22bdd7..f99e2b0 100644
--- a/gcc/config/m32c/m32c.c
+++ b/gcc/config/m32c/m32c.c
@@ -48,6 +48,7 @@
#include "expr.h"
#include "tm-constrs.h"
#include "builtins.h"
+#include "opts.h"
/* This file should be included last. */
#include "target-def.h"
@@ -412,7 +413,7 @@ static void
m32c_option_override (void)
{
/* We limit memregs to 0..16, and provide a default. */
- if (global_options_set.x_target_memregs)
+ if (OPTION_SET_P (target_memregs))
{
if (target_memregs < 0 || target_memregs > 16)
error ("invalid target memregs value %<%d%>", target_memregs);
diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c
index 1aaba94..d644f6b 100644
--- a/gcc/config/m32r/m32r.c
+++ b/gcc/config/m32r/m32r.c
@@ -45,6 +45,7 @@
#include "expr.h"
#include "tm-constrs.h"
#include "builtins.h"
+#include "opts.h"
/* This file should be included last. */
#include "target-def.h"
@@ -244,7 +245,7 @@ m32r_init (void)
m32r_punct_chars['@'] = 1; /* ??? no longer used */
/* Provide default value if not specified. */
- if (!global_options_set.x_g_switch_value)
+ if (!OPTION_SET_P (g_switch_value))
g_switch_value = SDATA_DEFAULT_SIZE;
}
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index 0248eb7..d1105e7 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -500,13 +500,13 @@ m68k_option_override (void)
const struct m68k_target_selection *entry;
unsigned long target_mask;
- if (global_options_set.x_m68k_arch_option)
+ if (OPTION_SET_P (m68k_arch_option))
m68k_arch_entry = &all_isas[m68k_arch_option];
- if (global_options_set.x_m68k_cpu_option)
+ if (OPTION_SET_P (m68k_cpu_option))
m68k_cpu_entry = &all_devices[(int) m68k_cpu_option];
- if (global_options_set.x_m68k_tune_option)
+ if (OPTION_SET_P (m68k_tune_option))
m68k_tune_entry = &all_microarchs[(int) m68k_tune_option];
/* User can choose:
diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c
index 6e8f367..4813f7a 100644
--- a/gcc/config/microblaze/microblaze.c
+++ b/gcc/config/microblaze/microblaze.c
@@ -51,6 +51,7 @@
#include "cfgloop.h"
#include "insn-addr.h"
#include "cfgrtl.h"
+#include "opts.h"
/* This file should be included last. */
#include "target-def.h"
@@ -1741,7 +1742,7 @@ microblaze_option_override (void)
machine_mode mode;
int ver;
- microblaze_section_threshold = (global_options_set.x_g_switch_value
+ microblaze_section_threshold = (OPTION_SET_P (g_switch_value)
? g_switch_value
: MICROBLAZE_DEFAULT_GVALUE);
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index ade5d70..807bf1a 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -66,6 +66,7 @@ along with GCC; see the file COPYING3. If not see
#include "builtins.h"
#include "rtl-iter.h"
#include "flags.h"
+#include "opts.h"
/* This file should be included last. */
#include "target-def.h"
@@ -19883,7 +19884,7 @@ mips_option_override (void)
{
int i, start, regno, mode;
- if (global_options_set.x_mips_isa_option)
+ if (OPTION_SET_P (mips_isa_option))
mips_isa_option_info = &mips_cpu_info_table[mips_isa_option];
#ifdef SUBTARGET_OVERRIDE_OPTIONS
@@ -19915,7 +19916,7 @@ mips_option_override (void)
TARGET_INTERLINK_COMPRESSED = 1;
/* Set the small data limit. */
- mips_small_data_threshold = (global_options_set.x_g_switch_value
+ mips_small_data_threshold = (OPTION_SET_P (g_switch_value)
? g_switch_value
: MIPS_DEFAULT_GVALUE);
@@ -19923,7 +19924,7 @@ mips_option_override (void)
Similar code was added to GAS 2.14 (see tc-mips.c:md_after_parse_args()).
The GAS and GCC code should be kept in sync as much as possible. */
- if (global_options_set.x_mips_arch_option)
+ if (OPTION_SET_P (mips_arch_option))
mips_set_architecture (mips_cpu_info_from_opt (mips_arch_option));
if (mips_isa_option_info != 0)
@@ -19945,7 +19946,7 @@ mips_option_override (void)
mips_arch_info->name);
/* Optimize for mips_arch, unless -mtune selects a different processor. */
- if (global_options_set.x_mips_tune_option)
+ if (OPTION_SET_P (mips_tune_option))
mips_set_tune (mips_cpu_info_from_opt (mips_tune_option));
if (mips_tune_info == 0)
diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c
index 26d4333..7a613e4 100644
--- a/gcc/config/nios2/nios2.c
+++ b/gcc/config/nios2/nios2.c
@@ -52,6 +52,7 @@
#include "builtins.h"
#include "tree-pass.h"
#include "xregex.h"
+#include "opts.h"
/* This file should be included last. */
#include "target-def.h"
@@ -1363,7 +1364,7 @@ nios2_option_override (void)
init_machine_status = &nios2_init_machine_status;
nios2_section_threshold
- = (global_options_set.x_g_switch_value
+ = (OPTION_SET_P (g_switch_value)
? g_switch_value : NIOS2_DEFAULT_GVALUE);
if (nios2_gpopt_option == gpopt_unspecified)
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index 4e4909e..951252e 100644
--- a/gcc/config/nvptx/nvptx.c
+++ b/gcc/config/nvptx/nvptx.c
@@ -215,7 +215,7 @@ nvptx_option_override (void)
/* Set toplevel_reorder, unless explicitly disabled. We need
reordering so that we emit necessary assembler decls of
undeclared variables. */
- if (!global_options_set.x_flag_toplevel_reorder)
+ if (!OPTION_SET_P (flag_toplevel_reorder))
flag_toplevel_reorder = 1;
debug_nonbind_markers_p = 0;
@@ -223,7 +223,7 @@ nvptx_option_override (void)
/* Set flag_no_common, unless explicitly disabled. We fake common
using .weak, and that's not entirely accurate, so avoid it
unless forced. */
- if (!global_options_set.x_flag_no_common)
+ if (!OPTION_SET_P (flag_no_common))
flag_no_common = 1;
/* The patch area requires nops, which we don't have. */
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index 69ba5bd..d13021a 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -545,9 +545,9 @@ pa_option_override (void)
{
/* DWARF5 is not supported by gdb. Don't emit DWARF5 unless
specifically selected. */
- if (!global_options_set.x_dwarf_strict)
+ if (!OPTION_SET_P (dwarf_strict))
dwarf_strict = 1;
- if (!global_options_set.x_dwarf_version)
+ if (!OPTION_SET_P (dwarf_version))
dwarf_version = 4;
}
diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c
index 576960b..126572c 100644
--- a/gcc/config/riscv/riscv.c
+++ b/gcc/config/riscv/riscv.c
@@ -56,6 +56,7 @@ along with GCC; see the file COPYING3. If not see
#include "builtins.h"
#include "predict.h"
#include "tree-pass.h"
+#include "opts.h"
/* True if X is an UNSPEC wrapper around a SYMBOL_REF or LABEL_REF. */
#define UNSPEC_ADDRESS_P(X) \
@@ -4839,7 +4840,7 @@ riscv_option_override (void)
#endif
if (riscv_stack_protector_guard == SSP_GLOBAL
- && global_options_set.x_riscv_stack_protector_guard_offset_str)
+ && OPTION_SET_P (riscv_stack_protector_guard_offset_str))
{
error ("incompatible options %<-mstack-protector-guard=global%> and "
"%<-mstack-protector-guard-offset=%s%>",
@@ -4847,15 +4848,15 @@ riscv_option_override (void)
}
if (riscv_stack_protector_guard == SSP_TLS
- && !(global_options_set.x_riscv_stack_protector_guard_offset_str
- && global_options_set.x_riscv_stack_protector_guard_reg_str))
+ && !(OPTION_SET_P (riscv_stack_protector_guard_offset_str)
+ && OPTION_SET_P (riscv_stack_protector_guard_reg_str)))
{
error ("both %<-mstack-protector-guard-offset%> and "
"%<-mstack-protector-guard-reg%> must be used "
"with %<-mstack-protector-guard=sysreg%>");
}
- if (global_options_set.x_riscv_stack_protector_guard_reg_str)
+ if (OPTION_SET_P (riscv_stack_protector_guard_reg_str))
{
const char *str = riscv_stack_protector_guard_reg_str;
int reg = decode_reg_name (str);
@@ -4867,7 +4868,7 @@ riscv_option_override (void)
riscv_stack_protector_guard_reg = reg;
}
- if (global_options_set.x_riscv_stack_protector_guard_offset_str)
+ if (OPTION_SET_P (riscv_stack_protector_guard_offset_str))
{
char *end;
const char *str = riscv_stack_protector_guard_offset_str;
diff --git a/gcc/config/rs6000/aix71.h b/gcc/config/rs6000/aix71.h
index 1bc1560..ddd204d 100644
--- a/gcc/config/rs6000/aix71.h
+++ b/gcc/config/rs6000/aix71.h
@@ -33,7 +33,7 @@ do { \
if (TARGET_SOFT_FLOAT && TARGET_LONG_DOUBLE_128) \
{ \
rs6000_long_double_type_size = 64; \
- if (global_options_set.x_rs6000_long_double_type_size) \
+ if (OPTION_SET_P (rs6000_long_double_type_size)) \
warning (0, "soft-float and long-double-128 are incompatible"); \
} \
if (TARGET_POWERPC64 && ! TARGET_64BIT) \
@@ -43,7 +43,7 @@ do { \
if ((rs6000_isa_flags_explicit \
& OPTION_MASK_MINIMAL_TOC) != 0) \
{ \
- if (global_options_set.x_rs6000_current_cmodel \
+ if (OPTION_SET_P (rs6000_current_cmodel) \
&& rs6000_current_cmodel != CMODEL_SMALL) \
error ("%<-mcmodel%> incompatible with other toc options"); \
SET_CMODEL (CMODEL_SMALL); \
@@ -63,7 +63,7 @@ do { \
/* aix/ppc doesn't support -mvsx and -maltivec with Go */ \
rs6000_isa_flags &= ~(OPTION_MASK_VSX | OPTION_MASK_ALTIVEC); \
} \
- if (!global_options_set.x_dwarf_version) \
+ if (!OPTION_SET_P (dwarf_version)) \
/* AIX only supports DWARF 4. */ \
dwarf_version = 4; \
} while (0)
diff --git a/gcc/config/rs6000/aix72.h b/gcc/config/rs6000/aix72.h
index cca64f1..f0e375c 100644
--- a/gcc/config/rs6000/aix72.h
+++ b/gcc/config/rs6000/aix72.h
@@ -33,7 +33,7 @@ do { \
if (TARGET_SOFT_FLOAT && TARGET_LONG_DOUBLE_128) \
{ \
rs6000_long_double_type_size = 64; \
- if (global_options_set.x_rs6000_long_double_type_size) \
+ if (OPTION_SET_P (rs6000_long_double_type_size)) \
warning (0, "soft-float and long-double-128 are incompatible"); \
} \
if (TARGET_POWERPC64 && ! TARGET_64BIT) \
@@ -43,7 +43,7 @@ do { \
if ((rs6000_isa_flags_explicit \
& OPTION_MASK_MINIMAL_TOC) != 0) \
{ \
- if (global_options_set.x_rs6000_current_cmodel \
+ if (OPTION_SET_P (rs6000_current_cmodel) \
&& rs6000_current_cmodel != CMODEL_SMALL) \
error ("%<-mcmodel%> incompatible with other toc options"); \
SET_CMODEL (CMODEL_SMALL); \
@@ -63,7 +63,7 @@ do { \
/* aix/ppc doesn't support -mvsx and -maltivec with Go */ \
rs6000_isa_flags &= ~(OPTION_MASK_VSX | OPTION_MASK_ALTIVEC); \
} \
- if (!global_options_set.x_dwarf_version) \
+ if (!OPTION_SET_P (dwarf_version)) \
/* AIX only supports DWARF 4. */ \
dwarf_version = 4; \
} while (0)
diff --git a/gcc/config/rs6000/aix73.h b/gcc/config/rs6000/aix73.h
index f0ca1a5..2c92cc3 100644
--- a/gcc/config/rs6000/aix73.h
+++ b/gcc/config/rs6000/aix73.h
@@ -33,7 +33,7 @@ do { \
if (TARGET_SOFT_FLOAT && TARGET_LONG_DOUBLE_128) \
{ \
rs6000_long_double_type_size = 64; \
- if (global_options_set.x_rs6000_long_double_type_size) \
+ if (OPTION_SET_P (rs6000_long_double_type_size)) \
warning (0, "soft-float and long-double-128 are incompatible"); \
} \
if (TARGET_POWERPC64 && ! TARGET_64BIT) \
@@ -43,7 +43,7 @@ do { \
if ((rs6000_isa_flags_explicit \
& OPTION_MASK_MINIMAL_TOC) != 0) \
{ \
- if (global_options_set.x_rs6000_current_cmodel \
+ if (OPTION_SET_P (rs6000_current_cmodel) \
&& rs6000_current_cmodel != CMODEL_SMALL) \
error ("%<-mcmodel%> incompatible with other toc options"); \
SET_CMODEL (CMODEL_SMALL); \
@@ -63,7 +63,7 @@ do { \
/* aix/ppc doesn't support -mvsx and -maltivec with Go */ \
rs6000_isa_flags &= ~(OPTION_MASK_VSX | OPTION_MASK_ALTIVEC); \
} \
- if (!global_options_set.x_dwarf_version) \
+ if (!OPTION_SET_P (dwarf_version)) \
/* AIX only supports DWARF 4. */ \
dwarf_version = 4; \
} while (0)
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index ad86072..acba4d9 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -3392,7 +3392,7 @@ darwin_rs6000_override_options (void)
&& !flag_apple_kext
&& strverscmp (darwin_macosx_version_min, "10.5") >= 0
&& ! (rs6000_isa_flags_explicit & OPTION_MASK_ALTIVEC)
- && ! global_options_set.x_rs6000_cpu_index)
+ && ! OPTION_SET_P (rs6000_cpu_index))
{
rs6000_isa_flags |= OPTION_MASK_ALTIVEC;
}
@@ -3471,18 +3471,18 @@ rs6000_override_options_after_change (void)
{
/* Explicit -funroll-loops turns -munroll-only-small-loops off, and
turns -frename-registers on. */
- if ((global_options_set.x_flag_unroll_loops && flag_unroll_loops)
- || (global_options_set.x_flag_unroll_all_loops
+ if ((OPTION_SET_P (flag_unroll_loops) && flag_unroll_loops)
+ || (OPTION_SET_P (flag_unroll_all_loops)
&& flag_unroll_all_loops))
{
- if (!global_options_set.x_unroll_only_small_loops)
+ if (!OPTION_SET_P (unroll_only_small_loops))
unroll_only_small_loops = 0;
- if (!global_options_set.x_flag_rename_registers)
+ if (!OPTION_SET_P (flag_rename_registers))
flag_rename_registers = 1;
- if (!global_options_set.x_flag_cunroll_grow_size)
+ if (!OPTION_SET_P (flag_cunroll_grow_size))
flag_cunroll_grow_size = 1;
}
- else if (!global_options_set.x_flag_cunroll_grow_size)
+ else if (!OPTION_SET_P (flag_cunroll_grow_size))
flag_cunroll_grow_size = flag_peel_loops || optimize >= 3;
}
@@ -3490,7 +3490,7 @@ rs6000_override_options_after_change (void)
static void
rs6000_linux64_override_options ()
{
- if (!global_options_set.x_rs6000_alignment_flags)
+ if (!OPTION_SET_P (rs6000_alignment_flags))
rs6000_alignment_flags = MASK_ALIGN_NATURAL;
if (rs6000_isa_flags & OPTION_MASK_64BIT)
{
@@ -3526,11 +3526,11 @@ rs6000_linux64_override_options ()
rs6000_isa_flags |= OPTION_MASK_POWERPC64;
error ("%<-m64%> requires a PowerPC64 cpu");
}
- if (!global_options_set.x_rs6000_current_cmodel)
+ if (!OPTION_SET_P (rs6000_current_cmodel))
SET_CMODEL (CMODEL_MEDIUM);
if ((rs6000_isa_flags_explicit & OPTION_MASK_MINIMAL_TOC) != 0)
{
- if (global_options_set.x_rs6000_current_cmodel
+ if (OPTION_SET_P (rs6000_current_cmodel)
&& rs6000_current_cmodel != CMODEL_SMALL)
error ("%<-mcmodel incompatible with other toc options%>");
if (TARGET_MINIMAL_TOC)
@@ -3545,14 +3545,14 @@ rs6000_linux64_override_options ()
}
if (rs6000_current_cmodel != CMODEL_SMALL)
{
- if (!global_options_set.x_TARGET_NO_FP_IN_TOC)
+ if (!OPTION_SET_P (TARGET_NO_FP_IN_TOC))
TARGET_NO_FP_IN_TOC = rs6000_current_cmodel == CMODEL_MEDIUM;
- if (!global_options_set.x_TARGET_NO_SUM_IN_TOC)
+ if (!OPTION_SET_P (TARGET_NO_SUM_IN_TOC))
TARGET_NO_SUM_IN_TOC = 0;
}
if (TARGET_PLTSEQ && DEFAULT_ABI != ABI_ELFv2)
{
- if (global_options_set.x_rs6000_pltseq)
+ if (OPTION_SET_P (rs6000_pltseq))
warning (0, "%qs unsupported for this ABI",
"-mpltseq");
rs6000_pltseq = false;
@@ -3567,7 +3567,7 @@ rs6000_linux64_override_options ()
profile_kernel = 0;
error (INVALID_32BIT, "profile-kernel");
}
- if (global_options_set.x_rs6000_current_cmodel)
+ if (OPTION_SET_P (rs6000_current_cmodel))
{
SET_CMODEL (CMODEL_SMALL);
error (INVALID_32BIT, "cmodel");
@@ -3627,7 +3627,7 @@ glibc_supports_ieee_128bit (void)
includes OPTION_TARGET_CPU_DEFAULT, representing the name of the
default CPU specified at build configure time, TARGET_DEFAULT,
representing the default set of option flags for the default
- target, and global_options_set.x_rs6000_isa_flags, representing
+ target, and OPTION_SET_P (rs6000_isa_flags), representing
which options were requested on the command line.
Upon return from this function:
@@ -3676,13 +3676,13 @@ rs6000_option_override_internal (bool global_init_p)
/* Remember the explicit arguments. */
if (global_init_p)
- rs6000_isa_flags_explicit = global_options_set.x_rs6000_isa_flags;
+ rs6000_isa_flags_explicit = OPTION_SET_P (rs6000_isa_flags);
/* On 64-bit Darwin, power alignment is ABI-incompatible with some C
library functions, so warn about it. The flag may be useful for
performance studies from time to time though, so don't disable it
entirely. */
- if (global_options_set.x_rs6000_alignment_flags
+ if (OPTION_SET_P (rs6000_alignment_flags)
&& rs6000_alignment_flags == MASK_ALIGN_POWER
&& DEFAULT_ABI == ABI_DARWIN
&& TARGET_64BIT)
@@ -3695,20 +3695,20 @@ rs6000_option_override_internal (bool global_init_p)
with enough (>= 32) registers. It is an expensive optimization.
So it is on only for peak performance. */
if (optimize >= 3 && global_init_p
- && !global_options_set.x_flag_ira_loop_pressure)
+ && !OPTION_SET_P (flag_ira_loop_pressure))
flag_ira_loop_pressure = 1;
/* -fsanitize=address needs to turn on -fasynchronous-unwind-tables in order
for tracebacks to be complete but not if any -fasynchronous-unwind-tables
options were already specified. */
if (flag_sanitize & SANITIZE_USER_ADDRESS
- && !global_options_set.x_flag_asynchronous_unwind_tables)
+ && !OPTION_SET_P (flag_asynchronous_unwind_tables))
flag_asynchronous_unwind_tables = 1;
/* -fvariable-expansion-in-unroller is a win for POWER whenever the
loop unroller is active. It is only checked during unrolling, so
we can just set it on by default. */
- if (!global_options_set.x_flag_variable_expansion_in_unroller)
+ if (!OPTION_SET_P (flag_variable_expansion_in_unroller))
flag_variable_expansion_in_unroller = 1;
/* Set the pointer size. */
@@ -3905,7 +3905,7 @@ rs6000_option_override_internal (bool global_init_p)
#ifdef XCOFF_DEBUGGING_INFO
/* For AIX default to 64-bit DWARF. */
- if (!global_options_set.x_dwarf_offset_size)
+ if (!OPTION_SET_P (dwarf_offset_size))
dwarf_offset_size = POINTER_SIZE_UNITS;
#endif
@@ -4129,7 +4129,7 @@ rs6000_option_override_internal (bool global_init_p)
else if (TARGET_ALLOW_MOVMISALIGN && !TARGET_VSX)
{
if (TARGET_ALLOW_MOVMISALIGN > 0
- && global_options_set.x_TARGET_ALLOW_MOVMISALIGN)
+ && OPTION_SET_P (TARGET_ALLOW_MOVMISALIGN))
error ("%qs requires %qs", "-mallow-movmisalign", "-mvsx");
TARGET_ALLOW_MOVMISALIGN = 0;
@@ -4184,7 +4184,7 @@ rs6000_option_override_internal (bool global_init_p)
: FLOAT_PRECISION_TFmode);
/* Set long double size before the IEEE 128-bit tests. */
- if (!global_options_set.x_rs6000_long_double_type_size)
+ if (!OPTION_SET_P (rs6000_long_double_type_size))
{
if (main_target_opt != NULL
&& (main_target_opt->x_rs6000_long_double_type_size
@@ -4197,7 +4197,7 @@ rs6000_option_override_internal (bool global_init_p)
; /* The option value can be seen when cl_target_option_restore is called. */
else if (rs6000_long_double_type_size == 128)
rs6000_long_double_type_size = FLOAT_PRECISION_TFmode;
- else if (global_options_set.x_rs6000_ieeequad)
+ else if (OPTION_SET_P (rs6000_ieeequad))
{
if (global_options.x_rs6000_ieeequad)
error ("%qs requires %qs", "-mabi=ieeelongdouble", "-mlong-double-128");
@@ -4210,7 +4210,7 @@ rs6000_option_override_internal (bool global_init_p)
explicitly redefine TARGET_IEEEQUAD and TARGET_IEEEQUAD_DEFAULT to 0, so
those systems will not pick up this default. Warn if the user changes the
default unless -Wno-psabi. */
- if (!global_options_set.x_rs6000_ieeequad)
+ if (!OPTION_SET_P (rs6000_ieeequad))
rs6000_ieeequad = TARGET_IEEEQUAD_DEFAULT;
else
@@ -4395,7 +4395,7 @@ rs6000_option_override_internal (bool global_init_p)
/* Enable Altivec ABI for AIX -maltivec. */
if (TARGET_XCOFF
&& (TARGET_ALTIVEC || TARGET_VSX)
- && !global_options_set.x_rs6000_altivec_abi)
+ && !OPTION_SET_P (rs6000_altivec_abi))
{
if (main_target_opt != NULL && !main_target_opt->x_rs6000_altivec_abi)
error ("target attribute or pragma changes AltiVec ABI");
@@ -4408,7 +4408,7 @@ rs6000_option_override_internal (bool global_init_p)
be explicitly overridden in either case. */
if (TARGET_ELF)
{
- if (!global_options_set.x_rs6000_altivec_abi
+ if (!OPTION_SET_P (rs6000_altivec_abi)
&& (TARGET_64BIT || TARGET_ALTIVEC || TARGET_VSX))
{
if (main_target_opt != NULL &&
@@ -4438,7 +4438,7 @@ rs6000_option_override_internal (bool global_init_p)
/* Place FP constants in the constant pool instead of TOC
if section anchors enabled. */
if (flag_section_anchors
- && !global_options_set.x_TARGET_NO_FP_IN_TOC)
+ && !OPTION_SET_P (TARGET_NO_FP_IN_TOC))
TARGET_NO_FP_IN_TOC = 1;
if (TARGET_DEBUG_REG || TARGET_DEBUG_TARGET)
@@ -4595,7 +4595,7 @@ rs6000_option_override_internal (bool global_init_p)
}
/* Handle stack protector */
- if (!global_options_set.x_rs6000_stack_protector_guard)
+ if (!OPTION_SET_P (rs6000_stack_protector_guard))
#ifdef TARGET_THREAD_SSP_OFFSET
rs6000_stack_protector_guard = SSP_TLS;
#else
@@ -4607,7 +4607,7 @@ rs6000_option_override_internal (bool global_init_p)
rs6000_stack_protector_guard_reg = TARGET_64BIT ? 13 : 2;
#endif
- if (global_options_set.x_rs6000_stack_protector_guard_offset_str)
+ if (OPTION_SET_P (rs6000_stack_protector_guard_offset_str))
{
char *endp;
const char *str = rs6000_stack_protector_guard_offset_str;
@@ -4626,7 +4626,7 @@ rs6000_option_override_internal (bool global_init_p)
rs6000_stack_protector_guard_offset = offset;
}
- if (global_options_set.x_rs6000_stack_protector_guard_reg_str)
+ if (OPTION_SET_P (rs6000_stack_protector_guard_reg_str))
{
const char *str = rs6000_stack_protector_guard_reg_str;
int reg = decode_reg_name (str);
@@ -4654,7 +4654,7 @@ rs6000_option_override_internal (bool global_init_p)
/* Set aix_struct_return last, after the ABI is determined.
If -maix-struct-return or -msvr4-struct-return was explicitly
used, don't override with the ABI default. */
- if (!global_options_set.x_aix_struct_return)
+ if (!OPTION_SET_P (aix_struct_return))
aix_struct_return = (DEFAULT_ABI != ABI_V4 || DRAFT_V4_STRUCT_RET);
#if 0
@@ -6272,14 +6272,14 @@ rs6000_file_start (void)
start = "";
}
- if (global_options_set.x_rs6000_cpu_index)
+ if (OPTION_SET_P (rs6000_cpu_index))
{
fprintf (file, "%s -mcpu=%s", start,
processor_target_table[rs6000_cpu_index].name);
start = "";
}
- if (global_options_set.x_rs6000_tune_index)
+ if (OPTION_SET_P (rs6000_tune_index))
{
fprintf (file, "%s -mtune=%s", start,
processor_target_table[rs6000_tune_index].name);
@@ -21053,7 +21053,7 @@ rs6000_darwin_file_start (void)
if (rs6000_default_cpu != 0 && rs6000_default_cpu[0] != '\0')
cpu_id = rs6000_default_cpu;
- if (global_options_set.x_rs6000_cpu_index)
+ if (OPTION_SET_P (rs6000_cpu_index))
cpu_id = processor_target_table[rs6000_cpu_index].name;
/* Look through the mapping array. Pick the first name that either
diff --git a/gcc/config/rs6000/rtems.h b/gcc/config/rs6000/rtems.h
index 872cc28..6184c5f 100644
--- a/gcc/config/rs6000/rtems.h
+++ b/gcc/config/rs6000/rtems.h
@@ -116,14 +116,14 @@
if ((rs6000_isa_flags_explicit \
& OPTION_MASK_MINIMAL_TOC) != 0) \
{ \
- if (global_options_set.x_rs6000_current_cmodel \
+ if (OPTION_SET_P (rs6000_current_cmodel) \
&& rs6000_current_cmodel != CMODEL_SMALL) \
error ("%<-mcmodel%> incompatible with other toc options"); \
SET_CMODEL (CMODEL_SMALL); \
} \
else \
{ \
- if (!global_options_set.x_rs6000_current_cmodel) \
+ if (!OPTION_SET_P (rs6000_current_cmodel)) \
SET_CMODEL (CMODEL_MEDIUM); \
if (rs6000_current_cmodel != CMODEL_SMALL) \
{ \
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index 23ff594..96ee552 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -70,7 +70,7 @@
#define SUBTARGET_OVERRIDE_OPTIONS \
do { \
- if (!global_options_set.x_g_switch_value) \
+ if (!OPTION_SET_P (g_switch_value)) \
g_switch_value = SDATA_DEFAULT_SIZE; \
\
if (rs6000_abi_name == NULL) \
@@ -197,16 +197,16 @@ do { \
} \
\
if (TARGET_PLTSEQ != rs6000_pltseq \
- && global_options_set.x_rs6000_pltseq) \
+ && OPTION_SET_P (rs6000_pltseq)) \
{ \
error ("%qs not supported by your assembler", "-mpltseq"); \
} \
\
if (DEFAULT_ABI == ABI_V4 && TARGET_PLTSEQ && !TARGET_SECURE_PLT) \
{ \
- if (global_options_set.x_rs6000_pltseq) \
+ if (OPTION_SET_P (rs6000_pltseq)) \
{ \
- if (global_options_set.x_secure_plt) \
+ if (OPTION_SET_P (secure_plt)) \
error ("%qs and %qs are incompatible", \
"-mpltseq", "-mbss-plt"); \
else \
diff --git a/gcc/config/rs6000/vxworks.h b/gcc/config/rs6000/vxworks.h
index d8ecc02..ca21a3a 100644
--- a/gcc/config/rs6000/vxworks.h
+++ b/gcc/config/rs6000/vxworks.h
@@ -155,7 +155,7 @@ along with GCC; see the file COPYING3. If not see
#undef SUB3TARGET_OVERRIDE_OPTIONS
#define SUB3TARGET_OVERRIDE_OPTIONS \
do { \
- if (!global_options_set.x_g_switch_value) \
+ if (!OPTION_SET_P (g_switch_value)) \
g_switch_value = SDATA_DEFAULT_SIZE; \
VXWORKS_OVERRIDE_OPTIONS; \
} while (0)
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index e043854..4f144d1 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -15746,9 +15746,9 @@ s390_option_override (void)
{
/* Don't emit DWARF3/4 unless specifically selected. The TPF
debuggers do not yet support DWARF 3/4. */
- if (!global_options_set.x_dwarf_strict)
+ if (!OPTION_SET_P (dwarf_strict))
dwarf_strict = 1;
- if (!global_options_set.x_dwarf_version)
+ if (!OPTION_SET_P (dwarf_version))
dwarf_version = 2;
}
}
diff --git a/gcc/config/sh/linux.h b/gcc/config/sh/linux.h
index 7558d2f..b75a7b8 100644
--- a/gcc/config/sh/linux.h
+++ b/gcc/config/sh/linux.h
@@ -126,7 +126,7 @@ along with GCC; see the file COPYING3. If not see
do \
{ \
/* Set default atomic model if it hasn't been specified. */ \
- if (global_options_set.x_sh_atomic_model_str == 0) \
+ if (OPTION_SET_P (sh_atomic_model_str) == 0) \
{ \
if (TARGET_SH3) \
sh_atomic_model_str = "soft-gusa"; \
@@ -134,7 +134,7 @@ along with GCC; see the file COPYING3. If not see
sh_atomic_model_str = "soft-imask"; \
} \
/* Set -musermode if it hasn't been specified. */ \
- if (global_options_set.x_TARGET_USERMODE == 0) \
+ if (OPTION_SET_P (TARGET_USERMODE) == 0) \
TARGET_USERMODE = true; \
} \
while (0)
diff --git a/gcc/config/sh/netbsd-elf.h b/gcc/config/sh/netbsd-elf.h
index f0b7541..39eb773 100644
--- a/gcc/config/sh/netbsd-elf.h
+++ b/gcc/config/sh/netbsd-elf.h
@@ -85,7 +85,7 @@ while (0)
do \
{ \
/* Set -musermode if it hasn't been specified. */ \
- if (global_options_set.x_TARGET_USERMODE == 0) \
+ if (OPTION_SET_P (TARGET_USERMODE) == 0) \
TARGET_USERMODE = true; \
} \
while (0)
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 1564109..0628f05 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -893,7 +893,7 @@ sh_option_override (void)
}
/* Set -mzdcbranch for SH4 / SH4A if not otherwise specified by the user. */
- if (! global_options_set.x_TARGET_ZDCBRANCH && TARGET_HARD_SH4)
+ if (! OPTION_SET_P (TARGET_ZDCBRANCH) && TARGET_HARD_SH4)
TARGET_ZDCBRANCH = 1;
/* FDPIC code is a special form of PIC, and the vast majority of code
@@ -932,13 +932,13 @@ sh_option_override (void)
<http://gcc.gnu.org/ml/gcc-patches/2005-10/msg00816.html>. */
else if (flag_exceptions)
{
- if (flag_schedule_insns && global_options_set.x_flag_schedule_insns)
+ if (flag_schedule_insns && OPTION_SET_P (flag_schedule_insns))
warning (0, "ignoring %<-fschedule-insns%> because of exception "
"handling bug");
flag_schedule_insns = 0;
}
else if (flag_schedule_insns
- && !global_options_set.x_flag_schedule_insns)
+ && !OPTION_SET_P (flag_schedule_insns))
flag_schedule_insns = 0;
}
@@ -958,12 +958,12 @@ sh_option_override (void)
if (flag_unsafe_math_optimizations)
{
/* Enable fsca insn for SH4A if not otherwise specified by the user. */
- if (global_options_set.x_TARGET_FSCA == 0
+ if (OPTION_SET_P (TARGET_FSCA) == 0
&& (TARGET_SH4A_FP || TARGET_FPU_SH4_300))
TARGET_FSCA = 1;
/* Enable fsrra insn for SH4A if not otherwise specified by the user. */
- if (global_options_set.x_TARGET_FSRRA == 0
+ if (OPTION_SET_P (TARGET_FSRRA) == 0
&& (TARGET_SH4A_FP || TARGET_FPU_SH4_300))
TARGET_FSRRA = 1;
}
@@ -976,7 +976,7 @@ sh_option_override (void)
/* If the -mieee option was not explicitly set by the user, turn it on
unless -ffinite-math-only was specified. See also PR 33135. */
- if (! global_options_set.x_TARGET_IEEE)
+ if (! OPTION_SET_P (TARGET_IEEE))
TARGET_IEEE = ! flag_finite_math_only;
if (sh_fixed_range_str)
diff --git a/gcc/config/sol2.c b/gcc/config/sol2.c
index 1fbdbf5..517816a 100644
--- a/gcc/config/sol2.c
+++ b/gcc/config/sol2.c
@@ -31,6 +31,7 @@ along with GCC; see the file COPYING3. If not see
#include "diagnostic-core.h"
#include "varasm.h"
#include "output.h"
+#include "opts.h"
tree solaris_pending_aligns, solaris_pending_inits, solaris_pending_finis;
@@ -296,6 +297,6 @@ solaris_override_options (void)
{
/* Older versions of Solaris ld cannot handle CIE version 3 in .eh_frame.
Don't emit DWARF3/4 unless specifically selected if so. */
- if (!HAVE_LD_EH_FRAME_CIEV3 && !global_options_set.x_dwarf_version)
+ if (!HAVE_LD_EH_FRAME_CIEV3 && !OPTION_SET_P (dwarf_version))
dwarf_version = 2;
}
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index 6bc6f0a..ca91be4 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -1859,7 +1859,7 @@ sparc_option_override (void)
}
/* Set the default CPU if no -mcpu option was specified. */
- if (!global_options_set.x_sparc_cpu_and_features)
+ if (!OPTION_SET_P (sparc_cpu_and_features))
{
for (def = &cpu_default[0]; def->cpu != -1; ++def)
if (def->cpu == TARGET_CPU_DEFAULT)
@@ -1869,7 +1869,7 @@ sparc_option_override (void)
}
/* Set the default CPU if no -mtune option was specified. */
- if (!global_options_set.x_sparc_cpu)
+ if (!OPTION_SET_P (sparc_cpu))
sparc_cpu = sparc_cpu_and_features;
cpu = &cpu_table[(int) sparc_cpu_and_features];
@@ -1975,7 +1975,7 @@ sparc_option_override (void)
dump_target_flags ("Final target_flags", target_flags);
/* Set the code model if no -mcmodel option was specified. */
- if (global_options_set.x_sparc_code_model)
+ if (OPTION_SET_P (sparc_code_model))
{
if (TARGET_ARCH32)
error ("%<-mcmodel=%> is not supported in 32-bit mode");
@@ -1989,7 +1989,7 @@ sparc_option_override (void)
}
/* Set the memory model if no -mmemory-model option was specified. */
- if (!global_options_set.x_sparc_memory_model)
+ if (!OPTION_SET_P (sparc_memory_model))
{
/* Choose the memory model for the operating system. */
enum sparc_memory_model_type os_default = SUBTARGET_DEFAULT_MEMORY_MODEL;
@@ -2177,12 +2177,12 @@ sparc_option_override (void)
/* Disable save slot sharing for call-clobbered registers by default.
The IRA sharing algorithm works on single registers only and this
pessimizes for double floating-point registers. */
- if (!global_options_set.x_flag_ira_share_save_slots)
+ if (!OPTION_SET_P (flag_ira_share_save_slots))
flag_ira_share_save_slots = 0;
/* Only enable REE by default in 64-bit mode where it helps to eliminate
redundant 32-to-64-bit extensions. */
- if (!global_options_set.x_flag_ree && TARGET_ARCH32)
+ if (!OPTION_SET_P (flag_ree) && TARGET_ARCH32)
flag_ree = 0;
/* Do various machine dependent initializations. */
diff --git a/gcc/config/tilegx/tilegx.c b/gcc/config/tilegx/tilegx.c
index 64e28f6..08d1126 100644
--- a/gcc/config/tilegx/tilegx.c
+++ b/gcc/config/tilegx/tilegx.c
@@ -56,6 +56,7 @@
#include "tilegx-builtins.h"
#include "tilegx-multiply.h"
#include "builtins.h"
+#include "opts.h"
/* This file should be included last. */
#include "target-def.h"
@@ -76,7 +77,7 @@ static bool output_memory_autoinc_first;
static void
tilegx_option_override (void)
{
- if (global_options_set.x_tilegx_cmodel)
+ if (OPTION_SET_P (tilegx_cmodel))
{
switch (tilegx_cmodel)
{
diff --git a/gcc/config/visium/visium.c b/gcc/config/visium/visium.c
index 58e5355..ffa2243 100644
--- a/gcc/config/visium/visium.c
+++ b/gcc/config/visium/visium.c
@@ -443,7 +443,7 @@ visium_option_override (void)
}
/* Set -mtune from -mcpu if not specified. */
- if (!global_options_set.x_visium_cpu)
+ if (!OPTION_SET_P (visium_cpu))
visium_cpu = visium_cpu_and_features;
/* Align functions on 256-byte (32-quadword) for GR5 and 64-byte (8-quadword)
diff --git a/gcc/config/vxworks.c b/gcc/config/vxworks.c
index 51f4675..29ec060 100644
--- a/gcc/config/vxworks.c
+++ b/gcc/config/vxworks.c
@@ -30,6 +30,7 @@ along with GCC; see the file COPYING3. If not see
#include "rtl.h"
#include "memmodel.h"
#include "optabs.h"
+#include "opts.h"
#if !HAVE_INITFINI_ARRAY_SUPPORT
/* Like default_named_section_asm_out_constructor, except that even
@@ -167,10 +168,10 @@ vxworks_override_options (void)
dwarf up to certain version. Default dwarf control to friendly
values for these. */
- if (!global_options_set.x_dwarf_strict)
+ if (!OPTION_SET_P (dwarf_strict))
dwarf_strict = 1;
- if (!global_options_set.x_dwarf_version)
+ if (!OPTION_SET_P (dwarf_version))
dwarf_version = VXWORKS_DWARF_VERSION_DEFAULT;
}