aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/function.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9ba3a83..9a3c802 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
+
+ PR other/65911
+ * function.c (pad_to_arg_alignment): Add parentheses.
+
2015-04-28 Uros Bizjak <ubizjak@gmail.com>
* config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
diff --git a/gcc/function.c b/gcc/function.c
index d1a2c0a..af4c087 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;