diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-11-14 23:16:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-11-14 23:16:04 +0000 |
commit | 7b9f5ceef164a4d8fd6c07b20101af1420d6100c (patch) | |
tree | b5ec8e784225739b75eaacc89ac8e28611847abf /gcc | |
parent | 6964bb3ed962554b18ca92633b5395f91f9bebac (diff) | |
download | gcc-7b9f5ceef164a4d8fd6c07b20101af1420d6100c.zip gcc-7b9f5ceef164a4d8fd6c07b20101af1420d6100c.tar.gz gcc-7b9f5ceef164a4d8fd6c07b20101af1420d6100c.tar.bz2 |
runtime: don't crash if signal handler info argument is nil
Apparently on Solaris 10 a SA_SIGINFO signal handler can be invoked with
a nil info argument. I would not have believed it but I've now seen it
happen, and the sigaction man page actually says "If the second argument
is not equal to NULL, it points to a siginfo_t structure...." So, if
that happens, don't crash.
Also fix another case where we want to make sure that &T{} does not
allocate.
Reviewed-on: https://go-review.googlesource.com/33150
From-SVN: r242403
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 9634f00..1fe9dec 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -3c8d91cff0ad3d233ebd268f88a3749d38a0aac1 +eb716b515356166d3177e6244619be5901f31162 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. |