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: unassignedb...@nondot.org
          Reporter: cperc...@freebsd.org
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to