2009/11/30 Richard W.M. Jones <[email protected]>:
> On Mon, Nov 30, 2009 at 11:56:46AM +0200, Kalev Lember wrote:
>> To work around that, upstream mingw has a patch to annotate
>> functions which support unwinding with SEH with
>> __attribute__((seh_aware)). I've tested that patch and it really
>> does fix binary compatibility with binaries produced by Visual
>> Studio.
>
> I'm not quite sure I understand this bit - which functions
> need to be annotated?
>
>> Switching to DWARF2 is needed to fix binary compatibility with
>> upstream mingw gcc 4 compiler. Besides that, SJLJ has runtime cost
>> in the common case when no exceptions are thrown; DWARF2 doesn't
>> have that problem. MinGW upstream also thinks that DWARF2 should be
>> made default in FSF GCC in the future [2].
>>
>> [2] http://thread.gmane.org/gmane.comp.gnu.mingw.devel/3331/focus=3348
>
> MinGW thinks this, but what about the GCC developers? I think I
> trust GCC upstream much more than MinGW ...
GCC upstream doesn't know of this feature, and it was never announced
nor suggested there AFAIK.
I would welcome the extension of supporting SEH in gcc pretty much, as
everybody else, but AFAIC read by this thread, it is more a hack to
ABI, and not necessarily a real SEH support of gcc.
> OTOH if it's just a matter of setting a configure flag, then it
> doesn't matter too much.
About this I have doubts. As it would need a lot of changes in libgcc
for supporting this attribute.
Cheers,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
_______________________________________________
fedora-mingw mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw