www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - bug report

↑ ↓ ← "Eduardo Nunes" <edfpn hotmail.com> writes:
Walter,

The compiler generate bad code for CMatrix::rotate method, when used with
the switches,
-5 -o+all.
but correct code without -5 switch.
in attach is a example code.

btw, what is the pentium favored code guidelines used by the compiler,
besides code reordering?

Thanks,

Eduardo Nunes
ed sky3d.com
Oct 24 2002
↑ ↓ Jan Knepper <jan smartsoft.us> writes:
Eduardo Nunes wrote:

 The compiler generate bad code for CMatrix::rotate method, when used with
 the switches,
 -5 -o+all.
 but correct code without -5 switch.
 in attach is a example code.

Tried without the -o+all switch and with the -5 switch? Jan
Oct 24 2002
↑ ↓ "Eduardo Nunes" <edfpn hotmail.com> writes:
"Jan Knepper" <jan smartsoft.us> wrote in message
news:3DB7F2B4.F33A72D1 smartsoft.us...
 Eduardo Nunes wrote:

 The compiler generate bad code for CMatrix::rotate method, when used


 the switches,
 -5 -o+all.
 but correct code without -5 switch.
 in attach is a example code.

Tried without the -o+all switch and with the -5 switch? Jan

sc bug2.cpp (good code) sc -5 bug2.cpp (good code) sc -o+all bug2.cpp (good code) sc -5 -o+all bug2.cpp (bad code) from reading the generated code, the main difference and the crash point is: mov EAX,FLAT:_DATA[00h] mov EDX,FLAT:_DATA[04h] mov ECX,EAX mov 060h[EAX],EAX <<< crash, EAX=0, EDX=0 the compiler version is 8.30, Eduardo Nunes, ed sky3d.com
Oct 24 2002
↑ ↓ → "Walter" <walter digitalmars.com> writes:
Thanks, I'll take a look. -Walter
Oct 24 2002