This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++ Bug (was: Implicit declaration warnings for builtins)
On Sat, May 27, 2000 at 05:12:15PM -0700, Mark Mitchell wrote:
> >>>>> "Zack" == Zack Weinberg <zack@wolery.cumb.org> writes:
>
> Zack> cp/decl.c's builtin_function() does not set any special
> Zack> flags. Okay, so we add one? Well, there isn't a free
> Zack> DECL_LANG_FLAG to use. I think. It might be safe to use
> Zack> flag #7 (documented as DECL_DEAD_FOR_LOCAL, VAR_DECLs only)
> Zack> but I don't know the C++ front end well enough to be
> Zack> certain. I'm going to try this anyway; any advice would be
> Zack> appreciated.
>
> That should work.
Thanks.
> Can you fill me in on what bug you're fixing? Are
> you trying to avoid a warning on code like:
>
> // No declaration of `strcmp'
> void f () { strcmp ("abc", "def"); }
>
> I don't think we should do that, if that's what you're suggesting.
>
> But, maybe you're doing something different?
I am doing the opposite. We currently do not generate a warning for
that example (try it!) and we should.
zw