From eacffaf57de7174a28a3fdcac88bb9cb59ebbc9b Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 1 Apr 2004 21:02:38 +0000 Subject: [PATCH] expr.c (store_constructor): Use gen_int_mode to correctly sign-extend CONST_INT value. 2004-03-25 Ulrich Weigand * expr.c (store_constructor): Use gen_int_mode to correctly sign-extend CONST_INT value. From-SVN: r80321 --- gcc/ChangeLog | 5 +++++ gcc/expr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 70da46697eed..622cb75f2e5f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-03-25 Ulrich Weigand + + * expr.c (store_constructor): Use gen_int_mode to correctly + sign-extend CONST_INT value. + 2004-04-01 Alan Modra Jakub Jelinek diff --git a/gcc/expr.c b/gcc/expr.c index 526e52c82366..c7b14da283c9 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -5358,7 +5358,7 @@ store_constructor (exp, target, cleared, size) { if (word != 0 || ! cleared) { - rtx datum = GEN_INT (word); + rtx datum = gen_int_mode (word, mode); rtx to_rtx; /* The assumption here is that it is safe to use -- 2.47.2