From: Rainer Orth Date: Sun, 28 Dec 2025 09:43:04 +0000 (+0100) Subject: Don't check for -xbrace_comment with Solaris/x86 as X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=413a2aedce428f91f0f904d085426f717e606956;p=thirdparty%2Fgcc.git 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 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 --git a/gcc/config.in b/gcc/config.in index 0c0ff076361..f60704fbba4 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 3720424899d..e5942266d33 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 21d9cfd27cb..0d3e0fe5b90 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 86fb90176d1..c0244dc8504 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)],,