]> gcc.gnu.org Git - gcc.git/commitdiff
emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT before shifting.
authorDavid Edelsohn <dje@gcc.gnu.org>
Sun, 2 Dec 2001 06:06:18 +0000 (01:06 -0500)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sun, 2 Dec 2001 06:06:18 +0000 (01:06 -0500)
        * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
        before shifting.

From-SVN: r47521

gcc/ChangeLog
gcc/emit-rtl.c

index df03675ad3cb90000da742ab2fc062120769d5fe..6c8fc06711d90d7bec1e6e63fe663ae872917437 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-02  David Edelsohn  <edelsohn@gnu.org>
+
+       * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
+       before shifting.
+
 2001-12-02  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * c-decl.c (duplicate_decls, push_parm_decl): Remove leading
@@ -434,7 +439,7 @@ Wed Nov 28 10:42:19 CET 2001  Jan Hubicka  <jh@suse.cz>
        * toplev.c: Update comment.
        * doc/passes.texi: Update.
 objc:
-       * ojbc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
+       * objc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
        LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
        LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
        (objc_init): Update to use c_objc_common_init.
index f3fda29e6dc539ae0836fa0e329ee4f98b68e981..e7afacd8a4eaf25ff0f6da70dbd6fc9a72f7812c 100644 (file)
@@ -1061,8 +1061,10 @@ gen_lowpart_common (mode, x)
       if (HOST_BITS_PER_WIDE_INT != 64)
        abort ();
 
-      return immed_double_const (i[3 * endian] | (i[1 + endian] << 32),
-                                i[2 - endian] | (i [3 - 3 * endian] << 32),
+      return immed_double_const (i[3 * endian]
+                                | ((HOST_WIDE_INT) i[1 + endian] << 32),
+                                i[2 - endian]
+                                | ((HOST_WIDE_INT) i[3 - 3 * endian] << 32),
                                 mode);
 #endif
     }
This page took 0.082503 seconds and 5 git commands to generate.