aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-13 09:03:28 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-13 09:03:28 +0000
commit8d32699adeb10f9255a5ad7229c2d3aa7a726b5a (patch)
tree3c01276bd2bc03d5fb0a9b022264726b913499b0
parent7a3a51414092bf9373987b0bc46cc9416b272df4 (diff)
downloadqemu-8d32699adeb10f9255a5ad7229c2d3aa7a726b5a.zip
qemu-8d32699adeb10f9255a5ad7229c2d3aa7a726b5a.tar.gz
qemu-8d32699adeb10f9255a5ad7229c2d3aa7a726b5a.tar.bz2
Remove useless check_ops.sh
Suggested by Stuart Brady. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5999 c046a42c-6fe2-441c-8c8c-71466251a162
-rwxr-xr-xcheck_ops.sh50
1 files changed, 0 insertions, 50 deletions
diff --git a/check_ops.sh b/check_ops.sh
deleted file mode 100755
index 1c9cf87..0000000
--- a/check_ops.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#! /bin/sh
-# Script to check for duplicate function prologues in op.o
-# Typically this indicates missing FORCE_RET();
-# This script does not detect other errors that may be present.
-
-# Usage: check_ops.sh [-m machine] [op.o]
-# machine and op.o are guessed if not specified.
-
-if [ "x$1" = "x-m" ]; then
- machine=$2
- shift 2
-else
- machine=`uname -m`
-fi
-if [ -z "$1" ]; then
- for f in `find . -name op.o`; do
- /bin/sh "$0" -m $machine $f
- done
- exit 0
-fi
-
-case $machine in
- i?86)
- ret='\tret'
- ;;
- x86_64)
- ret='\tretq'
- ;;
- arm)
- ret='\tldm.*pc'
- ;;
- ppc* | powerpc*)
- ret='\tblr'
- ;;
- mips*)
- ret='\tjr.*ra'
- ;;
- s390*)
- ret='\tbr.*'
- ;;
- *)
- echo "Unknown machine `uname -m`"
- ;;
-esac
-echo $1
-# op_exit_tb causes false positives on some hosts.
-${CROSS}objdump -dr $1 | \
- sed -e '/>:$\|'"$ret"'/!d' -e 's/.*<\(.*\)>:/~\1:/' -e 's/.*'"$ret"'.*/!/' | \
- sed -e ':1;N;s/\n//;t1' | sed -e 's/~/\n/g' | grep -v '^op_exit_tb' | \
- grep '^op_.*!!'