more ices
[ICEs.git] / bfin-gc-sections / reduce-ice
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=asterisk.c
9 CC=/usr/local/src/blackfin/toolchains/current/uclinux/bfin-uclinux-gcc
10 CFLAGS="-mfdpic -ffunction-sections -Wl,--gc-sections"
11 STRING="LINKER BUG: .rofixup section size mismatch"
12
13 $CC -lm -pipe $CFLAGS $FILE 2>&1 | grep "$STRING"