aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-goto.sh
diff options
context:
space:
mode:
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"