[Patch] Fix libstdc++/34680 in mainline

Paolo Carlini pcarlini@suse.de
Mon Jan 7 01:06:00 GMT 2008


Hi,

now that __GXX_RTTI is available, it's possible to fix the two offending
uses. A subtle point is that, in order to consistently use across
optimization levels the available exported extern template
instantiations, we have to remove the inline specifier: probably, this
is still not bullet proof, but at least I checked that plain calls are
never inlined from -Os to -O3. Another observation, I'm not attempting
anything sophisticated on the other existing uses of run-time type
identification (i.e., dynamic_cast, typeid), in  the debug-mode and TR1
implementations, where we are not risking any regression.

Tested x86_64-linux.

Paolo.

////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_34680_mainline
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20080107/40d5bf26/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_34680_mainline
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20080107/40d5bf26/attachment-0001.ksh>


More information about the Libstdc++ mailing list