This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem in hfa_element_mode for IA64
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: rth at redhat dot com, gcc at gcc dot gnu dot org
- Date: Mon, 01 Apr 2002 00:52:06 +0200
- Subject: Re: Problem in hfa_element_mode for IA64
- References: <10203312242.AA25281@vlsi1.ultra.nyu.edu>
kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:
> > But Arr1 is SImode since layout_type sets its mode to an integer mode.
>
> This seems weird.
>
> Why? We do it for records.
>
> Suppose we have an array of two chars with alignment of two bytes. Shouldn't
> it be HImode?
Wouldn't this mean that two consecutive writes to both characters are
combined into a single halfword write?