Allow target overrides of ctors/dtors support advertisement on VxWorks
authorJerome Lambourg <lambourg@adacore.com>
Fri, 16 Nov 2018 09:23:22 +0000 (09:23 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Fri, 16 Nov 2018 09:23:22 +0000 (09:23 +0000)
commit7f37b31d731262f65b5274e660ac123117e3b775
tree18933e0ad81eb68ca32bd2ea167f81f32037abaf
parentff641ae11288626fb367dd7e56ddcc363c34d02a
Allow target overrides of ctors/dtors support advertisement on VxWorks

2018-11-16  Jerome Lambourg  <lambourg@adacore.com>

        * config/vxworks.h (TARGET_VXWORKS_HAVE_CTORS_DTORS): New macro.
        Default to TARGET_VXWORKS_RTP.
        (SUPPORTS_INIT_PRIORITY): Use TARGET_VXWORKS_HAVE_CTORS_DTORS instead
        of TARGET_VXWORKS_RTP.
        * config/vxworksae.h: Also define TARGET_VXWORKS_HAVE_CTORS_DTORS.
        * config/vxworks.c: Use TARGET_VXWORKS_HAVE_CTORS_DTORS instead
        of TARGET_VXWORKS_RTP to set targetm.have_ctors_dtors.

From-SVN: r266201
gcc/ChangeLog
gcc/config/vxworks.c
gcc/config/vxworks.h