* [patch] Fix typo in macro name guarding conditional in vxcrtstuff.c
@ 2019-12-13 13:36 Olivier Hainque
0 siblings, 0 replies; only message in thread
From: Olivier Hainque @ 2019-12-13 13:36 UTC (permalink / raw)
To: GCC Patches; +Cc: Olivier Hainque, Jérôme Lambourg
[-- Attachment #1: Type: text/plain, Size: 535 bytes --]
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.
[-- Attachment #2: 0003-Fix-typo-in-macro-name-guarding-conditional-in-vxcrt.patch.txt --]
[-- Type: text/plain, Size: 1095 bytes --]
libgcc/config/vxcrtstuff.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-13 13:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-13 13:36 [patch] Fix typo in macro name guarding conditional in vxcrtstuff.c Olivier Hainque
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).