This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11307] Random printf values under different optimization levels.
- From: "paudley at compbio dot dundee dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jun 2003 16:18:50 -0000
- Subject: [Bug c/11307] Random printf values under different optimization levels.
- References: <20030624144643.11307.paudley@compbio.dundee.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11307
------- Additional Comments From paudley at compbio dot dundee dot ac dot uk 2003-06-24 16:18 -------
Subject: Re: [bugc/11307] Random printf values under different optimization levels.
pinskia> uc dot edu 2003-06-24 15:02 ------- Not a bug, if you are
pinskia> going to using printf and %f to print ints, you have to
pinskia> use casts. Also -Wall will warning about this.
Agreed, but the value of "double s" is giving the wrong value as well.