Commit 6ff3a151 by Neil Booth Committed by Neil Booth

common.opt: More -f switches.

	* common.opt: More -f switches.
	* opts.c (common_handle_options): Handle them.
	* toplev.c (time_report): Make extern.
	(f_options): USe flag_dummy.
	(decode_f_option): No need to use f_options now.
	* toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
	flag_ssa_dce, time_report, flag_new_regalloc): Make extern.

From-SVN: r68328
parent 2f6e4e97
2003-06-22 Neil Booth <neil@daikokuya.co.uk>
* common.opt: More -f switches.
* opts.c (common_handle_options): Handle them.
* toplev.c (time_report): Make extern.
(f_options): USe flag_dummy.
(decode_f_option): No need to use f_options now.
* toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
2003-06-22 Andreas Jaeger <aj@suse.de> 2003-06-22 Andreas Jaeger <aj@suse.de>
* c-lex.c: Convert to ISO C90. * c-lex.c: Convert to ISO C90.
......
...@@ -139,18 +139,57 @@ Common Joined ...@@ -139,18 +139,57 @@ Common Joined
dumpbase dumpbase
Common Separate Common Separate
fPIC
Common
fPIE
Common
falign-functions
Common
falign-functions= falign-functions=
Common RejectNegative Joined UInteger Common RejectNegative Joined UInteger
falign-jumps
Common
falign-jumps= falign-jumps=
Common RejectNegative Joined UInteger Common RejectNegative Joined UInteger
falign-labels
Common
falign-labels= falign-labels=
Common RejectNegative Joined UInteger Common RejectNegative Joined UInteger
falign-loops
Common
falign-loops= falign-loops=
Common RejectNegative Joined UInteger Common RejectNegative Joined UInteger
fargument-alias
Common
fargument-noalias
Common
fargument-noalias-global
Common
fasynchronous-unwind-tables
Common
fbounds-check
Common
fbranch-count-reg
Common
fbranch-probabilities
Common
fbranch-target-load-optimize fbranch-target-load-optimize
Common Common
...@@ -166,6 +205,12 @@ Common Joined RejectNegative ...@@ -166,6 +205,12 @@ Common Joined RejectNegative
fcaller-saves fcaller-saves
Common Common
fcommon
Common
fcprop-registers
Common
fcrossjumping fcrossjumping
Common Common
...@@ -175,6 +220,9 @@ Common ...@@ -175,6 +220,9 @@ Common
fcse-skip-blocks fcse-skip-blocks
Common Common
fdata-sections
Common
fdefer-pop fdefer-pop
Common Common
...@@ -187,18 +235,27 @@ Common ...@@ -187,18 +235,27 @@ Common
fdiagnostics-show-location= fdiagnostics-show-location=
Common Joined RejectNegative Common Joined RejectNegative
fdump-unnumbered
Common
feliminate-dwarf2-dups feliminate-dwarf2-dups
Common Common
feliminate-unused-debug-types feliminate-unused-debug-types
Common Common
fexceptions
Common
fexpensive-optimizations fexpensive-optimizations
Common Common
ffast-math ffast-math
Common Common
ffinite-math-only
Common
ffixed- ffixed-
Common Joined RejectNegative Common Joined RejectNegative
...@@ -214,6 +271,9 @@ Common ...@@ -214,6 +271,9 @@ Common
ffunction-cse ffunction-cse
Common Common
ffunction-sections
Common
fgcse fgcse
Common Common
...@@ -223,33 +283,69 @@ Common ...@@ -223,33 +283,69 @@ Common
fgcse-sm fgcse-sm
Common Common
fgnu-linker
Common
fguess-branch-probability
Common
fident
Common
fif-conversion fif-conversion
Common Common
fif-conversion2 fif-conversion2
Common Common
finhibit-size-directive
Common
finline finline
Common Common
finline-functions finline-functions
Common Common
finstrument-functions
Common
fkeep-inline-functions fkeep-inline-functions
Common Common
fkeep-static-consts fkeep-static-consts
Common Common
fleading-underscore
Common
floop-optimize floop-optimize
Common Common
fmath-errno
Common
fmem-report
Common
fmerge-all-constants
Common
fmerge-constants
Common
fmessage-length= fmessage-length=
Common RejectNegative Joined UInteger Common RejectNegative Joined UInteger
fmove-all-movables fmove-all-movables
Common Common
fnew-ra
Common
fnon-call-exceptions
Common
fold-unroll-loops fold-unroll-loops
Common Common
...@@ -259,9 +355,15 @@ Common ...@@ -259,9 +355,15 @@ Common
fomit-frame-pointer fomit-frame-pointer
Common Common
foptimize-register-move
Common
foptimize-sibling-calls foptimize-sibling-calls
Common Common
fpack-struct
Common
fpcc-struct-return fpcc-struct-return
Common Common
...@@ -271,9 +373,24 @@ Common ...@@ -271,9 +373,24 @@ Common
fpeephole fpeephole
Common Common
fpeephole2
Common
fpic
Common
fpie
Common
fprefetch-loop-arrays fprefetch-loop-arrays
Common Common
fprofile
Common
fprofile-arcs
Common
frandom-seed frandom-seed
Common Common
...@@ -286,15 +403,45 @@ Common ...@@ -286,15 +403,45 @@ Common
freg-struct-return freg-struct-return
Common Common
fregmove
Common
frename-registers
Common
freorder-blocks
Common
freorder-functions
Common
frerun-cse-after-loop frerun-cse-after-loop
Common Common
frerun-loop-opt frerun-loop-opt
Common Common
fsched-interblock
Common
fsched-spec
Common
fsched-spec-load
Common
fsched-spec-load-dangerous
Common
fsched-verbose= fsched-verbose=
Common RejectNegative Joined Common RejectNegative Joined
fsched2-use-superblocks
Common
fsched2-use-traces
Common
fschedule-insns fschedule-insns
Common Common
...@@ -304,6 +451,24 @@ Common ...@@ -304,6 +451,24 @@ Common
fshared-data fshared-data
Common Common
fsignaling-nans
Common
fsingle-precision-constant
Common
fssa
Common
fssa-ccp
Common
fssa-dce
Common
fstack-check
Common
fstack-limit fstack-limit
Common Common
...@@ -316,18 +481,33 @@ Common RejectNegative Joined ...@@ -316,18 +481,33 @@ Common RejectNegative Joined
fstrength-reduce fstrength-reduce
Common Common
fstrict-aliasing
Common
fsyntax-only fsyntax-only
Common Common
ftest-coverage
Common
fthread-jumps fthread-jumps
Common Common
ftime-report
Common
ftls-model= ftls-model=
Common Joined RejectNegative Common Joined RejectNegative
ftracer ftracer
Common Common
ftrapping-math
Common
ftrapv
Common
funit-at-a-time funit-at-a-time
Common Common
...@@ -337,12 +517,27 @@ Common ...@@ -337,12 +517,27 @@ Common
funroll-all-loops funroll-all-loops
Common Common
funsafe-math-optimizations
Common
funswitch-loops funswitch-loops
Common Common
funwind-tables
Common
fverbose-asm
Common
fwrapv
Common
fwritable-strings fwritable-strings
Common Common
fzero-initialized-in-bss
Common
g g
Common JoinedOrMissing Common JoinedOrMissing
......
...@@ -516,22 +516,62 @@ common_handle_option (size_t scode, const char *arg, ...@@ -516,22 +516,62 @@ common_handle_option (size_t scode, const char *arg,
dump_base_name = arg; dump_base_name = arg;
break; break;
case OPT_fPIC:
flag_pic = value + value;
break;
case OPT_fPIE:
flag_pie = value + value;
break;
case OPT_falign_functions:
case OPT_falign_functions_: case OPT_falign_functions_:
align_functions = value; align_functions = value;
break; break;
case OPT_falign_jumps:
case OPT_falign_jumps_: case OPT_falign_jumps_:
align_jumps = value; align_jumps = value;
break; break;
case OPT_falign_labels:
case OPT_falign_labels_: case OPT_falign_labels_:
align_labels = value; align_labels = value;
break; break;
case OPT_falign_loops:
case OPT_falign_loops_: case OPT_falign_loops_:
align_loops = value; align_loops = value;
break; break;
case OPT_fargument_alias:
flag_argument_noalias = !value;
break;
case OPT_fargument_noalias:
flag_argument_noalias = value;
break;
case OPT_fargument_noalias_global:
flag_argument_noalias = value + value;
break;
case OPT_fasynchronous_unwind_tables:
flag_asynchronous_unwind_tables = value;
break;
case OPT_fbounds_check:
flag_bounds_check = value;
break;
case OPT_fbranch_count_reg:
flag_branch_on_count_reg = value;
break;
case OPT_fbranch_probabilities:
flag_branch_probabilities = value;
break;
case OPT_fbranch_target_load_optimize: case OPT_fbranch_target_load_optimize:
flag_branch_target_load_optimize = value; flag_branch_target_load_optimize = value;
break; break;
...@@ -552,6 +592,14 @@ common_handle_option (size_t scode, const char *arg, ...@@ -552,6 +592,14 @@ common_handle_option (size_t scode, const char *arg,
flag_caller_saves = value; flag_caller_saves = value;
break; break;
case OPT_fcommon:
flag_no_common = !value;
break;
case OPT_fcprop_registers:
flag_cprop_registers = value;
break;
case OPT_fcrossjumping: case OPT_fcrossjumping:
flag_crossjumping = value; flag_crossjumping = value;
break; break;
...@@ -564,6 +612,10 @@ common_handle_option (size_t scode, const char *arg, ...@@ -564,6 +612,10 @@ common_handle_option (size_t scode, const char *arg,
flag_cse_skip_blocks = value; flag_cse_skip_blocks = value;
break; break;
case OPT_fdata_sections:
flag_data_sections = value;
break;
case OPT_fdefer_pop: case OPT_fdefer_pop:
flag_defer_pop = value; flag_defer_pop = value;
break; break;
...@@ -586,6 +638,10 @@ common_handle_option (size_t scode, const char *arg, ...@@ -586,6 +638,10 @@ common_handle_option (size_t scode, const char *arg,
return 0; return 0;
break; break;
case OPT_fdump_unnumbered:
flag_dump_unnumbered = value;
break;
case OPT_feliminate_dwarf2_dups: case OPT_feliminate_dwarf2_dups:
flag_eliminate_dwarf2_dups = value; flag_eliminate_dwarf2_dups = value;
break; break;
...@@ -594,6 +650,10 @@ common_handle_option (size_t scode, const char *arg, ...@@ -594,6 +650,10 @@ common_handle_option (size_t scode, const char *arg,
flag_eliminate_unused_debug_types = value; flag_eliminate_unused_debug_types = value;
break; break;
case OPT_fexceptions:
flag_exceptions = value;
break;
case OPT_fexpensive_optimizations: case OPT_fexpensive_optimizations:
flag_expensive_optimizations = value; flag_expensive_optimizations = value;
break; break;
...@@ -602,6 +662,10 @@ common_handle_option (size_t scode, const char *arg, ...@@ -602,6 +662,10 @@ common_handle_option (size_t scode, const char *arg,
set_fast_math_flags (value); set_fast_math_flags (value);
break; break;
case OPT_ffinite_math_only:
flag_finite_math_only = value;
break;
case OPT_ffixed_: case OPT_ffixed_:
fix_register (arg, 1, 1); fix_register (arg, 1, 1);
break; break;
...@@ -622,6 +686,10 @@ common_handle_option (size_t scode, const char *arg, ...@@ -622,6 +686,10 @@ common_handle_option (size_t scode, const char *arg,
flag_force_mem = value; flag_force_mem = value;
break; break;
case OPT_ffunction_sections:
flag_function_sections = value;
break;
case OPT_fgcse: case OPT_fgcse:
flag_gcse = value; flag_gcse = value;
break; break;
...@@ -634,6 +702,18 @@ common_handle_option (size_t scode, const char *arg, ...@@ -634,6 +702,18 @@ common_handle_option (size_t scode, const char *arg,
flag_gcse_sm = value; flag_gcse_sm = value;
break; break;
case OPT_fgnu_linker:
flag_gnu_linker = value;
break;
case OPT_fguess_branch_probability:
flag_guess_branch_prob = value;
break;
case OPT_fident:
flag_no_ident = !value;
break;
case OPT_fif_conversion: case OPT_fif_conversion:
flag_if_conversion = value; flag_if_conversion = value;
break; break;
...@@ -642,6 +722,10 @@ common_handle_option (size_t scode, const char *arg, ...@@ -642,6 +722,10 @@ common_handle_option (size_t scode, const char *arg,
flag_if_conversion2 = value; flag_if_conversion2 = value;
break; break;
case OPT_finhibit_size_directive:
flag_inhibit_size_directive = value;
break;
case OPT_finline: case OPT_finline:
flag_no_inline = !value; flag_no_inline = !value;
break; break;
...@@ -650,6 +734,10 @@ common_handle_option (size_t scode, const char *arg, ...@@ -650,6 +734,10 @@ common_handle_option (size_t scode, const char *arg,
flag_inline_functions = value; flag_inline_functions = value;
break; break;
case OPT_finstrument_functions:
flag_instrument_function_entry_exit = value;
break;
case OPT_fkeep_inline_functions: case OPT_fkeep_inline_functions:
flag_keep_inline_functions =value; flag_keep_inline_functions =value;
break; break;
...@@ -658,10 +746,30 @@ common_handle_option (size_t scode, const char *arg, ...@@ -658,10 +746,30 @@ common_handle_option (size_t scode, const char *arg,
flag_keep_static_consts = value; flag_keep_static_consts = value;
break; break;
case OPT_fleading_underscore:
flag_leading_underscore = value;
break;
case OPT_floop_optimize: case OPT_floop_optimize:
flag_loop_optimize = value; flag_loop_optimize = value;
break; break;
case OPT_fmath_errno:
flag_errno_math = value;
break;
case OPT_fmem_report:
mem_report = value;
break;
case OPT_fmerge_all_constants:
flag_merge_constants = value + value;
break;
case OPT_fmerge_constants:
flag_merge_constants = value;
break;
case OPT_fmessage_length_: case OPT_fmessage_length_:
output_set_maximum_length (&global_dc->buffer, value); output_set_maximum_length (&global_dc->buffer, value);
break; break;
...@@ -670,6 +778,14 @@ common_handle_option (size_t scode, const char *arg, ...@@ -670,6 +778,14 @@ common_handle_option (size_t scode, const char *arg,
flag_move_all_movables = value; flag_move_all_movables = value;
break; break;
case OPT_fnew_ra:
flag_new_regalloc = value;
break;
case OPT_fnon_call_exceptions:
flag_non_call_exceptions = value;
break;
case OPT_fold_unroll_all_loops: case OPT_fold_unroll_all_loops:
flag_old_unroll_all_loops = value; flag_old_unroll_all_loops = value;
break; break;
...@@ -682,10 +798,18 @@ common_handle_option (size_t scode, const char *arg, ...@@ -682,10 +798,18 @@ common_handle_option (size_t scode, const char *arg,
flag_omit_frame_pointer = value; flag_omit_frame_pointer = value;
break; break;
case OPT_foptimize_register_move:
flag_regmove = value;
break;
case OPT_foptimize_sibling_calls: case OPT_foptimize_sibling_calls:
flag_optimize_sibling_calls = value; flag_optimize_sibling_calls = value;
break; break;
case OPT_fpack_struct:
flag_pack_struct = value;
break;
case OPT_fpeel_loops: case OPT_fpeel_loops:
flag_peel_loops = value; flag_peel_loops = value;
break; break;
...@@ -698,10 +822,30 @@ common_handle_option (size_t scode, const char *arg, ...@@ -698,10 +822,30 @@ common_handle_option (size_t scode, const char *arg,
flag_no_peephole = !value; flag_no_peephole = !value;
break; break;
case OPT_fpeephole2:
flag_peephole2 = value;
break;
case OPT_fpic:
flag_pic = value;
break;
case OPT_fpie:
flag_pie = value;
break;
case OPT_fprefetch_loop_arrays: case OPT_fprefetch_loop_arrays:
flag_prefetch_loop_arrays = value; flag_prefetch_loop_arrays = value;
break; break;
case OPT_fprofile:
profile_flag = value;
break;
case OPT_fprofile_arcs:
profile_arc_flag = value;
break;
case OPT_frandom_seed: case OPT_frandom_seed:
/* The real switch is -fno-random-seed. */ /* The real switch is -fno-random-seed. */
if (value) if (value)
...@@ -721,6 +865,22 @@ common_handle_option (size_t scode, const char *arg, ...@@ -721,6 +865,22 @@ common_handle_option (size_t scode, const char *arg,
flag_pcc_struct_return = !value; flag_pcc_struct_return = !value;
break; break;
case OPT_fregmove:
flag_regmove = value;
break;
case OPT_frename_registers:
flag_rename_registers = value;
break;
case OPT_freorder_blocks:
flag_reorder_blocks = value;
break;
case OPT_freorder_functions:
flag_reorder_functions = value;
break;
case OPT_frerun_cse_after_loop: case OPT_frerun_cse_after_loop:
flag_rerun_cse_after_loop = value; flag_rerun_cse_after_loop = value;
break; break;
...@@ -729,6 +889,22 @@ common_handle_option (size_t scode, const char *arg, ...@@ -729,6 +889,22 @@ common_handle_option (size_t scode, const char *arg,
flag_rerun_loop_opt = value; flag_rerun_loop_opt = value;
break; break;
case OPT_fsched_interblock:
flag_schedule_interblock= value;
break;
case OPT_fsched_spec:
flag_schedule_speculative = value;
break;
case OPT_fsched_spec_load:
flag_schedule_speculative_load = value;
break;
case OPT_fsched_spec_load_dangerous:
flag_schedule_speculative_load_dangerous = value;
break;
case OPT_fsched_verbose_: case OPT_fsched_verbose_:
#ifdef INSN_SCHEDULING #ifdef INSN_SCHEDULING
fix_sched_param ("verbose", arg); fix_sched_param ("verbose", arg);
...@@ -737,6 +913,14 @@ common_handle_option (size_t scode, const char *arg, ...@@ -737,6 +913,14 @@ common_handle_option (size_t scode, const char *arg,
return 0; return 0;
#endif #endif
case OPT_fsched2_use_superblocks:
flag_sched2_use_superblocks = value;
break;
case OPT_fsched2_use_traces:
flag_sched2_use_traces = value;
break;
case OPT_fschedule_insns: case OPT_fschedule_insns:
flag_schedule_insns = value; flag_schedule_insns = value;
break; break;
...@@ -749,6 +933,30 @@ common_handle_option (size_t scode, const char *arg, ...@@ -749,6 +933,30 @@ common_handle_option (size_t scode, const char *arg,
flag_shared_data = value; flag_shared_data = value;
break; break;
case OPT_fsignaling_nans:
flag_signaling_nans = value;
break;
case OPT_fsingle_precision_constant:
flag_single_precision_constant = value;
break;
case OPT_fssa:
flag_ssa = value;
break;
case OPT_fssa_ccp:
flag_ssa_ccp = value;
break;
case OPT_fssa_dce:
flag_ssa_dce = value;
break;
case OPT_fstack_check:
flag_stack_check = value;
break;
case OPT_fstack_limit: case OPT_fstack_limit:
/* The real switch is -fno-stack-limit. */ /* The real switch is -fno-stack-limit. */
if (value) if (value)
...@@ -774,14 +982,25 @@ common_handle_option (size_t scode, const char *arg, ...@@ -774,14 +982,25 @@ common_handle_option (size_t scode, const char *arg,
flag_strength_reduce = value; flag_strength_reduce = value;
break; break;
case OPT_fstrict_aliasing:
flag_strict_aliasing = value;
break;
case OPT_fsyntax_only: case OPT_fsyntax_only:
flag_syntax_only = value; flag_syntax_only = value;
break; break;
case OPT_ftest_coverage:
flag_test_coverage = value;
break;
case OPT_fthread_jumps: case OPT_fthread_jumps:
flag_thread_jumps = value; flag_thread_jumps = value;
break; break;
case OPT_ftime_report:
time_report = value;
case OPT_ftls_model_: case OPT_ftls_model_:
if (!strcmp (arg, "global-dynamic")) if (!strcmp (arg, "global-dynamic"))
flag_tls_default = TLS_MODEL_GLOBAL_DYNAMIC; flag_tls_default = TLS_MODEL_GLOBAL_DYNAMIC;
...@@ -799,6 +1018,14 @@ common_handle_option (size_t scode, const char *arg, ...@@ -799,6 +1018,14 @@ common_handle_option (size_t scode, const char *arg,
flag_tracer = value; flag_tracer = value;
break; break;
case OPT_ftrapping_math:
flag_trapping_math = value;
break;
case OPT_ftrapv:
flag_trapv = value;
break;
case OPT_funit_at_a_time: case OPT_funit_at_a_time:
flag_unit_at_a_time = value; flag_unit_at_a_time = value;
break; break;
...@@ -811,14 +1038,34 @@ common_handle_option (size_t scode, const char *arg, ...@@ -811,14 +1038,34 @@ common_handle_option (size_t scode, const char *arg,
flag_unroll_loops = value; flag_unroll_loops = value;
break; break;
case OPT_funsafe_math_optimizations:
flag_unsafe_math_optimizations = value;
break;
case OPT_funswitch_loops: case OPT_funswitch_loops:
flag_unswitch_loops = value; flag_unswitch_loops = value;
break; break;
case OPT_funwind_tables:
flag_unwind_tables = value;
break;
case OPT_fverbose_asm:
flag_verbose_asm = value;
break;
case OPT_fwrapv:
flag_wrapv = value;
break;
case OPT_fwritable_strings: case OPT_fwritable_strings:
flag_writable_strings = value; flag_writable_strings = value;
break; break;
case OPT_fzero_initialized_in_bss:
flag_zero_initialized_in_bss = value;
break;
case OPT_g: case OPT_g:
decode_g_option (arg); decode_g_option (arg);
break; break;
......
...@@ -450,7 +450,7 @@ int quiet_flag = 0; ...@@ -450,7 +450,7 @@ int quiet_flag = 0;
/* Print times taken by the various passes. -ftime-report. */ /* Print times taken by the various passes. -ftime-report. */
static int time_report = 0; int time_report = 0;
/* Print memory still in use at end of compilation (which may have little /* Print memory still in use at end of compilation (which may have little
to do with peak memory consumption). -fmem-report. */ to do with peak memory consumption). -fmem-report. */
...@@ -1153,133 +1153,133 @@ static const lang_independent_options f_options[] = ...@@ -1153,133 +1153,133 @@ static const lang_independent_options f_options[] =
N_("Reschedule instructions before register allocation") }, N_("Reschedule instructions before register allocation") },
{"schedule-insns2", &flag_dummy, 1, {"schedule-insns2", &flag_dummy, 1,
N_("Reschedule instructions after register allocation") }, N_("Reschedule instructions after register allocation") },
{"sched-interblock",&flag_schedule_interblock, 1, {"sched-interblock",&flag_dummy, 1,
N_("Enable scheduling across basic blocks") }, N_("Enable scheduling across basic blocks") },
{"sched-spec",&flag_schedule_speculative, 1, {"sched-spec",&flag_dummy, 1,
N_("Allow speculative motion of non-loads") }, N_("Allow speculative motion of non-loads") },
{"sched-spec-load",&flag_schedule_speculative_load, 1, {"sched-spec-load",&flag_dummy, 1,
N_("Allow speculative motion of some loads") }, N_("Allow speculative motion of some loads") },
{"sched-spec-load-dangerous",&flag_schedule_speculative_load_dangerous, 1, {"sched-spec-load-dangerous",&flag_dummy, 1,
N_("Allow speculative motion of more loads") }, N_("Allow speculative motion of more loads") },
{"sched2-use-superblocks", &flag_sched2_use_superblocks, 1, {"sched2-use-superblocks", &flag_dummy, 1,
N_("If scheduling post reload, do superblock scheduling") }, N_("If scheduling post reload, do superblock scheduling") },
{"sched2-use-traces", &flag_sched2_use_traces, 1, {"sched2-use-traces", &flag_dummy, 1,
N_("If scheduling post reload, do trace scheduling") }, N_("If scheduling post reload, do trace scheduling") },
{"branch-count-reg",&flag_branch_on_count_reg, 1, {"branch-count-reg",&flag_dummy, 1,
N_("Replace add,compare,branch with branch on count reg") }, N_("Replace add,compare,branch with branch on count reg") },
{"pic", &flag_pic, 1, {"pic", &flag_dummy, 1,
N_("Generate position independent code, if possible") }, N_("Generate position independent code, if possible") },
{"PIC", &flag_pic, 2, ""}, {"PIC", &flag_dummy, 2, ""},
{"pie", &flag_pie, 1, {"pie", &flag_dummy, 1,
N_("Generate position independent code for executables, if possible") }, N_("Generate position independent code for executables, if possible") },
{"PIE", &flag_pie, 2, ""}, {"PIE", &flag_dummy, 2, ""},
{"exceptions", &flag_exceptions, 1, {"exceptions", &flag_dummy, 1,
N_("Enable exception handling") }, N_("Enable exception handling") },
{"unwind-tables", &flag_unwind_tables, 1, {"unwind-tables", &flag_dummy, 1,
N_("Just generate unwind tables for exception handling") }, N_("Just generate unwind tables for exception handling") },
{"asynchronous-unwind-tables", &flag_asynchronous_unwind_tables, 1, {"asynchronous-unwind-tables", &flag_dummy, 1,
N_("Generate unwind tables exact at each instruction boundary") }, N_("Generate unwind tables exact at each instruction boundary") },
{"non-call-exceptions", &flag_non_call_exceptions, 1, {"non-call-exceptions", &flag_dummy, 1,
N_("Support synchronous non-call exceptions") }, N_("Support synchronous non-call exceptions") },
{"profile-arcs", &profile_arc_flag, 1, {"profile-arcs", &flag_dummy, 1,
N_("Insert arc based program profiling code") }, N_("Insert arc based program profiling code") },
{"test-coverage", &flag_test_coverage, 1, {"test-coverage", &flag_dummy, 1,
N_("Create data files needed by gcov") }, N_("Create data files needed by gcov") },
{"branch-probabilities", &flag_branch_probabilities, 1, {"branch-probabilities", &flag_dummy, 1,
N_("Use profiling information for branch probabilities") }, N_("Use profiling information for branch probabilities") },
{"profile", &profile_flag, 1, {"profile", &flag_dummy, 1,
N_("Enable basic program profiling code") }, N_("Enable basic program profiling code") },
{"reorder-blocks", &flag_reorder_blocks, 1, {"reorder-blocks", &flag_dummy, 1,
N_("Reorder basic blocks to improve code placement") }, N_("Reorder basic blocks to improve code placement") },
{"reorder-functions", &flag_reorder_functions, 1, {"reorder-functions", &flag_dummy, 1,
N_("Reorder functions to improve code placement") }, N_("Reorder functions to improve code placement") },
{"rename-registers", &flag_rename_registers, 1, {"rename-registers", &flag_dummy, 1,
N_("Do the register renaming optimization pass") }, N_("Do the register renaming optimization pass") },
{"cprop-registers", &flag_cprop_registers, 1, {"cprop-registers", &flag_dummy, 1,
N_("Do the register copy-propagation optimization pass") }, N_("Do the register copy-propagation optimization pass") },
{"common", &flag_no_common, 0, {"common", &flag_dummy, 0,
N_("Do not put uninitialized globals in the common section") }, N_("Do not put uninitialized globals in the common section") },
{"inhibit-size-directive", &flag_inhibit_size_directive, 1, {"inhibit-size-directive", &flag_dummy, 1,
N_("Do not generate .size directives") }, N_("Do not generate .size directives") },
{"function-sections", &flag_function_sections, 1, {"function-sections", &flag_dummy, 1,
N_("place each function into its own section") }, N_("place each function into its own section") },
{"data-sections", &flag_data_sections, 1, {"data-sections", &flag_dummy, 1,
N_("place data items into their own section") }, N_("place data items into their own section") },
{"verbose-asm", &flag_verbose_asm, 1, {"verbose-asm", &flag_dummy, 1,
N_("Add extra commentary to assembler output") }, N_("Add extra commentary to assembler output") },
{"gnu-linker", &flag_gnu_linker, 1, {"gnu-linker", &flag_dummy, 1,
N_("Output GNU ld formatted global initializers") }, N_("Output GNU ld formatted global initializers") },
{"regmove", &flag_regmove, 1, {"regmove", &flag_dummy, 1,
N_("Enables a register move optimization") }, N_("Enables a register move optimization") },
{"optimize-register-move", &flag_regmove, 1, {"optimize-register-move", &flag_dummy, 1,
N_("Do the full regmove optimization pass") }, N_("Do the full regmove optimization pass") },
{"pack-struct", &flag_pack_struct, 1, {"pack-struct", &flag_dummy, 1,
N_("Pack structure members together without holes") }, N_("Pack structure members together without holes") },
{"stack-check", &flag_stack_check, 1, {"stack-check", &flag_dummy, 1,
N_("Insert stack checking code into the program") }, N_("Insert stack checking code into the program") },
{"argument-alias", &flag_argument_noalias, 0, {"argument-alias", &flag_dummy, 0,
N_("Specify that arguments may alias each other & globals") }, N_("Specify that arguments may alias each other & globals") },
{"argument-noalias", &flag_argument_noalias, 1, {"argument-noalias", &flag_dummy, 1,
N_("Assume arguments may alias globals but not each other") }, N_("Assume arguments may alias globals but not each other") },
{"argument-noalias-global", &flag_argument_noalias, 2, {"argument-noalias-global", &flag_dummy, 2,
N_("Assume arguments do not alias each other or globals") }, N_("Assume arguments do not alias each other or globals") },
{"strict-aliasing", &flag_strict_aliasing, 1, {"strict-aliasing", &flag_dummy, 1,
N_("Assume strict aliasing rules apply") }, N_("Assume strict aliasing rules apply") },
{"align-loops", &align_loops, 0, {"align-loops", &flag_dummy, 0,
N_("Align the start of loops") }, N_("Align the start of loops") },
{"align-jumps", &align_jumps, 0, {"align-jumps", &flag_dummy, 0,
N_("Align labels which are only reached by jumping") }, N_("Align labels which are only reached by jumping") },
{"align-labels", &align_labels, 0, {"align-labels", &flag_dummy, 0,
N_("Align all labels") }, N_("Align all labels") },
{"align-functions", &align_functions, 0, {"align-functions", &flag_dummy, 0,
N_("Align the start of functions") }, N_("Align the start of functions") },
{"merge-constants", &flag_merge_constants, 1, {"merge-constants", &flag_dummy, 1,
N_("Attempt to merge identical constants across compilation units") }, N_("Attempt to merge identical constants across compilation units") },
{"merge-all-constants", &flag_merge_constants, 2, {"merge-all-constants", &flag_dummy, 2,
N_("Attempt to merge identical constants and constant variables") }, N_("Attempt to merge identical constants and constant variables") },
{"dump-unnumbered", &flag_dump_unnumbered, 1, {"dump-unnumbered", &flag_dummy, 1,
N_("Suppress output of instruction numbers and line number notes in debugging dumps") }, N_("Suppress output of instruction numbers and line number notes in debugging dumps") },
{"instrument-functions", &flag_instrument_function_entry_exit, 1, {"instrument-functions", &flag_dummy, 1,
N_("Instrument function entry/exit with profiling calls") }, N_("Instrument function entry/exit with profiling calls") },
{"zero-initialized-in-bss", &flag_zero_initialized_in_bss, 1, {"zero-initialized-in-bss", &flag_dummy, 1,
N_("Put zero initialized data in the bss section") }, N_("Put zero initialized data in the bss section") },
{"ssa", &flag_ssa, 1, {"ssa", &flag_dummy, 1,
N_("Enable SSA optimizations") }, N_("Enable SSA optimizations") },
{"ssa-ccp", &flag_ssa_ccp, 1, {"ssa-ccp", &flag_dummy, 1,
N_("Enable SSA conditional constant propagation") }, N_("Enable SSA conditional constant propagation") },
{"ssa-dce", &flag_ssa_dce, 1, {"ssa-dce", &flag_dummy, 1,
N_("Enable aggressive SSA dead code elimination") }, N_("Enable aggressive SSA dead code elimination") },
{"leading-underscore", &flag_leading_underscore, 1, {"leading-underscore", &flag_dummy, 1,
N_("External symbols have a leading underscore") }, N_("External symbols have a leading underscore") },
{"ident", &flag_no_ident, 0, {"ident", &flag_dummy, 0,
N_("Process #ident directives") }, N_("Process #ident directives") },
{ "peephole2", &flag_peephole2, 1, { "peephole2", &flag_dummy, 1,
N_("Enables an rtl peephole pass run before sched2") }, N_("Enables an rtl peephole pass run before sched2") },
{"finite-math-only", &flag_finite_math_only, 1, {"finite-math-only", &flag_dummy, 1,
N_("Assume no NaNs or +-Infs are generated") }, N_("Assume no NaNs or +-Infs are generated") },
{ "guess-branch-probability", &flag_guess_branch_prob, 1, { "guess-branch-probability", &flag_dummy, 1,
N_("Enables guessing of branch probabilities") }, N_("Enables guessing of branch probabilities") },
{"math-errno", &flag_errno_math, 1, {"math-errno", &flag_dummy, 1,
N_("Set errno after built-in math functions") }, N_("Set errno after built-in math functions") },
{"trapping-math", &flag_trapping_math, 1, {"trapping-math", &flag_dummy, 1,
N_("Floating-point operations can trap") }, N_("Floating-point operations can trap") },
{"unsafe-math-optimizations", &flag_unsafe_math_optimizations, 1, {"unsafe-math-optimizations", &flag_dummy, 1,
N_("Allow math optimizations that may violate IEEE or ANSI standards") }, N_("Allow math optimizations that may violate IEEE or ANSI standards") },
{"signaling-nans", &flag_signaling_nans, 1, {"signaling-nans", &flag_dummy, 1,
N_("Disable optimizations observable by IEEE signaling NaNs") }, N_("Disable optimizations observable by IEEE signaling NaNs") },
{"bounds-check", &flag_bounds_check, 1, {"bounds-check", &flag_dummy, 1,
N_("Generate code to check bounds before indexing arrays") }, N_("Generate code to check bounds before indexing arrays") },
{"single-precision-constant", &flag_single_precision_constant, 1, {"single-precision-constant", &flag_dummy, 1,
N_("Convert floating point constant to single precision constant") }, N_("Convert floating point constant to single precision constant") },
{"time-report", &time_report, 1, {"time-report", &flag_dummy, 1,
N_("Report time taken by each compiler pass at end of run") }, N_("Report time taken by each compiler pass at end of run") },
{"mem-report", &mem_report, 1, {"mem-report", &flag_dummy, 1,
N_("Report on permanent memory allocation at end of run") }, N_("Report on permanent memory allocation at end of run") },
{ "trapv", &flag_trapv, 1, { "trapv", &flag_dummy, 1,
N_("Trap for signed overflow in addition / subtraction / multiplication") }, N_("Trap for signed overflow in addition / subtraction / multiplication") },
{ "wrapv", &flag_wrapv, 1, { "wrapv", &flag_dummy, 1,
N_("Assume signed arithmetic overflow wraps around") }, N_("Assume signed arithmetic overflow wraps around") },
{ "new-ra", &flag_new_regalloc, 1, { "new-ra", &flag_dummy, 1,
N_("Use graph coloring register allocation.") }, N_("Use graph coloring register allocation.") },
}; };
...@@ -4156,25 +4156,7 @@ decode_d_option (const char *arg) ...@@ -4156,25 +4156,7 @@ decode_d_option (const char *arg)
static int static int
decode_f_option (const char *arg) decode_f_option (const char *arg)
{ {
int j; const char *option_value;
const char *option_value = NULL;
/* Search for the option in the table of binary f options. */
for (j = ARRAY_SIZE (f_options); j--;)
{
if (!strcmp (arg, f_options[j].string))
{
*f_options[j].variable = f_options[j].on_value;
return 1;
}
if (arg[0] == 'n' && arg[1] == 'o' && arg[2] == '-'
&& ! strcmp (arg + 3, f_options[j].string))
{
*f_options[j].variable = ! f_options[j].on_value;
return 1;
}
}
if ((option_value = skip_leading_substring (arg, "inline-limit-")) if ((option_value = skip_leading_substring (arg, "inline-limit-"))
|| (option_value = skip_leading_substring (arg, "inline-limit="))) || (option_value = skip_leading_substring (arg, "inline-limit=")))
......
...@@ -118,6 +118,12 @@ extern int flag_tracer; ...@@ -118,6 +118,12 @@ extern int flag_tracer;
extern int flag_unroll_loops; extern int flag_unroll_loops;
extern int flag_unroll_all_loops; extern int flag_unroll_all_loops;
extern int flag_unswitch_loops; extern int flag_unswitch_loops;
extern int flag_cprop_registers;
extern int flag_ssa;
extern int flag_ssa_ccp;
extern int flag_ssa_dce;
extern int time_report;
extern int flag_new_regalloc;
extern void display_help (void); extern void display_help (void);
extern void display_target_options (void); extern void display_target_options (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment