public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* multilib and with/without exceptionsand rtti
@ 2004-03-11 19:26 Henning Baldersheim
  2004-03-16  8:48 ` Jim Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Baldersheim @ 2004-03-11 19:26 UTC (permalink / raw)
  To: gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: multilib and with/without exceptionsand rtti
  2004-03-11 19:26 multilib and with/without exceptionsand rtti Henning Baldersheim
@ 2004-03-16  8:48 ` Jim Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2004-03-16  8:48 UTC (permalink / raw)
  To: Henning Baldersheim; +Cc: gcc

Henning Baldersheim wrote:
> 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.

The multilib support isn't designed to solve this problem.  It works 
only for single options.

I think you can sort of get the behaviour you want if you use 
MULTILIB_MATCHES to map the -f{,no-}rtti options to -f{,no-}exceptions, 
and then hack the specs to force rtti on if exceptions is on, and vice 
versa, and likewise for the no- versions of the options.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-16  8:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-11 19:26 multilib and with/without exceptionsand rtti Henning Baldersheim
2004-03-16  8:48 ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).