reload1.c (reload_as_needed): Allow a USE in asm reloads.

* reload1.c (reload_as_needed): Allow a USE in asm reloads.

	* loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.

From-SVN: r64991
This commit is contained in:
Alan Modra 2003-03-28 23:21:21 +00:00 committed by Alan Modra
parent d869a8c44b
commit 00dcfe8086
3 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-03-29 Alan Modra <amodra@bigpond.net.au>
* reload1.c (reload_as_needed): Allow a USE in asm reloads.
* loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
2003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in: Clarify comments.

View File

@ -10400,6 +10400,8 @@ try_swap_copy_prop (loop, replacement, regno)
}
}
/* Worker function for find_mem_in_note, called via for_each_rtx. */
static int
find_mem_in_note_1 (x, data)
rtx *x;
@ -10414,6 +10416,8 @@ find_mem_in_note_1 (x, data)
return 0;
}
/* Returns the first MEM found in NOTE by depth-first search. */
static rtx
find_mem_in_note (note)
rtx note;

View File

@ -3940,6 +3940,7 @@ reload_as_needed (live_known)
if (asm_noperands (PATTERN (insn)) >= 0)
for (p = NEXT_INSN (prev); p != next; p = NEXT_INSN (p))
if (p != insn && INSN_P (p)
&& GET_CODE (PATTERN (p)) != USE
&& (recog_memoized (p) < 0
|| (extract_insn (p), ! constrain_operands (1))))
{