vxworks: don't define vxworks_asm_out_constructor when using .init_array
authorRasmus Villemoes <rv@rasmusvillemoes.dk>
Tue, 21 Aug 2018 08:52:40 +0000 (10:52 +0200)
committerRasmus Villemoes <villemoes@gcc.gnu.org>
Tue, 21 Aug 2018 08:52:40 +0000 (08:52 +0000)
commiteae016fc707fac3bf11d671f7fd40b213ee5141b
tree6b5dddb202a9fde183c8877500987073ef90b19a
parentace193dc4773159a2c545ab6ca80842c56019e3a
vxworks: don't define vxworks_asm_out_constructor when using .init_array

When the compiler is configured with --enable-initfini-array,
config/initfini-array.h gets included after config/vxworks.h by tm.h, so
the definitions of TARGET_ASM_CONSTRUTOR/TARGET_ASM_DESTRUCTOR in
vxworks.h get undone in initfini-array.h. Hence, we might as well not
define the vxworks_asm_out_* functions.

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