This is the mail archive of the gcc-help@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]

Re: sjlj EH


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


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