This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Split Stacks proposal
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Mathieu Lacage <mathieu dot lacage at sophia dot inria dot fr>, gcc at gcc dot gnu dot org
- Date: Mon, 02 Mar 2009 12:16:42 -0800
- Subject: Re: Split Stacks proposal
- References: <m3d4d497lk.fsf@google.com> <1235722210.15361.40.camel@diese.inria.fr> <m31vtj7rcs.fsf@google.com>
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