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]

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


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