]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.c (rs6000_va_arg): No need to special-case altivec operands.
authorGeoffrey Keating <geoffk@apple.com>
Fri, 16 Jan 2004 07:07:27 +0000 (07:07 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 16 Jan 2004 07:07:27 +0000 (07:07 +0000)
* config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
altivec operands.

From-SVN: r75960

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 2384ba92d0bd264587298d44d3803b8f930c9f4d..6cdf24e0cae5d6ea2d12297eafc75a773964ebd4 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-15  Geoffrey Keating  <geoffk@apple.com>
+
+       * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
+       altivec operands.
+
 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
 
        * c-common.h: Fix comment formatting.
index eeabb66ebe27d08be48c549fb31214ce8bf3e8fd..9a399b16f06803d27466bd2084f4959d46858ebb 100644 (file)
@@ -4678,29 +4678,7 @@ rs6000_va_arg (tree valist, tree type)
          return expand_expr (t, NULL_RTX, VOIDmode, EXPAND_NORMAL);
        }
       else
-       {
-         /* Altivec arguments must be aligned to a 128-bit boundary.  */
-         if (TARGET_ALTIVEC_ABI && ALTIVEC_VECTOR_MODE (TYPE_MODE (type)))
-           {
-             tree vtype = TREE_TYPE (valist);
-             tree new_valist, modify;
-             
-             /* Round address up to multiple of 16.  Computes
-                (addr+15)&~0xf.  */
-             new_valist = fold (build (BIT_AND_EXPR, vtype,
-                                       fold (build (PLUS_EXPR, vtype, valist,
-                                                    build_int_2 (15, 0))),
-                                       build_int_2 (~15, -1)));
-
-             /* Update valist.  */
-             modify = build (MODIFY_EXPR, TREE_TYPE (valist), valist,
-                             new_valist);
-             TREE_SIDE_EFFECTS (modify) = 1;
-             expand_expr (modify, const0_rtx, VOIDmode, EXPAND_NORMAL);
-           }
-         
-         return std_expand_builtin_va_arg (valist, type);
-       }
+       return std_expand_builtin_va_arg (valist, type);
     }
 
   f_gpr = TYPE_FIELDS (TREE_TYPE (va_list_type_node));