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

Re: [MiNT] gcc 4.2.2 compile error



MiKRO a wrote :
The next question is how to automate this thing -- let's say I'll made
the list of "problem" files which needs -O1, would it be hard to make
some patch which will replace -O2 in stage2 for these files?

Some ideas :

1) Identify the directory having the problem

2) Modify the source Makefile.am, and regenerate Makefile.in with automake, the regenerate Makefile (by typing make ?). Exemple here:
http://opensource.creative.com/pipermail/openal-devel/2006-October/004586.html

2 (alternative) ) Modify the generated Makefile with a specific rule
http://sources.redhat.com/ml/automake/2004-12/msg00066.html


However it would be nice if FreeMiNT could do some stack checking... For example, on task switching, or on system calls, it could check that the stack pointer is greater than the end of the data segment.

--
Vincent Rivière