OSDN Git Service

* sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2001 20:24:55 +0000 (20:24 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2001 20:24:55 +0000 (20:24 +0000)
purge_mem_unchanging_flag on all instructions, not just on those
before NOTE_INSN_FUNCTION_BEG.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46091 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/sibcall.c

index 888d814..63dcdbe 100644 (file)
@@ -1,3 +1,9 @@
+2001-10-08  Jeffrey A Law  <law@cygnus.com>
+
+       * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
+       purge_mem_unchanging_flag on all instructions, not just on those
+       before NOTE_INSN_FUNCTION_BEG.
+
 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * cppmacro.c (_cpp_create_definition): Leave comments off.
index 4e979cd..8f52da0 100644 (file)
@@ -746,12 +746,7 @@ optimize_sibling_and_tail_recursive_calls ()
         we actually write into.  */
       for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
        {
-         if (GET_CODE (insn) == NOTE)
-           {
-             if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_FUNCTION_BEG)
-               break;
-           }
-         else if (INSN_P (insn))
+         if (INSN_P (insn))
            purge_mem_unchanging_flag (PATTERN (insn));
        }
     }