This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15434] -mcpu=601 -O2 optimization problems
- From: "stefaan dot simoens at tiscali dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2004 08:55:37 -0000
- Subject: [Bug c/15434] -mcpu=601 -O2 optimization problems
- References: <20040514140524.15434.stefaan.simoens@tiscali.be>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From stefaan dot simoens at tiscali dot be 2004-05-27 08:55 -------
Correction of previous message:
It's the ' stswi ' instruction that doesn't give the excpected results.
(I get a 'Bus error' after execution of stswi)
It doesn't happen always (most of the time, it executes just fine); but it
always happens in the same point of the program:
eg: in readproc.i it always occurs in
case_SigBlk:
-> memcpy(P->blocked, S, 16);
P->blocked[16] = '\0';
and it happens only when I run 'ps axf', in the 44th invocation of status2proc
When I change 'stswi 5,9,16'
with 'stw 5,0(9)
stw 6,4(9)
stw 7,8(9)
stw 8,12(9)' (which would be equivalent, I think), I don't get the error
at all...
What could be wrong?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15434