[LLVMbugs] gccas bug; testcase enclosed (more details)

John Mellor-Crummey johnmc at cs.rice.edu
Fri May 20 14:50:37 PDT 2005

this is a follow-up posting to my previous message that is duplicated below.

we isolated the problem to the rewriting of sprintf calls into strcpy 
calls. we aren't sure exactly what the problem is (since we don't 
understand enough about llvm yet) that is causing a type cast to be 
omitted, but now we have a workaround that we are using - we simply 
avoid rewriting sprintf as strcpy. I'm sure the author will be able 
to spot the problem in a few minutes whereas it would take us longer 
to understand what should have been done instead.

John M-C

>We are using LLVM from CVS and encountered a bug in gccas. We used 
>bugpoint to help pinpoint the error.
>command to repeat error:
>opt bugpoint-passinput.bc -simplify-libcalls
>the offending file is attached.
>Unfortunately, bugpoint fell over while trying to reduce the test 
>case. It emitted the error message:
>Checking instruction '': Success!
>PHINode should have one entry for each predecessor of its parent basic block!
>         %i.3 = phi int [ %inc.11, %endif.5 ], [ 0, %endif.0 ], [ 0, 
>%endif.0 ], [ 0, %endif.0 ], [ 0, %endif.0 ], [ 0, %endif.0 ] 
>; <int> [#uses=3]
>Broken module found, compilation aborted!
>Checking instruction 'tmp.208': bugpoint((anonymous 
>bugpoint((anonymous namespace)::SignalHandler(int)+0xcb)[0x873fd4d]
>bugpoint((anonymous namespace)::Verifier::abortIfBroken()+0xd5)[0x86fe6d3]
>const*, unsigned int) const+0x366)[0x840696a]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20050520/1c163473/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bugpoint-passinput.bc
Type: application/octet-stream
Size: 22002 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20050520/1c163473/attachment.obj>

More information about the llvm-bugs mailing list