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: [cft] excise gen_mem_addressof from ia64


Jim Wilson <wilson@specifixinc.com> writes:

> On Sun, 2004-07-04 at 20:40, Zack Weinberg wrote:
>> Why does the union get TImode and not XFmode?
>
> Because it is a union.  If a structure has a field which is the same
> size as the struct, then we give the struct the mode of the field.  But
> we do not do this for unions.  It isn't hard to see why, just because a
> field is the same size as the union containing it does not mean that the
> field is the only element of the struct.
[...]

Thanks for the explanation.  It does sound like a risky thing to change.

> I can make this work by modifying ia64_function_arg to return a PARRALEL
> instead of a TImode FP REG when we have an XFmode HFA extracted from a
> TImode argument.  This is simple and easy enough that there shouldn't be
> any problems resulting from doing this.

I can test this patch for you if you'd like.

zw


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