re PR middle-end/65911 (r222508 breaks clang-tblgen)
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Tue, 28 Apr 2015 10:09:43 +0000 (10:09 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Tue, 28 Apr 2015 10:09:43 +0000 (10:09 +0000)
Fix PR65911

2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>

PR other/65911
* function.c (pad_to_arg_alignment): Add parentheses.

From-SVN: r222521

gcc/ChangeLog
gcc/function.c

index 9ba3a8382b04a990b72073b6516dc88a8709a2f6..9a3c8024be3d8383ff12b7e6560389ef3e3606c7 100644 (file)
@@ -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
index d1a2c0a26b328889b49ccc0249954f65e0e96950..af4c087b51c1fb6f109119c38b38c9a4061c2969 100644 (file)
@@ -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;