diff options
author | Than McIntosh <thanm@google.com> | 2020-09-15 08:31:30 -0400 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-09-15 17:41:57 -0700 |
commit | 1d7d3f91abe34d5b522675107a4bf284aa846e33 (patch) | |
tree | 880823255c6c9b5fd17516b5916d8bc8b29bc6ef /libgo/sysinfo.c | |
parent | 9f7ab8c5614890f2260778cfffd6b53edee31e41 (diff) | |
download | gcc-1d7d3f91abe34d5b522675107a4bf284aa846e33.zip gcc-1d7d3f91abe34d5b522675107a4bf284aa846e33.tar.gz gcc-1d7d3f91abe34d5b522675107a4bf284aa846e33.tar.bz2 |
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
Diffstat (limited to 'libgo/sysinfo.c')
-rw-r--r-- | libgo/sysinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c index 0692fd4..7640559 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); |