Commit 1a4a238d by Richard Kenner

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

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

From-SVN: r13725
parent e82673c4
...@@ -556,10 +556,10 @@ parse_number (olen) ...@@ -556,10 +556,10 @@ parse_number (olen)
} }
if (base <= largest_digit) if (base <= largest_digit)
warning ("integer constant contains digits beyond the radix"); pedwarn ("integer constant contains digits beyond the radix");
if (overflow) if (overflow)
warning ("integer constant out of range"); pedwarn ("integer constant out of range");
/* If too big to be signed, consider it unsigned. */ /* If too big to be signed, consider it unsigned. */
if (((HOST_WIDE_INT) n & yylval.integer.signedp) < 0) if (((HOST_WIDE_INT) n & yylval.integer.signedp) < 0)
...@@ -764,7 +764,7 @@ yylex () ...@@ -764,7 +764,7 @@ yylex ()
if (mbtowc (& wc, token_buffer, num_chars) == num_chars) if (mbtowc (& wc, token_buffer, num_chars) == num_chars)
result = wc; result = wc;
else else
warning ("Ignoring invalid multibyte character"); pedwarn ("Ignoring invalid multibyte character");
} }
#endif #endif
yylval.integer.value = result; yylval.integer.value = result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment