From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24847 invoked by alias); 31 Mar 2003 05:26:01 -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 24818 invoked by uid 71); 31 Mar 2003 05:26:00 -0000 Resent-Date: 31 Mar 2003 05:26:00 -0000 Resent-Message-ID: <20030331052600.24817.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, parisc-linux@lists.parisc-linux.org, debian-gcc@lists.debian.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Randolph Chung Received: (qmail 22573 invoked by uid 48); 31 Mar 2003 05:23:01 -0000 Message-Id: <20030331052301.22572.qmail@sources.redhat.com> Date: Mon, 31 Mar 2003 07:46:00 -0000 From: Randolph Chung Reply-To: Randolph Chung To: gcc-gnats@gcc.gnu.org Cc: parisc-linux@lists.parisc-linux.org, debian-gcc@lists.debian.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: parisc-linux@lists.parisc-linux.org, debian-gcc@lists.debian.org Subject: target/10272: [3.0/3.2/3.3/3.4] Floating point args not correctly loaded for function calls X-SW-Source: 2003-03/txt/msg02090.txt.bz2 List-Id: >Number: 10272 >Category: target >Synopsis: [3.0/3.2/3.3/3.4] Floating point args not correctly loaded for function calls >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Mon Mar 31 05:26:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Randolph Chung >Release: 3.3 20030309 (Debian prerelease) (Debian testing/unstable) [and others] >Organization: >Environment: System: Linux gsyprf11.external.hp.com 2.4.20-pa18-UP #1 Sat Jan 4 22:06:52 PST 2 003 parisc64 unknown unknown GNU/Linux Architecture: parisc64 host: hppa-unknown-linux-gnu build: hppa-unknown-linux-gnu target: hppa-unknown-linux-gnu configured with: ../src/configure -v --enable-languages=c,c++,f77,objc,ada,treela ng --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-inc lude-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --w ithout-included-gettext --enable-__cxa_atexit --enable-sjlj-exceptions --enable-c locale=gnu --enable-debug --enable-objc-gc hppa-linux >Description: This one looks similar to 10271, but filing separately because the test case is a bit different. Not sure if it's the same bug or not. At -O2 the floating point argument is not getting loaded into the right registers to pass to fprintf(). >How-To-Repeat: $ gcc-3.3 -O2 -o bug bug.c -lm $ ./bug -1.488583e+284 $ gcc-3.3 -O1 -o bug bug.c -lm $ ./bug nan -------8< bug.c 8<------------ #include #include void doprint(double d) { int i = (int)d; if ((double)i == d) { fprintf(stdout, "%d\n", i); } else { fprintf(stdout, "%e\n", d); } } int main(int argc, char **argv) { doprint(log(-8)); /* nan */ return 0; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: