From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11577 invoked by alias); 8 Dec 2009 19:34:19 -0000 Received: (qmail 11551 invoked by uid 48); 8 Dec 2009 19:34:08 -0000 Date: Tue, 08 Dec 2009 19:34:00 -0000 Message-ID: <20091208193408.11550.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug other/42333] complex division failure on darwin10 with -lm In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg00864.txt.bz2 ------- 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