Rainer Orth <r...@cebitec.uni-bielefeld.de> writes:

> the problem turned out to be obvious once you ignore most of the error
> message ;-(  The spurious import is in sysinfo.go, which unconditionally
> imports the package, but only uses in some cases.

Ah.  This patch fixes the location of the error message.  Bootstrapped
and ran Go testsuite on x86_64-unknown-linux-gnu.  Committed to
mainline.

Ian

diff -r 2a85c2fcd313 go/unsafe.cc
--- a/go/unsafe.cc	Fri Sep 23 15:13:57 2011 -0700
+++ b/go/unsafe.cc	Mon Sep 26 11:28:04 2011 -0700
@@ -31,6 +31,7 @@
       return;
     }
 
+  package->set_location(location);
   package->set_is_imported();
 
   Bindings* bindings = package->bindings();

Reply via email to