On 05/03/2016 02:41 PM, Trevor Saunders wrote:
I guess the usual tool for that is contrib/compare-all-tests? is there a
simpler one?
Not sure. I have a collection of .i files (from building things like gcc
and the kernel with -save-temps) and a script that compiles them all,
then I just use diff to look at interesting changes. Doesn't make sense
to post the whole thing since it's rather specific to my setup, but it's
basically
CFLAGS="-quiet -O2 -fno-reorder-blocks -fno-schedule-insns2"
y=/your/output/directory
mkdir -p $y
cp cc1 $y
( cd /local/data; find $FINDCMD -name '*.i' -print0 ) | nice -n15 xargs
-n1 -0 dirname |parallel "cd $y; mkdir -p {}"
( cd /local/data; find $FINDCMD -name '*.i' -print0 ) | nice -n15
parallel -j10% -v -0 "./cc1 $CFLAGS $2 /local/data/{} -o $y/{.}.s"
The CFLAGS are chosen to avoid scheduling/reordering differences that
most of the time aren't actually interesting when not testing thingsl
ike scheduler patches.
Bernd