]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/46395 (FAIL: 22_locale/numpunct/members/pod/2.cc execution...
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 16 Nov 2010 20:17:31 +0000 (20:17 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Tue, 16 Nov 2010 20:17:31 +0000 (20:17 +0000)
PR rtl-optimization/46395
* gcc/postreload.c (reload_combine): Invalidate register use
information on all control flow insns.

From-SVN: r166820

gcc/ChangeLog
gcc/postreload.c

index 9481c8942f45d31c1bb566e29dd5808b427683e9..5ed02311dacfc97da635f7758ca04a8099f963f1 100644 (file)
@@ -1,5 +1,9 @@
 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
 
+       PR rtl-optimization/46395
+       * postreload.c (reload_combine): Invalidate register use
+       information on all control flow insns.
+
        * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
        LABEL_REF in UNSPEC operand.
 
index 1fc9bfc50f621bcb96541d004cd509efd50c9e3a..4d3bae4f320073696958b1aa9015c44a7db9ec49 100644 (file)
@@ -1354,8 +1354,8 @@ reload_combine (void)
             }
 
        }
-      else if (JUMP_P (insn)
-              && GET_CODE (PATTERN (insn)) != RETURN)
+
+      if (control_flow_insn_p (insn) && GET_CODE (PATTERN (insn)) != RETURN)
        {
          /* Non-spill registers might be used at the call destination in
             some unknown fashion, so we have to mark the unknown use.  */