summaryrefslogtreecommitdiff
path: root/libgo/mksysinfo.sh
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2017-10-15 19:45:33 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2017-10-15 19:45:33 +0000
commit92f20d1ea03b9b079bde73fb097c280922935b67 (patch)
tree5920f52e9ab28674c01fa2bcd30f29651d40fd9f /libgo/mksysinfo.sh
parent227d2116a58b729ef7b5558e9967eddcf54e169a (diff)
PR go/82559
Backport from mainline: https://golang.org/cl/46712 https://golang.org/cl/46839 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@253770 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/mksysinfo.sh')
-rwxr-xr-xlibgo/mksysinfo.sh13
1 files changed, 2 insertions, 11 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index bbc85f98ab70..4fcf89f094c0 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -295,17 +295,8 @@ upcase_fields () {
# _user_regs_struct.
regs=`grep '^type _user_regs_struct struct' gen-sysinfo.go || true`
if test "$regs" = ""; then
- # s390
- regs=`grep '^type __user_regs_struct struct' gen-sysinfo.go || true`
- if test "$regs" != ""; then
- # Substructures of __user_regs_struct on s390
- upcase_fields "__user_psw_struct" "PtracePsw" >> ${OUT} || true
- upcase_fields "__user_fpregs_struct" "PtraceFpregs" >> ${OUT} || true
- upcase_fields "__user_per_struct" "PtracePer" >> ${OUT} || true
- else
- # mips*
- regs=`grep '^type _pt_regs struct' gen-sysinfo.go || true`
- fi
+ # mips*
+ regs=`grep '^type _pt_regs struct' gen-sysinfo.go || true`
fi
if test "$regs" != ""; then
regs=`echo $regs | sed -e 's/type _pt_regs struct//'`