Commit 6ba085e7 by Jakub Jelinek Committed by Jakub Jelinek

* gcc.dg/tls/struct-1.c: New test.

From-SVN: r57367
parent 56941bf2
2002-09-20 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/tls/struct-1.c: New test.
2002-09-20 Neil Booth <neil@daikokuya.co.uk> 2002-09-20 Neil Booth <neil@daikokuya.co.uk>
* gcc.dg/cpp/tr-warn2.c: Update. * gcc.dg/cpp/tr-warn2.c: Update.
......
/* This testcase ICEd on IA-32 because the backend was inconsistent whether
to allow addends for @dtpoff relocs or not. */
/* { dg-do compile } */
/* { dg-options "-O2 -fpic" } */
struct S {
int s0, s1, s2, s3;
};
static __thread struct S x;
extern void abort (void);
extern void exit (int);
void
foo (struct S *s)
{
s->s2 = 231;
}
void
bar (void)
{
if (x.s0 == 231 || x.s2 != 231)
abort ();
}
int
main ()
{
foo (&x);
bar ();
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment