[LLVMbugs] [Bug 22360] New: ATS exposes -O2 bug

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 27 14:27:32 PST 2015


            Bug ID: 22360
           Summary: ATS exposes -O2 bug
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: garious at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The ATS community is having trouble with clang 3.5.  Moving from
-O1 to -O2 triggers a crash on startup in the clang-generated
executable.  Hongwei Xi rebuilt with -fsanitize=undefined and
-fsanitize=address and has verified the code has no dependencies on undefined
Their workaround is to add a dummy level of indirection to prevent the
[unknown] broken optimization from firing.


Looks like a bug on the LLVM side.  He says it worked with clang 3.2,
but breaks on 3.4 and 3.5 (didn't try 3.3).

Steps to reproduce, build ATS2 with clang 3.5:


Ensure your source code does not include the previously-mentioned workaround:


Run 'patopt' on the command-line.  If the the bug is present, you should see a
crash on startup.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150127/6d5e710d/attachment.html>

More information about the llvm-bugs mailing list