From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,86b52dc0e0192a3e X-Google-Attributes: gidfee84,public From: Dan.Pop@mail.cern.ch (Dan Pop) Subject: Re: cc -O3 problem on osf v3.2 Date: 1995/06/28 Message-ID: #1/1 X-Deja-AN: 105263122 sender: news@news.cern.ch (USENET News System) x-nntp-posting-host: ues5.cern.ch references: <3srrb4$qhe@usenet.ucs.indiana.edu> organization: CERN European Lab for Particle Physics newsgroups: comp.unix.osf.osf1 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