|
|
Message-ID: <20120825080318.GB30997@port70.net>
Date: Sat, 25 Aug 2012 10:03:18 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: build musl with clang
* agent <agentprog@...il.com> [2012-08-25 11:57:16 +0600]:
> that is stilled optimized for a plain malloc call even if i call
> not_called_malloc directly and not via a macro. to test the bug i
> used the following function:
>
> void *foo(size_t n) {
> static char buf[200];
> return buf + 10;
> }
>
don't define the function, just add a prototype
that's the use case we are trying to test
(clang does not know the definition of
malloc at the point it's used)
a defined function in the same translation unit
of course results different optimizations..
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.