diff options
author | Richard Henderson <rth@gcc.gnu.org> | 2000-06-26 09:42:23 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-06-26 09:42:23 -0700 |
commit | 903f51d97fc06fde3900a9628872007bf71eecac (patch) | |
tree | 3775b34b16d78fb402deb53f4c3ecccc2f5d7168 /gcc/c-lex.c | |
parent | 774d2baf5040b0a86bb07931e01b4d2811611eab (diff) | |
download | gcc-903f51d97fc06fde3900a9628872007bf71eecac.zip gcc-903f51d97fc06fde3900a9628872007bf71eecac.tar.gz gcc-903f51d97fc06fde3900a9628872007bf71eecac.tar.bz2 |
[multiple changes]
2000-06-26 Joseph S. Myers <jsm28@cam.ac.uk>
* c-decl.c (grokdeclarator): Don't warn about `long long' in C99.
Make warnings about implicit int be pedwarns in C99. Don't warn
about duplicate type qualifiers in C99.
(start_function): Make warning about implict int return type be a
pedwarn in C99.
* c-lex.c (yylex): Don't warn about `long long' in C99.
* c-typeck.c (c_expand_return): In C99, always pedwarn about
`return' with no value in function returning non-void.
2000-06-26 Richard Henderson <rth@cygnus.com>
* c-typeck.c (pedwarn_c99): New.
* diagnostic.c (verror, vwarning, vpedwarn): Export.
* toplev.h: Prototype them.
From-SVN: r34713
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 41a88b0..8b917ff 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -1781,7 +1781,8 @@ yylex () { if (spec_long_long) error ("three `l's in integer constant"); - else if (pedantic && ! in_system_header && warn_long_long) + else if (pedantic && ! flag_isoc99 + && ! in_system_header && warn_long_long) pedwarn ("ANSI C forbids long long integer constants"); spec_long_long = 1; } |