This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc.dg/c90-impl-decl-1.c


On Sat, Jul 29, 2000 at 08:34:02PM -0700, Richard Henderson wrote:
> : /* C90 subclause 7.1.7 says we can implicitly declare strcmp; C99 removes
> :    implict declarations.
> : */
> 
> "Can" or "shall"?  Unless "shall", I'd prefer this test removed,
> since users really ought to include <string.h>.

We can still complain about it with -Wall, but it isn't supposed to be
a -pedantic complaint in C90 mode.  (Since C90 doesn't say we SHALL
NOT implicitly declare strcmp.)

I have a patch outstanding for this - see
http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00688.html.  Some
concerns were raised; I will try to get a revised version out tonight.

zw

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]