Commit e84a58ff by Eric Botcazou Committed by Eric Botcazou

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
parent 3a4ffde6
2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
* 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 <ubizjak@gmail.com> 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c: Tidy processor feature bitmasks. * config/i386/i386.c: Tidy processor feature bitmasks.
......
2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
* c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
body on the next line.
2011-07-08 Jason Merrill <jason@redhat.com> 2011-07-08 Jason Merrill <jason@redhat.com>
PR c++/45437 PR c++/45437
......
...@@ -2333,7 +2333,8 @@ dump_nested_types (pretty_printer *buffer, tree t, tree parent, bool forward, ...@@ -2333,7 +2333,8 @@ dump_nested_types (pretty_printer *buffer, tree t, tree parent, bool forward,
if (TREE_CODE (decl) == FUNCTION_TYPE) if (TREE_CODE (decl) == FUNCTION_TYPE)
for (decl = TREE_TYPE (decl); for (decl = TREE_TYPE (decl);
decl && TREE_CODE (decl) == POINTER_TYPE; decl && TREE_CODE (decl) == POINTER_TYPE;
decl = TREE_TYPE (decl)); decl = TREE_TYPE (decl))
;
decl = get_underlying_decl (decl); decl = get_underlying_decl (decl);
......
...@@ -1637,8 +1637,10 @@ insert_with_costs (rtx x, struct table_elt *classp, unsigned int hash, ...@@ -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. */ /* Put it after the last element cheaper than X. */
struct table_elt *p, *next; struct table_elt *p, *next;
for (p = classp; (next = p->next_same_value) && CHEAPER (next, elt); for (p = classp;
p = next); (next = p->next_same_value) && CHEAPER (next, elt);
p = next)
;
/* Put it after P and before NEXT. */ /* Put it after P and before NEXT. */
elt->next_same_value = next; elt->next_same_value = next;
......
...@@ -5043,7 +5043,8 @@ push_to_sequence (rtx first) ...@@ -5043,7 +5043,8 @@ push_to_sequence (rtx first)
start_sequence (); 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_first_insn (first);
set_last_insn (last); set_last_insn (last);
......
...@@ -2568,7 +2568,8 @@ max_issue (struct ready_list *ready, int privileged_n, state_t state, ...@@ -2568,7 +2568,8 @@ max_issue (struct ready_list *ready, int privileged_n, state_t state,
{ {
n = privileged_n; n = privileged_n;
/* Try to find issued privileged insn. */ /* Try to find issued privileged insn. */
while (n && !ready_try[--n]); while (n && !ready_try[--n])
;
} }
if (/* If all insns are equally good... */ if (/* If all insns are equally good... */
......
...@@ -719,7 +719,8 @@ add_allocation_site (struct matrix_info *mi, gimple stmt, int level) ...@@ -719,7 +719,8 @@ add_allocation_site (struct matrix_info *mi, gimple stmt, int level)
must be set accordingly. */ must be set accordingly. */
for (min_malloc_level = 0; for (min_malloc_level = 0;
min_malloc_level < mi->max_malloced_level 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) if (level < min_malloc_level)
{ {
mi->allocation_function_decl = current_function_decl; mi->allocation_function_decl = current_function_decl;
......
...@@ -1131,7 +1131,8 @@ eliminate_partially_redundant_load (basic_block bb, rtx insn, ...@@ -1131,7 +1131,8 @@ eliminate_partially_redundant_load (basic_block bb, rtx insn,
discover additional redundancies, so mark it for later deletion. */ discover additional redundancies, so mark it for later deletion. */
for (a_occr = get_bb_avail_insn (bb, expr->avail_occr); for (a_occr = get_bb_avail_insn (bb, expr->avail_occr);
a_occr && (a_occr->insn != insn); 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) if (!a_occr)
{ {
......
...@@ -4591,7 +4591,8 @@ alternative_allows_const_pool_ref (rtx mem ATTRIBUTE_UNUSED, ...@@ -4591,7 +4591,8 @@ alternative_allows_const_pool_ref (rtx mem ATTRIBUTE_UNUSED,
/* Skip alternatives before the one requested. */ /* Skip alternatives before the one requested. */
while (altnum > 0) while (altnum > 0)
{ {
while (*constraint++ != ','); while (*constraint++ != ',')
;
altnum--; altnum--;
} }
/* Scan the requested alternative for TARGET_MEM_CONSTRAINT or 'o'. /* Scan the requested alternative for TARGET_MEM_CONSTRAINT or 'o'.
......
...@@ -3396,7 +3396,8 @@ rgn_add_block (basic_block bb, basic_block after) ...@@ -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. */ /* Now POS is the index of the last block in the region. */
/* Find index of basic block AFTER. */ /* Find index of basic block AFTER. */
for (; rgn_bb_table[pos] != after->index; pos--); for (; rgn_bb_table[pos] != after->index; pos--)
;
pos++; pos++;
gcc_assert (pos > ebb_head[i - 1]); gcc_assert (pos > ebb_head[i - 1]);
...@@ -3443,12 +3444,14 @@ rgn_fix_recovery_cfg (int bbi, int check_bbi, int check_bb_nexti) ...@@ -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; for (old_pos = ebb_head[BLOCK_TO_BB (check_bbi) + 1] - 1;
rgn_bb_table[old_pos] != check_bb_nexti; rgn_bb_table[old_pos] != check_bb_nexti;
old_pos--); old_pos--)
;
gcc_assert (old_pos > ebb_head[BLOCK_TO_BB (check_bbi)]); gcc_assert (old_pos > ebb_head[BLOCK_TO_BB (check_bbi)]);
for (new_pos = ebb_head[BLOCK_TO_BB (bbi) + 1] - 1; for (new_pos = ebb_head[BLOCK_TO_BB (bbi) + 1] - 1;
rgn_bb_table[new_pos] != bbi; rgn_bb_table[new_pos] != bbi;
new_pos--); new_pos--)
;
new_pos++; new_pos++;
gcc_assert (new_pos > ebb_head[BLOCK_TO_BB (bbi)]); gcc_assert (new_pos > ebb_head[BLOCK_TO_BB (bbi)]);
......
...@@ -6350,7 +6350,8 @@ attribute_list_contained (const_tree l1, const_tree l2) ...@@ -6350,7 +6350,8 @@ attribute_list_contained (const_tree l1, const_tree l2)
t1 != 0 && t2 != 0 t1 != 0 && t2 != 0
&& TREE_PURPOSE (t1) == TREE_PURPOSE (t2) && TREE_PURPOSE (t1) == TREE_PURPOSE (t2)
&& TREE_VALUE (t1) == TREE_VALUE (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. */ /* Maybe the lists are equal. */
if (t1 == 0 && t2 == 0) if (t1 == 0 && t2 == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment