This is the mail archive of the gcc@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: Split Stacks proposal


Ian Lance Taylor wrote:

> Daniel showed how this can fail for objects with internal pointers.
> This includes __gnu_cxx::__vstring, which is likely to be the default
> std::string class in libstdc++ 7, so this is not an unlikely occurrence.

The C++ standard limits the compiler's ability to introduce copies.  It
says "Here are where copies occur; some of these can be optimized away."
 It doesn't say anything about inserting more copies.  So, depending on
exactly how this works, it might or might not be technically
standard-conforming to introduce copies at this point.

-- 
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]