From cc09a9cf4d4a1ce18184d5e12361c7699e756178 Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Thu, 10 Mar 2022 10:53:27 +0000 Subject: [PATCH] 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 gcc/ * config/vxworks.h: Add comment on our use of HAVE_INITFINI_ARRAY_SUPPORT. --- gcc/config/vxworks.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index 6a5f2f8f2eca..6a88fb27e8ad 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 . */ +/* ??? 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.47.2