From: Paul F. <pa...@so...> - 2025-04-02 18:14:19
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=7170fc3bc74b2ba7bee13c38ecfed95753741a08 commit 7170fc3bc74b2ba7bee13c38ecfed95753741a08 Author: Paul Floyd <pj...@wa...> Date: Wed Apr 2 20:13:10 2025 +0200 Illumos regtest: fix configure check for GCC using Sun Studio as Diff: --- configure.ac | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/configure.ac b/configure.ac index dca5661fc6..862e6feed2 100755 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,3 @@ - ##------------------------------------------------------------## # # The multiple-architecture stuff in this file is pretty @@ -3809,18 +3808,13 @@ AC_CHECK_HEADERS([sys/lgrp_user_impl.h]) # C-level symbol: none # Automake-level symbol: SOLARIS_SUN_STUDIO_AS # -AC_MSG_CHECKING([if x86/amd64 assembler speaks cmovl.l (Solaris-specific)]) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ -]], [[ - __asm__ __volatile__("cmovl.l %edx, %eax"); -]])], [ -solaris_have_sun_studio_as=yes -AC_MSG_RESULT([yes]) -], [ -solaris_have_sun_studio_as=no -AC_MSG_RESULT([no]) -]) -AM_CONDITIONAL(SOLARIS_SUN_STUDIO_AS, test x$solaris_have_sun_studio_as = xyes) + +# This was using a AC_COMPILE_IFELSE with "cmovl.l %edx, %eax" +# which at some time in the past was Sun Studio specific. +# GNU as now understands it, so the test was misidentifying +# the assembler. Now we ask the compiler directly. +with_gnu_as=$(${CC} -v 2>&1 | tr ' ' '\n' | grep with-gnu-as) +AM_CONDITIONAL(SOLARIS_SUN_STUDIO_AS, test x$with_gnu_as = x) # Solaris-specific check determining if symbols __xpg4 and __xpg6 # are present in linked shared libraries when gcc is invoked with -std=gnu99. |