From: Eric Botcazou Date: Tue, 12 Jul 2011 20:07:09 +0000 (+0000) Subject: cse.c (insert_with_costs): Put semi-colon after empty loop body on the next line. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e84a58ffbeb5c18a01e7a8daf9289618cb907f21;p=gcc.git cse.c (insert_with_costs): Put semi-colon after empty loop body on the next line. * cse.c (insert_with_costs): Put semi-colon after empty loop body on the next line. * emit-rtl.c (push_to_sequence): Likewise. * haifa-sched.c (max_issue): Likewise. * matrix-reorg.c (add_allocation_site): Likewise. * postreload-gcse.c (eliminate_partially_redundant_load): Likewise. * reload.c (alternative_allows_const_pool_ref): Likewise. * sched-rgn.c (rgn_add_block): Likewise. (rgn_fix_recovery_cfg): Likewise. * tree.c (attribute_list_contained): Likewise. c-family/ * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop body on the next line. From-SVN: r176216 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f820c2d1e65..c21c70ba761 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2011-07-12 Eric Botcazou + + * cse.c (insert_with_costs): Put semi-colon after empty loop body + on the next line. + * emit-rtl.c (push_to_sequence): Likewise. + * haifa-sched.c (max_issue): Likewise. + * matrix-reorg.c (add_allocation_site): Likewise. + * postreload-gcse.c (eliminate_partially_redundant_load): Likewise. + * reload.c (alternative_allows_const_pool_ref): Likewise. + * sched-rgn.c (rgn_add_block): Likewise. + (rgn_fix_recovery_cfg): Likewise. + * tree.c (attribute_list_contained): Likewise. + 2011-07-12 Uros Bizjak * config/i386/i386.c: Tidy processor feature bitmasks. diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 87930c21fcf..38149c8c6dd 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2011-07-12 Eric Botcazou + + * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop + body on the next line. + 2011-07-08 Jason Merrill PR c++/45437 diff --git a/gcc/c-family/c-ada-spec.c b/gcc/c-family/c-ada-spec.c index f582e7dfb0e..c6666675ccc 100644 --- a/gcc/c-family/c-ada-spec.c +++ b/gcc/c-family/c-ada-spec.c @@ -2333,7 +2333,8 @@ dump_nested_types (pretty_printer *buffer, tree t, tree parent, bool forward, if (TREE_CODE (decl) == FUNCTION_TYPE) for (decl = TREE_TYPE (decl); decl && TREE_CODE (decl) == POINTER_TYPE; - decl = TREE_TYPE (decl)); + decl = TREE_TYPE (decl)) + ; decl = get_underlying_decl (decl); diff --git a/gcc/cse.c b/gcc/cse.c index a078329ac55..54edf7ee942 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -1637,8 +1637,10 @@ insert_with_costs (rtx x, struct table_elt *classp, unsigned int hash, /* Put it after the last element cheaper than X. */ struct table_elt *p, *next; - for (p = classp; (next = p->next_same_value) && CHEAPER (next, elt); - p = next); + for (p = classp; + (next = p->next_same_value) && CHEAPER (next, elt); + p = next) + ; /* Put it after P and before NEXT. */ elt->next_same_value = next; diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index c641b7e6ca2..e4049b99184 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -5043,7 +5043,8 @@ push_to_sequence (rtx first) start_sequence (); - for (last = first; last && NEXT_INSN (last); last = NEXT_INSN (last)); + for (last = first; last && NEXT_INSN (last); last = NEXT_INSN (last)) + ; set_first_insn (first); set_last_insn (last); diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 407b626d60d..f4caecd284c 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -2568,7 +2568,8 @@ max_issue (struct ready_list *ready, int privileged_n, state_t state, { n = privileged_n; /* Try to find issued privileged insn. */ - while (n && !ready_try[--n]); + while (n && !ready_try[--n]) + ; } if (/* If all insns are equally good... */ diff --git a/gcc/matrix-reorg.c b/gcc/matrix-reorg.c index dfc189632d5..fbeb1643796 100644 --- a/gcc/matrix-reorg.c +++ b/gcc/matrix-reorg.c @@ -719,7 +719,8 @@ add_allocation_site (struct matrix_info *mi, gimple stmt, int level) must be set accordingly. */ for (min_malloc_level = 0; min_malloc_level < mi->max_malloced_level - && mi->malloc_for_level[min_malloc_level]; min_malloc_level++); + && mi->malloc_for_level[min_malloc_level]; min_malloc_level++) + ; if (level < min_malloc_level) { mi->allocation_function_decl = current_function_decl; diff --git a/gcc/postreload-gcse.c b/gcc/postreload-gcse.c index e05e4450d0e..64f100697d4 100644 --- a/gcc/postreload-gcse.c +++ b/gcc/postreload-gcse.c @@ -1131,7 +1131,8 @@ eliminate_partially_redundant_load (basic_block bb, rtx insn, discover additional redundancies, so mark it for later deletion. */ for (a_occr = get_bb_avail_insn (bb, expr->avail_occr); a_occr && (a_occr->insn != insn); - a_occr = get_bb_avail_insn (bb, a_occr->next)); + a_occr = get_bb_avail_insn (bb, a_occr->next)) + ; if (!a_occr) { diff --git a/gcc/reload.c b/gcc/reload.c index 735fa6edce4..c86f69b78c0 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -4591,7 +4591,8 @@ alternative_allows_const_pool_ref (rtx mem ATTRIBUTE_UNUSED, /* Skip alternatives before the one requested. */ while (altnum > 0) { - while (*constraint++ != ','); + while (*constraint++ != ',') + ; altnum--; } /* Scan the requested alternative for TARGET_MEM_CONSTRAINT or 'o'. diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c index e510980816e..aa9c81d9814 100644 --- a/gcc/sched-rgn.c +++ b/gcc/sched-rgn.c @@ -3396,7 +3396,8 @@ rgn_add_block (basic_block bb, basic_block after) /* Now POS is the index of the last block in the region. */ /* Find index of basic block AFTER. */ - for (; rgn_bb_table[pos] != after->index; pos--); + for (; rgn_bb_table[pos] != after->index; pos--) + ; pos++; gcc_assert (pos > ebb_head[i - 1]); @@ -3443,12 +3444,14 @@ rgn_fix_recovery_cfg (int bbi, int check_bbi, int check_bb_nexti) for (old_pos = ebb_head[BLOCK_TO_BB (check_bbi) + 1] - 1; rgn_bb_table[old_pos] != check_bb_nexti; - old_pos--); + old_pos--) + ; gcc_assert (old_pos > ebb_head[BLOCK_TO_BB (check_bbi)]); for (new_pos = ebb_head[BLOCK_TO_BB (bbi) + 1] - 1; rgn_bb_table[new_pos] != bbi; - new_pos--); + new_pos--) + ; new_pos++; gcc_assert (new_pos > ebb_head[BLOCK_TO_BB (bbi)]); diff --git a/gcc/tree.c b/gcc/tree.c index e9876dd81a1..acc3841f216 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -6350,7 +6350,8 @@ attribute_list_contained (const_tree l1, const_tree l2) t1 != 0 && t2 != 0 && TREE_PURPOSE (t1) == TREE_PURPOSE (t2) && TREE_VALUE (t1) == TREE_VALUE (t2); - t1 = TREE_CHAIN (t1), t2 = TREE_CHAIN (t2)); + t1 = TREE_CHAIN (t1), t2 = TREE_CHAIN (t2)) + ; /* Maybe the lists are equal. */ if (t1 == 0 && t2 == 0)