This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Recompiling troubles.... Was Re: Strange behaviour in C++...
- To: "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de>
- Subject: Re: Recompiling troubles.... Was Re: Strange behaviour in C++...
- From: Fredrik Öhrström <d92-foh@nada.kth.se>
- Date: Tue, 31 Aug 1999 09:37:31 +0200 (MET DST)
- cc: gcc@gcc.gnu.org
On Tue, 31 Aug 1999, Martin v. Loewis wrote:
> Your best bet is to change the compiler internals altogether; in
> config/linux.h it says DEFAULT_VTABLE_THUNKS.
OK,
> Unfortunately, with the way Linux libio/stdio/iostream works, you also
> have to recompile the C library, because it uses thunks as well.
The glibc library? Arggggg.....
> There is always a work-around: Don't call virtual functions inside
> destructors. This suggestion may sound strange, but it is meant
> seriously: If you need to make your code work, it is best to accept
> the restriction, instead of relying on flaky patches and untested
> features. Of course, if you are willing to experiment, and if you
> accept to totally break your compiler, I definitely encourage you to
> try the patch. To install it, go into the cp directory and invoke
Hmmm, I am not calling any virtual functions in destructors. I assume
you meant constructors. Anyway, that is not an option. I use CORBA
which means a lot of abstract (virtual) base classes that defines
interfaces. The cast to an interface class is not done by me but
implicitly when I call another method which only takes a pointer
to such an interface as an argument.
> patch < patchfile.html
Ok, so I'll run it in the cp directory. Thanks.
//Fredrik