summaryrefslogtreecommitdiff
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
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
-rw-r--r--gcc/ChangeLog23
-rw-r--r--gcc/cfgrtl.c3
-rw-r--r--gcc/mode-switching.c4
-rw-r--r--gcc/testsuite/ChangeLog2
4 files changed, 15 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0aaa0527db1..912b8d77532 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 66f0b14f2c4..5d64f3af019 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 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))
{
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c80e04246f6..cea7f4414bf 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>