This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem in locate_and_pad_parm


> MUST_PASS_IN_STACK is a macro that's meant to represent those cases
> where GCC does not know to pass parameters in registers.  It should *never*
> be overriden.  Instead, the underlying macros should be changed in
> the ports in question.

You can not just change the endianness of the chip to make it conform to
a gcc design decision that was made some ten years ago.
And the knowledge how to pass the parameters in registers is in the tm.h
FUNCTION_ARG, FUNCTION_ARG_ADVANCE etc.

> This is now defined in *a lot* ports.  Each needs to be fixed.

The ports are fine, thank you.  By overriding MUST_PASS_IN_STACK they
can finally provide a working ABI.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]