Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297602
b: refs/heads/master
c: a9468f3
h: refs/heads/master
v: v3
  • Loading branch information
Rabin Vincent authored and Russell King committed Mar 24, 2012
1 parent 17dba61 commit 7ecd4ae
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b5a146a43db3733c731d47022f4f5259e6b31e6
refs/heads/master: a9468f30b5eac6957c86aea97954553bfb7c1f18
18 changes: 17 additions & 1 deletion trunk/scripts/gcc-goto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,20 @@
# Test for gcc 'asm goto' support
# Copyright (C) 2010, Jason Baron <jbaron@redhat.com>

echo "int main(void) { entry: asm goto (\"\"::::entry); return 0; }" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y"
cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y"
int main(void)
{
#ifdef __arm__
/*
* Not related to asm goto, but used by jump label
* and broken on some ARM GCC versions (see GCC Bug 48637).
*/
static struct { int dummy; int state; } tp;
asm (".long %c0" :: "i" (&tp.state));
#endif
entry:
asm goto ("" :::: entry);
return 0;
}
END

0 comments on commit 7ecd4ae

Please sign in to comment.