values as signed values if they start to overflow.
+Mon Sep 8 12:33:40 1997 Nick Clifton <nickc@cygnus.com>
+
+ * config/tc-v850.c (v850_insert_operand): Add
+ -mwarn_unsigned_overflow.
+
Mon Sep 8 11:20:46 1997 Ian Lance Taylor <ian@cygnus.com>
* as.h: Don't declare alloca if it is a macro.
/* Set to TRUE if we want to be pedantic about signed overflows. */
static boolean warn_signed_overflows = FALSE;
+static boolean warn_unsigned_overflows = FALSE;
\f
/* Structure to hold information about predefined registers. */
return 1;
}
+ if (c == 'w' && strcmp (arg, "unsigned_overflow") == 0)
+ {
+ warn_unsigned_overflows = TRUE;
+ return 1;
+ }
+
return 0;
}
else
{
max = (1 << operand->bits) - 1;
- min = 0;
+
+ if (! warn_unsigned_overflows)
+ min = - (1 << (operand->bits - 1));
+ else
+ min = 0;
}
test = val;