This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH rs6000] (small C++ patch) Add intrinsics for the new vec_* specified by the C/C++ Language Extension for the CBEA
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Andrew Pinski <Andrew_Pinski at playstation dot sony dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Trevor_Smigiel <Trevor_Smigiel at playstation dot sony dot com>, David Edelsohn <dje dot gcc at gmail dot com>
- Date: Tue, 30 Sep 2008 19:59:33 -0700
- Subject: Re: [PATCH rs6000] (small C++ patch) Add intrinsics for the new vec_* specified by the C/C++ Language Extension for the CBEA
- References: <de8d50360809301900l56f33058k781b528f6cbc793b@mail.gmail.com>
Andrew Pinski wrote:
> I had to add some small support for C++ to support
> COMPOUND_LITERAL_EXPR to say it is a lvalue.
> cp/ChangeLog:
> * tree.c (lvalue_p_1): COMPOUND_LITERAL_EXPR is also an lvalue.
The C++ change is OK if compound literals are lvalues in C. I'm
slightly surprised that they are, but if so, it makes sense to treat
them the same way in C++.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713