* arm.c (arm_needs_doubleword_align): Use mode alignment.
authorPaul Brook <pbrook@gcc.gnu.org>
Fri, 30 Apr 2004 10:54:37 +0000 (10:54 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Fri, 30 Apr 2004 10:54:37 +0000 (10:54 +0000)
From-SVN: r81332

gcc/ChangeLog
gcc/config/arm/arm.c

index c1dcfcfb661e9fa80320c5bc62901726f2a48fbf..a972e93d6ea57eda15a77c9a2d254e2303bcac84 100644 (file)
@@ -1,3 +1,7 @@
+2004-04-30  Paul Brook  <paul@codesourcery.com>
+
+       * arm.c (arm_needs_doubleword_align): Use mode alignment.
+
 2004-04-30  Paolo Bonzini  <bonzini@gnu.org>
 
        * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
@@ -7,8 +11,8 @@
 
 2004-04-30  Uros Bizjak  <uros@kss-loka.si>
 
-        * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
-        atan2?f3 expanders.
+       * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
+       atan2?f3 expanders.
 
 2004-04-29  Nick Clifton  <nickc@redhat.com>
 
 
 2004-04-30  Uros Bizjak  <uros@kss-loka.si>
 
-        * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
-        UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
-        <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
-        <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
+       * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
+       UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
+       <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
+       <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
 
 2004-04-29  Richard Guenther  <richard.guenther@uni-tuebingen.de>
 
index cde2b27fb1cc811ad7d289f042574eeb7dd8c975..f4a7ca77c85fa08945dd517ddfa7c1ca3742b67d 100644 (file)
@@ -2318,11 +2318,8 @@ arm_init_cumulative_args (CUMULATIVE_ARGS *pcum, tree fntype,
 bool
 arm_needs_doubleword_align (enum machine_mode mode, tree type)
 {
-  return (mode == DImode
-         || mode == DFmode
-         || VECTOR_MODE_SUPPORTED_P (mode)
-         || (mode == BLKmode
-             && TYPE_ALIGN (type) > PARM_BOUNDARY));
+  return (GET_MODE_ALIGNMENT (mode) > PARM_BOUNDARY
+         || (type && TYPE_ALIGN (type) > PARM_BOUNDARY));
 }