[cfe-commits] r64504 - in /cfe/trunk: include/clang/AST/ include/clang/Basic/ lib/AST/ lib/Analysis/ lib/CodeGen/ lib/Sema/ test/Analysis/ test/CodeGen/ test/Sema/

Daniel Dunbar daniel at zuster.org
Fri Feb 13 19:10:49 PST 2009


Nice, very very nice.

Unfortunately, this is also causing us to reject quite a few of the
applications in the LLVM test-suite. I haven't had time to diagnose
the exact issues, but I think we are going to need to be more
accepting of other definitions of builtins. For example:
--
char *malloc();
void *f0() { return malloc(4); }
--

Can you take a look?

 - Daniel

On Fri, Feb 13, 2009 at 3:52 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Feb 13, 2009, at 3:20 PM, Douglas Gregor wrote:
>
>> Author: dgregor
>> Date: Fri Feb 13 17:20:09 2009
>> New Revision: 64504
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=64504&view=rev
>> Log:
>> Implicitly declare certain C library functions (malloc, strcpy,
>> memmove,
>> etc.) when we perform name lookup on them. This ensures that we
>> produce the correct signature for these functions, which has two
>> practical impacts:
>
> Nice!!
>
> -Chris
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>



More information about the cfe-commits mailing list