aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-03-17 17:07:46 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1997-03-17 17:07:46 -0500
commit1a4a238db926fc794098f6756d5793170b4fac04 (patch)
tree0a4681f51336abe432aeaff9ee052c197440f80e /gcc
parente82673c4a81d7c7aa8f344de00ef72cdd2846afa (diff)
downloadgcc-1a4a238db926fc794098f6756d5793170b4fac04.zip
gcc-1a4a238db926fc794098f6756d5793170b4fac04.tar.gz
gcc-1a4a238db926fc794098f6756d5793170b4fac04.tar.bz2
(parse_number): Invalid integer constants are errors if pedantic.
(yylex): Invalid multibyte characters are errors if pedantic. From-SVN: r13725
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cexp.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cexp.y b/gcc/cexp.y
index ac5c243..1888751 100644
--- a/gcc/cexp.y
+++ b/gcc/cexp.y
@@ -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;