⛏️ index : buildtools.git

author Fredrik Holmqvist <fredrik.holmqvist@gmail.com> 2021-08-29 16:33:52.0 +02:00:00
committer Jérôme Duval <jerome.duval@gmail.com> 2021-09-08 8:54:03.0 +00:00:00
commit
0ff4d6adaff6995c6f369ba36233e518f4dd752a [patch]
tree
817d36c22025d1c7e1eecb17621350c793bc8fd2
parent
139f4e7c6cd2828dea8c1c3da330258303828aba
download
0ff4d6adaff6995c6f369ba36233e518f4dd752a.tar.gz

gcc: Use initarray for ARM64 and RISC-v.

Change-Id: I6695707357f8dba467b09f700e7efe702102a42e
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4408
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>

Diff

 gcc/gcc/config.gcc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/gcc/config.gcc b/gcc/gcc/config.gcc
index 33f7bba..ea61f2b 100644
--- a/gcc/gcc/config.gcc
+++ a/gcc/gcc/config.gcc
@@ -994,6 +994,7 @@
	tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-freebsd"
	;;
aarch64*-*-haiku*)
	gcc_cv_initfini_array=yes
	tm_file="${tm_file} dbxelf.h elfos.h haiku.h haiku-stdint.h"
	tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-haiku.h"
	tmake_file="${tmake_file} t-haiku aarch64/t-aarch64 aarch64/t-aarch64-haiku"
@@ -2104,6 +2105,7 @@
	tmake_file="${tmake_file} microblaze/t-microblaze"
        ;;
riscv*-*-haiku*)
	gcc_cv_initfini_array=yes
	tm_file="elfos.h haiku.h ${tm_file} riscv/haiku.h haiku-stdint.h"
	tmake_file="${tmake_file} t-haiku riscv/t-riscv riscv/t-haiku"
	gnu_ld=yes