Commit 414578bd by Jason Merrill

move dg-do before dg-require

From-SVN: r208460
parent c2e7e597
// If we can see the definition at the use site, we don't need to bother // If we can see the definition at the use site, we don't need to bother
// with a wrapper. // with a wrapper.
// { dg-require-effective-target tls }
// { dg-do compile { target c++11 } } // { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }
// { dg-final { scan-assembler-not "_ZTW1i" } } // { dg-final { scan-assembler-not "_ZTW1i" } }
thread_local int i = 42; thread_local int i = 42;
......
// If we can't see the definition at the use site, but it's in this translation // If we can't see the definition at the use site, but it's in this translation
// unit, we build a wrapper but don't bother with an init function. // unit, we build a wrapper but don't bother with an init function.
// { dg-require-effective-target tls }
// { dg-do compile { target c++11 } } // { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }
// { dg-final { scan-assembler "_ZTW1i" } } // { dg-final { scan-assembler "_ZTW1i" } }
// { dg-final { scan-assembler-not "_ZTH1i" } } // { dg-final { scan-assembler-not "_ZTH1i" } }
......
// If we can't see the definition at all, we need to assume there might be // If we can't see the definition at all, we need to assume there might be
// an init function. // an init function.
// { dg-do compile { target c++11 } }
// { dg-require-alias "" } // { dg-require-alias "" }
// { dg-require-effective-target tls } // { dg-require-effective-target tls }
// { dg-do compile { target c++11 } }
// { dg-final { scan-assembler "_ZTW1i" } } // { dg-final { scan-assembler "_ZTW1i" } }
// { dg-final { scan-assembler "_ZTH1i" } } // { dg-final { scan-assembler "_ZTH1i" } }
......
// We don't need to call the wrapper through the PLT; we can use a separate // We don't need to call the wrapper through the PLT; we can use a separate
// copy per shared object. // copy per shared object.
// { dg-do compile { target c++11 } }
// { dg-require-effective-target tls } // { dg-require-effective-target tls }
// { dg-require-effective-target fpic } // { dg-require-effective-target fpic }
// { dg-do compile { target c++11 } }
// { dg-options "-fPIC" } // { dg-options "-fPIC" }
// { dg-final { scan-assembler-not "_ZTW1i@PLT" { target i?86-*-* x86_64-*-* } } } // { dg-final { scan-assembler-not "_ZTW1i@PLT" { target i?86-*-* x86_64-*-* } } }
......
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