{
if (TREE_CODE (value) == INTEGER_CST && TREE_CONSTANT_OVERFLOW (value))
{
- pedwarn ("overflow in constant expression");
+ /* ??? This is a warning, not a pedwarn, in 2.4,
+ because it happens in contexts that are not
+ "constant expressions" in ANSI C.
+ Fix the problem differently in 2.5. */
+ warning ("overflow in constant expression");
/* Suppress duplicate warnings. */
TREE_CONSTANT_OVERFLOW (value) = 0;
}
{
if (TREE_CODE (value) == INTEGER_CST && TREE_CONSTANT_OVERFLOW (value))
{
- pedwarn ("integer overflow in expression");
+ /* ??? This is a warning, not a pedwarn, in 2.4,
+ because it happens in contexts that are not
+ "constant expressions" in ANSI C.
+ Fix the problem differently in 2.5. */
+ warning ("integer overflow in expression");
TREE_CONSTANT_OVERFLOW (value) = 0;
}
}
TREE_CONSTANT_OVERFLOW (t) = 0;
else if (TREE_CONSTANT_OVERFLOW (t))
{
- pedwarn ("overflow in implicit constant conversion");
+ /* ??? This is a warning, not a pedwarn, in 2.4,
+ because it happens in contexts that are not
+ "constant expressions" in ANSI C.
+ Fix the problem differently in 2.5. */
+ warning ("overflow in implicit constant conversion");
TREE_CONSTANT_OVERFLOW (t) = 0;
}
else