aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2004-03-27 16:15:59 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2004-03-27 16:15:59 +0000
commit053ee101a4222e929c90c8583fde96f9222f032f (patch)
tree2c97f9c4f030a8d510d2bf2837223a2be7e337cf /gcc/expr.c
parent6f52a889fdd6a6127889944fb7ae8a96e768d6c3 (diff)
downloadgcc-053ee101a4222e929c90c8583fde96f9222f032f.zip
gcc-053ee101a4222e929c90c8583fde96f9222f032f.tar.gz
gcc-053ee101a4222e929c90c8583fde96f9222f032f.tar.bz2
expr.c (store_constructor): Use gen_int_mode to correctly sign-extend CONST_INT value.
* expr.c (store_constructor): Use gen_int_mode to correctly sign-extend CONST_INT value. From-SVN: r80022
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index d77b6e5..fd129c1 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -5081,7 +5081,7 @@ store_constructor (tree exp, rtx target, int cleared, HOST_WIDE_INT 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