This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ia64-hpux fix compat/struct-by-value-5
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: "Zack Weinberg" <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org,Jim Wilson <wilson at specifixinc dot com>
- Date: Tue, 17 Feb 2004 09:38:28 +0100
- Subject: Re: ia64-hpux fix compat/struct-by-value-5
- References: <87smhaunnd.fsf@egil.codesourcery.com>
> 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