re PR middle-end/18163 (libffi test case ICE's on darwin)
authorRichard Henderson <rth@redhat.com>
Thu, 28 Oct 2004 03:53:31 +0000 (20:53 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 28 Oct 2004 03:53:31 +0000 (20:53 -0700)
        PR middle-end/18163
        * expr.c (emit_group_load): Don't go force temporary for memory
        or concat source.
        (emit_group_store): Similarly.

From-SVN: r89735

gcc/ChangeLog
gcc/expr.c

index 3b4ccf2c2d912b83c58f1ae73b285e2ac68c6123..59a3794213034fa7e43988328b1f1bea5dcf496a 100644 (file)
@@ -1,3 +1,10 @@
+2004-10-27  Richard Henderson  <rth@redhat.com>
+
+       PR middle-end/18163
+       * expr.c (emit_group_load): Don't go force temporary for memory
+       or concat source.
+       (emit_group_store): Similarly.
+
 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
 
        PR other/18186
index f5abce705a0cd9ef759d534ff748cf5ba37839f3..bc19bc1cc17abb6a8062a80f494d523d799e6e31 100644 (file)
@@ -1571,7 +1571,8 @@ emit_group_load (rtx dst, rtx orig_src, tree type ATTRIBUTE_UNUSED, int ssize)
 
   gcc_assert (GET_CODE (dst) == PARALLEL);
 
-  if (!SCALAR_INT_MODE_P (m) && m != BLKmode)
+  if (!SCALAR_INT_MODE_P (m)
+      && !MEM_P (orig_src) && GET_CODE (orig_src) != CONCAT)
     {
       enum machine_mode imode = int_mode_for_mode (GET_MODE (orig_src));
       if (imode == BLKmode)
@@ -1745,7 +1746,8 @@ emit_group_store (rtx orig_dst, rtx src, tree type ATTRIBUTE_UNUSED, int ssize)
 
   gcc_assert (GET_CODE (src) == PARALLEL);
 
-  if (!SCALAR_INT_MODE_P (m) && m != BLKmode)
+  if (!SCALAR_INT_MODE_P (m)
+      && !MEM_P (orig_dst) && GET_CODE (orig_dst) != CONCAT)
     {
       enum machine_mode imode = int_mode_for_mode (GET_MODE (orig_dst));
       if (imode == BLKmode)