gcc/libgo/go/reflect
Clément Chigot 72b3833822 reflect: ensure uniqueness of type descriptors on AIX.
On AIX, duplication of type descriptors can occur if one is
declared in the libgo and one in the Go program being compiled.
The AIX linker isn't able to merge them together as Linux one does.
One solution is to always load libgo first but that needs a huge mechanism in
gcc core. Thus, this patch ensures that the duplication isn't visible
for the end user.

In reflect and internal/reflectlite, the comparison of rtypes is made on their
name and not only on their addresses.

In reflect, toType() function is using a canonicalization map to force rtypes
having the same rtype.String() to return the same Type. This can't be made in
internal/reflectlite as it needs sync package. But, for now, it doesn't matter
as internal/reflectlite is not widely used.

Fixes golang/go#39276

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/260158
2020-10-13 17:54:37 -07:00
..
all_test.go compiler: set varargs correctly for type of method expression 2020-10-01 16:10:17 -07:00
deepequal.go libgo: update to Go 1.14.6 release 2020-07-17 14:28:28 -07:00
eqtype_aix_gccgo.go reflect: ensure uniqueness of type descriptors on AIX. 2020-10-13 17:54:37 -07:00
eqtype.go reflect: ensure uniqueness of type descriptors on AIX. 2020-10-13 17:54:37 -07:00
example_test.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
export_test.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
makefunc_ffi_c.c re PR go/91781 (r275691 breaks go test "reflect") 2019-09-17 20:24:00 +00:00
makefunc_ffi.go re PR go/91781 (r275691 breaks go test "reflect") 2019-09-17 20:24:00 +00:00
makefunc.go
set_test.go libgo: update to Go 1.11 2018-09-24 21:46:21 +00:00
swapper.go libgo: update to go1.15rc1 2020-08-01 11:21:40 -07:00
tostring_test.go
type.go reflect: ensure uniqueness of type descriptors on AIX. 2020-10-13 17:54:37 -07:00
value.go reflect: ensure uniqueness of type descriptors on AIX. 2020-10-13 17:54:37 -07:00