This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
multilib and with/without exceptionsand rtti
- From: Henning Baldersheim <henning dot baldersheim at devoll dot no>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 11 Mar 2004 10:09:23 -0800
- Subject: multilib and with/without exceptionsand rtti
Hi
I would like to have different libraries for use with and without
exceptions. The reason is codesize. I see that when I use any features from
stl, almost everything is linked in due to libsup++ compiled with
exceptions. functexecpt.cc makes references all over the place.
So I thought that then I could use the multilib feature to make different
libraries. I have looked at gccint.info and Fragments there. It worked well
when I added the fexception/fno-exception option. However I would like to
use the pair -fexceptions -frtti and -fno-exceptions -fno-rtti. Especially
since -fno-rtti is incompatible with -exceptions. I tried excluding
*fexception/*fno-rtti. It almost worked, but since the default is
-fexceptions -frtti, it failed when it applied only -fno-rtti.
How do I go about to do what I want most elegantly ?
Is it possible so say that -fno-rtti requires -fno-exceptions ?
Henning