Microsoft C 6.0 BAD code generation

Gary Jackoway gary at hpavla.AVO.HP.COM
Thu Jun 14 22:00:21 AEST 1990


> One of my co workers was trying to start using Microsoft C 6.0 but found out
> that it's just like Microsfot C 5.1.  You have to disable most of the
> optimizations so it will generate correct code.  Here's his very simple sample
> code which doesn't have anything to do with loops but is broken when 
> you specify loop optimizations.
 
----------

Well, now that you mention it,...

I have a fairly simple example program that compiles with no warnings
on warning level 3 and gets the wrong answer when /Og is specified.
And, of course, /Og is included in /Ox.

I have submitted it to Microsoft, and so far they said it "seems" to
be a bug.  What suprised me was their cavalier attitude about silently
generating bad code.  Sure hope nobody out there is using MSC 6.0 to
design or run nuclear reactors!

Gary Jackoway



More information about the Comp.lang.c mailing list