Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/vxworks.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* Common VxWorks target definitions for GNU compiler. | 1 /* Common VxWorks target definitions for GNU compiler. |
2 Copyright (C) 2007-2018 Free Software Foundation, Inc. | 2 Copyright (C) 2007-2020 Free Software Foundation, Inc. |
3 Contributed by CodeSourcery, Inc. | 3 Contributed by CodeSourcery, Inc. |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify it under | 7 GCC is free software; you can redistribute it and/or modify it under |
143 targetm.emutls.var_init = vxworks_emutls_var_init; | 143 targetm.emutls.var_init = vxworks_emutls_var_init; |
144 targetm.emutls.var_align_fixed = true; | 144 targetm.emutls.var_align_fixed = true; |
145 targetm.emutls.debug_form_tls_address = true; | 145 targetm.emutls.debug_form_tls_address = true; |
146 } | 146 } |
147 | 147 |
148 /* We can use .ctors/.dtors sections only in RTP mode. But, if the | 148 /* Arrange to use .ctors/.dtors sections if the target VxWorks configuration |
149 compiler was built with --enable-initfini-array, assume the | 149 and mode supports it, or the init/fini_array sections if we were |
150 toolchain implements the proper glue to make .init_array and | 150 configured with --enable-initfini-array explicitly. In the latter case, |
151 .fini_array work. */ | 151 the toolchain user is expected to provide whatever linker level glue is |
152 targetm.have_ctors_dtors = TARGET_VXWORKS_RTP || HAVE_INITFINI_ARRAY_SUPPORT; | 152 required to get things to operate properly. */ |
153 | |
154 targetm.have_ctors_dtors = | |
155 TARGET_VXWORKS_HAVE_CTORS_DTORS || HAVE_INITFINI_ARRAY_SUPPORT; | |
153 | 156 |
154 /* PIC is only supported for RTPs. */ | 157 /* PIC is only supported for RTPs. */ |
155 if (flag_pic && !TARGET_VXWORKS_RTP) | 158 if (flag_pic && !TARGET_VXWORKS_RTP) |
156 error ("PIC is only supported for RTPs"); | 159 error ("PIC is only supported for RTPs"); |
157 | 160 |