public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Rasmus Villemoes <villemoes@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-5907] libgcc: vxcrtstuff.c: remove ctor/dtor declarations
Date: Sat, 11 Dec 2021 13:34:51 +0000 (GMT)	[thread overview]
Message-ID: <20211211133451.2E2ED3858405@sourceware.org> (raw)

https://gcc.gnu.org/g:8b2885dee57e6e91b6265248f1de88fd53d61ce4

commit r12-5907-g8b2885dee57e6e91b6265248f1de88fd53d61ce4
Author: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
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;


                 reply	other threads:[~2021-12-11 13:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211211133451.2E2ED3858405@sourceware.org \
    --to=villemoes@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).