[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Some mintlib patches



On Thu, 2008-02-21 at 00:20 +0100, Miro Kropacek wrote:
> > I'd really like to know what the real problem is here, this just seems
> > like another bandage for a real problem.
> >
> > For me I've actually reverted your original patch to crt0.S and I don't
> > see a problem. So it'd be worth finding out if you reverted the file
> > back to the original and find out why gcc is crashing (if it really
> > still does).
> >
> >   
> It's quite tricky. The problem appears when you have low TPA (let's say 
> 1024 KB) and big stack (let's say 256/512 KB). In gcc compilation, in 
> some (hard to say if deterministic) cases some compiled binary would 
> like to say "Fatal memory bla bla" but instead of this crashes (trap 
> call wants to put some stuff on stack but stack is corrupted somehow). 
> If you remember my early posts about gcc4 compilation (unable to use -O2 
> with some big files), this is exactly the case -- gcc should never 
> crash, it should write Fatal error message.  This is quote from my mail:

Producing a reproducible test program/case would be ideal to more
messing about with crt0.S without really understanding the problem.

Alan.