]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/gimple.h
re PR lto/60449 (Merging function DECLs discards leaf attribute which causes cfg...
authorMartin Jambor <mjambor@suse.cz>
Wed, 20 Aug 2014 16:47:12 +0000 (18:47 +0200)
committerWei Mi <wmi@gcc.gnu.org>
Wed, 20 Aug 2014 16:47:12 +0000 (16:47 +0000)
commit58041fe6cf11a9b95a79e6bf694fe37e33d41e6f
treefac128b3e612dcf536a8553f9c12e52dce5cc4cd
parent7e04426135293ba4db611f38109161f67bf93379
re PR lto/60449 (Merging function DECLs discards leaf attribute which causes cfg verifier to fail)

2014-08-20  Martin Jambor  <mjambor@suse.cz>
    Wei Mi  <wmi@google.com>

PR ipa/60449
PR middle-end/61776
* tree-ssa-operands.c (update_stmt_operands): Remove
MODIFIED_NORETURN_CALLS.
* tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
(cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
(split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
(cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
* tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
* gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
(gimple_call_set_ctrl_altering): New func.
(gimple_call_ctrl_altering_p): Ditto.
* tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
(make_blocks): Use gimple_call_initialize_ctrl_altering.
(is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
(execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
remove MODIFIED_NORETURN_CALLS.

2014-08-20  Martin Jambor  <mjambor@suse.cz>
    Wei Mi  <wmi@google.com>

PR ipa/60449
PR middle-end/61776
* testsuite/gcc.dg/lto/pr60449_1.c: New test.
* testsuite/gcc.dg/lto/pr60449_0.c: New test.
* testsuite/gcc.dg/pr61776.c: New test.

Co-Authored-By: Wei Mi <wmi@google.com>
From-SVN: r214233
gcc/ChangeLog
gcc/gimple.h
gcc/testsuite/ChangeLog
gcc/tree-cfg.c
gcc/tree-cfgcleanup.c
gcc/tree-ssa-operands.c
gcc/tree-ssanames.h