]> Cypherpunks repositories - gostls13.git/commit
cmd/6l, cmd/8l, cmd/5l: add AUNDEF instruction
authorRuss Cox <rsc@golang.org>
Wed, 30 May 2012 20:47:56 +0000 (16:47 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 30 May 2012 20:47:56 +0000 (16:47 -0400)
commitf2bd3a977d105f8a4ee3f4c86fe8daf52f629495
tree921e6cab9c4fd97d7106ebf07e8fbe7422d7797c
parent8820ab5da9da5528e256d3a519723fdf44ddc75f
cmd/6l, cmd/8l, cmd/5l: add AUNDEF instruction

On 6l and 8l, this is a real instruction, guaranteed to
cause an 'undefined instruction' exception.

On 5l, we simulate it as BL to address 0.

The plan is to use it as a signal to the linker that this
point in the instruction stream cannot be reached
(hence the changes to nofollow).  This will help the
compiler explain that panicindex and friends do not
return without having to put a list of these functions
in the linker.

R=ken2
CC=golang-dev
https://golang.org/cl/6255064
14 files changed:
src/cmd/5a/lex.c
src/cmd/5l/5.out.h
src/cmd/5l/asm.c
src/cmd/5l/optab.c
src/cmd/5l/pass.c
src/cmd/5l/span.c
src/cmd/6a/lex.c
src/cmd/6l/6.out.h
src/cmd/6l/optab.c
src/cmd/6l/pass.c
src/cmd/8a/lex.c
src/cmd/8l/8.out.h
src/cmd/8l/optab.c
src/cmd/8l/pass.c