]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make -asmhdr work with type aliases
authorMatthew Dempsky <mdempsky@google.com>
Wed, 29 Nov 2017 19:58:03 +0000 (11:58 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 29 Nov 2017 20:40:41 +0000 (20:40 +0000)
commit2f588ff08f0330864b2e8d16e850c51642d9c5ca
tree7ceedc2ce4a3aeb1af8fd70a47efa80ddb4f0d2b
parent07a2ffaf0b2961c76e69e3ca910b6a08a687626b
cmd/compile: make -asmhdr work with type aliases

For "type T = U" we were accidentally emitting a #define for "U__size"
instead of "T__size".

Fixes #22877.

Change-Id: I5ed6757d697753ed6d944077c16150759f6e1285
Reviewed-on: https://go-review.googlesource.com/80759
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/export.go
test/fixedbugs/issue22877.dir/p.go [new file with mode: 0644]
test/fixedbugs/issue22877.dir/p.s [new file with mode: 0644]
test/fixedbugs/issue22877.go [new file with mode: 0644]
test/run.go