libgo patch committed: Install internal/reflectlite.gox

Message ID
State New
Headers show
  • libgo patch committed: Install internal/reflectlite.gox
Related show

Commit Message

Ian Lance Taylor Feb. 16, 2020, 1:21 p.m.
This patch to libgo arranges to install internal/reflectlite.gox.
This makes it possible to use gccgo to bootstrap Go 1.14.  If we don't
install this, gccgo can't compile the sort package, which expects to
be able to import this internal package.  This fixes GCC PR go/93679.
Bootstrapped on x86_64-pc-linux-gnu.  Committed to mainline.



diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index e67d792a44c..47dd5fbb908 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@ 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
diff --git a/libgo/ b/libgo/
index 56d38f57e7d..dea09de592b 100644
--- a/libgo/
+++ b/libgo/
@@ -397,6 +397,11 @@  toolexeclibgounicode_DATA = \
 	unicode/utf16.gox \
+# Some internal packages are needed to bootstrap the gc toolchain.
+toolexeclibgointernaldir = $(toolexeclibgodir)/internal
+toolexeclibgointernal_DATA = \
+	internal/reflectlite.gox
 # Some packages are only needed for tests, so unlike the other
 # internal packages nothing will explicitly depend on them.
 # Force them to be built.