1
0
mirror of https://github.com/golang/go synced 2024-11-17 06:04:47 -07:00
go/misc/cgo/test
Ian Lance Taylor 6d43587053 cmd/cgo: preserve type information across loadDWARF loop
CL 122575 and its successors introduced a loop calling loadDWARF,
whereas before we only called it once. Pass a single typeConv to each
call, rather than creating a new one in loadDWARF itself. Change the
maps from dwarf.Type to use string keys rather than dwarf.Type keys,
since when the DWARF is reloaded the dwarf.Type pointers will be
different. These changes permit typeConv.Type to return a consistent
value for a given DWARF type, avoiding spurious type conversion errors
due to typedefs loaded after the first loop iteration.

Fixes #27340

Change-Id: Ic33467bbfca4c54e95909621b35ba2a58216d96e
Reviewed-on: https://go-review.googlesource.com/c/152762
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2018-12-11 03:29:27 +00:00
..
gcc68255
issue8756
issue8828
issue9026 cmd/cgo: preserve type information across loadDWARF loop 2018-12-11 03:29:27 +00:00
issue9400 misc/cgo/test: avoid duplicate definition with gccgo 2018-06-20 02:52:44 +00:00
issue9510a
issue9510b
issue20266
issue23555a cmd/cgo: add import path to hash 2018-06-13 23:36:03 +00:00
issue23555b cmd/cgo: add import path to hash 2018-06-13 23:36:03 +00:00
issue24161arg cmd/cgo: check function argument/return types for bad C pointer types 2018-07-09 22:19:21 +00:00
issue24161e0 misc/cgo: fix darwin test, again 2018-07-16 19:14:30 +00:00
issue24161e1 misc/cgo: fix darwin test, again 2018-07-16 19:14:30 +00:00
issue24161e2 misc/cgo: fix darwin test, again 2018-07-16 19:14:30 +00:00
issue24161res cmd/cgo: check function argument/return types for bad C pointer types 2018-07-09 22:19:21 +00:00
issue26213 cmd/cgo: update JNI's jobject to uintptr check for newer Android NDKs 2018-07-17 16:51:15 +00:00
issue26430 cmd/cgo: don't report inconsistency error for incomplete typedef 2018-07-18 04:17:51 +00:00
issue26743 cmd/cgo: don't give inconsistent typedef error for cgo-defined types 2018-08-01 20:41:19 +00:00
issue27340 cmd/cgo: preserve type information across loadDWARF loop 2018-12-11 03:29:27 +00:00
align.go
api.go
backdoor.go
basic.go runtime: use bytes.IndexByte in findnull 2018-03-09 19:37:39 +00:00
buildid_linux.go misc/cgo/test: avoid endless loop when we can't parse notes 2018-01-11 19:55:49 +00:00
callback_c_gc.c
callback_c_gccgo.c
callback_c.c
callback.go all: fix a bunch of misspellings 2018-10-06 15:40:03 +00:00
cflags.go
cgo_linux_test.go
cgo_stubs_android_test.go
cgo_test.go cmd/cgo: use field alignment when setting field offset 2018-11-29 19:18:12 +00:00
cgo_thread_lock.go
cgo_unix_test.go
checkconst.go
complex.go
cthread_unix.c
cthread_windows.c
cthread.go
duplicate_symbol.go
env.go
exports.go
fpvar.go
gcc68255.go
helpers.go
issue1222.go
issue1328.go
issue1560.go
issue1635.go
issue2462.go
issue3250.go
issue3250w.go
issue3261.go
issue3729.go
issue3729w.go
issue3741.go
issue3775.go
issue3945.go
issue4029.c cmd/cgo: permit missing dynamic symbol section 2018-07-02 17:50:00 +00:00
issue4029.go cmd/cgo: permit missing dynamic symbol section 2018-07-02 17:50:00 +00:00
issue4029w.go cmd/cgo: permit missing dynamic symbol section 2018-07-02 17:50:00 +00:00
issue4054a.go
issue4054b.go
issue4273.c
issue4273b.c
issue4339.c
issue4339.go
issue4339.h
issue4417.go
issue4857.go
issue5227.go
issue5242.go
issue5337.go
issue5337w.go
issue5548_c.c
issue5548.go
issue5603.go
issue5740.go
issue5740a.c
issue5740b.c
issue5986.go
issue6128.go
issue6390.go
issue6472.go
issue6506.go
issue6612.go
issue6833_c.c
issue6833.go
issue6907.go
issue6907export_c.c
issue6907export.go
issue6997_linux.c
issue6997_linux.go
issue7234_test.go
issue7560.go
issue7665.go
issue7786.go
issue7978.go
issue8092.go
issue8148.go
issue8331.h
issue8331a.go
issue8331b.go
issue8428.go
issue8441.go
issue8517_windows.c
issue8517_windows.go
issue8517.go
issue8694.go
issue8756.go
issue8811.c
issue8811.go
issue8828.go
issue8945.go
issue9026.go
issue9400_linux.go all: fix typos detected by github.com/client9/misspell 2018-08-23 15:54:07 +00:00
issue9510.go
issue9557.go
issue10303.go
issue11925.go
issue12030.go
issue13402.go
issue13930.go
issue14838.go
issue17065.go
issue17537.go
issue18126.go
issue18146.go misc/cgo/test: skip Test18146 in short mode 2018-06-27 04:31:53 +00:00
issue18720.go
issue20129.go
issue20266.go
issue20369.go
issue20910.c
issue20910.go
issue21668.go
issue21708.go
issue21809.go
issue21897.go misc/cgo/test: disable some Darwin tests in cgo mode 2018-07-23 15:16:01 +00:00
issue21897b.go misc/cgo/test: disable some Darwin tests in cgo mode 2018-07-23 15:16:01 +00:00
issue22958.go cmd/cgo: for C bitfields use only valid Go integer types 2017-12-01 23:50:23 +00:00
issue23356.go cmd/cgo: avoid name confliction for C functions 2018-06-18 18:28:02 +00:00
issue23555.go cmd/cgo: add import path to hash 2018-06-13 23:36:03 +00:00
issue23720.go misc/cgo/test: add test for passing compatible typedefs 2018-06-13 23:08:56 +00:00
issue24161_darwin_test.go misc/cgo/test: disable some Darwin tests in cgo mode 2018-07-23 15:16:01 +00:00
issue24206_generic.go runtime: use bytes.IndexByte in findnull 2018-03-09 19:37:39 +00:00
issue24206.go runtime: use bytes.IndexByte in findnull 2018-03-09 19:37:39 +00:00
issue25143.go cmd/cgo: visit cgo type inside ellipsis node 2018-05-01 00:44:48 +00:00
issue26066.go cmd/cgo: handle GCC 8 change in errors about constant initializers 2018-06-29 23:22:48 +00:00
issue26430.go cmd/cgo: don't report inconsistency error for incomplete typedef 2018-07-18 04:17:51 +00:00
issue26517.go cmd/cgo: make sure we FinishType everything 2018-07-31 19:29:20 +00:00
issue26743.go cmd/cgo: don't give inconsistent typedef error for cgo-defined types 2018-08-01 20:41:19 +00:00
issue27340.go cmd/cgo: preserve type information across loadDWARF loop 2018-12-11 03:29:27 +00:00
issue28545.go cmd/cgo: recognize untyped constants defined in different files 2018-11-29 01:29:56 +00:00
issue28772.go cmd/cgo: recognize untyped constants defined in different files 2018-11-29 01:29:56 +00:00
issue28896.go cmd/cgo: use field alignment when setting field offset 2018-11-29 19:18:12 +00:00
setgid_linux.go
sigaltstack.go
sigprocmask.c misc/cgo/test: add retry loop around pthread_create in TestSigprocmask 2018-06-27 04:33:10 +00:00
sigprocmask.go misc/cgo/test: log error value in testSigprocmask 2018-04-25 20:26:39 +00:00
test22906.go cmd/cgo: make JNI's jobject type map to uintptr in Go 2017-12-08 16:13:14 +00:00
test26213.go cmd/cgo: update JNI's jobject to uintptr check for newer Android NDKs 2018-07-17 16:51:15 +00:00
test27660.go runtime: never call into race detector with retaken P 2018-11-09 21:47:48 +00:00
twoargs.go cmd/cgo: don't update each call in place 2018-11-02 05:35:56 +00:00