From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5090 invoked by alias); 21 Dec 2010 18:37:41 -0000 Received: (qmail 4995 invoked by uid 22791); 21 Dec 2010 18:37:40 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BG,TW_SG X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Dec 2010 18:37:35 +0000 From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/47032] libgfortran references complex long double functions missing on AIX X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 21 Dec 2010 18:37:00 -0000 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: 2010-12/txt/msg02451.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47032 --- Comment #3 from Steve Kargl 2010-12-21 18:37:21 UTC --- On Tue, Dec 21, 2010 at 05:07:53PM +0000, dje at gcc dot gnu.org wrote: > This is an interaction / assumption problem between the target (AIX) and > libgfortran. libgfortran previously built with GCC 4.4 s, this is a regression > because libgfortran is relying on more OS features without providing an > alternative. And disabling all long double support (which works in G++) or > disabling libgfortran on AIX because of this issue seems like a bad options. > libgfortran/configure.ac has lines of the form (note I wrapped the line) AC_CHECK_LIB([m],[copysignl],[AC_DEFINE([HAVE_COPYSIGNL],[1],\ [libm includes copysignl])]) So, configure is already checking if libm contains the the "long double functions". The problem appears to be that AC_CHECK_LIB is a compile only test, and these tests appear to pass on AIX. AIX rquires a link time test to either unseti, e.g., HAVE_COPYSIGNL or configure in general should do a link time tests instead of a compile time tests to ensure the HAVE_* macros are unset.