On Wed, May 21, 2025, at 8:59 PM, Pietro Monteiro wrote: > Autoreconf -Wall complains about obsolete macros, so replace them according to > the autoconf documentation[0]. > > This patch doesn't fully fix all warnings because I focused on doing simple > fixes and keeping the changes to the generated files to a minimum. > > Bootstrapped and retested on x86_64-linux-gnu. > > [0]: > https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html > > PR bootstrap/103459 > > ChangeLog: > > * configure: Regenerate. > * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. > Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_TRY_LINK with > AC_LINK_IFELSE. > > c++tools/ChangeLog: > > * configure: Regenerate. > * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. > > config/ChangeLog: > > * acx.m4: Remove uses of AC_CHECK_TOOL_PREFIX. Replace AC_TRY_COMPILE > with AC_COMPILE_IFELSE. > * asmcfi.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. > * bitfields.m4: Likewise. > * cet.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace AC_TRY_RUN > with AC_RUN_IFELSE. > * codeset.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. > * enable.m4: Replace AC_HELP_STRING with AS_HELP_STRING. > * gcc-plugin.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. > * hwcaps.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace > AC_TRY_LINK with AC_LINK_IFELSE. > * isl.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. > * lcmessage.m4:Replace AC_TRY_LINK with AC_LINK_IFELSE. > * lthostflags.m4: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_HOST. > * no-executables.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. > Replace AC_TRY_LINK with AC_LINK_IFELSE. > * po.m4: Replace AC_OUTPUT_COMMANDS with AC_CONFIG_COMMANDS. > * tls.m4: Add explicit 4th argument to AC_LINK_IFELSE. > > fixincludes/ChangeLog: > > * configure: Regenerate. > * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. > > gcc/ChangeLog: > > * acinclude.m4: Replace AC_FOREACH with m4_foreach_w. Replace > AC_TRY_LINK with AC_LINK_IFELSE. > * configure: Regenerate. > * configure.ac: Replace AC_HELP_STRING with AS_HELP_STRING. Replace > AC_PROG_LIBTOOL with LT_INIT. > > gnattools/ChangeLog: > > * configure.ac: Replace AC_HELP_STRING with AS_HELP_STRING. > > gotools/ChangeLog: > > * configure: Regenerate. > * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. > > libada/ChangeLog: > > * configure.ac: Replace AC_HELP_STRING with AS_HELP_STRING. > > libatomic/ChangeLog: > > * acinclude.m4: Replace AC_ERROR with AS_MSG_ERROR. Replace AC_TRY_LINK > with AC_LINK_IFELSE. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. > Replace AC_TRY_RUN with AC_RUN_IFELSE. > * configure.ac: Replace AM_PROG_LIBTOOL with LT_INIT. Replace > AC_STDC_HEADERS with AC_HEADER_STDC. > > libbacktrace/ChangeLog: > > * configure: Regenerate. > * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. > Remove redundant AM_PROG_LIBTOOL. > > libcc1/ChangeLog: > > * configure: Regenerate. > * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. > Remove redundant AM_PROG_LIBTOOL. > > libcpp/ChangeLog: > > * configure: Regenerate. > * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. > Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. > > libgcc/ChangeLog: > > * configure: Regenerate. > * configure.ac: Replace AC_HELP_STRING with AS_HELP_STRING. Replace > AC_TRY_COMPILE with AC_COMPILE_IFELSE. > > libgcobol/ChangeLog: > > * configure: Regenerate. > * configure.ac: Remove redundant AM_PROG_LIBTOOL. > > libgfortran/ChangeLog: > > * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. > * configure.ac: Replace AC_LANG_C with AC_LANG([C]). Replace > AM_PROG_LIBTOOL with LT_INIT. > > libgm2/ChangeLog: > > * acinclude.m4: Replace AC_HELP_STRING with AS_HELP_STRING. Replace > AC_LANG_SAVE AC_LANG_CPLUSPLUS (...) AC_LANG_RESTORE with > AC_LANG_PUSH([C++]) (...) AC_LANG_POP([C++]). Replace AC_TRY_LINK with > AC_LINK_IFELSE. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. > * configure: Regenerate. > * configure.ac: Replace AC_HELP_STRING AS_HELP_STRING. Remove redundant > AM_PROG_LIBTOOL. Replace AC_LANG_C with AC_LANG([C]). Replace > AC_FOREACH with m4_foreach_w. > > libgomp/ChangeLog: > > * acinclude.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace > AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_HELP_STRING with > AS_HELP_STRING. Replace AC_TRY_RUN with AC_RUN_IFELSE. > * configure: Regenerate. > * configure.ac: Replace AM_PROG_LIBTOOL with LT_INIT. Replace > AC_STDC_HEADERS with AC_HEADER_STDC. Replace _AC_COMPUTE_INT with > AC_COMPUTE_INT. > > libgrust/ChangeLog: > > * configure.ac: Replace AC_FOREACH with m4_foreach_w. > > libiberty/ChangeLog: > > * acinclude.m4: Replace AC_TRY_RUN with AC_RUN_IFELSE. Replace > AC_TRY_COMPILE with AC_COMPILE_IFELSE. > * configure.ac: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace > AC_ISC_POSIX with AC_SEARCH_LIBS([strerror],[cposix]). > > libitm/ChangeLog: > > * acinclude.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace > AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_HELP_STRING with > AS_HELP_STRING. Replace AC_TRY_RUN with AC_RUN_IFELSE. > * configure.ac: Replace AM_PROG_LIBTOOL with LT_INIT. Replace > AC_STDC_HEADERS with AC_HEADER_STDC. > > libobjc/ChangeLog: > > * configure: Regenerate. > * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. > Replace AM_PROG_LIBTOOL with LT_INIT. Remove unnecessary escape in > double quoted string. > > libphobos/ChangeLog: > > * configure: Regenerate. > * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. > Remove redundant AM_PROG_LIBTOOL. Replace AC_FOREACH with m4_foreach_w. > * m4/druntime.m4: Replace AC_HELP_STRING AS_HELP_STRING. Replace > AC_TRY_COMPILE with AC_COMPILE_IFELSE. > * m4/druntime/cpu.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. > * m4/druntime/os.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. > > libquadmath/ChangeLog: > > * configure.ac: Replace AM_PROG_LIBTOOL with LT_INIT. Replace > AC_LANG_C with AC_LANG([C]). Replace AC_TRY_COMPILE with > AC_COMPILE_IFELSE. Replace AC_TRY_LINK with AC_LINK_IFELSE. > > libsanitizer/ChangeLog: > > * configure.ac: Replace AM_PROG_LIBTOOL with LT_INIT. Replace > AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_FOREACH with > m4_foreach_w. > > libssp/ChangeLog: > > * configure.ac: Replace AC_LANG_C with AC_LANG([C]). Replace > AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_TRY_LINK with > AC_LINK_IFELSE. Replace AM_PROG_LIBTOOL with LT_INIT. > > libvtv/ChangeLog: > > * configure.ac: Replace AC_GNU_SOURCE with AC_USE_SYSTEM_EXTENSIONS. > Replace AM_PROG_LIBTOOL with LT_INIT. Replace AC_FOREACH with > m4_foreach_w. > > lto-plugin/ChangeLog: > > * configure: Regenerate. > * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_SYSTEM. > Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace AM_PROG_LIBTOOL with > LT_INIT. > > Signed-off-by: Pietro Monteiro <pie...@sociotechnical.xyz>
Ping: https://inbox.sourceware.org/gcc-patches/20250522005948.3245705-1-pie...@sociotechnical.xyz/ Thanks, Pietro.