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
}
#endif
+ if (!int_fits_type_p (yylval.ttype, type))
+ pedwarn ("integer constant out of range");
+
TREE_TYPE (yylval.ttype) = type;
*p = 0;
}