..., where "support" means that the build doesn't fail, but it doesn't mean that all target libraries get built and we get pretty test results for the additional languages.
* configure.ac (unsupported_languages) [GCN, nvptx]: Add 'ada'. (noconfigdirs) [GCN, nvptx]: Add 'target-libobjc', 'target-libffi', 'target-libgo'. * configure: Regenerate. --- configure | 39 ++++++++++++++++++++++++++++++++++++++- configure.ac | 39 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 76 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 4ae8e1242af..e2b143efbba 100755 --- a/configure +++ b/configure @@ -3450,6 +3450,21 @@ if test "${ENABLE_LIBSTDCXX}" = "default" ; then esac fi +# Disable Ada/GNAT on systems where it is known to not work. +# For testing, you can override this with --enable-languages=ada. +case ,${enable_languages}, in + *,ada,*) + ;; + *) + case "${target}" in + amdgcn*-*-* \ + | nvptx*-*-* ) + unsupported_languages="$unsupported_languages ada" + ;; + esac + ;; +esac + # Disable C++ on systems where it is known to not work. # For testing, you can override this with --enable-languages=c++. case ,${enable_languages}, in @@ -3478,6 +3493,16 @@ case ,${enable_languages}, in ;; esac +# Disable libobjc for some systems where it is known to not work. +case "${target}" in + amdgcn*-*-*) + noconfigdirs="$noconfigdirs target-libobjc" + ;; + nvptx*-*-*) + noconfigdirs="$noconfigdirs target-libobjc" + ;; +esac + # Disable D on systems where it is known to not work. # For testing, you can override this with --enable-languages=d. case ,${enable_languages}, in @@ -3558,6 +3583,9 @@ case "${target}" in alpha*-*-*vms*) noconfigdirs="$noconfigdirs target-libffi" ;; + amdgcn*-*-*) + noconfigdirs="$noconfigdirs target-libffi" + ;; arm*-*-freebsd*) noconfigdirs="$noconfigdirs target-libffi" ;; @@ -3601,6 +3629,9 @@ case "${target}" in mmix-*-*) noconfigdirs="$noconfigdirs target-libffi" ;; + nvptx*-*-*) + noconfigdirs="$noconfigdirs target-libffi" + ;; powerpc-*-aix*) ;; rs6000-*-aix*) @@ -3651,9 +3682,15 @@ if test x$enable_libgo = x; then *-*-cygwin* | *-*-mingw*) noconfigdirs="$noconfigdirs target-libgo" ;; + amdgcn*-*-*) + noconfigdirs="$noconfigdirs target-libgo" + ;; bpf-*-*) noconfigdirs="$noconfigdirs target-libgo" ;; + nvptx*-*-*) + noconfigdirs="$noconfigdirs target-libgo" + ;; esac fi @@ -4055,7 +4092,7 @@ case "${target}" in noconfigdirs="$noconfigdirs gprof" ;; nvptx*-*-*) - noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" + noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3" ;; sh-*-*) case "${target}" in diff --git a/configure.ac b/configure.ac index 9a72b2311bd..af894eda400 100644 --- a/configure.ac +++ b/configure.ac @@ -676,6 +676,21 @@ if test "${ENABLE_LIBSTDCXX}" = "default" ; then esac fi +# Disable Ada/GNAT on systems where it is known to not work. +# For testing, you can override this with --enable-languages=ada. +case ,${enable_languages}, in + *,ada,*) + ;; + *) + case "${target}" in + amdgcn*-*-* \ + | nvptx*-*-* ) + unsupported_languages="$unsupported_languages ada" + ;; + esac + ;; +esac + # Disable C++ on systems where it is known to not work. # For testing, you can override this with --enable-languages=c++. case ,${enable_languages}, in @@ -704,6 +719,16 @@ case ,${enable_languages}, in ;; esac +# Disable libobjc for some systems where it is known to not work. +case "${target}" in + amdgcn*-*-*) + noconfigdirs="$noconfigdirs target-libobjc" + ;; + nvptx*-*-*) + noconfigdirs="$noconfigdirs target-libobjc" + ;; +esac + # Disable D on systems where it is known to not work. # For testing, you can override this with --enable-languages=d. case ,${enable_languages}, in @@ -781,6 +806,9 @@ case "${target}" in alpha*-*-*vms*) noconfigdirs="$noconfigdirs target-libffi" ;; + amdgcn*-*-*) + noconfigdirs="$noconfigdirs target-libffi" + ;; arm*-*-freebsd*) noconfigdirs="$noconfigdirs target-libffi" ;; @@ -824,6 +852,9 @@ case "${target}" in mmix-*-*) noconfigdirs="$noconfigdirs target-libffi" ;; + nvptx*-*-*) + noconfigdirs="$noconfigdirs target-libffi" + ;; powerpc-*-aix*) ;; rs6000-*-aix*) @@ -871,9 +902,15 @@ if test x$enable_libgo = x; then *-*-cygwin* | *-*-mingw*) noconfigdirs="$noconfigdirs target-libgo" ;; + amdgcn*-*-*) + noconfigdirs="$noconfigdirs target-libgo" + ;; bpf-*-*) noconfigdirs="$noconfigdirs target-libgo" ;; + nvptx*-*-*) + noconfigdirs="$noconfigdirs target-libgo" + ;; esac fi @@ -1275,7 +1312,7 @@ case "${target}" in noconfigdirs="$noconfigdirs gprof" ;; nvptx*-*-*) - noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" + noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3" ;; sh-*-*) case "${target}" in -- 2.34.1