* [patch] comment about HAVE_INITFINI_ARRAY_SUPPORT in vxworks.h
@ 2022-09-29 15:09 Olivier Hainque
0 siblings, 0 replies; only message in thread
From: Olivier Hainque @ 2022-09-29 15:09 UTC (permalink / raw)
To: gcc-patches; +Cc: Olivier Hainque
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
Hello,
This change simply adds a comment in vxworks.h, describing
our expectations wrt our use of HAVE_INITFINI_ARRAY_SUPPORT
from this header.
Committing to mainline shortly.
Cheers,
Olivier
2022-09-29 Olivier Hainque <hainque@adacore.com>
gcc/
* config/vxworks.h: Add comment on our use of
HAVE_INITFINI_ARRAY_SUPPORT.
[-- Attachment #2: 0006-Comment-about-HAVE_INITFINI_ARRAY_SUPPORT-in-vxworks.patch --]
[-- Type: application/octet-stream, Size: 1169 bytes --]
From 423f71247294799c10960ec3be37a2544526f912 Mon Sep 17 00:00:00 2001
From: Olivier Hainque <hainque@adacore.com>
Date: Thu, 10 Mar 2022 10:53:27 +0000
Subject: [PATCH 06/18] Comment about HAVE_INITFINI_ARRAY_SUPPORT in vxworks.h
Explain that we rely on compiler .c files
including auto-host.h before target configuration headers.
---
gcc/config/vxworks.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h
index c18a0f65529..f2103def448 100644
--- a/gcc/config/vxworks.h
+++ b/gcc/config/vxworks.h
@@ -19,6 +19,11 @@ You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
+/* ??? We use HAVE_INITFINI_ARRAY_SUPPORT in preprocessor guards in this
+ header, which is conveyed by auto-host.h despite being a target property.
+ #include auto-host.h here would trigger lots of conflicts so we rely on
+ compiler .c files doing this before target configuration headers. */
+
/* Assert that we are targeting VxWorks. */
#undef TARGET_VXWORKS
#define TARGET_VXWORKS 1
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-29 15:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-29 15:09 [patch] comment about HAVE_INITFINI_ARRAY_SUPPORT in vxworks.h 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).