This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: rfc: auto-casted vector types
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Aldy Hernandez <aldy at andrews dot edu>
- Cc: Aldy Hernandez <aldyh at redhat dot com>, GCC Mailinglist <gcc at gcc dot gnu dot org>, Nick Clifton <nickc at redhat dot com>, Jim Wilson <wilson at redhat dot com>
- Date: Mon, 17 Feb 2003 11:57:28 -0800
- Subject: Re: rfc: auto-casted vector types
- References: <53F4DBCE-42AC-11D7-86B9-000393750C1E@andrews.edu>
Aldy Hernandez <aldy@andrews.edu> writes:
> ping.
>
> could i get some comments on this, or the patches look sensible enough
> to submit for inclusion?
It looks decent to me. I would suggest that here
>> + @findex TARGET_VECTOR_TYPES_COMPATIBLE
>> + @item TARGET_VECTOR_TYPES_COMPATIBLE(@var{tree1}, @var{tree2})
>> + Define this macro to return nonzero if no cast is needed when copying
>> + a value of type @var{tree1} to a value of type @var{tree2}.
you say that this works only for vector types (I realize this is
implied by the name, but it should be said explicitly anyway); and
rather than putting #ifdefs in c-typeck.c, make this a target hook
whose default is 'always return 0'.
zw