Port-m68k archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: More toolchain issues



frank%phoenix.owl.de@localhost (Frank Wille) writes:

>Martin Husemann wrote:

>> On Tue, Sep 29, 2009 at 03:04:35PM +0200, Frank Wille wrote:
>>> We should check the M68k/V.4-ABI specs, but I guess that the ABI defines
>>> d0, d1, a0 and a1 as volatile registers over a function call. Integers
>>> are returned in d0, (64-bit in d0/d1 ?) and pointers in a0.
>> 
>> Yes, we should check. gcc considers (CALL_USED_REGISTERS) d0/d1/a0/a1/a7
>> as clobbered by a function call.

>Right.

%a0 _is_ already clobbered by the CERROR routine, we can safely assume
that this is allowed and clobbering it again with a useful value cannot
do any harm.

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index