8sa1-gcc/libgo/go/internal
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
..
bytealg libgo: add 32-bit RISC-V (RV32) support 2020-09-30 19:47:48 -07:00
cfg
cpu runtime, net: fix build errors on AIX 2020-09-22 17:29:52 -07:00
fmtsort
goroot
goversion
lazyregexp
lazytemplate
nettrace
obscuretestdata
oserror
poll libgo: update to Go1.15.2 release 2020-09-23 17:32:49 -07:00
profile
race
reflectlite reflect: ensure uniqueness of type descriptors on AIX. 2020-10-13 17:54:37 -07:00
singleflight
syscall libgo: add 32-bit RISC-V (RV32) support 2020-09-30 19:47:48 -07:00
testenv
testlog
trace
unsafeheader
xcoff