]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
expr.c (store_constructor): Use gen_int_mode to correctly sign-extend CONST_INT value.
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 1 Apr 2004 21:02:38 +0000 (21:02 +0000)
committerMatthias Klose <doko@gcc.gnu.org>
Thu, 1 Apr 2004 21:02:38 +0000 (21:02 +0000)
2004-03-25  Ulrich Weigand  <uweigand@de.ibm.com>

        * expr.c (store_constructor): Use gen_int_mode to correctly
        sign-extend CONST_INT value.

From-SVN: r80321

gcc/ChangeLog
gcc/expr.c

index 70da46697eed655e416ea120ee93923799248e6e..622cb75f2e5fd7b8fd32f7a776917965884e3c4b 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-25  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * expr.c (store_constructor): Use gen_int_mode to correctly
+       sign-extend CONST_INT value.
+
 2004-04-01  Alan Modra  <amodra@bigpond.net.au>
            Jakub Jelinek  <jakub@redhat.com>
 
index 526e52c823668744e89a16779329a81d9f2d72a2..c7b14da283c923203bb5a255abcfcc4bbe974238 100644 (file)
@@ -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