This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc.dg/c90-impl-decl-1.c
- To: Richard Henderson <rth at thief dot cygnus dot com>
- Subject: Re: gcc.dg/c90-impl-decl-1.c
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Sat, 29 Jul 2000 20:52:25 -0700
- Cc: jsm28 at cam dot ac dot uk, gcc-bugs at gcc dot gnu dot org
- References: <20000729203402.A24750@thief.cygnus.com>
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