libgo: add type/const references to sysinfo.c
commit5657a3c3889478c38c769d9f91c7f0ff4cbfb5e9
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 May 2018 22:32:23 +0000 (2 22:32 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 May 2018 22:32:23 +0000 (2 22:32 +0000)
tree97e4f701dcc189bd60d5bae5460119270ced5522
parent9eb30febf79f64f29da9d3269a3f951be074a95f
libgo: add type/const references to sysinfo.c

    This patch adds explicit references to various types and constants
    defined by the header files included by sysinfo.c (used to drive the
    generation of gen-sysinfo.go as part of the libgo build via the GCC
    "-fdump-go-spec" option).

    The intent is to enable clients to gather the same info generated by
    "-fdump-go-spec" by instead reading the generated DWARF from a
    sysinfo.o object file compiled with "-g". Some compilers (notably
    clang) try to omit DWARF records for a given type unless there is an
    explicit use of it in the translation unit; the additional references
    are to insure that everything we want to see in the DWARF shows up.

    Reviewed-on: https://go-review.googlesource.com/99063

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259868 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
libgo/mksysinfo.sh
libgo/sysinfo.c