*** empty log message ***

From-SVN: r1051
This commit is contained in:
Richard Stallman 1992-05-22 19:43:56 +00:00
parent 2bae939e78
commit 88d92ca5b2

View File

@ -1446,10 +1446,10 @@ yylex ()
warn = 1; warn = 1;
} }
if (warn) if (warn)
warning ("integer constant out of range"); pedwarn ("integer constant out of range");
} }
else if (overflow) 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. /* If it overflowed our internal buffer, then make it unsigned.
We can't distinguish based on the tree node because We can't distinguish based on the tree node because
@ -1602,6 +1602,9 @@ yylex ()
} }
#endif #endif
if (!int_fits_type_p (yylval.ttype, type))
pedwarn ("integer constant out of range");
TREE_TYPE (yylval.ttype) = type; TREE_TYPE (yylval.ttype) = type;
*p = 0; *p = 0;
} }