Go patch committed: Update libgo to Go release r60
Ian Lance Taylor
iant@google.com
Fri Sep 23 21:12:00 GMT 2011
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
> Unfortunately, the
>
> /vol/gcc/src/hg/trunk/local/libgo/syscalls/exec.go:11:14: error: imported and not used: unsafe
>
> error remains. I've no idea what triggers it.
Bother. Neither do I. I just looked through the code and it all looks
fine. The reference to unsafe.Pointer will be parsed by
Parse::operand. On one of the lines which uses unsafe.Pointer, it will
see "unsafe", see that it is a package, and call package->set_used().
That will set the flag which is later tested by Gogo::clear_file_scope
to prevent the warning.
I tried compiling the set of files which will be compiled on Solaris,
but still couldn't recreate the problem.
Ian
More information about the Gcc-patches
mailing list