On 05/31/2011 11:30 AM, Kai Tietz wrote:
The issue is that in
combination of 32-bit and 64-bit we need to default here to SjLj,

Ok, then what you're testing is actually whether you're using sjlj or dw2 unwinding. config/i386/cygming.h will ensure that this is the same as testing TARGET_BI_ARCH and TARGET_64BIT_DEFAULT.

Then you can just pass EH_MODEL or SHLIB_SONAME down to libgcc via libgcc.mvars, and look at it in libgcc/config.host to pick the appropriate header.

Paolo

Reply via email to