public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/44071]  New: ICE with asm goto and __builtin_unreachable()
@ 2010-05-11  5:38 hpa at zytor dot com
  2010-05-11  5:39 ` [Bug c/44071] " hpa at zytor dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 17+ messages in thread
From: hpa at zytor dot com @ 2010-05-11  5:38 UTC (permalink / raw)
  To: gcc-bugs

The attached test case ICE's with the __builtin_unreachable() enabled.  With
the __builtin_unreachable() disabled, it compiles, but produces bad code:

        .file   "jumptest.c"
        .text
        .p2align 4,,15
.globl xyzzy
        .type   xyzzy, @function
xyzzy:
.LFB1:
        .cfi_startproc
#APP
# 10 "jumptest.c" 1
        # Either .L2 or .L3
        jmp .L2
# 0 "" 2
#NO_APP
        movl    $1, %eax      /*** XXX: Instruction skipped by jump ***/
.L2:
        rep
        ret
        .p2align 4,,10
        .p2align 3
.L3:
        xorl    %eax, %eax
        cmpl    $6, %edi
        setne   %al
        addl    $1, %eax
        ret
        .cfi_endproc
.LFE1:
        .size   xyzzy, .-xyzzy
        .ident  "GCC: (GNU) 4.5.0"
        .section        .note.GNU-stack,"",@progbits


-- 
           Summary: ICE with asm goto and __builtin_unreachable()
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hpa at zytor dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44071


^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <bug-44071-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-07-08 16:10 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-11  5:38 [Bug c/44071] New: ICE with asm goto and __builtin_unreachable() hpa at zytor dot com
2010-05-11  5:39 ` [Bug c/44071] " hpa at zytor dot com
2010-05-11  6:32 ` ubizjak at gmail dot com
2010-05-11  6:45 ` ubizjak at gmail dot com
2010-05-11  8:43 ` rguenth at gcc dot gnu dot org
2010-05-11  8:57 ` ubizjak at gmail dot com
2010-05-11  9:00 ` jakub at gcc dot gnu dot org
2010-05-11 10:01 ` jakub at gcc dot gnu dot org
2010-05-11 10:18 ` [Bug middle-end/44071] " jakub at gcc dot gnu dot org
2010-05-11 10:20 ` jakub at gcc dot gnu dot org
2010-05-11 12:18 ` jakub at gcc dot gnu dot org
2010-05-11 16:15 ` [Bug c/44071] " hpa at zytor dot com
2010-05-11 16:51 ` [Bug middle-end/44071] " jakub at gcc dot gnu dot org
2010-05-11 18:18 ` jakub at gcc dot gnu dot org
2010-05-11 18:23 ` jakub at gcc dot gnu dot org
2010-05-11 18:26 ` jakub at gcc dot gnu dot org
     [not found] <bug-44071-4@http.gcc.gnu.org/bugzilla/>
2011-07-08 16:10 ` ramana at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).