Commit 194f08ae by Ian Lance Taylor

re PR go/81617 (mksigtab.sh fails to resolve NSIG with glibc 2.26)

	PR go/81617
    libgo: change mksigtab to recognize glibc 2.26 NSIG expression
    
    Fixes golang/go#21147
    Fixes GCC PR 81617
    
    Reviewed-on: https://go-review.googlesource.com/52611

From-SVN: r250858
parent 2fdaed89
c1ac6bc99f988633c6bc68a5ca9ffad3487750ef adac632f95d1cd3421c9c1df5204db10b6a92c44
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -107,6 +107,19 @@ if test "${GOOS}" = "aix"; then ...@@ -107,6 +107,19 @@ if test "${GOOS}" = "aix"; then
nsig=`expr $nsig + 1` nsig=`expr $nsig + 1`
else else
nsig=`grep 'const _*NSIG = [0-9]*$' gen-sysinfo.go | sed -e 's/.* = \([0-9]*\)/\1/'` nsig=`grep 'const _*NSIG = [0-9]*$' gen-sysinfo.go | sed -e 's/.* = \([0-9]*\)/\1/'`
if test -z "$nsig"; then
if grep 'const _*NSIG = [ (]*_*SIGRTMAX + 1[ )]*' gen-sysinfo.go >/dev/null 2>&1; then
rtmax=`grep 'const _*SIGRTMAX = [0-9]*$' gen-sysinfo.go | sed -e 's/.* = \([0-9]*\)/\1/'`
if test -n "$rtmax"; then
nsig=`expr $rtmax + 1`
fi
fi
fi
fi
if test -z "$nsig"; then
echo 1>&2 "could not determine number of signals"
exit 1
fi fi
i=1 i=1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment