Skip to content

Commit 18c33e0

Browse files
andreas-schwabAndreas Schwab
authored andcommitted
re PR rtl-optimization/46395 (FAIL: 22_locale/numpunct/members/pod/2.cc execution test)
PR rtl-optimization/46395 * gcc/postreload.c (reload_combine): Invalidate register use information on all control flow insns. From-SVN: r166820
1 parent 651a20b commit 18c33e0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

gcc/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
2010-11-16 Andreas Schwab <[email protected]>
22

3+
PR rtl-optimization/46395
4+
* postreload.c (reload_combine): Invalidate register use
5+
information on all control flow insns.
6+
37
* config/m68k/m68k.c (m68k_delegitimize_address): Also expect
48
LABEL_REF in UNSPEC operand.
59

gcc/postreload.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,8 +1354,8 @@ reload_combine (void)
13541354
}
13551355

13561356
}
1357-
else if (JUMP_P (insn)
1358-
&& GET_CODE (PATTERN (insn)) != RETURN)
1357+
1358+
if (control_flow_insn_p (insn) && GET_CODE (PATTERN (insn)) != RETURN)
13591359
{
13601360
/* Non-spill registers might be used at the call destination in
13611361
some unknown fashion, so we have to mark the unknown use. */

0 commit comments

Comments
 (0)