public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Randolph Chung <tausq@debian.org> To: gcc-gnats@gcc.gnu.org Cc: 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 Date: Mon, 31 Mar 2003 07:46:00 -0000 [thread overview] Message-ID: <20030331052301.22572.qmail@sources.redhat.com> (raw) >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 <tausq@debian.org> >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 <machine, os, target, libraries (multiple lines)> 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 <stdio.h> #include <math.h> 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:
reply other threads:[~2003-03-31 5:26 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030331052301.22572.qmail@sources.redhat.com \ --to=tausq@debian.org \ --cc=debian-gcc@lists.debian.org \ --cc=gcc-gnats@gcc.gnu.org \ --cc=parisc-linux@lists.parisc-linux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).