compiler: treat notinheap types as not being pointers
authorIan Lance Taylor <iant@golang.org>
Wed, 9 Feb 2022 04:22:32 +0000 (20:22 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 9 Feb 2022 22:11:11 +0000 (14:11 -0800)
commit70feb6839fe1f13982eb03096bd1140b59881b76
tree491de9cd26e2d315bb4ba389bea9e969700793c1
parentf3ffea93ef31c03ad8cdcb54e71ec868b57b264f
compiler: treat notinheap types as not being pointers

By definition, a type is marked notinheap doesn't contain any pointers
that the garbage collector cares about, and neither does a pointer to
such a type.  Change the type descriptors to consistently treat such
types as not being pointers, by setting ptrdata to 0 and gcdata to nil.

Change-Id: Id8466555ec493456ff5ff09f1670551414619bd2
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/384118
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h