Awesome.
With trunk, your 3 previous patches, my config/darwin.h patch for the
link line, and your further patch for visibility:
[EMAIL PROTECTED] /opt/gccmath/bin/gcc -o test test.c -msselibm
[EMAIL PROTECTED] otool -Lv test
test:
/opt/gccmath/lib/libgcc-math.0.dylib (compatibility version
1.0.0, current version 1.0.0)
time stamp 1138831883 Wed Feb 1 14:11:23 2006
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 88.1.5)
time stamp 1137810491 Fri Jan 20 18:28:11 2006
[EMAIL PROTECTED] ./test
0.999816
Also, using nm I see that only the intentional support API is global.
[EMAIL PROTECTED] nm -g -f /opt/gccmath/lib/libgcc-math.0.dylib | grep -v
" U "
000033a0 T ___libm_sse2_acos
00003080 T ___libm_sse2_acosf
00004460 T ___libm_sse2_asin
00005580 T ___libm_sse2_asinf
000139a0 T ___libm_sse2_atan
00005a40 T ___libm_sse2_atan2
0000a6c0 T ___libm_sse2_atan2f
00017660 T ___libm_sse2_cos
00015f80 T ___libm_sse2_cosf
0000add0 T ___libm_sse2_exp
0000b250 T ___libm_sse2_expf
0000ce90 T ___libm_sse2_log10
0000cfc0 T ___libm_sse2_log10f
0000e4b0 T ___libm_sse2_powf
00018a30 T ___libm_sse2_sin
0001acb0 T ___libm_sse2_sinf
0001adf0 T ___libm_sse2_tan
00021270 T ___libm_sse2_tanf
[EMAIL PROTECTED]
Thank you very much! Bootstrapped on i386-apple-darwin8.4.1
Shantonu
On Feb 1, 2006, at 1:10 PM, Richard Guenther wrote:
Can you try the attached patch (it's not perfect as it misses to
export some
of the symbols due to the simple #define hack not working for them)
and
see if in principle it would solve the issue on Darwin?
Thanks,
Richard.
<p8-6>