(parse_number): Invalid integer constants are errors if pedantic.

(yylex): Invalid multibyte characters are errors if pedantic.

From-SVN: r13725
This commit is contained in:
Richard Kenner 1997-03-17 17:07:46 -05:00
parent e82673c4a8
commit 1a4a238db9
1 changed files with 3 additions and 3 deletions

View File

@ -556,10 +556,10 @@ parse_number (olen)
}
if (base <= largest_digit)
warning ("integer constant contains digits beyond the radix");
pedwarn ("integer constant contains digits beyond the radix");
if (overflow)
warning ("integer constant out of range");
pedwarn ("integer constant out of range");
/* If too big to be signed, consider it unsigned. */
if (((HOST_WIDE_INT) n & yylval.integer.signedp) < 0)
@ -764,7 +764,7 @@ yylex ()
if (mbtowc (& wc, token_buffer, num_chars) == num_chars)
result = wc;
else
warning ("Ignoring invalid multibyte character");
pedwarn ("Ignoring invalid multibyte character");
}
#endif
yylval.integer.value = result;