Go patch committed: Don't localize names in export data

Message ID CAOyqgcXEYZdrat1hpVBPFHXe8pqFXEPgEEmtrdoWBNteYc+8nA@mail.gmail.com
State New
Headers show
Series
  • Go patch committed: Don't localize names in export data
Related show

Commit Message

Ian Lance Taylor Jan. 9, 2020, 4:21 p.m.
This patch changes the Go frontend to not localize names in export
data.  Localizing these names causes the compiler output to change
depending on the LANG environment variable, so don't do it.
Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.  Committed
to mainline.

Ian

Patch

Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE	(revision 280056)
+++ gcc/go/gofrontend/MERGE	(working copy)
@@ -1,4 +1,4 @@ 
-8ad32fb3e1e8b19ac125d03db24a73a800abdfa6
+f9d1bfb3eec2d388c5f239779fd25a580064dd9d
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
Index: gcc/go/gofrontend/export.cc
===================================================================
--- gcc/go/gofrontend/export.cc	(revision 279815)
+++ gcc/go/gofrontend/export.cc	(working copy)
@@ -1231,7 +1231,7 @@  Export::write_name(const std::string& na
   if (name.empty())
     this->write_c_string("?");
   else
-    this->write_string(Gogo::message_name(name));
+    this->write_string(Gogo::unpack_hidden_name(name));
 }
 
 // Write an integer value to the export stream.