]> Cypherpunks repositories - gostls13.git/commit
cgo: process DWARF info even when debug data is used for value
authorJoel Sing <jsing@google.com>
Thu, 20 Sep 2012 03:20:33 +0000 (13:20 +1000)
committerJoel Sing <jsing@google.com>
Thu, 20 Sep 2012 03:20:33 +0000 (13:20 +1000)
commit9536480edc5f29368d2b7a05e30c199630b8074e
tree9a969a835cd68643bc636d8367469a51d0ee96cd
parent81a9cc31c46aada8ec4ff7e262b8b0a46e2ce57a
cgo: process DWARF info even when debug data is used for value

Always process the DWARF info, even when the const value is determined
using the debug data block. This ensures that the injected enum is
removed and future loads of the same constant do not trigger
inconsistent definitions.

Add tests for issues 2470 and 4054.
Fixes #4054.

R=golang-dev, fullung, dave, rsc, minux.ma
CC=golang-dev
https://golang.org/cl/6501101
misc/cgo/test/basic.go
misc/cgo/test/cgo_test.go
misc/cgo/test/issue4054a.go [new file with mode: 0644]
misc/cgo/test/issue4054b.go [new file with mode: 0644]
src/cmd/cgo/gcc.go