2 # Script to check for duplicate function prologues in op.o
3 # Typically this indicates missing FORCE_RET();
4 # This script does not detect other errors that may be present.
6 # Usage: check_ops.sh [-m machine] [op.o]
7 # machine and op.o are guessed if not specified.
9 if [ "x$1" = "x-m" ]; then
16 for f
in `find . -name op.o`; do
17 /bin
/sh
"$0" -m $machine $f
42 echo "Unknown machine `uname -m`"
46 # op_exit_tb causes false positives on some hosts.
47 ${CROSS}objdump
-dr $1 | \
48 sed -e '/>:$\|'"$ret"'/!d' -e 's/.*<\(.*\)>:/~\1:/' -e 's/.*'"$ret"'.*/!/' | \
49 sed -e ':1;N;s/\n//;t1' |
sed -e 's/~/\n/g' |
grep -v '^op_exit_tb' | \