https://gcc.gnu.org/g:413a2aedce428f91f0f904d085426f717e606956

commit r16-6417-g413a2aedce428f91f0f904d085426f717e606956
Author: Rainer Orth <[email protected]>
Date:   Sun Dec 28 10:43:04 2025 +0100

    Don't check for -xbrace_comment with Solaris/x86 as
    
    With Solaris/x86 as, GCC uses the -xbrace_comment option if supported.
    Since it is present in the Solaris 11.4 FCS assembler and 11.4 is the
    only supported Solaris version, this check is no longer necessary.
    
    Bootstrapped without regressions on i386-pc-solaris2.11.
    
    2025-12-23  Rainer Orth  <[email protected]>
    
            gcc:
            * configure.ac (gcc_cv_as_ix86_xbrace_comment): Remove.
            * configure: Regenerate.
            * config.in: Regenerate.
            * config/i386/sol2.h (ASM_XBRACE_COMMENT_SPEC): Adapt guard.

Diff:
---
 gcc/config.in          |  6 ------
 gcc/config/i386/sol2.h |  2 +-
 gcc/configure          | 32 --------------------------------
 gcc/configure.ac       |  5 -----
 4 files changed, 1 insertion(+), 44 deletions(-)

diff --git a/gcc/config.in b/gcc/config.in
index 0c0ff0763619..f60704fbba4b 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -863,12 +863,6 @@
 #endif
 
 
-/* Define if your assembler supports -xbrace_comment option. */
-#ifndef USED_FOR_TARGET
-#undef HAVE_AS_XBRACE_COMMENT_OPTION
-#endif
-
-
 /* Define to 1 if you have the `atoq' function. */
 #ifndef USED_FOR_TARGET
 #undef HAVE_ATOQ
diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h
index 3720424899d6..e5942266d33a 100644
--- a/gcc/config/i386/sol2.h
+++ b/gcc/config/i386/sol2.h
@@ -68,9 +68,9 @@ along with GCC; see the file COPYING3.  If not see
 #define ASM_CPU64_DEFAULT_SPEC "-xarch=generic64"
 #endif
 
+#if !HAVE_GNU_AS
 /* Since Studio 12.6, as needs -xbrace_comment=no so its AVX512 syntax is
    fully compatible with gas.  */
-#ifdef HAVE_AS_XBRACE_COMMENT_OPTION
 #define ASM_XBRACE_COMMENT_SPEC "-xbrace_comment=no"
 #else
 #define ASM_XBRACE_COMMENT_SPEC ""
diff --git a/gcc/configure b/gcc/configure
index 21d9cfd27cb5..0d3e0fe5b905 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -29699,38 +29699,6 @@ fi
        ;;
     esac
 
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for 
-xbrace_comment" >&5
-$as_echo_n "checking assembler for -xbrace_comment... " >&6; }
-if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  gcc_cv_as_ix86_xbrace_comment=no
-  if test x"$gcc_cv_as" != x; then
-    $as_echo '.text' > conftest.s
-    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o 
conftest.s >&5'
-  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }; }
-    then
-       gcc_cv_as_ix86_xbrace_comment=yes
-    else
-      echo "configure: failed program was" >&5
-      cat conftest.s >&5
-    fi
-    rm -f conftest.o conftest.s
-  fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 
$gcc_cv_as_ix86_xbrace_comment" >&5
-$as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
-if test $gcc_cv_as_ix86_xbrace_comment = yes; then
-
-$as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
-
-fi
-
-
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and 
fists mnemonics" >&5
 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
 if ${gcc_cv_as_ix86_filds+:} false; then :
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 86fb90176d17..c0244dc85040 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -4950,11 +4950,6 @@ foo:     nop
        ;;
     esac
 
-    gcc_GAS_CHECK_FEATURE([-xbrace_comment], gcc_cv_as_ix86_xbrace_comment,
-      [-xbrace_comment=no], [.text],,
-      [AC_DEFINE(HAVE_AS_XBRACE_COMMENT_OPTION, 1,
-               [Define if your assembler supports -xbrace_comment option.])])
-
     gcc_GAS_CHECK_FEATURE([filds and fists mnemonics],
        gcc_cv_as_ix86_filds,,
        [filds (%ebp); fists (%ebp)],,

Reply via email to