diff options
author | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2019-07-24 21:13:54 +0000 |
---|---|---|
committer | Jozef Lawrynowicz <jozefl@gcc.gnu.org> | 2019-07-24 21:13:54 +0000 |
commit | c46d17172050fce7783689bc41ab66d80926b170 (patch) | |
tree | 3fb4d7939d62eb54124c72bf7b4a6959a3c2418f /gcc/config.gcc | |
parent | d4c972b7ebd8be9be41d8d58f2793ab6996f266f (diff) | |
download | gcc-c46d17172050fce7783689bc41ab66d80926b170.zip gcc-c46d17172050fce7783689bc41ab66d80926b170.tar.gz gcc-c46d17172050fce7783689bc41ab66d80926b170.tar.bz2 |
config.gcc (msp430*-*-*): Enable initfini_array by default unless explicitly disabled with...
2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* config.gcc (msp430*-*-*): Enable initfini_array by default unless
explicitly disabled with --disable-initfini-array.
From-SVN: r273774
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index e55c67a..76c0cb3 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2512,6 +2512,12 @@ msp430*-*-*) cxx_target_objs="msp430-c.o" tmake_file="${tmake_file} msp430/t-msp430" extra_gcc_objs="driver-msp430.o" + # Enable .init_array unless it has been explicitly disabled. + # The MSP430 EABI mandates the use of .init_array, and the Newlib CRT code + # since mid-2019 expects it. + if test x${disable_initfini_array} != xyes; then + gcc_cv_initfini_array=yes + fi ;; nds32*-*-*) target_cpu_default="0" |