This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch: c++ support for vector opaque types
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Aldy Hernandez <aldyh at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: 01 Jul 2003 20:52:06 -0700
- Subject: Re: patch: c++ support for vector opaque types
- References: <20030627011711.GA30139@redhat.com> <wvlvfus5duu.fsf@prospero.boston.redhat.com>
On Thu, 2003-06-26 at 21:44, Jason Merrill wrote:
> On Thu, 26 Jun 2003 21:17:11 -0400, Aldy Hernandez <aldyh@redhat.com> wrote:
>
> > *************** standard_conversion (tree to, tree from,
> > *** 767,772 ****
> > --- 768,778 ----
> >
> > return conv;
> > }
> > +
> > + if (fcode == VECTOR_TYPE && tcode == VECTOR_TYPE
> > + && ((*targetm.vector_opaque_p) (from)
> > + || (*targetm.vector_opaque_p) (to)))
> > + return conv;
>
> This would give this conversion identity rank, which is wrong; it should be
> a STD_CONV, like conversions between arithmetic types.
Furthermore, that choice needs to be documented in the manual.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com