where are caller-save addresses legitimized?

Greg McGary greg.mcgary@ericsson.com
Fri May 7 20:54:00 GMT 2010


On 05/05/10 21:27, Jeff Law wrote:
> On 05/05/10 21:34, Greg McGary wrote:
>    
>> On 05/05/10 20:21, Jeff Law wrote:
>>      
>>> I'm not sure they are ever legitimized -- IIRC caller-save tries to only
>>> generate addressing modes which are safe for precisely this reason.
>>>        
>> Apparently not so: caller save is quite capable of producing invalid
>> offsets.
>> Perhaps my port needs some hook to help GCC produce good addresses?
>> I've been looking, but haven't found it yet...
>>      
> Try != successful :(
>
> You might want to look at his code in init_caller_save:
>    

Unfortunately, that didn't yield any clues.  I'll proceed by building 
some well-established RISCy target and see what it does in similar 
circumstances.

G



More information about the Gcc mailing list