On Thu, May 21, 2015 at 10:11:41AM -0400, Jason Merrill wrote:
> On 05/21/2015 09:44 AM, Marek Polacek wrote:
> >+      if (!DECL_BUILT_IN (fndecl))
> 
> I think you want DECL_IS_BUILTIN.  OK with that change.

Right.  With DECL_IS_BUILTIN we print

q.c:1:5: note: declared here
 int printf (const char *, ...);
     ^
even for

int printf (const char *, ...);
void
foo (void)
{
  printf ();
}

C FE uses DECL_BUILT_IN so it doesn't print the note, but I think
we want it in this case, so I'll fix it up there.  Thanks,

        Marek

Reply via email to