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] |
On Mon, 2009-09-21 at 13:06 -0400, Jason Merrill wrote:On 09/14/2009 11:54 AM, Jason Merrill wrote:I think the way to go with this is to revert the compiler bits of r149964, not mess with mangle.c at all, and insert the initial * if the typeinfo name won't have TREE_PUBLIC set, since that's precisely the property we want to mirror in comparison.
Thoughts? Another concern I have is that adding an initial * breaks simple demangling of type_info::name(), so I'd like to find another way of marking it for pointer comparison.
What if we have type_info::name() be smart? I.e.
const char* name() { return name[0] == '*' ? name + 1 : name; }
Then the * can still be a flag indicating compare by pointer.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |