C++ Bug (was: Implicit declaration warnings for builtins)

Mark Mitchell mark@codesourcery.com
Sat May 27 17:04:00 GMT 2000


>>>>> "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.  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?

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


More information about the Gcc-bugs mailing list