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)
commit1d7d3f91abe34d5b522675107a4bf284aa846e33
tree880823255c6c9b5fd17516b5916d8bc8b29bc6ef
parent9f7ab8c5614890f2260778cfffd6b53edee31e41
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
gcc/go/gofrontend/MERGE
libgo/sysinfo.c