public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3154] cygming-crtend.c: fix build warnings
@ 2021-08-26  1:31 Jonathan Yong
  0 siblings, 0 replies; only message in thread
From: Jonathan Yong @ 2021-08-26  1:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0012f921b6756d37e507f88c38aabc911d2e6831

commit r12-3154-g0012f921b6756d37e507f88c38aabc911d2e6831
Author: Jonathan Yong <10walls@gmail.com>
Date:   Wed Aug 25 16:33:36 2021 +0000

    cygming-crtend.c: fix build warnings
    
    libgcc/Changelog:
    
            * config/i386/cygming-crtend.c: Fix register_frame_ctor
            and register_frame_dtor warnings.
    
    Signed-off-by: Jonathan Yong <10walls@gmail.com>

Diff:
---
 libgcc/config/i386/cygming-crtend.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libgcc/config/i386/cygming-crtend.c b/libgcc/config/i386/cygming-crtend.c
index c7ba109a04a..4ab63427ee2 100644
--- a/libgcc/config/i386/cygming-crtend.c
+++ b/libgcc/config/i386/cygming-crtend.c
@@ -56,7 +56,10 @@ static EH_FRAME_SECTION_CONST int __FRAME_END__[]
 extern void __gcc_register_frame (void); 
 extern void __gcc_deregister_frame (void);
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wprio-ctor-dtor"
 static void register_frame_ctor (void) __attribute__ ((constructor (0)));
+#pragma GCC diagnostic pop
 
 static void
 register_frame_ctor (void)
@@ -65,7 +68,10 @@ register_frame_ctor (void)
 }
 
 #if !DEFAULT_USE_CXA_ATEXIT
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wprio-ctor-dtor"
 static void deregister_frame_dtor (void) __attribute__ ((destructor (0)));
+#pragma GCC diagnostic pop
 
 static void
 deregister_frame_dtor (void)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-26  1:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26  1:31 [gcc r12-3154] cygming-crtend.c: fix build warnings Jonathan Yong

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).