x86 EH on BSD/OS with snapshot gas not working..
Shigeya Suzuki
shigeya@foretune.co.jp
Wed Jan 7 15:30:00 GMT 1998
>>>>> "robertl" == Robert Lipe <robertl@dgii.com> writes:
robertl> If you can see that sjlj-exceptions isn't set on your target, you
robertl> can manually enable it via the -fsjlj-exceptions flag to the gcc
robertl> command line. If adding this flag to whatever eh torture test
robertl> you were looking at makes it pass, then we can discuss either how
robertl> to make this the default or how to figure out what's going on with
robertl> the dwarf2 stuff.
Bingo. It seems to be working now.
I'll read except.c source anyway..
pooh 373% egcs-g++ -S esample.cpp ; head esample.s
.file "esample.cc"
# GNU C++ version egcs-2.91.03 971225 (gcc-2.8.0) (i386-pc-bsdi3.1)
compiled by GNU C version egcs-2.91.03 971225 (gcc-2.8.0).
# options passed:
# options enabled: -fpeephole -ffunction-cse -fkeep-static-consts
# -freg-struct-return -fexceptions -fcommon -fverbose-asm -fgnu-linker
# -fargument-alias -m80387 -mhard-float -mno-soft-float -mieee-fp
# -mfp-ret-in-387 -mschedule-prologue -mcpu=i386 -march=pentium
gcc2_compiled.:
___gnu_compiled_cplusplus:
pooh 374% egcs-g++ -fsjlj-exceptions -S esample.cpp ; head esample.s
.file "esample.cc"
# GNU C++ version egcs-2.91.03 971225 (gcc-2.8.0) (i386-pc-bsdi3.1)
compiled by GNU C version egcs-2.91.03 971225 (gcc-2.8.0).
# options passed: -fsjlj-exceptions
# options enabled: -fpeephole -ffunction-cse -fkeep-static-consts
# -freg-struct-return -fexceptions -fsjlj-exceptions -fcommon
-fverbose-asm
# -fgnu-linker -fargument-alias -m80387 -mhard-float -mno-soft-float
# -mieee-fp -mfp-ret-in-387 -mschedule-prologue -mcpu=i386
-march=pentium
gcc2_compiled.:
___gnu_compiled_cplusplus:
pooh 374% egcs-g++ -fsjlj-exceptions esample.cpp
pooh 375% ./a.out
pooh 376% egcs-g++ -fsjlj-exceptions eh6.C
pooh 377% ./a.out
Unwind works!
More information about the Gcc-bugs
mailing list