OSDN Git Service

* mode-switching.c (optimize_mode_switching): Use
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Nov 2010 18:56:01 +0000 (18:56 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Nov 2010 18:56:01 +0000 (18:56 +0000)
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

gcc/ChangeLog
gcc/cfgrtl.c
gcc/mode-switching.c
gcc/testsuite/ChangeLog

index 0aaa052..912b8d7 100644 (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>
 
        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.
        (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.
        (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.
 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 **.
index 66f0b14..5d64f3a 100644 (file)
@@ -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;
 
index 88dca02..d4c7b24 100644 (file)
@@ -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))
                {
index c80e042..cea7f44 100644 (file)
@@ -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>