compiler: don't localize names in export data
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 9 Jan 2020 16:20:56 +0000 (16:20 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 9 Jan 2020 16:20:56 +0000 (16:20 +0000)
    Localizing names in export data causes the compiler output to change
    depending on the LANG environment variable, so don't do it.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/214038

From-SVN: r280057

gcc/go/gofrontend/MERGE
gcc/go/gofrontend/export.cc

index 500237671be1184d9abf00c87a8bfca96292966c..e712bef13324e7b7f1560623e031cb3f443036b4 100644 (file)
@@ -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 b27d2fa11e450dcdce05629b52844f68fc2427ef..277aa74e571753cca7cfd0f3a624d3d27dd660cc 100644 (file)
@@ -1231,7 +1231,7 @@ Export::write_name(const std::string& name)
   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.