diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-14 18:41:31 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-14 18:41:31 +0000 |
commit | f15dfc33102843754c62c29a6eef78e78f28e931 (patch) | |
tree | aff039c5db11b96fee1ebbe2b8d1720673401cbb /libgo/mksysinfo.sh | |
parent | 5fd4e2f446a1a79c6b14408829f0abf26f6fb0a2 (diff) | |
download | gcc-f15dfc33102843754c62c29a6eef78e78f28e931.tar.gz |
mksysinfo: Define _pad128_t and _upad128_t if commented out.
From Rainer Orth.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168800 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/mksysinfo.sh')
-rwxr-xr-x | libgo/mksysinfo.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 35a461c889c..ed6a16444b2 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -250,6 +250,15 @@ else exit 1 fi +# Solaris 2 needs _u?pad128_t, but its default definition in terms of long +# double is commented by -fdump-go-spec. +if grep "^// type _pad128_t" gen-sysinfo.go > /dev/null 2>&1; then + echo "type _pad128_t struct { _l [4]int32; }" >> ${OUT} +fi +if grep "^// type _upad128_t" gen-sysinfo.go > /dev/null 2>&1; then + echo "type _upad128_t struct { _l [4]uint32; }" >> ${OUT} +fi + # The time structures need special handling: we need to name the # types, so that we can cast integers to the right types when # assigning to the structures. |