]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cobol: Restrict COBOL to supported Linux arches [PR119217]
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 22 Apr 2025 11:47:17 +0000 (13:47 +0200)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 22 Apr 2025 11:47:17 +0000 (13:47 +0200)
The COBOL frontend is currently built on all x86_64 and aarch64 hosts
although the code contains some Linux/glibc specifics that break the build
e.g. on Solaris/amd64.

Tested on Linux/x86_64 and Solaris/amd64.

2025-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR cobol/119217
* configure.ac: Restrict cobol to aarch64-*-linux*,
x86_64-*-linux*.
Fix indentation.
* configure: Regenerate.

configure
configure.ac

index bf574efd1d822cea9423beff47d8d3487a2b6fa5..ebc44416b6c235b0918d2bcfe71ca7cb0034f450 100755 (executable)
--- a/configure
+++ b/configure
@@ -3571,31 +3571,28 @@ case ,${enable_languages}, in
   *,cobol,*)
     case ,${enable_languages}, in
       *,c++,*)
-      ;;
+        ;;
       *)
         # We have an explicit cobol, but no c++.  We need c++, because cobol
         # requires libstdc++
         enable_languages="$enable_languages,c++"
-      ;;
+        ;;
     esac
     ;;
   *)
     case "${target}" in
-      *-*-darwin*)
-        unsupported_languages="$unsupported_languages cobol"
-        ;;
-      x86_64-*-*|aarch64-*-*)
+      aarch64-*-linux*|x86_64-*-linux*)
         ;;
       *-*-*)
-    unsupported_languages="$unsupported_languages cobol"
-    ;;
+        unsupported_languages="$unsupported_languages cobol"
+        ;;
     esac
     case "${host}" in
-      x86_64-*-*|aarch64-*-*)
+      aarch64-*-linux*|x86_64-*-linux*)
         ;;
       *-*-*)
-    unsupported_languages="$unsupported_languages cobol"
-    ;;
+        unsupported_languages="$unsupported_languages cobol"
+        ;;
     esac
     ;;
 esac
index 3e120b027e998d6f18c2012f099dace954d81f7a..730db3c1402470915e3856579d411f0aaa861ce7 100644 (file)
@@ -791,31 +791,28 @@ case ,${enable_languages}, in
   *,cobol,*)
     case ,${enable_languages}, in
       *,c++,*)
-      ;;
+        ;;
       *)
         # We have an explicit cobol, but no c++.  We need c++, because cobol
         # requires libstdc++
         enable_languages="$enable_languages,c++"
-      ;;
+        ;;
     esac
     ;;
   *)
     case "${target}" in
-      *-*-darwin*)
-        unsupported_languages="$unsupported_languages cobol"
-        ;;
-      x86_64-*-*|aarch64-*-*)
+      aarch64-*-linux*|x86_64-*-linux*)
         ;;
       *-*-*)
-    unsupported_languages="$unsupported_languages cobol"
-    ;;
+        unsupported_languages="$unsupported_languages cobol"
+        ;;
     esac
     case "${host}" in
-      x86_64-*-*|aarch64-*-*)
+      aarch64-*-linux*|x86_64-*-linux*)
         ;;
       *-*-*)
-    unsupported_languages="$unsupported_languages cobol"
-    ;;
+        unsupported_languages="$unsupported_languages cobol"
+        ;;
     esac
     ;;
 esac