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
On Sat, Mar 10, 2001 at 10:58:05PM -0300, Alexandre Oliva wrote:
> On Mar 10, 2001, Daniel Jacobowitz <dmj+@andrew.cmu.edu> wrote:
>
> > If I use the "i#*X" constraint inside the inline function, the
> > compiler seems to first decide to prefer a register (before
> > inlining?), and then attempt to satisfy the constraints when
> > inlining. This fails, obviously:
>
> > mips-vgacon.c: In function `vga_pal_blank':
> > mips-vgacon.c:10: inconsistent operand constraints in an `asm'
>
> I've seen this before. I'm not sure it's a problem in reload, for
> deciding not to touch hardware registers that are output registers of
> asm statements, or in register allocation, for assigning pseudos that
> are output operands of asm statements to hardware registers before
> reload. The problem shows up on mn10300-elf with a program as simple
> as this:
Sounds like a completely different problem - this testcase only dealt
with input operands.
--
Daniel Jacobowitz Debian GNU/Linux Developer
Monta Vista Software Debian Security Team
"I am croutons!"