From: root@rdalp1.urz.tu-dresden.de (system PRIVILEGED account)
Subject: Re: cc -O bug?
Date: 24 Jun 1994 11:10:23 GMT [thread overview]
Message-ID: <2ueeuv$mre@RMAIL.urz.tu-dresden.de> (raw)
In-Reply-To: Yi2Qnbe00WBNE3KhFK@andrew.cmu.edu
Stan Joseph Simon (ssb6+@andrew.cmu.edu) wrote:
: I have a problem with cc on the DEC alpha. When I compile the following
: piece of code with "cc test.c" the program runs correctly.
: [...]
: However, when I use optimization "cc -O test.c" I get incorrect
: output--the division comes out to 0. This happens with optimization
: levels -O2 and -O3, but not -O1. (A similar problem occurs with DEC's
: cxx compiler.)
: Is there a solution to this? Or should I just not use optimization?
: I am using osf 1.3.
: Stan
I tried this example with OSF V2.0, and both results
were identical, with optimization and without one.
(with c and cxx compilers).
Michael
prev parent reply other threads:[~1994-06-24 11:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-06-23 17:56 cc -O bug? Stan Joseph Simon
1994-06-24 11:10 ` system PRIVILEGED account [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox