From: David Malcolm Date: Thu, 10 Dec 2015 15:06:05 +0000 (+0000) Subject: Fix -Wmisleading-indentation warning in function.c X-Git-Tag: upstream/12.2.0~50058 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a589e68fd0953761128a2194edd3ea7e10feac48;p=platform%2Fupstream%2Fgcc.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 5e166f1..bc0f543 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 b513ead..035a49e 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;