From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7971 invoked by alias); 4 May 2006 01:23:18 -0000 Received: (qmail 7946 invoked by uid 48); 4 May 2006 01:23:09 -0000 Date: Thu, 04 May 2006 01:23:00 -0000 Subject: [Bug c/27413] New: compiling with -ansi puts in broken version of atanh X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "anonymous at mailinator dot com" 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/msg00320.txt.bz2 List-Id: If you use -ansi to compile a program that uses the atanh function, the compiler somehow replaces atanh with a function that just returns 0. I think the compiler should either put in the correct atanh function or refuses to link/compile. The following shows how to reproduce the bug: $ cat > bug.c #include #include #include int main() { printf("atanh(%f) returns %f!\n",.32,atanh(.32)); return 0;} $ gcc bug.c -o bug.exe -lm && bug.exe atanh(0.320000) returns 0.331647! $ gcc -ansi bug.c -o bug.exe -lm && bug.exe atanh(0.320000) returns 0.000000! -- Summary: compiling with -ansi puts in broken version of atanh Product: gcc Version: 3.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: anonymous at mailinator dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27413