[Bug other/42333] complex division failure on darwin10 with -lm
developer at sandoe-acoustics dot co dot uk
gcc-bugzilla@gcc.gnu.org
Tue Dec 8 20:51:00 GMT 2009
------- Comment #9 from developer at sandoe-acoustics dot co dot uk 2009-12-08 20:51 -------
> version 125.0.0)
> /usr/lib/system/libmathCommon.A.dylib (compatibility version 1.0.0,
> current version 315.0.0)
> [macbook] f90/bug% nm /usr/lib/libSystem.B.dylib | grep divdc3
> 0019fa1e S $ld$hide$os10.4$___divdc3
> 0019fa1f S $ld$hide$os10.5$___divdc3
> 001640d0 T ___divdc3
This will cause a difference in behavior:
for Darwin9
___divdc3 is provided by /usr/lib/libgcc_s.1.dylib
libm.dylib => libSystem.dylib (which does not define ___divdc3)
So, for darwin 10, -lm will cause the "system ___divdc3" to be used instead of
the gcc one.
For Darwin 9 there is no "system provided ___divdc3" (AFAICT) .. it is supplied
from libgcc_s.1.dylib.
if this is a reproducible effect with a short piece of code - one would expect
if to manifest using Apple's supplied 4.2 ... and a radar could be filed.
I was under the impression that -lm was not used by default for Darwin
(determined in the build of the gcc driver) - is this flag being manually added
by the test case?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42333
More information about the Gcc-bugs
mailing list