diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-13 11:22:27 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-13 11:22:27 +0000 |
commit | f4286f7aa3b0cef98e6fbccdc2ff7c91de42625a (patch) | |
tree | 6c43e8fb1bf5ec2911216d3173cb17db444ead5d /gcc/testsuite/gcc.dg/20040311-2.c | |
parent | b4e8a3003fbd33ff6e48543b81d7249797ca035c (diff) | |
download | gcc-f4286f7aa3b0cef98e6fbccdc2ff7c91de42625a.tar.gz |
PR target/14533
* config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
other than UNSPEC_GOTOFF.
* gcc.dg/20040311-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79442 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20040311-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20040311-2.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20040311-2.c b/gcc/testsuite/gcc.dg/20040311-2.c new file mode 100644 index 00000000000..0d0d5da3259 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20040311-2.c @@ -0,0 +1,36 @@ +/* PR target/14533 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -fpic" } */ + +void bar (char *, int); + +extern char b[]; +extern int d, e; +struct S +{ + struct S *m; + int n; +} **g; + +void +foo (int x, char *y) +{ + struct S *h; + int k = 1, l; + +again: + for (h = *g; h != (struct S *) g; h = h->m) + { + if (k == 0 && h->n & 0x100000); + l = y - b; + if (e) + bar (b, l); + if (d) + bar (b, l); + } + if (k) + { + k = 0; + goto again; + } +} |