Fwd: [PATCH] Fix may_alias canonical types regression

Mark Mitchell mark@codesourcery.com
Mon Oct 6 16:28:00 GMT 2008


Doug Gregor wrote:

> 2008-10-01  Douglas Gregor  <doug.gregor@gmail.com>
> 
> 	PR c++/37553
> 	* tree.c (build_type_attribute_qual_variant): Hash on the
> 	unqualified type, and don't overwrite an existing
> 	(type_hash_eq): Make the TYPE_NAME of the types significant, to
> 	allow distinguishing between wchar_t and its underlying type. This
> 	also means that we'll retain a little more typedef information.
> 
> 2008-10-01  Douglas Gregor  <doug.gregor@gmail.com>
> 
> 	PR c++/37553
> 	* g++.dg/ext/alias-canon2.C: New.

This seems sensible.  However, I think it would be useful to measure the
memory footprint of GCC with this change on some big C++ code.
(libstdc++ or Boost++ or some such).  DECLs are big, and if we have a
whole lot more of them, we might be unhappy, and want to look for
another way to solve this.  So, would you please measure and report?

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list