This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A completely different approach to EH runtime
- To: rth at redhat dot com (Richard Henderson)
- Subject: Re: A completely different approach to EH runtime
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Fri, 23 Feb 2001 15:09:12 -0800 (PST)
- Cc: zackw at stanford dot edu (Zack Weinberg), aoliva at redhat dot com (Alexandre Oliva), dje at watson dot ibm dot com (David Edelsohn), hzoli at austin dot ibm dot com (Hidvegi), gcc at gcc dot gnu dot org
> On Fri, Feb 23, 2001 at 01:53:25PM -0800, Zack Weinberg wrote:
> > The last time you tried to explain this I didn't understand it, but
> > this time I do. I'm now wondering how lethal this is to the RTTI
> > scheme and whether we can do anything about _that_ before 3.0.
Richard Henderson writes:
> Yep, the same thing we do for targets without linkonce.
> Namely, strcmp vs pointer equality.
I strongly agree with Richard's suggestion. We must treat linkonce as
only an optimization, never relying on it for correct functionality --
especially because the concept doesn't exist on some target platforms,
but even where it does exist, there are difficulties, both with dynamic
loading and with other types of partial linking.