This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/5914: Infinite loop when compiling with optimisation on of z_log.c of libf2c
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Ulrich Jakobus <jakobus at emss dot co dot za>
- Cc: "gcc-bugs at gcc dot gnu dot org" <gcc-bugs at gcc dot gnu dot org>, "gcc-prs at gcc dot gnu dot org" <gcc-prs at gcc dot gnu dot org>, "toon at gcc dot gnu dot org" <toon at gcc dot gnu dot org>
- Date: Sun, 17 Mar 2002 22:33:14 +0100
- Subject: Re: c/5914: Infinite loop when compiling with optimisation on of z_log.c of libf2c
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <20020317172724.154A9D3F6@mail.emss.co.za>
Ulrich Jakobus wrote:
> Just a final closing remark on this issue: On 2002-03-14 the sub-
> routine z_log.c as part if libf2c has been updated as follows so
> that the compilation problems with -O2 or -O3 are avoided when the
> define -DNO_DOUBLE_EXTENDED is used. Change of source and log message
> are from the f2c maintainer David M. Gay:
>
> 14 March 2002: z_log.c: add code to cope with buggy compilers
> (e.g., some versions of gcc under -O2 or -O3)
> that do floating-point comparisons against values
> computed into extended-precision registers on some
> systems (such as Intel IA32 systems). Compile with
> -DNO_DOUBLE_EXTENDED to omit the new logic.
Yep, that's a different way to solve the problem ...
I think I'll stick to compiling it with -ffloat-store, but I'm not
particularly fond of that solution ...
Cheers,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)