From: ian Date: Thu, 13 Jan 2011 20:23:19 +0000 (+0000) Subject: Don't exit mksysinfo.sh if there is no _user_regs_struct. X-Git-Tag: upstream/4.9.2~23512 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7549a79a8724518fb2a59a44aeb54dfe32241d61;p=platform%2Fupstream%2Flinaro-gcc.git Don't exit mksysinfo.sh if there is no _user_regs_struct. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168764 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index f43db61..35a461c 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -207,7 +207,7 @@ fi # The registers returned by PTRACE_GETREGS. This is probably # GNU/Linux specific; it should do no harm if there is no # _user_regs_struct. -regs=`grep '^type _user_regs_struct struct' gen-sysinfo.go` +regs=`grep '^type _user_regs_struct struct' gen-sysinfo.go || true` if test "$regs" != ""; then regs=`echo $regs | sed -e 's/type _user_regs_struct struct //' -e 's/[{}]//g'` regs=`echo $regs | sed -e s'/^ *//'`