From: David Malcolm Date: Thu, 10 Dec 2015 15:06:05 +0000 (+0000) Subject: Fix -Wmisleading-indentation warning in function.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a589e68fd0953761128a2194edd3ea7e10feac48;p=gcc.git Fix -Wmisleading-indentation warning in function.c Fix this warning: ../../../src/gcc/function.c: In function ‘void locate_and_pad_parm(machine_mode, tree, int, int, int, tree, args_size*, locate_and_pad_arg_data*)’: ../../../src/gcc/function.c:4123:2: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation] { ^ ../../../src/gcc/function.c:4119:7: note: ...this ‘if’ clause, but it is not if (initial_offset_ptr->var) ^ gcc/ChangeLog: * function.c (locate_and_pad_parm): Fix indentation. From-SVN: r231518 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e166f1da71..bc0f5436926 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-12-10 David Malcolm + + * function.c (locate_and_pad_parm): Fix indentation. + 2015-12-10 Richard Biener * tree-ssa-structalias.c (struct variable_info): Add diff --git a/gcc/function.c b/gcc/function.c index b513eada68c..035a49eff3f 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -4181,14 +4181,14 @@ locate_and_pad_parm (machine_mode passed_mode, tree type, int in_regs, locate->slot_offset.var = size_binop (MINUS_EXPR, ssize_int (0), initial_offset_ptr->var); - { - tree s2 = sizetree; - if (where_pad != none - && (!tree_fits_uhwi_p (sizetree) - || (tree_to_uhwi (sizetree) * BITS_PER_UNIT) % round_boundary)) - s2 = round_up (s2, round_boundary / BITS_PER_UNIT); - SUB_PARM_SIZE (locate->slot_offset, s2); - } + { + tree s2 = sizetree; + if (where_pad != none + && (!tree_fits_uhwi_p (sizetree) + || (tree_to_uhwi (sizetree) * BITS_PER_UNIT) % round_boundary)) + s2 = round_up (s2, round_boundary / BITS_PER_UNIT); + SUB_PARM_SIZE (locate->slot_offset, s2); + } locate->slot_offset.constant += part_size_in_regs;