[Bug middle-end/44071] ICE with asm goto and __builtin_unreachable()
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue May 11 18:23:00 GMT 2010
------- Comment #12 from jakub at gcc dot gnu dot org 2010-05-11 18:23 -------
Subject: Bug 44071
Author: jakub
Date: Tue May 11 18:22:52 2010
New Revision: 159289
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159289
Log:
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.
Added:
branches/gcc-4_5-branch/gcc/testsuite/c-c++-common/asmgoto-4.c
branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/pr44071.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/cfgcleanup.c
branches/gcc-4_5-branch/gcc/cfglayout.c
branches/gcc-4_5-branch/gcc/cfgrtl.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44071
More information about the Gcc-bugs
mailing list