https://gcc.gnu.org/g:575b8ec6ec455504622d9ad3ac7a8c555c5bcedf
commit r17-5054-g575b8ec6ec455504622d9ad3ac7a8c555c5bcedf Author: Sam James <[email protected]> Date: Fri Oct 9 22:39:22 2026 +0100 gcc: drop obsolete C functionality test AC_C_CONST was marked as an obsolescent macro back in autoconf 2.60. We also use C++ here. gcc/ChangeLog: PR bootstrap/112422 * config.in: Regenerate. * configure: Regenerate. * configure.ac: Drop AC_C_CONST. Diff: --- gcc/config.in | 6 ------ gcc/configure | 46 ++-------------------------------------------- gcc/configure.ac | 1 - 3 files changed, 2 insertions(+), 51 deletions(-) diff --git a/gcc/config.in b/gcc/config.in index 8ab07d1ef2bd..d84f59931da4 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -2745,12 +2745,6 @@ #endif -/* Define to `__inline__' or `__inline' if that's what the C compiler - calls it, or to nothing if 'inline' is not supported under any name. */ -#ifndef __cplusplus -#undef inline -#endif - /* Define to the type of a signed integer type of width exactly 16 bits if such a type exists and the standard includes do not define it. */ #ifndef USED_FOR_TARGET diff --git a/gcc/configure b/gcc/configure index f509609de673..c68d0865fb65 100755 --- a/gcc/configure +++ b/gcc/configure @@ -6195,48 +6195,6 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -$as_echo_n "checking for inline... " >&6; } -if ${ac_cv_c_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifndef __cplusplus -typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } -#endif - -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_c_inline=$ac_kw -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - test "$ac_cv_c_inline" != no && break -done - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 -$as_echo "$ac_cv_c_inline" >&6; } - -case $ac_cv_c_inline in - inline | yes) ;; - *) - case $ac_cv_c_inline in - no) ac_val=;; - *) ac_val=$ac_cv_c_inline;; - esac - cat >>confdefs.h <<_ACEOF -#ifndef __cplusplus -#define inline $ac_val -#endif -_ACEOF - ;; -esac - # Check whether --enable-largefile was given. if test "${enable_largefile+set}" = set; then : @@ -21872,7 +21830,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 21875 "configure" +#line 21833 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -21978,7 +21936,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 21981 "configure" +#line 21939 "configure" #include "confdefs.h" #if HAVE_DLFCN_H diff --git a/gcc/configure.ac b/gcc/configure.ac index 14fe4c095bde..37f04e1a5076 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -500,7 +500,6 @@ AC_SUBST(PICFLAG_FOR_TARGET) AC_USE_SYSTEM_EXTENSIONS AC_PROG_CPP -AC_C_INLINE AC_SYS_LARGEFILE AC_CHECK_SIZEOF(ino_t)
