diff options
author | Richard Stallman <rms@gnu.org> | 1992-05-22 19:43:56 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-05-22 19:43:56 +0000 |
commit | 88d92ca5b290f6bd966ebfa9ca98652763f61b18 (patch) | |
tree | 2834e819d13d49fb7cc280d8947fa618f8d2bd0a | |
parent | 2bae939e78cf37926f577cebb49812a42da1f637 (diff) | |
download | gcc-88d92ca5b290f6bd966ebfa9ca98652763f61b18.zip gcc-88d92ca5b290f6bd966ebfa9ca98652763f61b18.tar.gz gcc-88d92ca5b290f6bd966ebfa9ca98652763f61b18.tar.bz2 |
*** empty log message ***
From-SVN: r1051
-rw-r--r-- | gcc/c-lex.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 34c8356..95efad5 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -1446,10 +1446,10 @@ yylex () warn = 1; } if (warn) - warning ("integer constant out of range"); + pedwarn ("integer constant out of range"); } else if (overflow) - warning ("integer constant larger than compiler can handle"); + pedwarn ("integer constant larger than compiler can handle"); /* If it overflowed our internal buffer, then make it unsigned. We can't distinguish based on the tree node because @@ -1602,6 +1602,9 @@ yylex () } #endif + if (!int_fits_type_p (yylval.ttype, type)) + pedwarn ("integer constant out of range"); + TREE_TYPE (yylval.ttype) = type; *p = 0; } |