mode-switching.c (optimize_mode_switching): Use FOR_BB_INSNS instead of open-coded for loop.

* mode-switching.c (optimize_mode_switching): Use
	FOR_BB_INSNS instead of open-coded for loop.
	* cfgrtl.c (redirect_branch_edge): Ditto.

From-SVN: r166953
This commit is contained in:
Uros Bizjak 2010-11-19 19:56:01 +01:00
parent e4746336dc
commit 0f346928b9
4 changed files with 15 additions and 17 deletions

View File

@ -1,3 +1,9 @@
2010-11-19 Uros Bizjak <ubizjak@gmail.com>
* mode-switching.c (optimize_mode_switching): Use
FOR_BB_INSNS instead of open-coded for loop.
* cfgrtl.c (redirect_branch_edge): Ditto.
2010-11-19 Joern Rennecke <amylaar@spamcop.net> 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
PR target/46436 PR target/46436
@ -32,9 +38,8 @@
before shorts. before shorts.
* opth-gen.awk: Ditto. * opth-gen.awk: Ditto.
* configure.ac: Add support for HeaderInclude and SourceInclude * configure.ac: Add support for HeaderInclude and SourceInclude option
option directives to add the appropriate files to the dependency directives to add the appropriate files to the dependency lists.
lists.
* configure: Regenerate. * configure: Regenerate.
* Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude. * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
(OPTIONS_C_EXTRA): New variable for SourceInclude. (OPTIONS_C_EXTRA): New variable for SourceInclude.
@ -197,8 +202,7 @@
(rs6000_option_override): Ditto. (rs6000_option_override): Ditto.
(rs6000_handle_option): Ditto. (rs6000_handle_option): Ditto.
(rs6000_conditional_register_usage): Add debug trace message. (rs6000_conditional_register_usage): Add debug trace message.
(struct rs6000_opt_mask): New for target attribute/pragma (struct rs6000_opt_mask): New for target attribute/pragma support.
support.
(rs6000_opt_masks): Ditto. (rs6000_opt_masks): Ditto.
(struct rs6000_opt_var): Ditto. (struct rs6000_opt_var): Ditto.
(rs6000_opt_vars): Ditto. (rs6000_opt_vars): Ditto.
@ -230,8 +234,7 @@
(TARGET_DEBUG*): Ditto. (TARGET_DEBUG*): Ditto.
* config/rs6000/rs6000-opts.h: New header file to define the enums * config/rs6000/rs6000-opts.h: New header file to define the enums
that are used in target variables that are now defined in that are used in target variables that are now defined in rs6000.opt.
rs6000.opt.
* config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
rs6000-opts.h. rs6000-opts.h.
@ -266,12 +269,10 @@
2010-11-19 Joseph Myers <joseph@codesourcery.com> 2010-11-19 Joseph Myers <joseph@codesourcery.com>
* common.opt (flag_instrument_functions_exclude_functions, * common.opt (flag_instrument_functions_exclude_functions,
flag_instrument_functions_exclude_files): New Variable flag_instrument_functions_exclude_files): New Variable definitions.
definitions.
* flags.h (flag_instrument_functions_exclude_p): Don't declare. * flags.h (flag_instrument_functions_exclude_p): Don't declare.
* gimplify.c (char_p): Declare type and vectors. * gimplify.c (char_p): Declare type and vectors.
(flag_instrument_functions_exclude_p): Moved from opts.c. Make (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
static.
* opts.c (flag_instrument_functions_exclude_functions, * opts.c (flag_instrument_functions_exclude_functions,
flag_instrument_functions_exclude_files): Remove. flag_instrument_functions_exclude_files): Remove.
(add_comma_separated_to_vector): Take void **. (add_comma_separated_to_vector): Take void **.

View File

@ -1062,8 +1062,7 @@ redirect_branch_edge (edge e, basic_block target)
/* When expanding this BB might actually contain multiple /* When expanding this BB might actually contain multiple
jumps (i.e. not yet split by find_many_sub_basic_blocks). jumps (i.e. not yet split by find_many_sub_basic_blocks).
Redirect all of those that match our label. */ Redirect all of those that match our label. */
for (insn = BB_HEAD (src); insn != NEXT_INSN (BB_END (src)); FOR_BB_INSNS (src, insn)
insn = NEXT_INSN (insn))
if (JUMP_P (insn) && !patch_jump_insn (insn, old_label, target)) if (JUMP_P (insn) && !patch_jump_insn (insn, old_label, target))
return NULL; return NULL;

View File

@ -518,9 +518,7 @@ optimize_mode_switching (void)
} }
} }
for (insn = BB_HEAD (bb); FOR_BB_INSNS (bb, insn)
insn != NULL && insn != NEXT_INSN (BB_END (bb));
insn = NEXT_INSN (insn))
{ {
if (INSN_P (insn)) if (INSN_P (insn))
{ {

View File

@ -25,7 +25,7 @@
* objc.dg/attributes/proto-attribute-3.m: New. * objc.dg/attributes/proto-attribute-3.m: New.
* obj-c++.dg/attributes/proto-attribute-1.mm: Updated. * obj-c++.dg/attributes/proto-attribute-1.mm: Updated.
* obj-c++.dg/attributes/proto-attribute-2.mm: New. * obj-c++.dg/attributes/proto-attribute-2.mm: New.
* obj-c++.dg/attributes/proto-attribute-3.mm: New. * obj-c++.dg/attributes/proto-attribute-3.mm: New.
2010-11-19 Eric Botcazou <ebotcazou@adacore.com> 2010-11-19 Eric Botcazou <ebotcazou@adacore.com>