aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm/arm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/arm/arm.c')
-rw-r--r--gcc/config/arm/arm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index cde2b27..f4a7ca7 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -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));
}