Date: Fri, 24 Aug 2012 20:09:18 -0400 From: Rich Felker <dalias@...ifal.cx> To: musl@...ts.openwall.com Subject: Re: build musl with clang On Fri, Aug 24, 2012 at 09:04:22PM +0200, Szabolcs Nagy wrote: > * agent <agentprog@...il.com> [2012-08-25 00:55:34 +0600]: > > that not only 'if (p[-1])' gets wiped out but any 'if (p[i])'. > > though the nature of this i suppose the same > > yes > > you can try the same code with another function name > instead of malloc > (eg add a void *foobar(size_t); prototype and use that) > > if the generated code is different then that clearly > demonstrates the bug in -ffreestanding Here's an idea for a workaround: void *not_called_malloc(size_t) __asm__("malloc"); #define malloc not_called_malloc If that fixes it, it would be an amusing way to present it in the bug report. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.