On Wed, May 28, 2008 at 7:00 PM, Kyle McMartin <kyle@xxxxxxxxxxx> wrote: > Building the kernel without optimization is very tetchy... if you can > guess what passes to remove, I can try... one of the optimization > effects that must go is DCE though, otherwise we'll have undefined > references to things (ie: kmalloc_too_much in a switch that should have > been eliminated except the constant case.) You *need* to build the kernel with -fno-dce and -fno-tree-dce? Are you working around another compiler bug? Take a look at the attached scripts I use. ./o2list.sh > o2list.txt ./permute-options.sh o2list.txt > run.sh chmod u+x run.sh Normally I can simply run the results on a target and know which is good and which is bad. Unfortunately you have to link each into a kernel and try to boot. Cheers, Carlos.
Attachment:
o2list.sh
Description: Bourne shell script
Attachment:
permute-build.sh
Description: Bourne shell script