summaryrefslogtreecommitdiff
path: root/gcc/doc/extend.texi
diff options
context:
space:
mode:
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>2017-03-20 18:33:31 +0000
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>2017-03-20 18:33:31 +0000
commit9faa55a3a1d32779dd5b8e51ff20c3c99bac43cb (patch)
tree6ee543e4fca8d5fd69365dce056667fcac68ee26 /gcc/doc/extend.texi
parent5206d757539844bece7f5ec639548321bd70130e (diff)
downloadgcc-9faa55a3a1d32779dd5b8e51ff20c3c99bac43cb.tar.gz
PR c++/52477 - Wrong initialization order __attribute__((constructor)) vs static data access
* doc/extend.texi (attribute constructor): Document present limitation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246288 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/extend.texi')
-rw-r--r--gcc/doc/extend.texi6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 143a7b7eb61..dbeec60bd54 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -2510,7 +2510,11 @@ if you have a constructor that allocates a resource and a destructor
that deallocates the same resource, both functions typically have the
same priority. The priorities for constructor and destructor
functions are the same as those specified for namespace-scope C++
-objects (@pxref{C++ Attributes}).
+objects (@pxref{C++ Attributes}). However, at present, the order in which
+constructors for C++ objects with static storage duration and functions
+decorated with attribute @code{constructor} are invoked is unspecified.
+In mixed declarations, attribute @code{init_priority} can be used to
+impose a specific ordering.
@item deprecated
@itemx deprecated (@var{msg})