summaryrefslogtreecommitdiff
path: root/gcc/mode-switching.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-19 18:56:01 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-19 18:56:01 +0000
commit50b15e044e3de278d9190699311f8017ce9c2ed8 (patch)
treeed75747dcbf5343045912de3228853e33c3f3462 /gcc/mode-switching.c
parentd9f835a6699e5476a1bfc4bddd73856dd5161d49 (diff)
downloadgcc-50b15e044e3de278d9190699311f8017ce9c2ed8.tar.gz
* mode-switching.c (optimize_mode_switching): Use
FOR_BB_INSNS instead of open-coded for loop. * cfgrtl.c (redirect_branch_edge): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166953 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mode-switching.c')
-rw-r--r--gcc/mode-switching.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/mode-switching.c b/gcc/mode-switching.c
index 88dca023df9..d4c7b24b981 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))
{