From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17201 invoked by alias); 22 Feb 2011 13:26:20 -0000 Received: (qmail 17191 invoked by uid 22791); 22 Feb 2011 13:26:19 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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, 22 Feb 2011 13:26:16 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/39570] cabs and cabsf are named differently on NetBSD 5 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: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC 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, 22 Feb 2011 13:42: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: 2011-02/txt/msg02588.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39570 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cato at df dot lth.se --- Comment #11 from Tobias Burnus 2011-02-22 13:25:53 UTC --- I just checked CC the one of the two NetBSD maintainers who has been last active... * * * CVS_RSH="ssh" cvs -d "anoncvs@anoncvs.NetBSD.org:/cvsroot" co src/lib/libm/ and libm/compat contains only compat_cabsf and compat_cabs.c, which use a struct instead of complex. That those are the only math-related changes, one sees if on greps for __RENAME in CVS_RSH="ssh" cvs -d "anoncvs@anoncvs.NetBSD.org:/cvsroot" co src/include/ i.e. complex.h contains: #ifndef __LIBM0_SOURCE__ /* avoid conflict with historical cabs(struct complex) */ double cabs(double complex) __RENAME(__c99_cabs); float cabsf(float complex) __RENAME(__c99_cabsf); #endif * * * Regarding the patch (cf. comment 3): Darwin has the files darwin.c in ./gcc/config/, which is included via ./gcc/config.gcc's tm_p_file="${tm_p_file} darwin-protos.h" target_gtfiles="\$(srcdir)/config/darwin.c" extra_objs="darwin.o" One probably needs to do likewise for "*-*-netbsd*)". In darwin.c, see darwin_patch_builtins and darwin_patch_builtin. Those are used via SUBTARGET_INIT_BUILTINS in some ./gcc/config/* files.