https://gcc.gnu.org/g:6047ed1bbc3818d9fbb1976c1fe3112928d40930

commit r17-1914-g6047ed1bbc3818d9fbb1976c1fe3112928d40930
Author: Rainer Orth <[email protected]>
Date:   Fri Jun 26 10:37:07 2026 +0200

    Remove HAVE_AS_IX86_QUAD
    
    Every supported version of the Solaris/x86 assembler supports the .quad
    directive, so HAVE_AS_IX86_QUAD is always defined with both as and gas.
    This patch removes the configure check and guarded code.
    
    Bootstrapped without regressions on i386-pc-solaris2.11,
    amd64-pc-solaris2.11 with both the original Solaris 11.4 as and the
    current one, and x86_64-pc-linux-gnu.
    
    2026-06-25  Rainer Orth  <[email protected]>
    
            gcc:
            * configure.ac (gcc_cv_as_ix86_quad): Remove.
            * configure: Regenerate.
            * config.in: Likewise.
            * config/i386/sol2.h [!HAVE_AS_IX86_QUAD] (ASM_QUAD): Don't 
undefine.

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

diff --git a/gcc/config.in b/gcc/config.in
index dcc903dda151..b1f2bacf9a81 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -543,12 +543,6 @@
 #endif
 
 
-/* Define if your assembler supports the .quad directive. */
-#ifndef USED_FOR_TARGET
-#undef HAVE_AS_IX86_QUAD
-#endif
-
-
 /* Define if the assembler supports 'rep <insn>, lock <insn>'. */
 #ifndef USED_FOR_TARGET
 #undef HAVE_AS_IX86_REP_LOCK_PREFIX
diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h
index e29f276b0ce9..c7471d9e18b2 100644
--- a/gcc/config/i386/sol2.h
+++ b/gcc/config/i386/sol2.h
@@ -94,11 +94,6 @@ along with GCC; see the file COPYING3.  If not see
 #undef LOCAL_LABEL_PREFIX
 #define LOCAL_LABEL_PREFIX "."
 
-/* The 32-bit Solaris assembler does not support .quad.  Do not use it.  */
-#ifndef HAVE_AS_IX86_QUAD
-#undef ASM_QUAD
-#endif
-
 /* The Solaris assembler wants a .local for non-exported aliases.  */
 #define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET)  \
   do {                                                 \
diff --git a/gcc/configure b/gcc/configure
index 7a3cff9b03e1..bd2e9bd2c7de 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -29663,38 +29663,6 @@ if test $gcc_cv_as_ix86_ffreep = yes; then
 
 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
 
-fi
-
-
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad 
directive" >&5
-$as_echo_n "checking assembler for .quad directive... " >&6; }
-if ${gcc_cv_as_ix86_quad+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  gcc_cv_as_ix86_quad=no
-  if test x"$gcc_cv_as" != x; then
-    $as_echo '.quad 0' > conftest.s
-    if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -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_quad=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_quad" >&5
-$as_echo "$gcc_cv_as_ix86_quad" >&6; }
-if test $gcc_cv_as_ix86_quad = yes; then
-
-$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
-
 fi
 
 
diff --git a/gcc/configure.ac b/gcc/configure.ac
index f8a6ecd4706a..675ddb7eec7e 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -4894,12 +4894,6 @@ foo:     nop
       [AC_DEFINE(HAVE_AS_IX86_FFREEP, 1,
         [Define if your assembler supports the ffreep mnemonic.])])
 
-    gcc_GAS_CHECK_FEATURE([.quad directive],
-      gcc_cv_as_ix86_quad,,
-      [.quad 0],,
-      [AC_DEFINE(HAVE_AS_IX86_QUAD, 1,
-        [Define if your assembler supports the .quad directive.])])
-
     gcc_GAS_CHECK_FEATURE([sahf mnemonic],
       gcc_cv_as_ix86_sahf,,
       [.code64

Reply via email to