From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3068 invoked by alias); 17 Aug 2014 19:56:41 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 3057 invoked by uid 89); 17 Aug 2014 19:56:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f173.google.com Received: from mail-lb0-f173.google.com (HELO mail-lb0-f173.google.com) (209.85.217.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 17 Aug 2014 19:56:38 +0000 Received: by mail-lb0-f173.google.com with SMTP id u10so3468583lbd.18 for ; Sun, 17 Aug 2014 12:56:35 -0700 (PDT) X-Received: by 10.112.78.38 with SMTP id y6mr3782131lbw.94.1408305395442; Sun, 17 Aug 2014 12:56:35 -0700 (PDT) Received: from [10.0.0.140] (148.217.broadband9.iol.cz. [90.176.217.148]) by mx.google.com with ESMTPSA id q8sm9156749laj.33.2014.08.17.12.56.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Aug 2014 12:56:34 -0700 (PDT) Message-ID: <53F108F1.8060008@gmail.com> Date: Sun, 17 Aug 2014 19:56:00 -0000 From: =?UTF-8?B?VsOhY2xhdiBaZW1hbg==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: init_priority attribute and libstdc++ Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Rcbvgg8JNi1PEUUaxo7BaR9K0cfVgpQsd" X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00116.txt.bz2 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Rcbvgg8JNi1PEUUaxo7BaR9K0cfVgpQsd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 549 Hi. I want to use the init_priority(prio) attribute (https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Attributes.html#C_002b_002b= -Attributes) to initialize stuff in my library early so that users of the library can use the library during their own static objects construction. However, my library uses standard C++ library facilities like std::string, std::vector<>, etc. The question is: What is the lowest priority for init_priority attribute that I can use to still have libstdc++ initialize itself before my library is initialized? --=20 VZ --Rcbvgg8JNi1PEUUaxo7BaR9K0cfVgpQsd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 230 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREKAAYFAlPxCPEACgkQonnuNA9W3VL6GgD/ZyF0lNe4tvgjNrcrh+xB9OED LGY/MRy9A7YEJVi1oZoA/01VOzSEpNDNyPzs4wujR4zpWUFd6lNfEIVT5tq+Bb/y =iwGR -----END PGP SIGNATURE----- --Rcbvgg8JNi1PEUUaxo7BaR9K0cfVgpQsd--