Re: [AD] Exceptions, Stack, and Allegro |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Dustin Dettmer wrote:
So whats going to happen with this? Someone proposed it be mentioned in the docs as a warning to C++ programers to simply not do it, but I think thats a bit rash =\. If the optimization is perticularly critical, maybe some form of option when making / installing to add stack support. It would seem to me that the optimization wouldnt do that much anyway, and simplying removing it would fix the issue.
It's not about removing an optimisation, but adding -fexceptions to the gcc command-line (and -shared-libgcc for the shared object). I don't think it will be that easy to selectively add -fexceptions for gui.c and guiproc.c, but if you send in a patch I guess it could be accepted.
Have you considered using setjmp/longjmp instead of throwing exceptions? Peter
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |