]> Cypherpunks repositories - gostls13.git/commit
runtime: handle nil ptr load/store in arm software floating point
authorRuss Cox <rsc@golang.org>
Fri, 5 Sep 2014 18:58:54 +0000 (14:58 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 5 Sep 2014 18:58:54 +0000 (14:58 -0400)
commit4b3906fec35b81e9bce7af5e1ce64c2a431c8301
tree8f93148ca742f482807ce75b1ab4f9bf7cd278de
parentf93e21ac24935304bf0e05ea6c7e36c56077011e
runtime: handle nil ptr load/store in arm software floating point

We cannot let a real panic start there, because there is C code
on the stack, and worse, there is an assembly frame with a
saved copy of the registers and we have no idea which ones
are pointers.

Instead, detect the nil ptr load/store and return out of the C
and assembly into a stub that will start the call to sigpanic.

Fixes GOARM=5 build.

LGTM=iant
R=golang-codereviews, iant
CC=dave, golang-codereviews, minux, r
https://golang.org/cl/138130043
src/pkg/runtime/softfloat_arm.c
src/pkg/runtime/vlop_arm.s