From: Alan Modra Date: Fri, 28 Mar 2003 23:23:16 +0000 (+0000) Subject: * reload1.c (reload_as_needed): Allow a USE in asm reloads. X-Git-Tag: releases/gcc-3.2.3~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=726b3b9af0ce3b412682872fa987c39311d731e3;p=thirdparty%2Fgcc.git * reload1.c (reload_as_needed): Allow a USE in asm reloads. From-SVN: r64993 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d96ded9873df..65d1d38a5889 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-03-29 Alan Modra + + * reload1.c (reload_as_needed): Allow a USE in asm reloads. + 2003-03-28 Olivier Hainque PR ada/9953 diff --git a/gcc/reload1.c b/gcc/reload1.c index a37a050fd970..0335d4292d4b 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -1,6 +1,6 @@ /* Reload pseudo regs into hard regs for insns that require hard regs. Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of GCC. @@ -3926,6 +3926,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)))) {