Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!agate!eos!ames!amdahl!rtech!ingres!jeff@ingres.com From: jeff@ingres.com (Jeff Anton) Newsgroups: comp.lang.c Subject: Re: Compiler bug or gray area in C? Keywords: register floating point optmization Message-ID: <1990Nov29.021553.12522@ingres.Ingres.COM> Date: 29 Nov 90 02:15:53 GMT References: <1990Nov28.220233.2630@ingres.Ingres.COM> Reply-To: jeff@ingres.com (Jeff Anton) Organization: Ingres Corporation Lines: 26 Dave ment to write: extern double D, foo(); bar( i ) int i; { double x; int changes = 0; do { x = foo( i ); if( x < D ) { changed++; D = x; } } while( !changed ); } The obvious compilation and recursion problems are clear with the original code. The issue is the legality of compilers extending the precision of variable when they are placed in registers. Jeff Anton