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