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: More on addressof: how to fix the backends that use them?


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~


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