'386 XENIX "cc -Ox" optimization bug

Karl-P. Huestegge karl at robot.in-berlin.de
Fri Dec 14 04:51:20 AEST 1990


jon at ccwf.cc.utexas.edu (Jon Boede) writes:

>Hopefully I'm posting old news... but I found a rather insidious bug in cc
>version 1.6.  

It seems you're a little bit outdated with your release. ;-)

Xenix 386 2.3.2 comes with: 
      Microsoft 386 Compiler ver. 4.85
                ( was updated with lng095 to ver 5.1)
      Microsoft 286 Compiler Ver. 5.1 
      Unix 5.3 C Preprocessor
      Unix 5.3 curses

>Try: cc x.c; a.out; cc -Ox x.c; a.out; cc -Oal x.c; a.out

Always 'works ok' with MSC 386 5.1 on my system.

BTW: -Ox is default. And is the same as -Oactl. All three cc-commands
     produce the same code.

-- 
Karl-Peter Huestegge                       karl at robot.in-berlin.de
Berlin Friedenau                           ..unido!fub!geminix!robot!karl



More information about the Comp.lang.c mailing list