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)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:05:26 +0000 (14:05 +0900)
commit5655914be23c79c70ed64d84ef2e5234cb59d718
tree95eee450bd5d7f9218592d814b10cb7c117361a2
parenta0cacb451a846e838aa6a1ba4746c6fe92179bcd
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/testsuite/ChangeLog