exit 1
fi
+if false ; then
echo "initial whitespace/preproc filter"
cp ${FILE} ${FILE}.unfiltered
sed -i \
+ -e 's:[[:space:]]*::' \
-e '/^$/d' \
-e '/^#/d' \
- -e 's:[[:space:]]*::' \
${FILE}
if cmp -s ${FILE} ${FILE}.unfiltered ; then
rm -f ${FILE}.unfiltered
echo "ERROR: filtered version breaks things !?"
exit 1
fi
+fi
+dir=$(mktemp -d -t reduce-ice.XXXXXX)
+cp $FILE $dir/
+ln -s $PWD/reduce-ice $dir/
+pushd $dir
for x in ${@:-0 0 1 1 2 2 5 5 10 10} ; do
multidelta -level=$x ./reduce-ice $FILE
done
+popd
+cp $dir/$FILE $FILE
+rm -rf $dir
case $FILE in
*.i|*.ii|*.c|*.cxx) Lindent $FILE;;
-#!/bin/bash
+#!/bin/sh
#
# Run like:
# multidelta -level=# ./reduce-ice $FILE
CFLAGS="-ggdb -m32"
STRING="internal compiler error.*dwarf2out_finish"
-$CC -pipe -c $CFLAGS $FILE 2>&1 | grep "$STRING"
+$CC -pipe -c $CFLAGS $FILE -o /dev/null 2>&1 | grep "$STRING"