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: Fwd: [PATCH] Fix may_alias canonical types regression


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


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