aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-05-23 14:00:49 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-05-23 14:00:49 -0700
commit244c2241b8ef12958d1414f46ba6006554ebb9e6 (patch)
treecd0e2afdc186bf8417bfbbe5a97a375131e4fe98 /gcc
parente0082a72651ae718c46e4f3510bba4a116148fc7 (diff)
downloadgcc-244c2241b8ef12958d1414f46ba6006554ebb9e6.zip
gcc-244c2241b8ef12958d1414f46ba6006554ebb9e6.tar.gz
gcc-244c2241b8ef12958d1414f46ba6006554ebb9e6.tar.bz2
extend.texi (C++98 Thread-Local Edits): Update with commentary from Mark.
* doc/extend.texi (C++98 Thread-Local Edits): Update with commentary from Mark. From-SVN: r53807
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/extend.texi13
2 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 054323d..69160df 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-23 Richard Henderson <rth@redhat.com>
+
+ * doc/extend.texi (C++98 Thread-Local Edits): Update with
+ commentary from Mark.
+
2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 301db237..9d1fc7e 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -6226,8 +6226,8 @@ When used with @code{extern} or @code{static}, @code{__thread} must appear
immediately after the other storage class specifier.
The @code{__thread} specifier may be applied to any global, file-scoped
-static, function-scoped static, or class-scoped static variable. It may
-not be applied to block-scoped automatic or class-scoped member variables.
+static, function-scoped static, or static data member of a class. It may
+not be applied to block-scoped automatic or non-static data member.
When the address-of operator is applied to a thread-local variable, it is
evaluated at run-time and returns the address of the current thread's
@@ -6237,8 +6237,9 @@ in that thread become invalid.
No static initialization may refer to the address of a thread-local variable.
-In C++, a thread-local variable may not be initialized at runtime,
-that is, either by a static constructor or a non-constant expression.
+In C++, if an initializer is present for a thread-local variable, it must
+be a @var{constant-expression}, as defined in 5.19.2 of the ANSI/ISO C++
+standard.
See @uref{http://people.redhat.com/drepper/tls.pdf,
ELF Handling For Thread-Local Storage} for a detailed explanation of
@@ -6379,7 +6380,9 @@ dynamic initialization.
Add after paragraph 3
@quotation
-An object of thread storage duration shall not require a destructor.
+The type of an object with thread storage duration shall not have a
+non-trivial destructor, nor shall it be an array type whose elements
+(directly or indirectly) have non-trivial destructors.
@end quotation
@item