public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-6979] libstdc++: Improve config output for --enable-cstdio [PR104301] Date: Tue, 1 Feb 2022 21:53:43 +0000 (GMT) [thread overview] Message-ID: <20220201215343.EB77F3858C83@sourceware.org> (raw) https://gcc.gnu.org/g:19b8946dbda5fda4389ef8e3ea162c3df2b1998d commit r12-6979-g19b8946dbda5fda4389ef8e3ea162c3df2b1998d Author: Jonathan Wakely <jwakely@redhat.com> Date: Mon Jan 31 11:00:18 2022 +0000 libstdc++: Improve config output for --enable-cstdio [PR104301] Currently we just print "checking for underlying I/O to use... stdio" unconditionally, whether configured to use stdio_pure or stdio_posix. We should make it clear that the user's configure option chose the right thing. libstdc++-v3/ChangeLog: PR libstdc++/104301 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Print different messages for stdio_pure and stdio_posix options. * configure: Regenerate. Diff: --- libstdc++-v3/acinclude.m4 | 4 +++- libstdc++-v3/configure | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 32638e6bfc5..066453e2148 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -2830,11 +2830,13 @@ AC_DEFUN([GLIBCXX_ENABLE_CSTDIO], [ CSTDIO_H=config/io/c_io_stdio.h BASIC_FILE_H=config/io/basic_file_stdio.h BASIC_FILE_CC=config/io/basic_file_stdio.cc - AC_MSG_RESULT(stdio) if test "x$enable_cstdio" = "xstdio_pure" ; then + AC_MSG_RESULT([stdio (without POSIX read/write)]) AC_DEFINE(_GLIBCXX_USE_STDIO_PURE, 1, [Define to restrict std::__basic_file<> to stdio APIs.]) + else + AC_MSG_RESULT([stdio (with POSIX read/write)]) fi ;; esac diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index de6eb1c6002..ed64b5599c8 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -16408,13 +16408,16 @@ fi CSTDIO_H=config/io/c_io_stdio.h BASIC_FILE_H=config/io/basic_file_stdio.h BASIC_FILE_CC=config/io/basic_file_stdio.cc - { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio" >&5 -$as_echo "stdio" >&6; } if test "x$enable_cstdio" = "xstdio_pure" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (without POSIX read/write)" >&5 +$as_echo "stdio (without POSIX read/write)" >&6; } $as_echo "#define _GLIBCXX_USE_STDIO_PURE 1" >>confdefs.h + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (with POSIX read/write)" >&5 +$as_echo "stdio (with POSIX read/write)" >&6; } fi ;; esac
reply other threads:[~2022-02-01 21:53 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220201215343.EB77F3858C83@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).