summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-17 04:19:08 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-17 04:19:08 +0000
commitc5581a0b78531349e54f8eaebc2fe5910f1813e0 (patch)
treec1effec53b990bea342d12db02faa384fb985d8e /gcc
parente064b2d637514779061017c4dc1a19061d1c1c69 (diff)
downloadgcc-c5581a0b78531349e54f8eaebc2fe5910f1813e0.tar.gz
* c-typeck.c (error_init, pedwarn_init, warning_init): Call
gettext on argument before printing. * fold-const.c (negate_expr): Always call fold on new NEGATE_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48087 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-typeck.c6
-rw-r--r--gcc/fold-const.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 1c34502e61a..50d7f9bf5d2 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -4646,7 +4646,7 @@ error_init (msgid)
{
char *ofwhat;
- error ("%s", msgid);
+ error ("%s", _(msgid));
ofwhat = print_spelling ((char *) alloca (spelling_length () + 1));
if (*ofwhat)
error ("(near initialization for `%s')", ofwhat);
@@ -4662,7 +4662,7 @@ pedwarn_init (msgid)
{
char *ofwhat;
- pedwarn ("%s", msgid);
+ pedwarn ("%s", _(msgid));
ofwhat = print_spelling ((char *) alloca (spelling_length () + 1));
if (*ofwhat)
pedwarn ("(near initialization for `%s')", ofwhat);
@@ -4678,7 +4678,7 @@ warning_init (msgid)
{
char *ofwhat;
- warning ("%s", msgid);
+ warning ("%s", _(msgid));
ofwhat = print_spelling ((char *) alloca (spelling_length () + 1));
if (*ofwhat)
warning ("(near initialization for `%s')", ofwhat);
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 79387fbc6bc..ce93a03593a 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -1382,7 +1382,7 @@ negate_expr (t)
break;
}
- return convert (type, build1 (NEGATE_EXPR, TREE_TYPE (t), t));
+ return convert (type, fold (build1 (NEGATE_EXPR, TREE_TYPE (t), t)));
}
/* Split a tree IN into a constant, literal and variable parts that could be