This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: sjlj EH
- From: Ian Lance Taylor <iant at google dot com>
- To: Zoltán Tóth <zotw1980 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 25 May 2013 13:57:42 -0700
- Subject: Re: sjlj EH
- References: <CAHjnBsBOtJpsBLz3rgVkYKo12ywnivX+6=_=3Lif-bxT96p71A at mail dot gmail dot com> <alpine dot DEB dot 2 dot 02 dot 1305251935050 dot 4040 at laptop-mg dot saclay dot inria dot fr> <CAHjnBsAFqGh+XQDP7s4LLDqLom_gA_yTCE-5n15uFHyKkkGU5g at mail dot gmail dot com>
On Sat, May 25, 2013 at 10:59 AM, Zoltán Tóth <zotw1980@gmail.com> wrote:
> But that needs one to alter the g++ installation right? That is why it
> is called "configuration"?
>
> I would like to provide my c++ source code with a make-file that
> specifies sjlj EH, because I know it contains many 'throws', so it
> needs cheap handling of exceptions. I may not be able to convince
> users of my program to alter their g++ installation just in order to
> compile my program.
>
> I guess it should be technically possible, as GNAT provides this option:
> http://gcc.gnu.org/onlinedocs/gcc-4.6.4/gnat_ugn_unw/Exception-Handling-Control.html
> But I could not find such (run-time) option for g++.
Yes, it is technically possible. But, yes, there is no command line
option for it. You could add one. In current mainline see
default_except_unwind_info in gcc/common/common-targhooks.c.
Ian