[LLVMbugs] [Bug 1839] New: __builtin_trap doesn't trap

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Dec 4 13:37:46 PST 2007


           Summary: __builtin_trap doesn't trap
           Product: tools
           Version: 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: djg at cray.com
                CC: llvmbugs at cs.uiuc.edu

This C testcase:

void foo(void) { __builtin_trap(); }

is compiled by llvm-gcc into

define void @foo() {
        ret void

In otherwords, __builtin_trap() is treated as a no-op.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list