diff mbox series

Fix typo in macro name guarding conditional in vxcrtstuff.c

Message ID 95558C55-A797-4AF0-94CF-15F6DBDB398C@adacore.com
State New
Headers show
Series Fix typo in macro name guarding conditional in vxcrtstuff.c | expand

Commit Message

Olivier Hainque Dec. 13, 2019, 1:36 p.m. UTC
Hello,

This patch fixes an obvious typo in a macro name used to
guard some definitions used later on in vxcrtstuff.c, leading
to an unexpected mix of symbols in a vxcrtbegin variant and
incorrect behavior for the corresponding mode at run time.

Tested in accordance with the description in
https://gcc.gnu.org/ml/gcc-patches/2019-12/msg00911.html

Committing to mainline.

Olivier

2019-12-13  Olivier Hainque  <hainque@adacore.com>

 	libgcc/
    	* config/vxcrtstuff.c: Fix incorrect spelling of
    	USE_INITFINI_ARRAY in guard.
libgcc/config/vxcrtstuff.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libgcc/config/vxcrtstuff.c b/libgcc/config/vxcrtstuff.c
index 616ad072cba..87fadda9ac5 100644
--- a/libgcc/config/vxcrtstuff.c
+++ b/libgcc/config/vxcrtstuff.c
@@ -38,7 +38,7 @@  see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    Otherwise, we may rely on ctors/dtors sections for RTPs or expect munch to
    be involved for kernel modules.  */
 
-#if !defined(USE_INIT_FINI_ARRAY) && defined(__RTP__)
+#if !defined(USE_INITFINI_ARRAY) && defined(__RTP__)
 #define USE_CDTORS_SECTIONS
 #endif
 
@@ -77,7 +77,7 @@  __attribute__((section(__LIBGCC_EH_FRAME_SECTION_NAME__), aligned(4)))
 #define EH_CTOR_ATTRIBUTE __attribute__((constructor (101)))
 #define EH_DTOR_ATTRIBUTE __attribute__((destructor (101)))
 
-#else /* USE_INITFINI_ARRAY  */
+#else /* !USE_INITFINI_ARRAY  */
 
 /* Note: Even in case of .ctors/.dtors sections, we can't use the attribute
    (constructor (15)) here as gcc may have been configured with constructors