------- Comment #5 from dominiq at lps dot ens dot fr 2009-12-08 19:34 ------- Additional information:
(1) I don't see the problem on (i686|x86_64)-apple-darwin9. (2) I also see it gcc version 4.4.2 (GCC). (3) I don't see it with gcc version 4.2.1 (Apple Inc. build 5646) (dot 1). (3) If I compile the test with 4.4.2 or 4.5 with -c, and link the object file with gcc version 4.2.1 (Apple Inc. build 5646) (dot 1), I get the abort with/without -lm. (4) If I do the opposite (object with 4.2, link with 4.5), I don't get the abort even with -lm. (5) collect2 for 4.2: /usr/libexec/gcc/i686-apple-darwin10/4.2.1/collect2 -dynamic -arch x86_64 -macosx_version_min 10.6.2 -weak_reference_mismatches non-weak -o a.out -lcrt1.10.6.o -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 -L/usr/lib/i686-apple-darwin10/4.2.1 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../i686-apple-darwin10/4.2.1 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../.. pr42074.o -lSystem -lgcc -lSystem So my second conclusion in comment #3 may be wrong. I think (2) answer the question in comment #4. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42333