re PR tree-optimization/15089 (local register variable with a specified register is bad)

PR wrong-code/15089
	* loop.c (scan_loop): Do not move user-specified register
	assignments.

From-SVN: r83684
This commit is contained in:
Philip Blundell 2004-06-25 21:48:38 +00:00 committed by Mark Mitchell
parent 7619c085c5
commit 6ef30017a0
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2004-06-25 Philip Blundell <philb@gnu.org>
PR wrong-code/15089
* loop.c (scan_loop): Do not move user-specified register
assignments.
2004-06-25 DJ Delorie <dj@redhat.com>
* c-common.h (warn_cast_qual, warn_missing_format_attribute,

View File

@ -931,6 +931,7 @@ scan_loop (struct loop *loop, int flags)
|| (! (REG_P (SET_SRC (set))
&& (REGNO (SET_SRC (set))
< FIRST_PSEUDO_REGISTER))))
&& regno >= FIRST_PSEUDO_REGISTER
/* This test is not redundant; SET_SRC (set) might be
a call-clobbered register and the life of REGNO
might span a call. */