OSDN Git Service

PR middle-end/44071
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 May 2010 18:17:43 +0000 (18:17 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 May 2010 18:17:43 +0000 (18:17 +0000)
commitdcb172b4aee2541920b5793aa338e40824f521b4
tree1cb4796f120b34f94f9e016946901fdcba7136f8
parent6834c43a3100068ce10f4b1b60c5bbb486e2a353
PR middle-end/44071
* cfglayout.c (fixup_reorder_chain): Allow asm goto to have
no fallthru edge.
* cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
optimizing away empty bb with no successors, move over its
footer chain to fallthru predecessor.
* cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
(rtl_split_edge): For asm goto call patch_jump_insn even if
splitting fallthru edge.

* c-c++-common/asmgoto-4.c: New test.
* gcc.target/i386/pr44071.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159288 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgcleanup.c
gcc/cfglayout.c
gcc/cfgrtl.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asmgoto-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr44071.c [new file with mode: 0644]