Fix typo in macro name guarding conditional in vxcrtstuff.c
diff mbox series

Message ID
State New
Headers show
  • Fix typo in macro name guarding conditional in vxcrtstuff.c
Related show

Commit Message

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

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

Committing to mainline.


2019-12-13  Olivier Hainque  <>

    	* 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

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__)
@@ -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