diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-05-22 19:43:56 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-05-22 19:43:56 +0000 |
commit | da14af53fdf33a0b39350c3ecf1c574ae7069944 (patch) | |
tree | 2834e819d13d49fb7cc280d8947fa618f8d2bd0a /gcc/c-lex.c | |
parent | 2b7681e51a9e2bb22827af52ff356e6aed0c669c (diff) | |
download | gcc-da14af53fdf33a0b39350c3ecf1c574ae7069944.tar.gz |
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1051 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-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 34c83569505..95efad586bb 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; } |