Re: ==operator gives unexpected result using -O0

2005-07-28 Thread James E Wilson
Jakob Andreas Bærentzen wrote: It seems to me that if a,b, and c are float or double values and if a has been assigned b*c then a == (b*c) should return true since a should contain the same bitpattern as the temporary being assigned the value of b*c. Is it not so? This is the infamous x86 "ex

==operator gives unexpected result using -O0

2005-07-26 Thread Jakob Andreas Bærentzen
Hello, I do apologize if my ignorance is the problem here, but I am having a strange problem with the version of gcc included in suse 9.3: gcc version 3.3.5 20050117 (prerelease) (SUSE Linux). The same problem was observed with gcc 3.3.1. I have not tried later versions, but I can't find the pr