This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: wrong code genaration



On Feb 15, 2005, at 10:45 AM, Giorgenes Gelatti wrote:


general info
------------

gcc --version:
gcc (GCC) 3.3.4

uname -a:
Linux trinita 2.4.26 #6 Mon Jun 14 19:07:27 PDT 2004 i686 unknown unknown GNU/Linux


compiled with:
gcc bug.c -O1 -save-temps -o bug

mpixel = (double)((unsigned int)h * w) / 1000000.0;


Hmm, can you try -ffloat-store. If that cures your problem then this is not a bug
per say. GCC is just using excessive precision on x86.


-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]