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: c++/10902: comparing doubles is not consistent in gcc 3.3 (SuSE version)


On Wednesday 21 May 2003 16:41, Wolfgang Bangerth wrote:
> If you use
>   ../gcc-3.3/configure --prefix=/some/local/path
>   make bootstrap
>   make install
> it will install gcc into /some/local/path, which could be a scratch
> directory in your homedir, or in /tmp. It won't overwrite any preinstalled
> files in /usr/... That's a safe way not to compromise the integrity of a
> production system. You can then run the compiler by setting PATH and
> LD_LIBRARY_PATH just for once in a shell window.

I compiled gcc thus:

../gcc-3.3/configure --prefix=/tmp/testgcc
make bootstrap; make install
export PATH=/tmp/testgcc/bin:$PATH
export LD_LIBRARY_PATH=/tmp/testgcc/lib:$LD_LIBRARY_PATH
g++ -O2     testgcc2.cpp   -o testgcc2

and the bug was not present in the gcc3.3 release. Not even when run on SuSE 
8.2. And the bug is also present on my old laptop, also with SuSE 8.2.
So the problem is really in SuSE's snapshot of gcc.

I guess the gcc team is off the hook. :-)

Best regards and thanks for the help!

Jos van den Oever




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