146
146
# d_target_objs List of extra target-dependent objects that be
147
147
# linked into the D compiler only.
148
148
#
149
+ # jit_target_objs List of extra target-dependent objects that be
150
+ # linked into the jit compiler only.
151
+ #
149
152
# fortran_target_objs List of extra target-dependent objects that be
150
153
# linked into the fortran compiler only.
151
154
#
201
204
#
202
205
# target_has_targetdm Set to yes or no depending on whether the target
203
206
# 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.
204
210
205
211
out_file=
206
212
common_out_file=
@@ -217,10 +223,12 @@ extra_options=
217
223
c_target_objs=
218
224
cxx_target_objs=
219
225
d_target_objs=
226
+ jit_target_objs=
220
227
fortran_target_objs=
221
228
target_has_targetcm=no
222
229
target_has_targetm_common=yes
223
230
target_has_targetdm=no
231
+ target_has_targetjitm=no
224
232
tm_defines=
225
233
xm_defines=
226
234
# Set this to force installation and use of collect2.
@@ -338,6 +346,7 @@ aarch64*-*-*)
338
346
c_target_objs="aarch64-c.o"
339
347
cxx_target_objs="aarch64-c.o"
340
348
d_target_objs="aarch64-d.o"
349
+ #jit_target_objs="aarch64-jit.o"
341
350
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"
342
351
target_gtfiles="\$(srcdir)/config/aarch64/aarch64-builtins.cc \$(srcdir)/config/aarch64/aarch64-sve-builtins.h \$(srcdir)/config/aarch64/aarch64-sve-builtins.cc"
343
352
target_has_targetm_common=yes
@@ -368,6 +377,7 @@ arm*-*-*)
368
377
c_target_objs="arm-c.o"
369
378
cxx_target_objs="arm-c.o"
370
379
d_target_objs="arm-d.o"
380
+ #jit_target_objs="arm-jit.o"
371
381
extra_options="${extra_options} arm/arm-tables.opt"
372
382
target_gtfiles="\$(srcdir)/config/arm/arm-builtins.cc \$(srcdir)/config/arm/arm-mve-builtins.h \$(srcdir)/config/arm/arm-mve-builtins.cc"
373
383
;;
@@ -401,6 +411,7 @@ i[34567]86-*-* | x86_64-*-*)
401
411
c_target_objs="i386-c.o"
402
412
cxx_target_objs="i386-c.o"
403
413
d_target_objs="i386-d.o"
414
+ jit_target_objs="i386-jit.o"
404
415
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"
405
416
target_gtfiles="\$(srcdir)/config/i386/i386-builtins.cc \$(srcdir)/config/i386/i386-expand.cc \$(srcdir)/config/i386/i386-options.cc"
406
417
extra_options="${extra_options} fused-madd.opt"
@@ -462,6 +473,7 @@ microblaze*-*-*)
462
473
mips*-*-*)
463
474
cpu_type=mips
464
475
d_target_objs="mips-d.o"
476
+ #jit_target_objs="mips-jit.o"
465
477
extra_headers="loongson.h loongson-mmiintrin.h msa.h"
466
478
extra_objs="frame-header-opt.o"
467
479
extra_options="${extra_options} g.opt fused-madd.opt mips/mips-tables.opt"
@@ -532,6 +544,7 @@ riscv*)
532
544
extra_objs="riscv-builtins.o riscv-c.o riscv-sr.o riscv-shorten-memrefs.o riscv-selftests.o riscv-v.o riscv-vsetvl.o"
533
545
extra_objs="${extra_objs} riscv-vector-builtins.o riscv-vector-builtins-shapes.o riscv-vector-builtins-bases.o"
534
546
d_target_objs="riscv-d.o"
547
+ #jit_target_objs="riscv-jit.o"
535
548
extra_headers="riscv_vector.h"
536
549
target_gtfiles="$target_gtfiles \$(srcdir)/config/riscv/riscv-vector-builtins.cc"
537
550
target_gtfiles="$target_gtfiles \$(srcdir)/config/riscv/riscv-vector-builtins.h"
@@ -548,11 +561,13 @@ sparc*-*-*)
548
561
c_target_objs="sparc-c.o"
549
562
cxx_target_objs="sparc-c.o"
550
563
d_target_objs="sparc-d.o"
564
+ #jit_target_objs="sparc-jit.o"
551
565
extra_headers="visintrin.h"
552
566
;;
553
567
s390*-*-*)
554
568
cpu_type=s390
555
569
d_target_objs="s390-d.o"
570
+ #jit_target_objs="s390-jit.o"
556
571
extra_options="${extra_options} fused-madd.opt"
557
572
extra_headers="s390intrin.h htmintrin.h htmxlintrin.h vecintrin.h"
558
573
;;
@@ -588,6 +603,12 @@ then
588
603
tm_d_file="${tm_d_file} ${cpu_type}/${cpu_type}-d.h"
589
604
fi
590
605
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
+
591
612
extra_modes=
592
613
if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
593
614
then
@@ -754,9 +775,11 @@ case ${target} in
754
775
c_target_objs="${c_target_objs} darwin-c.o"
755
776
cxx_target_objs="${cxx_target_objs} darwin-c.o"
756
777
d_target_objs="${d_target_objs} darwin-d.o"
778
+ #jit_target_objs="${jit_target_objs} darwin-jit.o"
757
779
fortran_target_objs="darwin-f.o"
758
780
target_has_targetcm=yes
759
781
target_has_targetdm=yes
782
+ #target_has_targetjitm=yes
760
783
extra_objs="${extra_objs} darwin.o"
761
784
extra_gcc_objs="darwin-driver.o"
762
785
default_use_cxa_atexit=yes
@@ -785,8 +808,10 @@ case ${target} in
785
808
default_use_cxa_atexit=yes
786
809
use_gcc_stdint=wrap
787
810
d_target_objs="${d_target_objs} dragonfly-d.o"
811
+ #jit_target_objs="${jit_target_objs} dragonfly-jit.o"
788
812
tmake_file="${tmake_file} t-dragonfly"
789
813
target_has_targetdm=yes
814
+ #target_has_targetjitm=yes
790
815
;;
791
816
*-*-freebsd*)
792
817
# This is the generic ELF configuration of FreeBSD. Later
@@ -836,8 +861,10 @@ case ${target} in
836
861
esac
837
862
use_gcc_stdint=wrap
838
863
d_target_objs="${d_target_objs} freebsd-d.o"
864
+ #jit_target_objs="${jit_target_objs} freebsd-jit.o"
839
865
tmake_file="${tmake_file} t-freebsd"
840
866
target_has_targetdm=yes
867
+ #target_has_targetjitm=yes
841
868
;;
842
869
*-*-fuchsia*)
843
870
native_system_header_dir=/include
@@ -910,19 +937,27 @@ case ${target} in
910
937
case $target in
911
938
*-*-*linux*)
912
939
d_target_objs="${d_target_objs} linux-d.o"
940
+ jit_target_objs="${jit_target_objs} linux-jit.o"
913
941
target_has_targetdm=yes
942
+ target_has_targetjitm=yes
914
943
;;
915
944
*-*-kfreebsd*-gnu)
916
945
d_target_objs="${d_target_objs} kfreebsd-d.o"
946
+ #jit_target_objs="${jit_target_objs} kfreebsd-jit.o"
917
947
target_has_targetdm=yes
948
+ #target_has_targetjitm=yes
918
949
;;
919
950
*-*-kopensolaris*-gnu)
920
951
d_target_objs="${d_target_objs} kopensolaris-d.o"
952
+ #jit_target_objs="${jit_target_objs} kopensolaris-jit.o"
921
953
target_has_targetdm=yes
954
+ #target_has_targetjitm=yes
922
955
;;
923
956
*-*-gnu*)
924
957
d_target_objs="${d_target_objs} gnu-d.o"
958
+ #jit_target_objs="${jit_target_objs} gnu-jit.o"
925
959
target_has_targetdm=yes
960
+ #target_has_targetjitm=yes
926
961
;;
927
962
esac
928
963
;;
@@ -931,6 +966,7 @@ case ${target} in
931
966
tmake_file="t-netbsd t-slibgcc"
932
967
extra_objs="${extra_objs} netbsd.o"
933
968
d_target_objs="${d_target_objs} netbsd-d.o"
969
+ #jit_target_objs="${jit_target_objs} netbsd-jit.o"
934
970
gas=yes
935
971
gnu_ld=yes
936
972
use_gcc_stdint=wrap
@@ -940,6 +976,7 @@ case ${target} in
940
976
nbsd_tm_file="netbsd.h netbsd-stdint.h netbsd-elf.h"
941
977
default_use_cxa_atexit=yes
942
978
target_has_targetdm=yes
979
+ #target_has_targetjitm=yes
943
980
case ${target} in
944
981
arm*-* | i[34567]86-* | powerpc*-* | sparc*-* | x86_64-*)
945
982
default_gnu_indirect_function=yes
@@ -959,7 +996,9 @@ case ${target} in
959
996
;;
960
997
esac
961
998
d_target_objs="${d_target_objs} openbsd-d.o"
999
+ #jit_target_objs="${jit_target_objs} openbsd-jit.o"
962
1000
target_has_targetdm=yes
1001
+ #target_has_targetjitm=yes
963
1002
;;
964
1003
*-*-phoenix*)
965
1004
gas=yes
@@ -1016,6 +1055,7 @@ case ${target} in
1016
1055
c_target_objs="${c_target_objs} sol2-c.o"
1017
1056
cxx_target_objs="${cxx_target_objs} sol2-c.o sol2-cxx.o"
1018
1057
d_target_objs="${d_target_objs} sol2-d.o"
1058
+ #jit_target_objs="${jit_target_objs} sol2-jit.o"
1019
1059
extra_objs="${extra_objs} sol2.o sol2-stubs.o"
1020
1060
extra_options="${extra_options} sol2.opt"
1021
1061
case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
@@ -1024,6 +1064,7 @@ case ${target} in
1024
1064
;;
1025
1065
esac
1026
1066
target_has_targetdm=yes
1067
+ #target_has_targetjitm=yes
1027
1068
;;
1028
1069
*-*-*vms*)
1029
1070
extra_options="${extra_options} vms/vms.opt"
@@ -1760,6 +1801,7 @@ hppa*64*-*-linux*)
1760
1801
pa/pa64-linux.h"
1761
1802
tmake_file="${tmake_file} pa/t-pa pa/t-linux"
1762
1803
d_target_objs="${d_target_objs} pa-d.o"
1804
+ #jit_target_objs="${jit_target_objs} pa-jit.o"
1763
1805
gas=yes gnu_ld=yes
1764
1806
;;
1765
1807
hppa*-*-linux*)
@@ -1768,6 +1810,7 @@ hppa*-*-linux*)
1768
1810
pa/pa32-regs.h pa/pa32-linux.h"
1769
1811
tmake_file="${tmake_file} pa/t-pa pa/t-linux"
1770
1812
d_target_objs="${d_target_objs} pa-d.o"
1813
+ #jit_target_objs="${jit_target_objs} pa-jit.o"
1771
1814
;;
1772
1815
hppa*-*-openbsd*)
1773
1816
target_cpu_default="MASK_PA_11"
@@ -1776,6 +1819,7 @@ hppa*-*-openbsd*)
1776
1819
extra_options="${extra_options} openbsd.opt"
1777
1820
tmake_file="pa/t-pa"
1778
1821
d_target_objs="${d_target_objs} pa-d.o"
1822
+ #jit_target_objs="${jit_target_objs} pa-jit.o"
1779
1823
gas=yes
1780
1824
gnu_ld=yes
1781
1825
;;
@@ -1813,6 +1857,7 @@ hppa*64*-*-hpux11*)
1813
1857
pa/pa-hpux1010.opt pa/pa64-hpux.opt hpux11.opt"
1814
1858
tmake_file="pa/t-pa t-slibgcc"
1815
1859
d_target_objs="${d_target_objs} pa-d.o"
1860
+ #jit_target_objs="${jit_target_objs} pa-jit.o"
1816
1861
case x${enable_threads} in
1817
1862
x | xyes | xposix )
1818
1863
thread_file=posix
@@ -2086,7 +2131,9 @@ i[34567]86-*-cygwin*)
2086
2131
c_target_objs="${c_target_objs} msformat-c.o"
2087
2132
cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
2088
2133
d_target_objs="${d_target_objs} cygwin-d.o"
2134
+ #jit_target_objs="${jit_target_objs} cygwin-jit.o"
2089
2135
target_has_targetdm="yes"
2136
+ #target_has_targetjitm=yes
2090
2137
if test x$enable_threads = xyes; then
2091
2138
thread_file='posix'
2092
2139
fi
@@ -2104,7 +2151,9 @@ x86_64-*-cygwin*)
2104
2151
c_target_objs="${c_target_objs} msformat-c.o"
2105
2152
cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
2106
2153
d_target_objs="${d_target_objs} cygwin-d.o"
2154
+ #jit_target_objs="${jit_target_objs} cygwin-jit.o"
2107
2155
target_has_targetdm="yes"
2156
+ #target_has_targetjitm=yes
2108
2157
if test x$enable_threads = xyes; then
2109
2158
thread_file='posix'
2110
2159
fi
@@ -2118,8 +2167,10 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
2118
2167
c_target_objs="${c_target_objs} winnt-c.o"
2119
2168
cxx_target_objs="${cxx_target_objs} winnt-c.o"
2120
2169
d_target_objs="${d_target_objs} winnt-d.o"
2170
+ #jit_target_objs="${jit_target_objs} winnt-jit.o"
2121
2171
target_has_targetcm="yes"
2122
2172
target_has_targetdm="yes"
2173
+ #target_has_targetjitm=yes
2123
2174
case ${target} in
2124
2175
x86_64-*-* | *-w64-*)
2125
2176
need_64bit_isa=yes
@@ -3582,6 +3633,10 @@ if [ "$target_has_targetdm" = "no" ]; then
3582
3633
d_target_objs="$d_target_objs default-d.o"
3583
3634
fi
3584
3635
3636
+ if [ "$target_has_targetjitm" = "no" ]; then
3637
+ jit_target_objs="$jit_target_objs default-jit.o"
3638
+ fi
3639
+
3585
3640
# Support for --with-cpu and related options (and a few unrelated options,
3586
3641
# too).
3587
3642
case ${with_cpu} in
@@ -5752,6 +5807,7 @@ case ${target} in
5752
5807
c_target_objs="${c_target_objs} ${cpu_type}-c.o"
5753
5808
cxx_target_objs="${cxx_target_objs} ${cpu_type}-c.o"
5754
5809
d_target_objs="${d_target_objs} ${cpu_type}-d.o"
5810
+ jit_target_objs="${jit_target_objs} ${cpu_type}-jit.o"
5755
5811
tmake_file="${cpu_type}/t-${cpu_type} ${tmake_file}"
5756
5812
;;
5757
5813
0 commit comments