diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2010-11-19 19:56:01 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2010-11-19 19:56:01 +0100 |
commit | 0f346928b9890d52e148d431d943d520e19701f2 (patch) | |
tree | ed75747dcbf5343045912de3228853e33c3f3462 /gcc | |
parent | e4746336dc92c73ec67159365f86b56b216417aa (diff) | |
download | gcc-0f346928b9890d52e148d431d943d520e19701f2.zip gcc-0f346928b9890d52e148d431d943d520e19701f2.tar.gz gcc-0f346928b9890d52e148d431d943d520e19701f2.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 23 | ||||
-rw-r--r-- | gcc/cfgrtl.c | 3 | ||||
-rw-r--r-- | gcc/mode-switching.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 2 |
4 files changed, 15 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0aaa052..912b8d7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> PR target/46436 @@ -32,9 +38,8 @@ before shorts. * opth-gen.awk: Ditto. - * configure.ac: Add support for HeaderInclude and SourceInclude - option directives to add the appropriate files to the dependency - lists. + * configure.ac: Add support for HeaderInclude and SourceInclude option + directives to add the appropriate files to the dependency lists. * configure: Regenerate. * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude. (OPTIONS_C_EXTRA): New variable for SourceInclude. @@ -197,8 +202,7 @@ (rs6000_option_override): Ditto. (rs6000_handle_option): Ditto. (rs6000_conditional_register_usage): Add debug trace message. - (struct rs6000_opt_mask): New for target attribute/pragma - support. + (struct rs6000_opt_mask): New for target attribute/pragma support. (rs6000_opt_masks): Ditto. (struct rs6000_opt_var): Ditto. (rs6000_opt_vars): Ditto. @@ -230,8 +234,7 @@ (TARGET_DEBUG*): Ditto. * config/rs6000/rs6000-opts.h: New header file to define the enums - that are used in target variables that are now defined in - rs6000.opt. + that are used in target variables that are now defined in rs6000.opt. * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to rs6000-opts.h. @@ -266,12 +269,10 @@ 2010-11-19 Joseph Myers <joseph@codesourcery.com> * common.opt (flag_instrument_functions_exclude_functions, - flag_instrument_functions_exclude_files): New Variable - definitions. + flag_instrument_functions_exclude_files): New Variable definitions. * flags.h (flag_instrument_functions_exclude_p): Don't declare. * gimplify.c (char_p): Declare type and vectors. - (flag_instrument_functions_exclude_p): Moved from opts.c. Make - static. + (flag_instrument_functions_exclude_p): Moved from opts.c. Make static. * opts.c (flag_instrument_functions_exclude_functions, flag_instrument_functions_exclude_files): Remove. (add_comma_separated_to_vector): Take void **. diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 66f0b14..5d64f3a 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -1062,8 +1062,7 @@ redirect_branch_edge (edge e, basic_block target) /* When expanding this BB might actually contain multiple jumps (i.e. not yet split by find_many_sub_basic_blocks). Redirect all of those that match our label. */ - for (insn = BB_HEAD (src); insn != NEXT_INSN (BB_END (src)); - insn = NEXT_INSN (insn)) + FOR_BB_INSNS (src, insn) if (JUMP_P (insn) && !patch_jump_insn (insn, old_label, target)) return NULL; diff --git a/gcc/mode-switching.c b/gcc/mode-switching.c index 88dca02..d4c7b24 100644 --- a/gcc/mode-switching.c +++ b/gcc/mode-switching.c @@ -518,9 +518,7 @@ optimize_mode_switching (void) } } - for (insn = BB_HEAD (bb); - insn != NULL && insn != NEXT_INSN (BB_END (bb)); - insn = NEXT_INSN (insn)) + FOR_BB_INSNS (bb, insn) { if (INSN_P (insn)) { diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c80e042..cea7f44 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -25,7 +25,7 @@ * objc.dg/attributes/proto-attribute-3.m: New. * obj-c++.dg/attributes/proto-attribute-1.mm: Updated. * 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> |