This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: serious inline math pb i386
- To: nbecker at fred dot net
- Subject: Re: serious inline math pb i386
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 08 Jul 1998 22:11:51 -0600
- cc: "H.J. Lu" <hjl at lucon dot org>, Andreas Jaeger <aj at arthur dot rhein-neckar dot de>, egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <x8867h8ccxg.fsf@nbeckerpc.hns.com>you write:
> Yes! I have a test case!
>
> --------------------------
> #include <math.h>
>
> #define pc_ceiling_dB -4.9691
> #define pc_step_dB 0.5
> #define pc_loopdelay 1
>
> float pc_ceiling;
> float pc_step;
> float pc_threshold_dB = 17;
> float pc_threshold;
>
> main () {
> float pc_command[pc_loopdelay];
> int i_pc_loopdelay;
>
> for (i_pc_loopdelay = 0; i_pc_loopdelay < pc_loopdelay; i_pc_loopdelay++)
> pc_command[i_pc_loopdelay] = 0;
> pc_ceiling = pow (10.0, pc_ceiling_dB / 10.0);
> pc_step = pow (10.0, pc_step_dB / 10.0);
> pc_threshold = pow (10.0, pc_threshold_dB / 10.0);
> }
> ----------------------
>
> When I compile with egcs-1.0.3 glibc-2.0.7(RH5.1) i686-pc-linux-gnu:
>
> > g++ -o bug bug.cc -O3 -g
It doesn't fail for me :( Presumably because I'm not using glibc2.0.7.
jeff