More on addressof: how to fix the backends that use them?

Richard Henderson rth@redhat.com
Sun Jun 6 20:15:00 GMT 2004


On Tue, Jun 01, 2004 at 11:34:13PM +0200, Steven Bosscher wrote:
> rtx
> alpha_gp_save_rtx (void)
> {
>   rtx r = get_hard_reg_initial_val (DImode, 29);
>   if (GET_CODE (r) != MEM)
>     r = gen_mem_addressof (r, NULL_TREE, /*rescan=*/true);
>   return r;
> }
> 
> What can this code be replaced with such that it does not
> create an ADDRESSOF?

Use a memory.  I don't much care if systems with the buggy ld
get a teeny bit slower.


r~



More information about the Gcc mailing list