Hi Danny,

Somehow I missed this mail entirely.  Sorry for that.
In case it still helps and for the record, I'll reply below.  Probably
you've found this stuff out by yourself by now.

Danny Backx wrote:
> On Sun, 2007-06-03 at 19:01 +0100, Pedro Alves wrote:
>> The exception c++ model that both mingw32ce and cegcc use is the sjlj model.
>> It is similar with the SEH model on x86.  It certainly works.
>>
>> SEH is an OS thing, so it always works, but it happens that registering
>> handlers manually is much harder on ARM than it is on x86/9x/NT.
> 
> Pedro,
> 
> I've been trying to figure out what kind of exception handling gcc
> supports.
> 
> I started by simply trying to use -fexceptions, but that doesn't appear
> to influence what the compiler does. I tried it on
> arm-wince-mingw32ce-gcc, the size of the .o file produced doesn't
> change.
> 

That's a C++ option.  It is easier to see the reverse.  -fno-exceptions.

> Trying the same on the x86 gcc that comes with my Linux distribution,
> this does produce a larger .o file. Objdump reveals that something
> called ".eh_frame" is added.
> 

Look around for sjlj vs dwarf exceptions.

> I then looked at the gcc sources, and found a configure option called
> --enable-sjlj-exceptions . Even with that turned on, I don't see a
> difference in the .o file produced by the ARM compiler.
> 

That's because it is the default.

> The src/gcc/gcc/doc directory comes up almost empty if you grep for
> SJLJ, and src/gcc/gcc/except.[ch] don't contain much documentation
> either.
> 
> What am I missing ?
> 

To grep for lowercase sjlj?  :)

Cheers,
Pedro Alves


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to