Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!julius.cs.uiuc.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!uvaarpa!mcnc!ncsuvx!news From: jwb@cepmax.ncsu.EDU (John W. Baugh Jr.) Newsgroups: comp.sys.apollo Subject: GCC bug? Message-ID: <1990Sep11.125319.21412@ncsuvx.ncsu.edu> Date: 11 Sep 90 12:53:19 GMT References: <1990Sep10.151351.20186@water.waterloo.edu> Sender: news@ncsuvx.ncsu.edu (USENET News System) Reply-To: jwb@cepmax.ncsu.edu Organization: North Carolina State University Lines: 27 [Either this is a duplicate or my first one flew to never-never land.] I'm using gcc version 1.37.1 (with John Vasta's patches) to compile the following program on a DN4500 (SR10.2, BSD4.3): 1 main() 2 { 3 char x[10]; 4 long i; 5 6 for (i = 0; i <= 10; i++) x[i] = 'a'; 7 8 return 0; 9 } Upon executing the program I get: % a.out unable to unwind stack because of invalid stack frame (process manager/process fault manager) However, if I swap lines 3 and 4 it runs perfectly. Any ideas? Thanks, John Baugh jwb@cepmax.ncsu.edu