]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Comment about HAVE_INITFINI_ARRAY_SUPPORT in vxworks.h
authorOlivier Hainque <hainque@adacore.com>
Thu, 10 Mar 2022 10:53:27 +0000 (10:53 +0000)
committerOlivier Hainque <hainque@adacore.com>
Thu, 29 Sep 2022 15:10:57 +0000 (15:10 +0000)
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.

gcc/config/vxworks.h

index 6a5f2f8f2eca6488c67bb31bf1fb972e1314f89f..6a88fb27e8ad7e40af090359220bbb094a4c02f7 100644 (file)
@@ -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