From: Corinna Vinschen <vinschen@redhat.com>
To: newlib@sourceware.org
Subject: Re: [PATCH 2/2] newlib: add AC_CACHE_CHECK sugar around preprocessor checks
Date: Mon, 31 Jan 2022 15:20:14 +0100 [thread overview]
Message-ID: <YffwHsxRlmi3QcGk@calimero.vinschen.de> (raw)
In-Reply-To: <20220128102355.10213-2-vapier@gentoo.org>
On Jan 28 05:23, Mike Frysinger wrote:
> This isn't strictly necessary, but it makes for much clearer logs as
> to what the target is doing, and provides cache vars for anyone who
> wants to force the test a different way.
> ---
> newlib/libc/configure | 48 ++++++++++++++++++--------
> newlib/libc/machine/nds32/acinclude.m4 | 7 ++--
> newlib/libc/machine/sh/acinclude.m4 | 7 ++--
> newlib/libc/machine/spu/acinclude.m4 | 9 +++--
> newlib/libm/configure | 32 ++++++++++++-----
> newlib/libm/machine/nds32/acinclude.m4 | 14 ++++----
> 6 files changed, 78 insertions(+), 39 deletions(-)
>
> diff --git a/newlib/libc/machine/nds32/acinclude.m4 b/newlib/libc/machine/nds32/acinclude.m4
> index 35c2afe992bf..ae8ea5d91ecf 100644
> --- a/newlib/libc/machine/nds32/acinclude.m4
> +++ b/newlib/libc/machine/nds32/acinclude.m4
> @@ -1,10 +1,11 @@
> if test "${machine_dir}" = "nds32"; then
> dnl Use builtin macro to detect if this is for "AndeStar ISA V3m".
> - AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
> + AC_CACHE_CHECK([for nds32 V3M ISA], newlib_cv_nds32_isa_v3m, [dnl
> + AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
> [[#ifdef __NDS32_ISA_V3M__
> # error "This is nds32_isa_v3m."
> #endif
> -]])], [is_nds32_isa_v3m="no"], [is_nds32_isa_v3m="yes"])
> +]])], [newlib_cv_nds32_isa_v3m="no"], [newlib_cv_nds32_isa_v3m="yes"])])
^^^^^^^^^^
libc_cv, perhaps, to keep the number of changes smaller,
depending on the outcome of the discussion you started in
https://sourceware.org/pipermail/newlib/2022/019018.html?
Corinna
next prev parent reply other threads:[~2022-01-31 14:20 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <171dc9cb-6b2c-ead3-1c55-27fadb33220f@gmail.com>
2022-01-28 10:23 ` [PATCH 1/2] newlib: fix " Mike Frysinger
2022-01-28 10:23 ` [PATCH 2/2] newlib: add AC_CACHE_CHECK sugar around " Mike Frysinger
2022-01-31 14:20 ` Corinna Vinschen [this message]
2022-01-31 14:18 ` [PATCH 1/2] newlib: fix " Corinna Vinschen
[not found] ` <YfPDA/LVL745V+02@vapier>
2022-01-28 16:36 ` nds broken by recent patches Jeff Law
2022-01-28 21:54 ` Jeff Law
2022-01-28 23:32 ` Stafford Horne
2022-01-29 0:58 ` Jeff Law
2022-01-29 2:12 ` Stafford Horne
2022-01-29 3:28 ` Jeff Law
2022-01-29 5:15 ` Mike Frysinger
2022-01-29 5:12 ` [PATCH/committed] libgloss: update Makefile regen rules for merged arches Mike Frysinger
2022-01-29 5:13 ` nds broken by recent patches Mike Frysinger
2022-01-31 14:34 ` R. Diez
2022-02-01 17:25 ` Jeff Law
2022-02-02 10:23 ` Mike Frysinger
2022-02-02 20:59 ` Jeff Law
2022-02-03 16:11 ` libgloss multilib installs broken [was nds broken by recent patches] Jeff Law
2022-02-04 5:45 ` Mike Frysinger
2022-02-07 15:40 ` Jeff Law
2022-02-04 8:55 ` [PATCH] libgloss: restore multilib settings in subdir makefiles Mike Frysinger
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=YffwHsxRlmi3QcGk@calimero.vinschen.de \
--to=vinschen@redhat.com \
--cc=newlib@sourceware.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: link
Be 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).