#!/bin/bash # # Run like: # multidelta -level=# ./reduce-ice $FILE # levels: 0 0 1 1 2 2 10 10 # FILE=test.ii CC=bfin-linux-uclibc-g++ CFLAGS="" STRING="undefined reference to .___sync_fetch_and_add_4" $CC -pipe $CFLAGS $FILE 2>&1 | grep "$STRING"