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: [PATCH rs6000] (small C++ patch) Add intrinsics for the new vec_* specified by the C/C++ Language Extension for the CBEA


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


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