diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-01-18 18:42:11 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-01-18 17:42:11 +0000 |
commit | b16650ac472b03123a7190c84d6c75daf8a6557c (patch) | |
tree | 8adefaf359f0ba900559f677e0e56f23f125b6f0 /gcc/optc-save-gen.awk | |
parent | 33c3b6be4d07de8f633a58b48d2e602586c1ad07 (diff) | |
download | gcc-b16650ac472b03123a7190c84d6c75daf8a6557c.zip gcc-b16650ac472b03123a7190c84d6c75daf8a6557c.tar.gz gcc-b16650ac472b03123a7190c84d6c75daf8a6557c.tar.bz2 |
ipa-icf-32.c: Update template.
* gcc.dg/ipa/ipa-icf-32.c: Update template.
* c-c++-common/asan/instrument-with-calls-3.c: Likewise.
* c-c++-common/asan/instrument-with-calls-2.c: Likewise.
* c-c++-common/asan/instrument-with-calls-1.c: Likewise.
* c-c++-common/asan/kasan-recover-1.c: Likewise.
* c-c++-common/asan/kasan-recover-2.c: Likewise.
* ipa-reference.c (set_reference_optimization_summary,
ipa_reference_get_not_written_global): Do nothing if ipa-reference is disabled.
(ignore_module_statics): New static var.
(propagate_bits): If ipa-reference is disabled, do not look into local properties.
(analyze_function): Disable analysis when ipa_reference is disabled.
(generate_summary): Do not dump when reference is disabled;
collect vars accessed from functions with ipa-reference disabled.
(get_read_write_all_from_node): When ipa-reference is disabled, use the
node flags.
(gate): Enable for LTO.
(ignore_edge_p): New function.
(propagate): Skip functions w/o ipa-reference analysis.
* optc-save-gen.awk: Handle optimize_debug correctly.
* opth-gen.awk: Likewise.
* common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
fira-share-save-slots, fira-share-spill-slots,
fmodulo-sched-allow-regmoves, fpartial-inlining,
sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
ftracer, ftree-parallelize-loops, fassociative-math,
freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
Optimization
(fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
Optimization.
* ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
Fix for IPA.
From-SVN: r219823
Diffstat (limited to 'gcc/optc-save-gen.awk')
-rw-r--r-- | gcc/optc-save-gen.awk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/optc-save-gen.awk b/gcc/optc-save-gen.awk index 58732c0..2509699 100644 --- a/gcc/optc-save-gen.awk +++ b/gcc/optc-save-gen.awk @@ -84,15 +84,17 @@ print "void"; print "cl_optimization_save (struct cl_optimization *ptr, struct gcc_options *opts)"; print "{"; -n_opt_char = 2; +n_opt_char = 3; n_opt_short = 0; n_opt_int = 0; n_opt_enum = 1; n_opt_other = 0; var_opt_char[0] = "optimize"; var_opt_char[1] = "optimize_size"; +var_opt_char[2] = "optimize_debug"; var_opt_range["optimize"] = "0, 255"; -var_opt_range["optimize_size"] = "0, 255"; +var_opt_range["optimize_size"] = "0, 1"; +var_opt_range["optimize_debug"] = "0, 1"; var_opt_enum[0] = "flag_fp_contract_mode"; # Sort by size to mimic how the structure is laid out to be friendlier to the @@ -734,11 +736,13 @@ for (i = 0; i < n_target_val; i++) { print "}"; -n_opt_val = 2; +n_opt_val = 3; var_opt_val[0] = "x_optimize" var_opt_val_type[0] = "char " var_opt_val[1] = "x_optimize_size" +var_opt_val[2] = "x_optimize_debug" var_opt_val_type[1] = "char " +var_opt_val_type[2] = "char " for (i = 0; i < n_opts; i++) { if (flag_set_p("Optimization", flags[i])) { name = var_name(flags[i]) |