public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-3214] libgo: additional type/const references in sysinfo.c
@ 2020-09-16  0:42 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2020-09-16  0:42 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1d7d3f91abe34d5b522675107a4bf284aa846e33

commit r11-3214-g1d7d3f91abe34d5b522675107a4bf284aa846e33
Author: Than McIntosh <thanm@google.com>
Date:   Tue Sep 15 08:31:30 2020 -0400

    libgo: additional type/const references in sysinfo.c
    
    Add a few more explicit references to enumeration constants
    (RUSAGE_SELF, DT_UNKNOWN) in sysinfo.c to insure that their hosting enums
    are emitted into DWARF, when using a clang host compiler during
    the gollvm build.
    
    Updates golang/go#41382.
    Updates golang/go#41404.
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/254941

Diff:
---
 gcc/go/gofrontend/MERGE | 2 +-
 libgo/sysinfo.c         | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index dc63f4a696a..df9d2118dfd 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-b75a139fcc7c56988ce2d5b3a2b9e274eb521b0d
+a47485cd0e9ce6a8b3e88e53ccc0a440f0bd4351
 
 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 0692fd41eb7..76405597128 100644
--- a/libgo/sysinfo.c
+++ b/libgo/sysinfo.c
@@ -316,6 +316,7 @@ enum {
 SREF(dirent);
 SREF(dirent64);
 OTREF(DIR);
+EREF(DT_UNKNOWN);
 
 // From fcntl.h
 SREF(flock);
@@ -437,6 +438,7 @@ SREF(rusage);
 SREF(rlimit64);
 EREF(RLIMIT_NOFILE);
 EREF(PRIO_USER);
+EREF(RUSAGE_SELF);
 
 // From sys/select.h
 TREF(fd_set);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-16  0:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16  0:42 [gcc r11-3214] libgo: additional type/const references in sysinfo.c 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).