Ian Lance Taylor
ea56ff71a4
reflect: Fix MakeFunc returning float32 or float64 on 386.
...
From-SVN: r205932
2013-12-12 17:44:01 +00:00
Ian Lance Taylor
547a416879
compiler, reflect, runtime: Implement method values in reflect.
...
From-SVN: r205913
2013-12-12 01:08:52 +00:00
Ian Lance Taylor
b1d137cf58
reflect, runtime: Let reflect.MakeFunc functions call recover.
...
From-SVN: r205908
2013-12-11 23:43:16 +00:00
Ian Lance Taylor
df5d92ce0e
reflect: Rename struct field to be consistent in assembler and Go.
...
From-SVN: r205555
2013-11-30 18:08:42 +00:00
Ian Lance Taylor
9c6230e90e
reflect: Fix MakeFunc for 386 when returning a struct.
...
When a 386 function returns a struct, it needs to return using
an rtd instruction that pops the hidden struct parameter off
the stack. That wasn't happening.
From-SVN: r205551
2013-11-30 17:14:50 +00:00
Ian Lance Taylor
41674b9fe4
reflect: Handle calls to functions that take or return empty structs
...
Fixes issue 6761
This simple change seems to work fine, slightly to my surprise.
This includes the tests I submitted to the main Go repository at
https://codereview.appspot.com/26570046
From-SVN: r205001
2013-11-19 02:30:03 +00:00
Ian Lance Taylor
f038dae646
libgo: Update to October 24 version of master library.
...
From-SVN: r204466
2013-11-06 19:49:01 +00:00
Ian Lance Taylor
e3f6b60da9
reflect: Use C style comments in 386 assembly for Solaris assembler.
...
From Rainer Orth.
From-SVN: r203249
2013-10-07 15:32:08 +00:00
Ian Lance Taylor
8a2cb59f1c
reflect: Fix calling Interface method on value created by MakeFunc.
...
From-SVN: r203212
2013-10-04 18:52:22 +00:00
Ian Lance Taylor
cc1a9ac808
reflect: Use hand-coded .eh_frame section rather than CFI directives.
...
From Rainer Orth.
From-SVN: r203120
2013-10-02 17:30:07 +00:00
Ian Lance Taylor
2cb01a3972
reflect: Fix reflect.Call with function following non-pointer.
...
From-SVN: r203052
2013-10-01 03:12:15 +00:00
Ian Lance Taylor
5f18389f4d
reflect: Copy stack values onto heap in amd64 MakeFunc.
...
From-SVN: r202995
2013-09-27 22:13:11 +00:00
Ian Lance Taylor
a84dbde7fc
reflect: Implement MakeFunc for 386.
...
From-SVN: r202993
2013-09-27 21:34:24 +00:00
Ian Lance Taylor
8bcd5487e5
reflect: Implement MakeFunc for amd64.
...
From-SVN: r202982
2013-09-27 17:53:46 +00:00
Ian Lance Taylor
b15d794389
reflect: Fix bug calling method on indirect value.
...
The gccgo-specific iword function was checking v.kind, but for
a method value that is always Func. Fix to check v.typ.Kind()
instead.
From-SVN: r202670
2013-09-17 22:11:43 +00:00
Ian Lance Taylor
05a7d56678
compiler, runtime: Use runtime functions to pass closure value.
...
This changes the compiler and runtime to not pass a closure
value as the last argument, but to instead pass it via
__go_set_closure and retrieve it via __go_get_closure. This
eliminates the need for function descriptor wrapper functions.
It will make it possible to retrieve the closure value in a
reflect.MakeFunc function.
From-SVN: r202233
2013-09-03 21:52:37 +00:00
Ian Lance Taylor
be47d6ecef
libgo: Update to Go 1.1.1.
...
From-SVN: r200974
2013-07-16 06:54:42 +00:00
Ian Lance Taylor
fdbc38a6e8
compiler, runtime: Use function descriptors.
...
This changes the representation of a Go value of function type
from being a pointer to function code (like a C function
pointer) to being a pointer to a struct. The first field of
the struct points to the function code. The remaining fields,
if any, are the addresses of variables referenced in enclosing
functions. For each call to a function, the address of the
function descriptor is passed as the last argument.
This lets us avoid generating trampolines, and removes the use
of writable/executable sections of the heap.
From-SVN: r200181
2013-06-18 23:49:49 +00:00
Ian Lance Taylor
d6f2922e91
libgo: Update Go library to master revision 15489/921e53d4863c.
...
From-SVN: r195560
2013-01-29 20:52:43 +00:00
Ian Lance Taylor
a42a906c42
libgo: Update to current master library sources.
...
From-SVN: r194460
2012-12-12 23:13:29 +00:00
Ian Lance Taylor
fabcaa8df3
libgo: Update to current version of master library.
...
From-SVN: r193688
2012-11-21 07:03:38 +00:00
Ian Lance Taylor
a3ce4803ea
reflect: Fix invalid sharing in valueInterface.
...
From-SVN: r193614
2012-11-19 05:34:08 +00:00
Ian Lance Taylor
7e03f00470
reflect: Fix bug comparing struct field types.
...
From-SVN: r193395
2012-11-10 20:24:04 +00:00
Ian Lance Taylor
4ccad563d2
libgo: Update to current sources.
...
From-SVN: r192704
2012-10-23 04:31:11 +00:00
Ian Lance Taylor
bd2e46c825
libgo: Update to Go 1.0.3.
...
From-SVN: r192025
2012-10-03 05:27:36 +00:00
Ian Lance Taylor
c789c04510
compiler, reflect: Quote package path with tabs.
...
From-SVN: r188548
2012-06-14 05:04:04 +00:00
Ian Lance Taylor
9690ac05c9
compiler, reflect: Handle package path like gc compiler.
...
From-SVN: r188482
2012-06-12 20:33:22 +00:00
Ian Lance Taylor
f3ab5720f7
libgo: Use -fgo-pkgpath.
...
From-SVN: r187485
2012-05-14 22:08:42 +00:00
Ian Lance Taylor
33e337e34d
libgo: Update to Go 1.0.1 release.
...
From-SVN: r187163
2012-05-04 15:01:11 +00:00
Ian Lance Taylor
9a18821cfc
libgo: Update to weekly.2012-03-22.
...
From-SVN: r186026
2012-03-30 22:09:55 +00:00
Ian Lance Taylor
456fba2651
libgo: Update to weekly.2012-03-13.
...
From-SVN: r186023
2012-03-30 21:27:11 +00:00
Ian Lance Taylor
593f74bbab
libgo: Update to weekly.2012-03-04 release.
...
From-SVN: r185010
2012-03-06 17:57:23 +00:00
Ian Lance Taylor
cbb6491d76
libgo: Update to weekly.2012-02-14 release.
...
From-SVN: r184798
2012-03-02 16:38:43 +00:00
Ian Lance Taylor
94252f4bcc
libgo: Update to weekly.2012-02-07.
...
From-SVN: r184034
2012-02-09 08:19:58 +00:00
Ian Lance Taylor
4631101689
compiler, reflect: Fix hash codes of named types, fix PtrTo hash.
...
From-SVN: r183889
2012-02-04 01:41:24 +00:00
Ian Lance Taylor
af92e38566
libgo: Update to weekly.2012-01-20.
...
From-SVN: r183540
2012-01-25 21:54:22 +00:00
Ian Lance Taylor
b1b3aec1b1
compiler: Give an error if a variable is defined but not used.
...
From-SVN: r183458
2012-01-23 23:55:31 +00:00
Ian Lance Taylor
9a0e3259f4
libgo: Update to weekly.2011-12-14.
...
From-SVN: r183118
2012-01-12 01:31:45 +00:00
Ian Lance Taylor
d536359059
libgo: Update to weekly.2011-12-06.
...
From-SVN: r182338
2011-12-14 15:41:54 +00:00
Ian Lance Taylor
ab61e9c4da
libgo: Update to weekly.2011-11-18.
...
From-SVN: r182266
2011-12-12 23:40:51 +00:00
Ian Lance Taylor
2fd401c8f1
libgo: Update to weekly.2011-11-02.
...
From-SVN: r181964
2011-12-03 02:17:34 +00:00
Ian Lance Taylor
506cf9aaea
libgo: Update to weekly.2011-11-01.
...
From-SVN: r181938
2011-12-02 19:34:41 +00:00
Ian Lance Taylor
d8f412571f
Update Go library to last weekly.
...
From-SVN: r180552
2011-10-26 23:57:58 +00:00
Ian Lance Taylor
94bf1a5fb7
Update Go library to r60.3 release.
...
From-SVN: r180327
2011-10-22 16:19:46 +00:00
Ian Lance Taylor
9d49f4d0ab
Update Go library to release r60.1.
...
From-SVN: r179076
2011-09-22 04:47:32 +00:00
Ian Lance Taylor
adb0401dac
Update Go library to r60.
...
From-SVN: r178910
2011-09-16 15:47:21 +00:00
Ian Lance Taylor
9ff56c9570
Update to current version of Go library.
...
From-SVN: r173931
2011-05-20 00:18:15 +00:00
Ian Lance Taylor
8039ca76a5
Update to current version of Go library.
...
From-SVN: r171427
2011-03-24 23:46:17 +00:00
Ian Lance Taylor
5133f00ef8
Update to current version of Go library (revision 94d654be2064).
...
From-SVN: r171076
2011-03-16 23:05:44 +00:00
Ian Lance Taylor
ff5f50c52c
Remove the types float and complex.
...
Update to current version of Go library.
Update testsuite for removed types.
* go-lang.c (go_langhook_init): Omit float_type_size when calling
go_create_gogo.
* go-c.h: Update declaration of go_create_gogo.
From-SVN: r169098
2011-01-21 18:19:03 +00:00