Skip to content

Commit 8db3df9

Browse files
Merge pull request gcc-mirror#81 from iains/contracts-nonattr-rebase-onto-r15-7667-g4de2d2f80ed1
Contracts nonattr rebase onto r15 7667 g4de2d2f80ed1
2 parents 81eddf6 + 47f1e7c commit 8db3df9

File tree

121 files changed

+5286
-7699
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+5286
-7699
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2025-02-19 Thomas Schwinge <tschwinge@baylibre.com>
2+
3+
* configure.ac (unsupported_languages) [GCN, nvptx]: Add 'ada'.
4+
(noconfigdirs) [GCN, nvptx]: Add 'target-libobjc',
5+
'target-libffi', 'target-libgo'.
6+
* configure: Regenerate.
7+
18
2025-02-05 Jin Ma <jinma@linux.alibaba.com>
29

310
* MAINTAINERS: Add myself.

configure

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3450,6 +3450,21 @@ if test "${ENABLE_LIBSTDCXX}" = "default" ; then
34503450
esac
34513451
fi
34523452

3453+
# Disable Ada/GNAT on systems where it is known to not work.
3454+
# For testing, you can override this with --enable-languages=ada.
3455+
case ,${enable_languages}, in
3456+
*,ada,*)
3457+
;;
3458+
*)
3459+
case "${target}" in
3460+
amdgcn*-*-* \
3461+
| nvptx*-*-* )
3462+
unsupported_languages="$unsupported_languages ada"
3463+
;;
3464+
esac
3465+
;;
3466+
esac
3467+
34533468
# Disable C++ on systems where it is known to not work.
34543469
# For testing, you can override this with --enable-languages=c++.
34553470
case ,${enable_languages}, in
@@ -3478,6 +3493,16 @@ case ,${enable_languages}, in
34783493
;;
34793494
esac
34803495

3496+
# Disable libobjc for some systems where it is known to not work.
3497+
case "${target}" in
3498+
amdgcn*-*-*)
3499+
noconfigdirs="$noconfigdirs target-libobjc"
3500+
;;
3501+
nvptx*-*-*)
3502+
noconfigdirs="$noconfigdirs target-libobjc"
3503+
;;
3504+
esac
3505+
34813506
# Disable D on systems where it is known to not work.
34823507
# For testing, you can override this with --enable-languages=d.
34833508
case ,${enable_languages}, in
@@ -3558,6 +3583,9 @@ case "${target}" in
35583583
alpha*-*-*vms*)
35593584
noconfigdirs="$noconfigdirs target-libffi"
35603585
;;
3586+
amdgcn*-*-*)
3587+
noconfigdirs="$noconfigdirs target-libffi"
3588+
;;
35613589
arm*-*-freebsd*)
35623590
noconfigdirs="$noconfigdirs target-libffi"
35633591
;;
@@ -3601,6 +3629,9 @@ case "${target}" in
36013629
mmix-*-*)
36023630
noconfigdirs="$noconfigdirs target-libffi"
36033631
;;
3632+
nvptx*-*-*)
3633+
noconfigdirs="$noconfigdirs target-libffi"
3634+
;;
36043635
powerpc-*-aix*)
36053636
;;
36063637
rs6000-*-aix*)
@@ -3651,9 +3682,15 @@ if test x$enable_libgo = x; then
36513682
*-*-cygwin* | *-*-mingw*)
36523683
noconfigdirs="$noconfigdirs target-libgo"
36533684
;;
3685+
amdgcn*-*-*)
3686+
noconfigdirs="$noconfigdirs target-libgo"
3687+
;;
36543688
bpf-*-*)
36553689
noconfigdirs="$noconfigdirs target-libgo"
36563690
;;
3691+
nvptx*-*-*)
3692+
noconfigdirs="$noconfigdirs target-libgo"
3693+
;;
36573694
esac
36583695
fi
36593696

@@ -4055,7 +4092,7 @@ case "${target}" in
40554092
noconfigdirs="$noconfigdirs gprof"
40564093
;;
40574094
nvptx*-*-*)
4058-
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4095+
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3"
40594096
;;
40604097
sh-*-*)
40614098
case "${target}" in

configure.ac

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,21 @@ if test "${ENABLE_LIBSTDCXX}" = "default" ; then
676676
esac
677677
fi
678678

679+
# Disable Ada/GNAT on systems where it is known to not work.
680+
# For testing, you can override this with --enable-languages=ada.
681+
case ,${enable_languages}, in
682+
*,ada,*)
683+
;;
684+
*)
685+
case "${target}" in
686+
amdgcn*-*-* \
687+
| nvptx*-*-* )
688+
unsupported_languages="$unsupported_languages ada"
689+
;;
690+
esac
691+
;;
692+
esac
693+
679694
# Disable C++ on systems where it is known to not work.
680695
# For testing, you can override this with --enable-languages=c++.
681696
case ,${enable_languages}, in
@@ -704,6 +719,16 @@ case ,${enable_languages}, in
704719
;;
705720
esac
706721

722+
# Disable libobjc for some systems where it is known to not work.
723+
case "${target}" in
724+
amdgcn*-*-*)
725+
noconfigdirs="$noconfigdirs target-libobjc"
726+
;;
727+
nvptx*-*-*)
728+
noconfigdirs="$noconfigdirs target-libobjc"
729+
;;
730+
esac
731+
707732
# Disable D on systems where it is known to not work.
708733
# For testing, you can override this with --enable-languages=d.
709734
case ,${enable_languages}, in
@@ -781,6 +806,9 @@ case "${target}" in
781806
alpha*-*-*vms*)
782807
noconfigdirs="$noconfigdirs target-libffi"
783808
;;
809+
amdgcn*-*-*)
810+
noconfigdirs="$noconfigdirs target-libffi"
811+
;;
784812
arm*-*-freebsd*)
785813
noconfigdirs="$noconfigdirs target-libffi"
786814
;;
@@ -824,6 +852,9 @@ case "${target}" in
824852
mmix-*-*)
825853
noconfigdirs="$noconfigdirs target-libffi"
826854
;;
855+
nvptx*-*-*)
856+
noconfigdirs="$noconfigdirs target-libffi"
857+
;;
827858
powerpc-*-aix*)
828859
;;
829860
rs6000-*-aix*)
@@ -871,9 +902,15 @@ if test x$enable_libgo = x; then
871902
*-*-cygwin* | *-*-mingw*)
872903
noconfigdirs="$noconfigdirs target-libgo"
873904
;;
905+
amdgcn*-*-*)
906+
noconfigdirs="$noconfigdirs target-libgo"
907+
;;
874908
bpf-*-*)
875909
noconfigdirs="$noconfigdirs target-libgo"
876910
;;
911+
nvptx*-*-*)
912+
noconfigdirs="$noconfigdirs target-libgo"
913+
;;
877914
esac
878915
fi
879916

@@ -1275,7 +1312,7 @@ case "${target}" in
12751312
noconfigdirs="$noconfigdirs gprof"
12761313
;;
12771314
nvptx*-*-*)
1278-
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
1315+
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3"
12791316
;;
12801317
sh-*-*)
12811318
case "${target}" in

0 commit comments

Comments
 (0)