[llvm-bugs] [Bug 27190] New: optimizer reorders code across siglongjmp call

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Apr 2 18:03:12 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27190

            Bug ID: 27190
           Summary: optimizer reorders code across siglongjmp call
           Product: new-bugs
           Version: 3.8
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: cperciva at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The LLVM optimizer seems to be moving a store to a local non-volatile variable
from after a siglongjmp call to before said call.  This is illegal; going in
the opposite direction would be ok since local non-volatile variables *which
are modified between the sigsetjmp call and the siglongjmp call* have
unspecified values, but in this case the variable is never modified (well,
should never be modified).

Source code to follow (two attachments; putting everything into one C file
results in the optimizer behaving differently).

-- 
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/20160403/c7e58c4e/attachment.html>


More information about the llvm-bugs mailing list