This is the mail archive of the gcc-patches@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: ia64-hpux fix compat/struct-by-value-5


> This patch fixes the problem, but I do not understand why it works;
> I discovered the idiom by staring at other parts of ia64_function_arg.

Because

> +	return gen_rtx_PARALLEL (mode,
> +		 gen_rtvec (1,
> +                   gen_rtx_EXPR_LIST (VOIDmode,
> +		     gen_rtx_REG (DImode, basereg + cum->words + offset),
> +				      const0_rtx)));

means "pass the argument in register basereg + cum->words + offset as the 
left part of a DImode quantity".

We use the same idiom on SPARC64.

-- 
Eric Botcazou


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