From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11886 invoked by alias); 4 May 2006 01:52:26 -0000 Received: (qmail 11869 invoked by uid 48); 4 May 2006 01:52:18 -0000 Date: Thu, 04 May 2006 01:52:00 -0000 Message-ID: <20060504015218.11868.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/27413] compiling with -ansi puts in broken version of atanh In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-05/txt/msg00324.txt.bz2 List-Id: ------- Comment #4 from pinskia at gcc dot gnu dot org 2006-05-04 01:52 ------- t1.c: In function 'main': t1.c:5: warning: implicit declaration of function 'atanh' t1.c:5: warning: format '%f' expects type 'double', but argument 3 has type 'int' You need either -std=c99 or not use -ansi as atanh is a C99 math function and not part of C90. Also this is more of a glibc issue than a GCC one. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27413