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.

Committed to trunk.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


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.

# HG changeset patch
# Parent  439847221a484db7de9437c437261c62712c6c93
Don't check for -xbrace_comment with Solaris/x86 as

diff --git a/gcc/config.in b/gcc/config.in
--- 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
--- a/gcc/config/i386/sol2.h
+++ b/gcc/config/i386/sol2.h
@@ -68,9 +68,9 @@ along with GCC; see the file COPYING3.  
 #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
--- a/gcc/configure
+++ b/gcc/configure
@@ -29748,38 +29748,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
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -4959,11 +4959,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