diff options
author | Jonathan Yong <10walls@gmail.com> | 2021-08-25 16:33:36 +0000 |
---|---|---|
committer | Jonathan Yong <10walls@gmail.com> | 2021-08-26 01:32:33 +0000 |
commit | 0012f921b6756d37e507f88c38aabc911d2e6831 (patch) | |
tree | e9c2ee3fa99d48fdd9e898be4dcb1ba967b37a3c /libgcc | |
parent | 85d77ac4745c6263520c8fe66c0dfced8404003f (diff) | |
download | gcc-0012f921b6756d37e507f88c38aabc911d2e6831.zip gcc-0012f921b6756d37e507f88c38aabc911d2e6831.tar.gz gcc-0012f921b6756d37e507f88c38aabc911d2e6831.tar.bz2 |
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>
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/config/i386/cygming-crtend.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libgcc/config/i386/cygming-crtend.c b/libgcc/config/i386/cygming-crtend.c index c7ba109..4ab6342 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) |