aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-goto.sh
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-09-24 03:12:05 -0400
committerIngo Molnar <mingo@elte.hu>2010-09-24 03:12:05 -0400
commita5a2bad55de89a0adf7d6f783cb87ab7eb1a894f (patch)
tree452cb8addc26f5c79fdd4e2fea92c78dc17fc8e8 /scripts/gcc-goto.sh
parentd0303d71c2fb9bcb90a8d48e6462c78c86f70ce6 (diff)
parent46eb3b64dddd20f44e76b08676fa642dd374bf1d (diff)
Merge branch 'tip/perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core
Diffstat (limited to 'scripts/gcc-goto.sh')
-rw-r--r--scripts/gcc-goto.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh
new file mode 100644
index 000000000000..8e82424be7aa
--- /dev/null
+++ b/scripts/gcc-goto.sh
@@ -0,0 +1,5 @@
1#!/bin/sh
2# Test for gcc 'asm goto' suport
3# Copyright (C) 2010, Jason Baron <jbaron@redhat.com>
4
5echo "int main(void) { entry: asm goto (\"\"::::entry); return 0; }" | $1 -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y"