Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: dzierzaw AT elektryk DOT ie DOT pwr DOT wroc DOT pl (Springman), djgpp AT delorie DOT com Date: Tue, 17 Jun 1997 15:50:04 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Crashes when optimized! Precedence: bulk > From: dzierzaw AT elektryk DOT ie DOT pwr DOT wroc DOT pl (Springman) wrote: > Strange problem. My program works perfectly well when compiled > with no optimizations and crashes with `Page fault at...., error 0004' > when compiled with `-O1' or `-O2'. The function it stops at performs > rotation of points. It does use some inline assembly, but everything > is `volatile', so shouldn't be messed with by the compiler. Any ideas what > it's all about? It's not likely I've found a bug, is it? 99% is that you aren't indicating all the registers that you are using in the clobber section. 1% you hit one of the bugs in gcc (look my home page, I have a list of at least 6 bugs). Czesc, SET ------------------------------------ 0 -------------------------------- Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013