public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: murph@winface.com To: gcc-gnats@gcc.gnu.org Subject: other/5574: "http://ego.uwaterloo.ca/SpamGate?ip=216.94.64Off by two error produced by gcc -o test sqr.c -lm Date: Fri, 01 Feb 2002 11:16:00 -0000 [thread overview] Message-ID: <20020201191259.15561.qmail@sources.redhat.com> (raw) >Number: 5574 >Category: other >Synopsis: "http://ego.uwaterloo.ca/SpamGate?ip=216.94.64Off by two error produced by gcc -o test sqr.c -lm >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Feb 01 11:16:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: murph@winface.com >Release: Most gcc 2.9X >Organization: >Environment: Most Linux on Intel systems. >Description: The program: #include stdio.h #include math.h; main() { register i; double f=0.0; double sqrt(); for(i=0;i<=1000000000;i++) { f+=sqrt( (double) i); } printf("Finished %20.14f\n",f); } compiled on linux as: gcc -o test sqr.c -lm typically produces: 21081851083598.38281250000000 but compiling as: gcc -march=i686 -O3 -lm -o test sqr.c yeilds: 21081851083600.38281250000000 which is closer to the right answer by exactly 2.0. See: http://www.winface.com/sqrc_results.html for more info. >How-To-Repeat: See: http://www.winface.com/sqrc_results.html for more info. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-02-01 19:16 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-02-01 11:16 murph [this message] 2002-08-02 20:38 sayle
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=20020201191259.15561.qmail@sources.redhat.com \ --to=murph@winface.com \ --cc=gcc-gnats@gcc.gnu.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).