[NDS32] nds32*-*-linux* target using init_array/finit_array for ctor/dtor.
authorMonk Chiang <sh.chiang04@gmail.com>
Mon, 15 Apr 2019 08:05:03 +0000 (08:05 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Mon, 15 Apr 2019 08:05:03 +0000 (08:05 +0000)
gcc/
* config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.

From-SVN: r270362

gcc/ChangeLog
gcc/config.gcc

index a6eadedb57fe331a756c3a0cc71c835377e5d431..2946beced27a138fb667e4e5b9a30576d4a189b2 100644 (file)
@@ -1,3 +1,7 @@
+2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
+
+       * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
+
 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
            Kito Cheng  <kito.cheng@gmail.com>
            Shiva Chen  <shiva0217@gmail.com>
index ebbab5d8b6af39e51209122cb90da79934214ee0..09fb9ecd2cdb437d07b2d825151bb38e4b257d98 100644 (file)
@@ -2487,6 +2487,7 @@ nds32*-*-*)
          nds32*-*-linux*)
            tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h nds32/linux.h nds32/nds32_intrinsic.h"
            tmake_file="${tmake_file} nds32/t-nds32 nds32/t-linux"
+           gcc_cv_initfini_array=yes
            ;;
        esac