[pushed] Darwin, configure: Allow for an unrecognisable dsymutil [PR111610].

Message ID 20230927134824.11741-1-iain@sandoe.co.uk
State Accepted
Headers
Series [pushed] Darwin, configure: Allow for an unrecognisable dsymutil [PR111610]. |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Iain Sandoe Sept. 27, 2023, 1:48 p.m. UTC
  tested on x86_64-darwin21 (native) and with crosses from x86_64-linux-gnu
to powerpc-darwin, i686-darwin, x86_64-darwin and with
--enable-languages=all to powerpc-apple-darwin9 (this built the front ends
OK - but there seems to be an unrelated config error in that even with
all-host, some language front end is triggering a build of target runtimes).

--- 8< ---

We had a catch-all configuration case for missing or unrecognised dsymutil
but it was setting the dsymutil source to "UNKNOWN" which is not usable in
this context (since it clashes with an existing enum).  We rename this to
DET_UNKNOWN (for Darwin External Toolchain).

	PR target/111610

gcc/ChangeLog:

	* configure: Regenerate.
	* configure.ac: Rename the missing dsymutil case to "DET_UNKNOWN".

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
---
 gcc/configure    | 2 +-
 gcc/configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gcc/configure b/gcc/configure
index 307a3e05bb3..c43bde8174b 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -30746,7 +30746,7 @@  $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
       dsymutil_kind=LLVM
       dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
     else
-      dsymutil_kind=UNKNOWN
+      dsymutil_kind=DET_UNKNOWN
       dsymutil_vers="0.0"
     fi
     dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 9b35c0ffea3..fb8e32f8ee5 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -6363,7 +6363,7 @@  if test x"$dsymutil_flag" = x"yes"; then
       dsymutil_kind=LLVM
       dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([[0-9\.]]*\).*/\1/'`
     else
-      dsymutil_kind=UNKNOWN
+      dsymutil_kind=DET_UNKNOWN
       dsymutil_vers="0.0"
     fi
     dsymutil_major=`expr "$dsymutil_vers" : '\([[0-9]]*\)'`