gcc/libgo/misc/cgo/test
Ian Lance Taylor 52eb4ab409 compiler: error on func declaration/definition
Long long long ago Go permitted writing
        func F()
    in one file and writing
        func F() {}
    in another file.  This was removed from the language, and that is now
    considered to be a multiple definition error.  Gccgo never caught up
    to that, and it has been permitting this invalid code for some time.
    
    Stop permitting it, so that we give correct errors.  Since we've
    supported it for a long time, the compiler uses it in a couple of
    cases: it predeclares the hash/equal methods if it decides to create
    them while compiling another function, and it predeclares main.main as
    a mechanism for getting the right warning if a program uses the wrong
    signature for main.  For simplicity, keep those existing uses.
    
    This required a few minor changes in libgo which were relying,
    unnecessarily, on the current behavior.
    
    Reviewed-on: https://go-review.googlesource.com/93083

From-SVN: r257600
2018-02-12 19:29:52 +00:00
..
gcc68255
issue8756
issue8828
issue9026
issue9400 compiler: error on func declaration/definition 2018-02-12 19:29:52 +00:00
issue9510a
issue9510b
issue20266 libgo: update to go1.9 2017-09-14 17:11:35 +00:00
align.go
api.go
backdoor.go
basic.go
buildid_linux.go re PR go/83794 (misc/cgo/test uses gigabytes of memory) 2018-01-11 19:58:55 +00:00
callback_c_gc.c
callback_c_gccgo.c
callback_c.c
callback.go
cflags.go
cgo_linux_test.go
cgo_stubs_android_test.go
cgo_test.go libgo: update to Go1.10beta2 release 2018-01-17 14:20:29 +00:00
cgo_thread_lock.go
cgo_unix_test.go
checkconst.go
complex.go
cthread_unix.c
cthread_windows.c
cthread.go
duplicate_symbol.go
env.go
exports.go
fpvar.go
gcc68255.go
helpers.go
issue1222.go
issue1328.go
issue1560.go
issue1635.go
issue2462.go
issue3250.go
issue3250w.go
issue3261.go
issue3729.go
issue3729w.go
issue3741.go
issue3775.go
issue3945.go
issue4029.c libgo: update to Go1.10rc2 2018-02-08 15:30:22 +00:00
issue4029.go libgo: update to Go1.10rc2 2018-02-08 15:30:22 +00:00
issue4029w.go
issue4054a.go
issue4054b.go
issue4273.c
issue4273b.c
issue4339.c
issue4339.go
issue4339.h
issue4417.go
issue4857.go
issue5227.go
issue5242.go
issue5337.go
issue5337w.go
issue5548_c.c
issue5548.go
issue5603.go
issue5740.go
issue5740a.c
issue5740b.c
issue5986.go
issue6128.go
issue6390.go
issue6472.go
issue6506.go
issue6612.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
issue6833_c.c
issue6833.go
issue6907.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue6907export_c.c libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue6907export.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue6997_linux.c
issue6997_linux.go
issue7234_test.go
issue7560.go
issue7665.go
issue7786.go
issue7978.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue8092.go
issue8148.go
issue8331.h
issue8331a.go
issue8331b.go
issue8428.go
issue8441.go
issue8517_windows.c
issue8517_windows.go
issue8517.go
issue8694.go
issue8756.go
issue8811.c
issue8811.go
issue8828.go
issue8945.go
issue9026.go
issue9400_linux.go
issue9510.go
issue9557.go
issue10303.go
issue11925.go
issue12030.go
issue13402.go
issue13930.go
issue14838.go
issue17065.go
issue17537.go
issue18126.go
issue18146.go
issue18720.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue20129.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
issue20266.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
issue20369.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
issue20910.c libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue20910.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue21668.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue21708.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue21809.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue21897.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue21897b.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
issue22958.go libgo: update to Go1.10beta1 2018-01-09 01:23:08 +00:00
setgid_linux.go
sigaltstack.go
sigprocmask.c
sigprocmask.go
test22906.go libgo: update to Go1.10beta2 release 2018-01-17 14:20:29 +00:00