146146# d_target_objs List of extra target-dependent objects that be
147147# linked into the D compiler only.
148148#
149+ # jit_target_objs List of extra target-dependent objects that be
150+ # linked into the jit compiler only.
151+ #
149152# fortran_target_objs List of extra target-dependent objects that be
150153# linked into the fortran compiler only.
151154#
201204#
202205# target_has_targetdm Set to yes or no depending on whether the target
203206# has its own definition of targetdm.
207+ #
208+ # target_has_targetjitm Set to yes or no depending on whether the target
209+ # has its own definition of targetdm.
204210
205211out_file=
206212common_out_file=
@@ -217,10 +223,12 @@ extra_options=
217223c_target_objs=
218224cxx_target_objs=
219225d_target_objs=
226+ jit_target_objs=
220227fortran_target_objs=
221228target_has_targetcm=no
222229target_has_targetm_common=yes
223230target_has_targetdm=no
231+ target_has_targetjitm=no
224232tm_defines=
225233xm_defines=
226234# Set this to force installation and use of collect2.
@@ -338,6 +346,7 @@ aarch64*-*-*)
338346 c_target_objs="aarch64-c.o"
339347 cxx_target_objs="aarch64-c.o"
340348 d_target_objs="aarch64-d.o"
349+ #jit_target_objs="aarch64-jit.o"
341350 extra_objs="aarch64-builtins.o aarch-common.o aarch64-sve-builtins.o aarch64-sve-builtins-shapes.o aarch64-sve-builtins-base.o aarch64-sve-builtins-sve2.o cortex-a57-fma-steering.o aarch64-speculation.o falkor-tag-collision-avoidance.o aarch64-bti-insert.o aarch64-cc-fusion.o"
342351 target_gtfiles="\$(srcdir)/config/aarch64/aarch64-builtins.cc \$(srcdir)/config/aarch64/aarch64-sve-builtins.h \$(srcdir)/config/aarch64/aarch64-sve-builtins.cc"
343352 target_has_targetm_common=yes
@@ -368,6 +377,7 @@ arm*-*-*)
368377 c_target_objs="arm-c.o"
369378 cxx_target_objs="arm-c.o"
370379 d_target_objs="arm-d.o"
380+ #jit_target_objs="arm-jit.o"
371381 extra_options="${extra_options} arm/arm-tables.opt"
372382 target_gtfiles="\$(srcdir)/config/arm/arm-builtins.cc \$(srcdir)/config/arm/arm-mve-builtins.h \$(srcdir)/config/arm/arm-mve-builtins.cc"
373383 ;;
@@ -401,6 +411,7 @@ i[34567]86-*-* | x86_64-*-*)
401411 c_target_objs="i386-c.o"
402412 cxx_target_objs="i386-c.o"
403413 d_target_objs="i386-d.o"
414+ jit_target_objs="i386-jit.o"
404415 extra_objs="x86-tune-sched.o x86-tune-sched-bd.o x86-tune-sched-atom.o x86-tune-sched-core.o i386-options.o i386-builtins.o i386-expand.o i386-features.o"
405416 target_gtfiles="\$(srcdir)/config/i386/i386-builtins.cc \$(srcdir)/config/i386/i386-expand.cc \$(srcdir)/config/i386/i386-options.cc"
406417 extra_options="${extra_options} fused-madd.opt"
@@ -462,6 +473,7 @@ microblaze*-*-*)
462473mips*-*-*)
463474 cpu_type=mips
464475 d_target_objs="mips-d.o"
476+ #jit_target_objs="mips-jit.o"
465477 extra_headers="loongson.h loongson-mmiintrin.h msa.h"
466478 extra_objs="frame-header-opt.o"
467479 extra_options="${extra_options} g.opt fused-madd.opt mips/mips-tables.opt"
@@ -532,6 +544,7 @@ riscv*)
532544 extra_objs="riscv-builtins.o riscv-c.o riscv-sr.o riscv-shorten-memrefs.o riscv-selftests.o riscv-v.o riscv-vsetvl.o"
533545 extra_objs="${extra_objs} riscv-vector-builtins.o riscv-vector-builtins-shapes.o riscv-vector-builtins-bases.o"
534546 d_target_objs="riscv-d.o"
547+ #jit_target_objs="riscv-jit.o"
535548 extra_headers="riscv_vector.h"
536549 target_gtfiles="$target_gtfiles \$(srcdir)/config/riscv/riscv-vector-builtins.cc"
537550 target_gtfiles="$target_gtfiles \$(srcdir)/config/riscv/riscv-vector-builtins.h"
@@ -548,11 +561,13 @@ sparc*-*-*)
548561 c_target_objs="sparc-c.o"
549562 cxx_target_objs="sparc-c.o"
550563 d_target_objs="sparc-d.o"
564+ #jit_target_objs="sparc-jit.o"
551565 extra_headers="visintrin.h"
552566 ;;
553567s390*-*-*)
554568 cpu_type=s390
555569 d_target_objs="s390-d.o"
570+ #jit_target_objs="s390-jit.o"
556571 extra_options="${extra_options} fused-madd.opt"
557572 extra_headers="s390intrin.h htmintrin.h htmxlintrin.h vecintrin.h"
558573 ;;
@@ -588,6 +603,12 @@ then
588603 tm_d_file="${tm_d_file} ${cpu_type}/${cpu_type}-d.h"
589604fi
590605
606+ tm_jit_file=
607+ if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-jit.h
608+ then
609+ tm_jit_file="${tm_jit_file} ${cpu_type}/${cpu_type}-jit.h"
610+ fi
611+
591612extra_modes=
592613if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
593614then
@@ -754,9 +775,11 @@ case ${target} in
754775 c_target_objs="${c_target_objs} darwin-c.o"
755776 cxx_target_objs="${cxx_target_objs} darwin-c.o"
756777 d_target_objs="${d_target_objs} darwin-d.o"
778+ #jit_target_objs="${jit_target_objs} darwin-jit.o"
757779 fortran_target_objs="darwin-f.o"
758780 target_has_targetcm=yes
759781 target_has_targetdm=yes
782+ #target_has_targetjitm=yes
760783 extra_objs="${extra_objs} darwin.o"
761784 extra_gcc_objs="darwin-driver.o"
762785 default_use_cxa_atexit=yes
@@ -785,8 +808,10 @@ case ${target} in
785808 default_use_cxa_atexit=yes
786809 use_gcc_stdint=wrap
787810 d_target_objs="${d_target_objs} dragonfly-d.o"
811+ #jit_target_objs="${jit_target_objs} dragonfly-jit.o"
788812 tmake_file="${tmake_file} t-dragonfly"
789813 target_has_targetdm=yes
814+ #target_has_targetjitm=yes
790815 ;;
791816*-*-freebsd*)
792817 # This is the generic ELF configuration of FreeBSD. Later
@@ -836,8 +861,10 @@ case ${target} in
836861 esac
837862 use_gcc_stdint=wrap
838863 d_target_objs="${d_target_objs} freebsd-d.o"
864+ #jit_target_objs="${jit_target_objs} freebsd-jit.o"
839865 tmake_file="${tmake_file} t-freebsd"
840866 target_has_targetdm=yes
867+ #target_has_targetjitm=yes
841868 ;;
842869*-*-fuchsia*)
843870 native_system_header_dir=/include
@@ -910,19 +937,27 @@ case ${target} in
910937 case $target in
911938 *-*-*linux*)
912939 d_target_objs="${d_target_objs} linux-d.o"
940+ jit_target_objs="${jit_target_objs} linux-jit.o"
913941 target_has_targetdm=yes
942+ target_has_targetjitm=yes
914943 ;;
915944 *-*-kfreebsd*-gnu)
916945 d_target_objs="${d_target_objs} kfreebsd-d.o"
946+ #jit_target_objs="${jit_target_objs} kfreebsd-jit.o"
917947 target_has_targetdm=yes
948+ #target_has_targetjitm=yes
918949 ;;
919950 *-*-kopensolaris*-gnu)
920951 d_target_objs="${d_target_objs} kopensolaris-d.o"
952+ #jit_target_objs="${jit_target_objs} kopensolaris-jit.o"
921953 target_has_targetdm=yes
954+ #target_has_targetjitm=yes
922955 ;;
923956 *-*-gnu*)
924957 d_target_objs="${d_target_objs} gnu-d.o"
958+ #jit_target_objs="${jit_target_objs} gnu-jit.o"
925959 target_has_targetdm=yes
960+ #target_has_targetjitm=yes
926961 ;;
927962 esac
928963 ;;
@@ -931,6 +966,7 @@ case ${target} in
931966 tmake_file="t-netbsd t-slibgcc"
932967 extra_objs="${extra_objs} netbsd.o"
933968 d_target_objs="${d_target_objs} netbsd-d.o"
969+ #jit_target_objs="${jit_target_objs} netbsd-jit.o"
934970 gas=yes
935971 gnu_ld=yes
936972 use_gcc_stdint=wrap
@@ -940,6 +976,7 @@ case ${target} in
940976 nbsd_tm_file="netbsd.h netbsd-stdint.h netbsd-elf.h"
941977 default_use_cxa_atexit=yes
942978 target_has_targetdm=yes
979+ #target_has_targetjitm=yes
943980 case ${target} in
944981 arm*-* | i[34567]86-* | powerpc*-* | sparc*-* | x86_64-*)
945982 default_gnu_indirect_function=yes
@@ -959,7 +996,9 @@ case ${target} in
959996 ;;
960997 esac
961998 d_target_objs="${d_target_objs} openbsd-d.o"
999+ #jit_target_objs="${jit_target_objs} openbsd-jit.o"
9621000 target_has_targetdm=yes
1001+ #target_has_targetjitm=yes
9631002 ;;
9641003*-*-phoenix*)
9651004 gas=yes
@@ -1016,6 +1055,7 @@ case ${target} in
10161055 c_target_objs="${c_target_objs} sol2-c.o"
10171056 cxx_target_objs="${cxx_target_objs} sol2-c.o sol2-cxx.o"
10181057 d_target_objs="${d_target_objs} sol2-d.o"
1058+ #jit_target_objs="${jit_target_objs} sol2-jit.o"
10191059 extra_objs="${extra_objs} sol2.o sol2-stubs.o"
10201060 extra_options="${extra_options} sol2.opt"
10211061 case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
@@ -1024,6 +1064,7 @@ case ${target} in
10241064 ;;
10251065 esac
10261066 target_has_targetdm=yes
1067+ #target_has_targetjitm=yes
10271068 ;;
10281069*-*-*vms*)
10291070 extra_options="${extra_options} vms/vms.opt"
@@ -1760,6 +1801,7 @@ hppa*64*-*-linux*)
17601801 pa/pa64-linux.h"
17611802 tmake_file="${tmake_file} pa/t-pa pa/t-linux"
17621803 d_target_objs="${d_target_objs} pa-d.o"
1804+ #jit_target_objs="${jit_target_objs} pa-jit.o"
17631805 gas=yes gnu_ld=yes
17641806 ;;
17651807hppa*-*-linux*)
@@ -1768,6 +1810,7 @@ hppa*-*-linux*)
17681810 pa/pa32-regs.h pa/pa32-linux.h"
17691811 tmake_file="${tmake_file} pa/t-pa pa/t-linux"
17701812 d_target_objs="${d_target_objs} pa-d.o"
1813+ #jit_target_objs="${jit_target_objs} pa-jit.o"
17711814 ;;
17721815hppa*-*-openbsd*)
17731816 target_cpu_default="MASK_PA_11"
@@ -1776,6 +1819,7 @@ hppa*-*-openbsd*)
17761819 extra_options="${extra_options} openbsd.opt"
17771820 tmake_file="pa/t-pa"
17781821 d_target_objs="${d_target_objs} pa-d.o"
1822+ #jit_target_objs="${jit_target_objs} pa-jit.o"
17791823 gas=yes
17801824 gnu_ld=yes
17811825 ;;
@@ -1813,6 +1857,7 @@ hppa*64*-*-hpux11*)
18131857 pa/pa-hpux1010.opt pa/pa64-hpux.opt hpux11.opt"
18141858 tmake_file="pa/t-pa t-slibgcc"
18151859 d_target_objs="${d_target_objs} pa-d.o"
1860+ #jit_target_objs="${jit_target_objs} pa-jit.o"
18161861 case x${enable_threads} in
18171862 x | xyes | xposix )
18181863 thread_file=posix
@@ -2086,7 +2131,9 @@ i[34567]86-*-cygwin*)
20862131 c_target_objs="${c_target_objs} msformat-c.o"
20872132 cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
20882133 d_target_objs="${d_target_objs} cygwin-d.o"
2134+ #jit_target_objs="${jit_target_objs} cygwin-jit.o"
20892135 target_has_targetdm="yes"
2136+ #target_has_targetjitm=yes
20902137 if test x$enable_threads = xyes; then
20912138 thread_file='posix'
20922139 fi
@@ -2104,7 +2151,9 @@ x86_64-*-cygwin*)
21042151 c_target_objs="${c_target_objs} msformat-c.o"
21052152 cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
21062153 d_target_objs="${d_target_objs} cygwin-d.o"
2154+ #jit_target_objs="${jit_target_objs} cygwin-jit.o"
21072155 target_has_targetdm="yes"
2156+ #target_has_targetjitm=yes
21082157 if test x$enable_threads = xyes; then
21092158 thread_file='posix'
21102159 fi
@@ -2118,8 +2167,10 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
21182167 c_target_objs="${c_target_objs} winnt-c.o"
21192168 cxx_target_objs="${cxx_target_objs} winnt-c.o"
21202169 d_target_objs="${d_target_objs} winnt-d.o"
2170+ #jit_target_objs="${jit_target_objs} winnt-jit.o"
21212171 target_has_targetcm="yes"
21222172 target_has_targetdm="yes"
2173+ #target_has_targetjitm=yes
21232174 case ${target} in
21242175 x86_64-*-* | *-w64-*)
21252176 need_64bit_isa=yes
@@ -3582,6 +3633,10 @@ if [ "$target_has_targetdm" = "no" ]; then
35823633 d_target_objs="$d_target_objs default-d.o"
35833634fi
35843635
3636+ if [ "$target_has_targetjitm" = "no" ]; then
3637+ jit_target_objs="$jit_target_objs default-jit.o"
3638+ fi
3639+
35853640# Support for --with-cpu and related options (and a few unrelated options,
35863641# too).
35873642case ${with_cpu} in
@@ -5752,6 +5807,7 @@ case ${target} in
57525807 c_target_objs="${c_target_objs} ${cpu_type}-c.o"
57535808 cxx_target_objs="${cxx_target_objs} ${cpu_type}-c.o"
57545809 d_target_objs="${d_target_objs} ${cpu_type}-d.o"
5810+ jit_target_objs="${jit_target_objs} ${cpu_type}-jit.o"
57555811 tmake_file="${cpu_type}/t-${cpu_type} ${tmake_file}"
57565812 ;;
57575813
0 commit comments