libgo: additional type/const references in sysinfo.c
authorThan McIntosh <thanm@google.com>
Tue, 15 Sep 2020 12:31:30 +0000 (08:31 -0400)
committerIan Lance Taylor <iant@golang.org>
Wed, 16 Sep 2020 00:41:57 +0000 (17:41 -0700)
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

gcc/go/gofrontend/MERGE
libgo/sysinfo.c

index dc63f4a696a9a0095ad18ff5ae0c9e5361e3e8a6..df9d2118dfd1e1a65498decd34a3f017c3ec35fc 100644 (file)
@@ -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.
index 0692fd41eb791d5135652e48dc1fe7b1701e6f19..764055971289a7444eda81bb2b432c99818060dd 100644 (file)
@@ -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);