aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/gcc/testsuite/gcc.target/arm/tlscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.7/gcc/testsuite/gcc.target/arm/tlscall.c')
-rw-r--r--gcc-4.7/gcc/testsuite/gcc.target/arm/tlscall.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc-4.7/gcc/testsuite/gcc.target/arm/tlscall.c b/gcc-4.7/gcc/testsuite/gcc.target/arm/tlscall.c
deleted file mode 100644
index 366c1ae71..000000000
--- a/gcc-4.7/gcc/testsuite/gcc.target/arm/tlscall.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Test non-duplication of tlscall insn */
-
-/* { dg-do assemble } */
-/* { dg-options "-O2 -fPIC -mtls-dialect=gnu2" } */
-
-typedef struct _IO_FILE FILE;
-
-extern int foo(void);
-extern int bar(void);
-
-void uuid__generate_time()
-{
- static int has_init = 0;
- static __thread int state_fd = -2;
- static __thread FILE *state_f;
-
- if (!has_init) {
- foo();
- has_init = 1;
- }
-
- if (state_fd == -2) {
- if (!state_f) {
- state_fd = -1;
- }
- }
- if (state_fd >= 0) {
- while (bar() < 0) {}
- }
-
-}