From patchwork Sat Jan 20 00:54:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 84475 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 527503858438 for ; Sat, 20 Jan 2024 00:55:20 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id DA2403858C56 for ; Sat, 20 Jan 2024 00:54:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DA2403858C56 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DA2403858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705712091; cv=none; b=m2zTbNqcyc5f+m+rxlwe+NKXKJKCZ6OdHLZDCa+jDFnkKONS+GD4gB4SfwgoAJz7xfFoj1+56F+wuJ6Ts4l2maVXubp0UVmuARI5onPuKerzII/vdYteh7Cwkeu9v6uIlToJVxUpyRcNnUBMvB8m1R6dzfWyJuAIJUCgro//Vao= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705712091; c=relaxed/simple; bh=BA/UB+ArnJpCLTn1l0aqwkdqClkQ8VW6MpBkOuXcbEM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=cUoTvsgPW9FaL6+lvSwJfSseUMV+06hgU574ALmOt+uAV0CdvFJwiEIKg5iuAUl7VFk3UZZFQmP7L0rMISyfVpKV/bQbrNwymXAH40BmdH+GxUZkDUK8/UJPTlgnfpm7A1yevHGr7QW8vz6d7Ht4cHUgfPj982apwR+Q1y+1+7I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 89E5234327D; Sat, 20 Jan 2024 00:54:49 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] gdb/sim: switch raw echo to AC_MSG_NOTICE Date: Fri, 19 Jan 2024 19:54:47 -0500 Message-ID: <20240120005447.29652-1-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org This simplifies the code, makes it more portable, and improves logging. --- gdb/configure | 10 ++++++---- gdbserver/configure | 10 ++++++---- gdbsupport/configure | 10 ++++++---- gdbsupport/warning.m4 | 8 ++++---- sim/configure | 10 ++++++---- sim/m4/sim_ac_option_warnings.m4 | 8 ++++---- 6 files changed, 32 insertions(+), 24 deletions(-) diff --git a/gdbsupport/warning.m4 b/gdbsupport/warning.m4 index bdac8b3e7d22..365fb80696ce 100644 --- a/gdbsupport/warning.m4 +++ b/gdbsupport/warning.m4 @@ -89,8 +89,8 @@ AS_HELP_STRING([--enable-build-warnings], [enable build-time compiler warnings i build_warnings="${t} ${build_warnings}";; *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; esac -if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then - echo "Setting compiler warning flags = $build_warnings" 6>&1 +if test x"$build_warnings" != x""; then + AC_MSG_NOTICE([Setting compiler warning flags = $build_warnings]) fi])dnl AC_ARG_ENABLE(gdb-build-warnings, AS_HELP_STRING([--enable-gdb-build-warnings], [enable GDB specific build-time compiler warnings if gcc is used]), @@ -103,8 +103,8 @@ AS_HELP_STRING([--enable-gdb-build-warnings], [enable GDB specific build-time co build_warnings="${t} ${build_warnings}";; *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; esac -if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then - echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 +if test x"$build_warnings" != x""; then + AC_MSG_NOTICE([Setting GDB specific compiler warning flags = $build_warnings]) fi])dnl # The set of warnings supported by a C++ compiler is not the same as diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index fcbcca9f7b71..4b0b15af2c14 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -116,8 +116,8 @@ AS_HELP_STRING([--enable-build-warnings], [enable build-time compiler warnings i build_warnings="${t} ${build_warnings}";; *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; esac -if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then - echo "Setting compiler warning flags = $build_warnings" 6>&1 +if test x"$build_warnings" != x""; then + AC_MSG_NOTICE([Setting compiler warning flags = $build_warnings]) fi])dnl AC_ARG_ENABLE(sim-build-warnings, AS_HELP_STRING([--enable-sim-build-warnings], [enable SIM specific build-time compiler warnings if gcc is used]), @@ -130,8 +130,8 @@ AS_HELP_STRING([--enable-sim-build-warnings], [enable SIM specific build-time co build_warnings="${t} ${build_warnings}";; *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; esac -if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then - echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 +if test x"$build_warnings" != x""; then + AC_MSG_NOTICE([Setting SIM specific compiler warning flags = $build_warnings]) fi])dnl WARN_CFLAGS="" BUILD_WARN_CFLAGS=""