From 6b241bd157b04fc2653ee11708f4bc5e8f4f8fba Mon Sep 17 00:00:00 2001 From: Markus Trippelsdorf Date: Tue, 28 Apr 2015 10:09:43 +0000 Subject: [PATCH] re PR middle-end/65911 (r222508 breaks clang-tblgen) Fix PR65911 2015-04-28 Markus Trippelsdorf PR other/65911 * function.c (pad_to_arg_alignment): Add parentheses. From-SVN: r222521 --- gcc/ChangeLog | 5 +++++ gcc/function.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9ba3a8382b0..9a3c8024be3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-04-28 Markus Trippelsdorf + + PR other/65911 + * function.c (pad_to_arg_alignment): Add parentheses. + 2015-04-28 Uros Bizjak * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to diff --git a/gcc/function.c b/gcc/function.c index d1a2c0a26b3..af4c087b51c 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -4195,9 +4195,9 @@ pad_to_arg_alignment (struct args_size *offset_ptr, int boundary, else { offset_ptr->constant = -sp_offset + - ARGS_GROW_DOWNWARD ? - FLOOR_ROUND (offset_ptr->constant + sp_offset, boundary_in_bytes) : - CEIL_ROUND (offset_ptr->constant + sp_offset, boundary_in_bytes); + (ARGS_GROW_DOWNWARD + ? FLOOR_ROUND (offset_ptr->constant + sp_offset, boundary_in_bytes) + : CEIL_ROUND (offset_ptr->constant + sp_offset, boundary_in_bytes)); if (boundary > PARM_BOUNDARY) alignment_pad->constant = offset_ptr->constant - save_constant; -- 2.30.2