libstdc++: Remove init_priority attribute for Init object [PR 98108]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 15 Dec 2020 18:40:28 +0000 (18:40 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 15 Dec 2020 18:40:28 +0000 (18:40 +0000)
This reverts commit cf4ed3b41594b6935a337fe0aaf8149eadf88751.

libstdc++-v3/ChangeLog:

    PR libstdc++/98108
    * include/std/iostream (__ioinit): Remove init_priority attribute.

libstdc++-v3/include/std/iostream

index 6b2f964f68814749acd0824bdd654e03c8951152..f988342b90a1c6023a45091d9d5ce06e9d2185dd 100644 (file)
@@ -70,16 +70,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 #endif
   //@}
 
-#if __has_attribute(__init_priority__)
-# define _GLIBCXX_INIT_PRIO(N) __attribute__((__init_priority__(N)))
-#else
-# define _GLIBCXX_INIT_PRIO(N)
-#endif
-
   // For construction of filebuffers for cout, cin, cerr, clog et. al.
-  static ios_base::Init __ioinit _GLIBCXX_INIT_PRIO(90);
-
-#undef _GLIBCXX_INIT_PRIO
+  static ios_base::Init __ioinit;
 
 _GLIBCXX_END_NAMESPACE_VERSION
 } // namespace