Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Dan.Pop@mail.cern.ch (Dan Pop)
Subject: Re: cc -O3 problem on osf v3.2
Date: 1995/06/28	[thread overview]
Message-ID: <danpop.804368690@rscernix> (raw)
In-Reply-To: 3srrb4$qhe@usenet.ucs.indiana.edu

In <3srrb4$qhe@usenet.ucs.indiana.edu> wcwang@hagen.psych.indiana.edu (Bill Wang) writes:

>The following short c program produces two different result by
>using -O3 and -O (or no optimization at all):
>
...
>
>Using -O or no opti: (correct result, same result on SUN, HP, Ultrix, etc)
>
...
>Using -O3:	(WRONG!)
...
>
>Any hints or help would be appreciated!

1. Don't use -O3.
or
2. Use cc -migrate -O3 which produces the correct results.

Dan
--
Dan Pop
CERN, CN Division
Email: Dan.Pop@mail.cern.ch 
Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland



  reply	other threads:[~1995-06-28  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-28  4:00 cc -O3 problem on osf v3.2 Bill Wang
1995-06-28  4:00 ` Dan Pop [this message]
1995-06-29  4:00   ` Mike Iglesias
1995-07-03  4:00 ` f77 and cc optimization " Christos Siopis
1995-07-03  4:00   ` Dan Pop
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