This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/15434] -mcpu=601 -O2 optimization problems


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]