This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Inlining bug on MIPS - both 2.95.3 and 3.0 branches
- To: Geoff Keating <geoffk at geoffk dot org>
- Subject: Re: Inlining bug on MIPS - both 2.95.3 and 3.0 branches
- From: Daniel Jacobowitz <dmj+ at andrew dot cmu dot edu>
- Date: Fri, 9 Mar 2001 23:46:42 -0500
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <20010309181002.A30338@nevyn.them.org> <jm4rx2w80r.fsf@geoffk.org>
On Fri, Mar 09, 2001 at 08:41:08PM -0800, Geoff Keating wrote:
> If an asm statement specifies "ir", it will get an immediate or a register
> depending on the whim of the compiler.
>
> I expect that what happened is that the asm statement had a register
> for that argument, reload saw that the constraint matched, and
> so no further processing was done. If the constraint was "i",
> reload would see that the constraint did not match and continue
> processing, and one of the things it'd try is to replace the register
> with its constant value.
Right. Is there any way to define an inline asm in an inline function
with an "i" constraint for an argument of the function, though? I get
(obviously) constraint violation errors. I'm assuming this needs to
become a macro.
--
Daniel Jacobowitz Debian GNU/Linux Developer
Monta Vista Software Debian Security Team
"I am croutons!"