OSDN Git Service

PR tree-optimize/40556
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Oct 2009 11:40:18 +0000 (11:40 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Oct 2009 11:40:18 +0000 (11:40 +0000)
commitef378c275d52d00d8ed044dc81ec9c48be2222e6
tree0ab06e5072b8d0118d4bed1aa031422e8dd59204
parent8867b500961593ba73be72ea17bbbd4f8a2d74ef
PR tree-optimize/40556
* ipa-reference.c (has_proper_scope_for_analysis): Add fixme about global vars.
(check_call): Handle only indirect calls.
(propagate_bits): Update comment.
(write_node_summary_p): Turn bogus check to assert.
(ipa_reference_write_summary): Stream calls_read_all properly.
(ipa_reference_read_summary): Stream in calls_read_all properly.
(read_write_all_from_decl): New function.
(propagate): Handle OVERWRITABLE nodes and external calls here.
* ipa-pre-const.c (check_call): In IPA mode handle indirect calls
only.
(analyze_function): Do not check visibility here.
(add_new_function): We summary OVERWRITABLE too.
(generate_summary): Stream OVERWRITABLE nodes too.
(propagate): Handle external calls and OVERWRITABLE nodes here.
(local_pure_const): Check visibility here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153450 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-pure-const.c
gcc/ipa-reference.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr40556.c [new file with mode: 0644]