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]
Other format: [Raw text]

Re: Calling convention that gets frame pointer register clobbered


On Mon, 2004-01-05 at 05:34, Etienne Lorrain wrote:
>   I am not sure, but I think that GCC manage BLKmode objects in registers
>  by having their _address_ in register.
>  Just for my curiosity, a question you may know how to answer: When a
>  function returns a structure (bigger than 32 bits) - does it return
>  a BLKmode object?

There is no relationship between constraints and calling conventions. 
They are completely different things.  Using a register constraint means
that the entire object is to be loaded into the register.  This is true
for all targets, regardless of what the ABI says about the object.

How a structure is returned is target dependent.  It is dictated by the
target's ABI.  Different targets do it different ways.  Some load
BLKmode objects into a register, some load the address.  This has
nothing to do with constraints.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


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