diff options
author | Alan Modra <amodra@bigpond.net.au> | 2003-03-28 23:21:21 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2003-03-29 09:51:21 +1030 |
commit | 00dcfe8086bf78d40d74a44235fdc8b9f77a062e (patch) | |
tree | 2ddffa1f7579c82b4e17f87478fa9486fb5b18fd | |
parent | d869a8c44bae17ed583a03c85a0e00bc28397eb7 (diff) | |
download | gcc-00dcfe8086bf78d40d74a44235fdc8b9f77a062e.zip gcc-00dcfe8086bf78d40d74a44235fdc8b9f77a062e.tar.gz gcc-00dcfe8086bf78d40d74a44235fdc8b9f77a062e.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/loop.c | 4 | ||||
-rw-r--r-- | gcc/reload1.c | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 757f7c0..b345fd7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. @@ -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; diff --git a/gcc/reload1.c b/gcc/reload1.c index de995a0..1ae8990 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -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)))) { |