From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6849 invoked by alias); 16 Dec 2002 22:39:35 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 6808 invoked from network); 16 Dec 2002 22:39:34 -0000 Received: from unknown (HELO igw3.watson.ibm.com) (129.34.20.18) by sources.redhat.com with SMTP; 16 Dec 2002 22:39:34 -0000 Received: from sp1n293en1.watson.ibm.com (sp1n293en1.watson.ibm.com [9.2.112.57]) by igw3.watson.ibm.com (8.11.4/8.11.4) with ESMTP id gBGMcvc20994; Mon, 16 Dec 2002 17:38:57 -0500 Received: from makai.watson.ibm.com (makai.watson.ibm.com [9.2.216.144]) by sp1n293en1.watson.ibm.com (8.11.4/8.11.4) with ESMTP id gBGMcvT32500; Mon, 16 Dec 2002 17:38:57 -0500 Received: from watson.ibm.com (localhost [127.0.0.1]) by makai.watson.ibm.com (AIX4.3/8.9.3/8.9.3/09-18-2002) with ESMTP id RAA31382; Mon, 16 Dec 2002 17:38:56 -0500 Message-Id: <200212162238.RAA31382@makai.watson.ibm.com> To: Jan Hubicka cc: Zack Weinberg , gcc@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: Re: basic-improvements merge status In-Reply-To: Message from Jan Hubicka of "Mon, 16 Dec 2002 23:23:02 +0100." <20021216222302.GC3138@kam.mff.cuni.cz> Date: Mon, 16 Dec 2002 14:44:00 -0000 From: David Edelsohn X-SW-Source: 2002-12/txt/msg00950.txt.bz2 >>>>> Jan Hubicka writes: >> #ifndef HAVE_SINF >> float >> sinf(float x) >> { >> return (float) sin(x); >> } >> #endif >> >> is being compiled as Jan> I think we can deal with -fno-builtin-fsin to avoid gcc from being Jan> active on optimizing this. Jan> The name sinf is reserved by C90 standard, so this is not valid C. float foo (float x) { return (float) sin(x); } always should be valid without the user having to specify -fno-builtin, as your change requires on systems without sinf(). stubs.c could be compiled with -fno-builtin, but that's just covering up the incorrect assumption in the transformation. David