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

            Bug ID: 31480
           Summary: newgvn miscompilation
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: matthias.krue...@famsik.de
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

test code: https://github.com/danmar/cppcheck @
85ae3adeb2d3c79b775181380c9eae43d76c4d63

llvm @r290606 


compile cppcheck with "-std=c++0x -O2", except for the file
"lib/symboldatabase.cpp" which additionally needs "-mllvm -enable-newgvn".

cppcheck will then crash when selfchecking
./cppcheck .
on the file cli/filelister.cpp with the configuration  _WIN32 
Internal error: cppcheck received signal SIGSEGV - SEGV_MAPERR (reading at
0x26f6000). Stackoverflow?
*** Error in `./cppcheck': malloc(): memory corruption (fast):
0x00000000025e03e0 ***

which does not happen if symboldatabase.cpp is compiled without newgvn.

-- 
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