From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2044) id 2E2ED3858405; Sat, 11 Dec 2021 13:34:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E2ED3858405 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Rasmus Villemoes To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-5907] libgcc: vxcrtstuff.c: remove ctor/dtor declarations X-Act-Checkin: gcc X-Git-Author: Rasmus Villemoes X-Git-Refname: refs/heads/master X-Git-Oldrev: 2e8067041d1d69da02bd7578f58abc11eb35a04b X-Git-Newrev: 8b2885dee57e6e91b6265248f1de88fd53d61ce4 Message-Id: <20211211133451.2E2ED3858405@sourceware.org> Date: Sat, 11 Dec 2021 13:34:51 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Dec 2021 13:34:51 -0000 https://gcc.gnu.org/g:8b2885dee57e6e91b6265248f1de88fd53d61ce4 commit r12-5907-g8b2885dee57e6e91b6265248f1de88fd53d61ce4 Author: Rasmus Villemoes Date: Thu Oct 28 13:50:22 2021 +0200 libgcc: vxcrtstuff.c: remove ctor/dtor declarations These declarations prevent the priority given in the constructor/destructor attributes from taking effect, thus emitting the function pointers in the ordinary (lowest-priority) .init_array/.fini_array sections. libgcc/ * config/vxcrtstuff.c: Remove constructor/destructor declarations. Diff: --- libgcc/config/vxcrtstuff.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libgcc/config/vxcrtstuff.c b/libgcc/config/vxcrtstuff.c index 767b9de577d..908146d6c99 100644 --- a/libgcc/config/vxcrtstuff.c +++ b/libgcc/config/vxcrtstuff.c @@ -96,9 +96,6 @@ __attribute__((section(__LIBGCC_EH_FRAME_SECTION_NAME__), aligned(4))) #endif /* USE_INITFINI_ARRAY */ -void EH_CTOR_NAME (void); -void EH_DTOR_NAME (void); - EH_CTOR_ATTRIBUTE void EH_CTOR_NAME (void) { static struct object object;