From: Pedro Alves <palves@redhat.com>
To: DJ Delorie <dj@redhat.com>
Cc: eliz@gnu.org, gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org
Subject: Re: MinGW compilation warnings in libiberty's include/environ.h
Date: Mon, 22 May 2017 17:45:00 -0000 [thread overview]
Message-ID: <7d56e68c-21f4-45b6-f446-889d3e5fa8a9@redhat.com> (raw)
In-Reply-To: <xnzie8gvwv.fsf@greed.delorie.com>
On 05/20/2017 02:27 AM, DJ Delorie wrote:
>
> Pedro Alves <palves@redhat.com> writes:
>> That sounds to me like the root issue that should be fixed,
>> so that these fallback definitions don't come into into play at all.
>> I.e., why isn't HAVE_ENVIRON_DECL defined on mingw when
>> setenv.o is built? Sounds like a decl check is missing
>> in configure.ac.
>
> environ is tricky because it's typically messy on platforms, unlike a
> standard C function. You can't use a generic check if the macro expands
> to something that interferes with the check.
gnulib has a check, which I assume to be solid:
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=m4/environ.m4
we could import just that bit, I suppose, though every client
of libiberty's environ.h would need to gain the same check.
That's be quite doable with the shared libiberty.m4 idea (we'd just
put the check there), but a nuisance if you have to copy the check all
over the place. At this point it may be more worth it to
invest in finishing the previous use-gnulib-in-gcc effort instead.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2017-05-22 17:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-08 15:25 Eli Zaretskii
2017-05-19 15:51 ` Pedro Alves
2017-05-19 17:31 ` Eli Zaretskii
2017-05-20 1:27 ` DJ Delorie
2017-05-22 17:45 ` Pedro Alves [this message]
2017-05-20 1:25 ` DJ Delorie
2017-05-20 6:13 ` Eli Zaretskii
2017-05-20 6:16 ` DJ Delorie
2017-05-20 7:49 ` Eli Zaretskii
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=7d56e68c-21f4-45b6-f446-889d3e5fa8a9@redhat.com \
--to=palves@redhat.com \
--cc=dj@redhat.com \
--cc=eliz@gnu.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=gdb-patches@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