summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-06 16:44:32 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-06 16:44:32 +0000
commit8a1b0e9ba38c40171ab347e3aec5e973d9c9621a (patch)
tree4d29f937c8f6e8dc359a378e1612e2fc2b13ffc3 /libgo
parentb92f2770c47f5b41f92038023d47ee2eeb428d39 (diff)
downloadgcc-8a1b0e9ba38c40171ab347e3aec5e973d9c9621a.tar.gz
mksysinfo: Tolerate missing structures in upcase_fields.
2014-11-06 Dominik Vogt <vogt@linux.vnet.ibm.com> * libgo/mksysinfo.sh: Tolerate missing structures. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217194 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/mksysinfo.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index a174e64213b..ddfa8bb9134 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -475,9 +475,9 @@ if test "$regs" == ""; then
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}
- upcase_fields "__user_fpregs_struct" "PtraceFpregs" >> ${OUT}
- upcase_fields "__user_per_struct" "PtracePer" >> ${OUT}
+ upcase_fields "__user_psw_struct" "PtracePsw" >> ${OUT} || true
+ upcase_fields "__user_fpregs_struct" "PtraceFpregs" >> ${OUT} || true
+ upcase_fields "__user_per_struct" "PtracePer" >> ${OUT} || true
fi
fi
if test "$regs" != ""; then
@@ -746,7 +746,7 @@ grep '^const _SCM_' gen-sysinfo.go | \
sed -e 's/^\(const \)_\(SCM_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
# The ucred struct.
-upcase_fields "_ucred" "Ucred" >> ${OUT}
+upcase_fields "_ucred" "Ucred" >> ${OUT} || true
# The ip_mreq struct.
grep '^type _ip_mreq ' gen-sysinfo.go | \