From: Vladimir V <vv.os.swe@gmail.com>
To: Jonathan Wakely <jwakely@redhat.com>
Cc: Keith Packard <keithp@keithp.com>, libstdc++@gcc.gnu.org
Subject: Re: Problem building libstdc++ for the avr target
Date: Mon, 8 Feb 2021 23:25:46 +0100 [thread overview]
Message-ID: <CA+=iAirNQKf4UBtXAbCLHomuaoQyBL=p4jrHiO7v2wzWCCGJaA@mail.gmail.com> (raw)
In-Reply-To: <20210208174707.GO3008@redhat.com>
Thank you for the reply.
>> I don't see why this file includes <unistd.h>, it doesn't *seem* to
>> need it. Even if it's needed, the correct way to include it is:
So it was there since the initial commit but during my quick walk through
the history
I didn't find what API from <unistd.h> was used.
So, in the patch I just deleted the include but as Keith suggested it can
affect the client code.
If the policy is:
>> We routinely remove such transitive includes. Any code assuming that
>> <fstream> defines the contents of <unistd.h> is wrong and should be
>> fixed.
then I would keep it like that.
Or would it be better to update the patch to move it inside the guard?
пн, 8 февр. 2021 г. в 18:47, Jonathan Wakely <jwakely@redhat.com>:
> On 08/02/21 17:45 +0000, Jonathan Wakely wrote:
> >On 07/02/21 14:55 +0100, Vladimir V wrote:
> >>diff --git a/libstdc++-v3/include/ext/stdio_sync_filebuf.h
> b/libstdc++-v3/include/ext/stdio_sync_filebuf.h
> >>index 178b471957a..90765e55831 100644
> >>--- a/libstdc++-v3/include/ext/stdio_sync_filebuf.h
> >>+++ b/libstdc++-v3/include/ext/stdio_sync_filebuf.h
> >>@@ -32,7 +32,6 @@
> >>#pragma GCC system_header
> >>
> >>#include <streambuf>
> >>-#include <unistd.h>
> >
> >I don't see why this file includes <unistd.h>, it doesn't *seem* to
> >need it. Even if it's needed, the correct way to include it is:
> >
> >#ifdef _GLIBCXX_HAVE_UNISTD_H
> ># include <unistd.h>
> >#endif
> >
> >So we should do that at least, even if we don't remove it.
>
> Ah, I see you already said that downthread. I should have finished
> reading the thread, sorry.
>
>
next prev parent reply other threads:[~2021-02-08 22:25 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-07 17:32 Vladimir V
2020-12-07 20:30 ` Jonathan Wakely
2020-12-07 20:32 ` Jonathan Wakely
2020-12-09 0:28 ` Vladimir V
2020-12-09 12:32 ` Vladimir V
2020-12-09 12:49 ` Jonathan Wakely
2020-12-09 17:01 ` Jonathan Wakely
2020-12-09 23:00 ` Vladimir V
2020-12-10 17:39 ` Vladimir V
2020-12-10 20:15 ` Jonathan Wakely
2020-12-10 20:31 ` Vladimir V
2020-12-15 11:48 ` Jonathan Wakely
2020-12-16 7:33 ` Vladimir V
2020-12-07 20:41 ` Keith Packard
2020-12-07 21:06 ` Jonathan Wakely
2021-01-04 11:28 ` Vladimir V
2021-01-08 18:21 ` Jonathan Wakely
2021-01-22 14:46 ` Vladimir V
2021-02-07 13:55 ` Vladimir V
2021-02-07 18:22 ` Vladimir V
2021-02-07 18:23 ` Keith Packard
2021-02-07 22:33 ` Vladimir V
2021-02-07 23:06 ` Keith Packard
2021-02-08 12:58 ` Vladimir V
2021-02-08 17:38 ` Jonathan Wakely
2021-02-08 17:45 ` Jonathan Wakely
2021-02-08 17:47 ` Jonathan Wakely
2021-02-08 22:25 ` Vladimir V [this message]
2021-02-09 10:47 ` Jonathan Wakely
2021-02-09 10:54 ` Vladimir V
2021-03-25 9:27 ` Vladimir V
2021-03-25 12:36 ` Jonathan Wakely
2021-03-25 18:27 ` Jonathan Wakely
2021-03-25 21:37 ` Vladimir V
2021-03-25 23:02 ` Jonathan Wakely
2021-03-26 8:25 ` Vladimir V
2020-12-07 21:51 ` Vladimir V
2020-12-07 23:00 ` Keith Packard
2020-12-08 8:12 ` Vladimir V
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='CA+=iAirNQKf4UBtXAbCLHomuaoQyBL=p4jrHiO7v2wzWCCGJaA@mail.gmail.com' \
--to=vv.os.swe@gmail.com \
--cc=jwakely@redhat.com \
--cc=keithp@keithp.com \
--cc=libstdc++@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: 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).