ipa-icf-32.c: Update template.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 18 Jan 2015 17:42:11 +0000 (18:42 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 18 Jan 2015 17:42:11 +0000 (17:42 +0000)
commitb16650ac472b03123a7190c84d6c75daf8a6557c
tree8adefaf359f0ba900559f677e0e56f23f125b6f0
parent33c3b6be4d07de8f633a58b48d2e602586c1ad07
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
13 files changed:
gcc/ChangeLog
gcc/common.opt
gcc/ipa-icf.c
gcc/ipa-reference.c
gcc/optc-save-gen.awk
gcc/opth-gen.awk
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/instrument-with-calls-1.c
gcc/testsuite/c-c++-common/asan/instrument-with-calls-2.c
gcc/testsuite/c-c++-common/asan/instrument-with-calls-3.c
gcc/testsuite/c-c++-common/asan/kasan-recover-1.c
gcc/testsuite/c-c++-common/asan/kasan-recover-2.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-32.c