1
0
mirror of https://github.com/golang/go synced 2024-11-17 07:54:41 -07:00
go/misc/cgo/test
Ian Lance Taylor 2fdff9586b cmd/go: always use --whole-archive for gccgo packages
This is, in effect, what the gc toolchain does.  It fixes cases where Go
code refers to a C global variable; without this, if the global variable
was the only thing visible in the C code, the generated cgo file might
not get pulled in from the archive, leaving the Go variable
uninitialized.

This was reported against gccgo as https://gcc.gnu.org/PR68255 .

Change-Id: I3e769dd174f64050ebbff268fbbf5e6fab1e2a1b
Reviewed-on: https://go-review.googlesource.com/16775
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2015-11-10 20:22:13 +00:00
..
gcc68255 cmd/go: always use --whole-archive for gccgo packages 2015-11-10 20:22:13 +00:00
issue8828 cmd/go: add '_go_' suffix to go files compiled by gccgo to avoid naming conflicts 2014-10-15 13:13:37 -07:00
issue9026 misc/cgo/test: fix freebsd test failure by moving test to its own package. 2014-11-03 13:41:03 -05:00
issue9400 cmd/internal/obj, runtime: add NOFRAME flag to suppress stack frame set up on ppc64x 2015-10-18 22:13:30 +00:00
align.go
api.go
backdoor.go misc/cgo/test: get rid of the backdoor package 2014-12-24 00:18:21 +00:00
basic.go cmd/cgo: add missing ast.SliceExpr.Max case to AST traversal. 2014-09-30 16:08:04 -04:00
buildid_linux.go misc/cgo/test: fix go vet warnings 2015-10-13 17:53:20 +00:00
callback_c_gc.c runtime: delete cgo_allocate 2015-04-17 01:30:47 +00:00
callback_c_gccgo.c runtime: delete cgo_allocate 2015-04-17 01:30:47 +00:00
callback_c.c cgo: adjust return value location to account for stack copies. 2014-09-25 07:59:01 -07:00
callback.go misc/cgo/test: fix go vet warnings 2015-10-13 17:53:20 +00:00
cflags.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
cgo_linux_test.go runtime: don't always unblock all signals 2015-05-22 20:24:08 +00:00
cgo_test.go cmd/go: always use --whole-archive for gccgo packages 2015-11-10 20:22:13 +00:00
cthread_unix.c misc/cgo: add various solaris build lines 2015-05-06 11:38:08 +00:00
cthread_windows.c
cthread.go
duplicate_symbol.go
env.go misc/cgo/test: fix go vet warnings 2015-10-13 17:53:20 +00:00
exports.go runtime: remove untyped allocation of ParFor 2014-09-16 11:03:11 -04:00
fpvar.go
gcc68255.go cmd/go: always use --whole-archive for gccgo packages 2015-11-10 20:22:13 +00:00
helpers.go
issue1222.go
issue1328.go
issue1560.go
issue1635.go
issue2462.go
issue3250.go
issue3250w.go
issue3261.go misc/cgo/test: skip issue3261 test on darwin/arm64 2015-04-16 13:00:47 +00:00
issue3729.go
issue3729w.go
issue3741.go
issue3775.go
issue3945.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
issue4029.go
issue4029w.go
issue4054a.go
issue4054b.go
issue4273.c
issue4273b.c
issue4339.c
issue4339.go
issue4339.h
issue4417.go
issue4857.go
issue5227.go
issue5242.go cmd/cgo: fix default alignment for empty structs 2014-08-11 22:10:17 -07:00
issue5337.go
issue5337w.go
issue5548_c.c
issue5548.go misc/cgo/test: make issue5548 test pickier 2014-09-05 14:59:09 -04:00
issue5603.go
issue5740.go
issue5740a.c
issue5740b.c
issue5986.go
issue6128.go cmd/cgo: fix Xcode 5 incompatibility for #defined expressions 2013-10-15 14:34:46 -04:00
issue6390.go
issue6472.go
issue6506.go misc/cgo/test: cut out non-standard functions 2013-10-15 14:25:29 -04:00
issue6612.go cmd/cgo: stop using compiler error message text to analyze C names 2013-10-18 15:56:25 -04:00
issue6833_c.c cmd/cgo: use __gcc_struct__ for go exported functions 2013-12-10 11:30:12 +11:00
issue6833.go cmd/cgo: use __gcc_struct__ for go exported functions 2013-12-10 11:30:12 +11:00
issue6997_linux.c runtime: co-exist with NPTL's pthread_cancel. 2014-01-09 09:34:04 -08:00
issue6997_linux.go all: use one 'l' when cancelling everywhere except Solaris 2015-09-11 18:31:51 +00:00
issue7234_test.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
issue7560.go cmd/cgo: omit misaligned struct fields, like we omit bitfields 2014-05-12 23:48:20 -04:00
issue7665.go misc/cgo/test: fix go vet warnings 2015-10-13 17:53:20 +00:00
issue7786.go cmd/cgo: given typedef struct S T, make C.T and C.struct_S interchangeable 2014-05-28 14:04:31 -04:00
issue7978.go runtime: rename cgocall_errno and asmcgocall_errno into cgocall and asmcgocall 2015-06-19 01:47:11 +00:00
issue8092.go cmd/{ld,link,objdump}, runtime, debug/gosym: move linker-defined symbols into runtime package 2014-08-27 20:15:05 -04:00
issue8148.go cmd/cgo: for typedef of untagged struct, use typedef name in C code 2014-06-05 10:42:03 -07:00
issue8331.h cmd/cgo: use same Go type for typedef to anonymous struct 2014-06-02 12:55:43 -07:00
issue8331a.go cmd/cgo: use same Go type for typedef to anonymous struct 2014-06-02 12:55:43 -07:00
issue8331b.go cmd/cgo: use same Go type for typedef to anonymous struct 2014-06-02 12:55:43 -07:00
issue8428.go cmd/cgo: discard trailing zero-sized fields in a non-empty C struct 2015-07-30 15:55:25 +00:00
issue8441.go cmd/cgo: fix recursive type mapping 2014-08-05 18:16:56 -07:00
issue8517_windows.c misc/cgo/test: add Test8517 2014-10-09 16:10:51 +11:00
issue8517_windows.go misc/cgo/test: add Test8517 2014-10-09 16:10:51 +11:00
issue8517.go misc/cgo/test: add Test8517 2014-10-09 16:10:51 +11:00
issue8694.go misc/cgo/test: skip test8694 on ARM. 2014-12-11 17:34:10 +11:00
issue8811.c cmd/ld: do not assume that only pe section names start with '.' 2014-10-11 22:01:04 +11:00
issue8811.go cmd/ld: do not assume that only pe section names start with '.' 2014-10-11 22:01:04 +11:00
issue8828.go cmd/go: add '_go_' suffix to go files compiled by gccgo to avoid naming conflicts 2014-10-15 13:13:37 -07:00
issue8945.go cmd/cgo: fix a problem with 'go build -compiler gccgo' 2015-06-29 15:15:59 +00:00
issue9026.go misc/cgo/test: fix freebsd test failure by moving test to its own package. 2014-11-03 13:41:03 -05:00
issue9400_linux.go misc/cgo: fix issue 9400 test on 386 2014-12-23 02:22:50 +00:00
issue9557.go cmd/cgo: also rewrite C.var in selector expressions 2015-01-12 21:48:57 +00:00
issue10303.go cmd/cgo: make sure pointers passed to C escape to heap 2015-06-15 17:39:53 +00:00
issue11925.go cmd/cgo: discard trailing zero-sized fields in a non-empty C struct 2015-07-30 15:55:25 +00:00
issue12030.go runtime/cgo: explicitly link msvcrt on windows 2015-09-12 08:34:52 +00:00
setgid_linux.go runtime: unblock special glibc signals on each thread 2015-09-14 21:59:54 +00:00
sigprocmask_linux.c misc/cgo/test: fix build for CC=clang 2015-05-22 22:54:24 +00:00
sigprocmask_linux.go runtime: don't always unblock all signals 2015-05-22 20:24:08 +00:00
sleep_windows_386.go