diff options
author | Richard Henderson <rth@redhat.com> | 2002-05-22 16:31:48 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-05-22 16:31:48 -0700 |
commit | c711ba8e2edb69d3f6fa58cfba1d6dc49847afcd (patch) | |
tree | fd763eccaad53e4915d2b3e3ecc5dce5c401fc50 /gcc/testsuite/gcc.dg/tls/section-1.c | |
parent | 343f59d980bf21e62d4e2de75396e7921cd3bd20 (diff) | |
download | gcc-c711ba8e2edb69d3f6fa58cfba1d6dc49847afcd.zip gcc-c711ba8e2edb69d3f6fa58cfba1d6dc49847afcd.tar.gz gcc-c711ba8e2edb69d3f6fa58cfba1d6dc49847afcd.tar.bz2 |
varasm.c (default_section_type_flags): Handle tls data and default sections.
* varasm.c (default_section_type_flags): Handle tls data and
default sections.
(default_unique_section): Handle tls sections.
From-SVN: r53753
Diffstat (limited to 'gcc/testsuite/gcc.dg/tls/section-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tls/section-1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tls/section-1.c b/gcc/testsuite/gcc.dg/tls/section-1.c new file mode 100644 index 0000000..741eadb --- /dev/null +++ b/gcc/testsuite/gcc.dg/tls/section-1.c @@ -0,0 +1,11 @@ +/* Verify that we get errors for trying to put TLS data in + sections which can't work. */ + +#define A(X) __attribute__((section(X))) + +__thread int i A("foo"); /* Ok */ + +__thread int j A(".data"); /* { dg-error "causes a section type conflict" "conflict with .data section" { xfail *-*-* } } */ + +int k A("bar"); +__thread int l A("bar"); /* { dg-error "causes a section type conflict" "conflict with user-defined section" } */ |