[LLVMdev] interesting possible compiler bug
kparzysz at codeaurora.org
Mon Oct 15 17:27:52 PDT 2012
On 10/15/2012 7:20 PM, Chris Lattner wrote:
> You've made a number of claims on this thread, but I'm not sure what you're basing these claims on - certainly not the C standard.
> If you don't want the compiler to touch well known functions like malloc, build with -fno-builtin and you'll get the behavior you want.
The only claim you can object to is about side-effects. It was more of
a general remark, but yes, the compiler can delete calls where the
result is not used. This is indeed a case of a "dead malloc", which Eli
Is there anything else you disagree with?
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-dev