]> Cypherpunks repositories - gostls13.git/commit
[dev.power64] gc: fix etype of strings
authorAustin Clements <austin@google.com>
Thu, 6 Nov 2014 19:37:39 +0000 (14:37 -0500)
committerAustin Clements <austin@google.com>
Thu, 6 Nov 2014 19:37:39 +0000 (14:37 -0500)
commitf45fd5753c4f1fd6ab472e219598523516855b40
tree4928a3b0af92eac6473f1014e86ead36cb62d04a
parent4f81684f8640e81b1c337a6b88488a888d13abea
[dev.power64] gc: fix etype of strings

The etype of references to strings was being incorrectly set
to TINT32 on all platforms.  Change it to TSTRING.  It seems
this doesn't matter for compilation, since x86 uses LEA
instructions to load string addresses and arm and power64
disassemble the string into its constituent pieces (with the
correct types), but it helps when debugging.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/170100043
src/cmd/5g/gobj.c
src/cmd/6g/gobj.c
src/cmd/8g/gobj.c
src/cmd/9g/gobj.c