From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16463 invoked by alias); 21 Dec 2002 03:37:39 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 16431 invoked by uid 61); 21 Dec 2002 03:37:39 -0000 Date: Fri, 20 Dec 2002 19:37:00 -0000 Message-ID: <20021221033738.16429.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, warren@eng.up.ac.za From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, warren@eng.up.ac.za, gcc-gnats@gcc.gnu.org Subject: Re: other/8974: fabs error with -ansi X-SW-Source: 2002-12/txt/msg01139.txt.bz2 List-Id: Synopsis: fabs error with -ansi State-Changed-From-To: open->feedback State-Changed-By: bangerth State-Changed-When: Fri Dec 20 19:37:38 2002 State-Changed-Why: The problem you write seems as if for certain numbers the implementation of fabs is doing something wrong, but only on certain machines. Now, fabs is a function that libm implements, not the compiler, so to find out where the problem lies exactly, try the following: - try linking with -static on a machine where it works. This makes sure that not the local libm is taken, but the one from the system where it works. Try the other way round and see whether it then also fails on the machines it worked on previously. - Try what happens when you switch on optimization. Just for the reference, I cannot reproduce the problem on a PIII, but that was to be expected from your report. Thanks Wolfgang http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8974