diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-05 20:29:06 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-05 20:29:06 +0000 |
commit | f7998397e8b9f476da226d470f98b6ceadbdde19 (patch) | |
tree | 0afab63e815744564a65ada194bc5bd5d65e5f3f /gcc/testsuite/gcc.dg/tls/opt-8.c | |
parent | 9309c9945b3d9044b5f1942beb749290ee5a63f2 (diff) | |
download | gcc-f7998397e8b9f476da226d470f98b6ceadbdde19.tar.gz |
PR target/18910
* config/i386/i386.c (ix86_expand_move): Handle tls symbols
with an offset.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92968 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/tls/opt-8.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tls/opt-8.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tls/opt-8.c b/gcc/testsuite/gcc.dg/tls/opt-8.c new file mode 100644 index 00000000000..dec0eabcb4c --- /dev/null +++ b/gcc/testsuite/gcc.dg/tls/opt-8.c @@ -0,0 +1,13 @@ +/* PR 18910 */ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +static __thread void *foo [2]; +void +test1 (void) +{ + unsigned int s; + + for (s = 0; s < 2; ++s) + foo [s] = &foo[s]; +} |