public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2961] Comment about HAVE_INITFINI_ARRAY_SUPPORT in vxworks.h
@ 2022-09-29 15:12 Olivier Hainque
  0 siblings, 0 replies; only message in thread
From: Olivier Hainque @ 2022-09-29 15:12 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cc09a9cf4d4a1ce18184d5e12361c7699e756178

commit r13-2961-gcc09a9cf4d4a1ce18184d5e12361c7699e756178
Author: Olivier Hainque <hainque@adacore.com>
Date:   Thu Mar 10 10:53:27 2022 +0000

    Comment about HAVE_INITFINI_ARRAY_SUPPORT in vxworks.h
    
    Explain that we rely on compiler .c files
    to include auto-host.h before target configuration headers.
    
    2022-09-29  Olivier Hainque  <hainque@adacore.com>
    
    gcc/
            * config/vxworks.h: Add comment on our use of
            HAVE_INITFINI_ARRAY_SUPPORT.

Diff:
---
 gcc/config/vxworks.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h
index 6a5f2f8f2ec..6a88fb27e8a 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-29 15:12 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:12 [gcc r13-2961] 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).