]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix location of error about unused import "unsafe".
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 26 Sep 2011 19:36:06 +0000 (19:36 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 26 Sep 2011 19:36:06 +0000 (19:36 +0000)
From-SVN: r179211

gcc/go/gofrontend/unsafe.cc

index 80b367cc46d4b6fc03cfc44236e00a99a642bf8d..434932bbeb05bcd7c58363485b10e1bd83377035 100644 (file)
@@ -31,6 +31,7 @@ Gogo::import_unsafe(const std::string& local_name, bool is_local_name_exported,
       return;
     }
 
+  package->set_location(location);
   package->set_is_imported();
 
   Bindings* bindings = package->bindings();