[Bug go/89227] gotools test cmd/go fails with link error "call lacks nop, can't restore toc; recompile with -fPIC"

2019-03-07 Thread boger at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89227 --- Comment #6 from boger at gcc dot gnu.org --- Works now, thanks.

[Bug go/89227] gotools test cmd/go fails with link error "call lacks nop, can't restore toc; recompile with -fPIC"

2019-03-06 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89227 Ian Lance Taylor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug go/89227] gotools test cmd/go fails with link error "call lacks nop, can't restore toc; recompile with -fPIC"

2019-03-06 Thread ian at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89227 --- Comment #4 from ian at gcc dot gnu.org --- Author: ian Date: Thu Mar 7 00:53:41 2019 New Revision: 269449 URL: https://gcc.gnu.org/viewcvs?rev=269449=gcc=rev Log: PR go/89227 * go-gcc.cc (Gcc_backend::function): Set

[Bug go/89227] gotools test cmd/go fails with link error "call lacks nop, can't restore toc; recompile with -fPIC"

2019-02-06 Thread boger at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89227 --- Comment #3 from boger at gcc dot gnu.org --- (In reply to Ian Lance Taylor from comment #1) > Same as https://golang.org/issue/29046? Yes same as the issue. Since we weren't sure if this was a FE or BE bug I decided to open a bugzilla. > >

[Bug go/89227] gotools test cmd/go fails with link error "call lacks nop, can't restore toc; recompile with -fPIC"

2019-02-06 Thread boger at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89227 boger at gcc dot gnu.org changed: What|Removed |Added CC||seurer at gcc dot gnu.org ---

[Bug go/89227] gotools test cmd/go fails with link error "call lacks nop, can't restore toc; recompile with -fPIC"

2019-02-06 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89227 --- Comment #1 from Ian Lance Taylor --- Same as https://golang.org/issue/29046? I would bet that this has something to do with the fact that testenv.HasLink is inlinable. Something is wrong with the way that the frontend is passing the