Bugs in MIPS FUNCTION_ARG_REGNO_P ?

Mark Mitchell mark@codesourcery.com
Wed Mar 3 08:09:00 GMT 2004


Richard Henderson wrote:
> On Tue, Mar 02, 2004 at 11:25:21PM -0800, Mark Mitchell wrote:
> 
>>What exactly do you believe to be correct?  The macro implementation, or 
>>the statement that the O64 ABI does not use floating-point registers for 
>>arugment-passing?
> 
> 
> O64 has no official document describing it.  It is effectively defined by
> the macros in gcc.  I would strongly recommend against changing anything.

Oh, I agree!

The point is that the current state is internally inconsistent.

We (a) use fp regs for arg-passing, and (b) tell the middle-end that we 
do not.  That seems like a recipe for wrong-code through some incorrect 
optimization to me.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com



More information about the Gcc mailing list