public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* libgo patch committed: Don't include <linux/fs.h> in sysinfo.c
@ 2022-07-13 16:02 Ian Lance Taylor
  2022-07-21 10:19 ` Richard Biener
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Lance Taylor @ 2022-07-13 16:02 UTC (permalink / raw)
  To: gcc-patches, gofrontend-dev

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

This libgo patch stops including <linux/fs.h> when building
gen-sysinfo.go.  Removing this doesn't change anything at least with
glibc 2.33.  The include was added in https://go.dev/cl/6100049 but
it's not clear why.  This should fix GCC PR 106266.  Bootstrapped and
ran Go testsuite on x86_64-pc-linux-gnu.  Committed to mainline.

Ian

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 765 bytes --]

9b487dbc298242fdde127e7827e728545c308aac
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 7c5c45672d7..5ea0406cd8e 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-d295a0a2c96c0f7c3abd94fea3aa4e2303bf2af2
+ff68b1a147eb60082fd60c198db0ef5477ade938
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
index a4259c02ded..fc0210992fa 100644
--- a/libgo/sysinfo.c
+++ b/libgo/sysinfo.c
@@ -158,9 +158,6 @@
 #if defined(HAVE_LINUX_ETHER_H)
 #include <linux/ether.h>
 #endif
-#if defined(HAVE_LINUX_FS_H)
-#include <linux/fs.h>
-#endif
 #if defined(HAVE_LINUX_REBOOT_H)
 #include <linux/reboot.h>
 #endif

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libgo patch committed: Don't include <linux/fs.h> in sysinfo.c
  2022-07-13 16:02 libgo patch committed: Don't include <linux/fs.h> in sysinfo.c Ian Lance Taylor
@ 2022-07-21 10:19 ` Richard Biener
  2022-07-21 11:52   ` Martin Liška
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Biener @ 2022-07-21 10:19 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-patches, gofrontend-dev

On Wed, Jul 13, 2022 at 6:03 PM Ian Lance Taylor via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> This libgo patch stops including <linux/fs.h> when building
> gen-sysinfo.go.  Removing this doesn't change anything at least with
> glibc 2.33.  The include was added in https://go.dev/cl/6100049 but
> it's not clear why.  This should fix GCC PR 106266.  Bootstrapped and
> ran Go testsuite on x86_64-pc-linux-gnu.  Committed to mainline.

Btw, active branches are affected the same way - can you please backport?

> Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libgo patch committed: Don't include <linux/fs.h> in sysinfo.c
  2022-07-21 10:19 ` Richard Biener
@ 2022-07-21 11:52   ` Martin Liška
  2022-07-21 18:54     ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Liška @ 2022-07-21 11:52 UTC (permalink / raw)
  To: Richard Biener, Ian Lance Taylor; +Cc: gcc-patches, gofrontend-dev

On 7/21/22 12:19, Richard Biener via Gcc-patches wrote:
> On Wed, Jul 13, 2022 at 6:03 PM Ian Lance Taylor via Gcc-patches
> <gcc-patches@gcc.gnu.org> wrote:
>>
>> This libgo patch stops including <linux/fs.h> when building
>> gen-sysinfo.go.  Removing this doesn't change anything at least with
>> glibc 2.33.  The include was added in https://go.dev/cl/6100049 but
>> it's not clear why.  This should fix GCC PR 106266.  Bootstrapped and
>> ran Go testsuite on x86_64-pc-linux-gnu.  Committed to mainline.
> 
> Btw, active branches are affected the same way - can you please backport?

I've just done that.

Martin

> 
>> Ian


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libgo patch committed: Don't include <linux/fs.h> in sysinfo.c
  2022-07-21 11:52   ` Martin Liška
@ 2022-07-21 18:54     ` Ian Lance Taylor
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 2022-07-21 18:54 UTC (permalink / raw)
  To: Martin Liška; +Cc: Richard Biener, gcc-patches, gofrontend-dev

On Thu, Jul 21, 2022 at 4:53 AM Martin Liška <mliska@suse.cz> wrote:
>
> On 7/21/22 12:19, Richard Biener via Gcc-patches wrote:
> > On Wed, Jul 13, 2022 at 6:03 PM Ian Lance Taylor via Gcc-patches
> > <gcc-patches@gcc.gnu.org> wrote:
> >>
> >> This libgo patch stops including <linux/fs.h> when building
> >> gen-sysinfo.go.  Removing this doesn't change anything at least with
> >> glibc 2.33.  The include was added in https://go.dev/cl/6100049 but
> >> it's not clear why.  This should fix GCC PR 106266.  Bootstrapped and
> >> ran Go testsuite on x86_64-pc-linux-gnu.  Committed to mainline.
> >
> > Btw, active branches are affected the same way - can you please backport?
>
> I've just done that.

Thanks.

Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-21 18:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13 16:02 libgo patch committed: Don't include <linux/fs.h> in sysinfo.c Ian Lance Taylor
2022-07-21 10:19 ` Richard Biener
2022-07-21 11:52   ` Martin Liška
2022-07-21 18:54     ` Ian Lance Taylor

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).