Commit 3a3f8993 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: fix nacl/amd64p32 build

C compiler does not support unnamed fields.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/124870043
parent a3c0ca54
...@@ -79,7 +79,7 @@ struct ExcContext ...@@ -79,7 +79,7 @@ struct ExcContext
union { union {
ExcRegs386 regs; ExcRegs386 regs;
ExcRegsAmd64 regs64; ExcRegsAmd64 regs64;
}; } regs;
}; };
struct ExcPortableContext struct ExcPortableContext
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#define SIG_REGS(ctxt) (((ExcContext*)(ctxt))->regs64) #define SIG_REGS(ctxt) (((ExcContext*)(ctxt))->regs.regs64)
#define SIG_RAX(info, ctxt) (SIG_REGS(ctxt).rax) #define SIG_RAX(info, ctxt) (SIG_REGS(ctxt).rax)
#define SIG_RBX(info, ctxt) (SIG_REGS(ctxt).rbx) #define SIG_RBX(info, ctxt) (SIG_REGS(ctxt).rbx)
......
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