Age | Commit message (Collapse) | Author | Files | Lines |
|
Fixed https://code.google.com/p/go/issues/detail?id=5796. Official fixedbug will be added with change to gc.
From-SVN: r202239
|
|
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
|
|
not hidden.
* go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if
the struct is not hidden.
(Gcc_backend::immutable_struct_set_init): Don't set TREE_PUBLIC.
From-SVN: r202065
|
|
The panic in test/fixedbugs/bug461.go was caused by the fact that
reflect expects unexported fields in a struct to have a valid
package path. If a struct field is an embedded built-in type, it is
now given the package name of the currently compiling package, so it
remains unexported for purposes of reflect.
Fixed Issue 25.
From-SVN: r201951
|
|
The panic in test/fixedbugs/bug454.go was caused by the generation of an unnecessary var reference when writing a range value into a sink. If the receiving variable is a sink, there's no need to dereference a possible NULL pointer.
Fixes Issue 24.
From-SVN: r201815
|
|
Also change the "missing return" text and report it at the end
of the function, rather than the start, to match the gc
compiler.
From-SVN: r201579
|
|
compute_reloc_for_constant.
* go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
compute_reloc_for_constant.
From-SVN: r201535
|
|
* go-gcc.cc (immutable_struct_set_init): Always call
resolve_unique_section.
From-SVN: r201446
|
|
This lets the linker GC them.
From-SVN: r201442
|
|
* go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a
fields, recreate those fields with the first one with a non-zero
size.
From-SVN: r201222
|
|
* go-backend.c: Don't #include "rtl.h".
(go_imported_unsafe): Don't call init_varasm_once.
* Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
From-SVN: r201176
|
|
* go-lang.c: Don't #include "except.h".
* Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H).
From-SVN: r201171
|
|
This corrects the code that handles composite literals where
the key is a variable in an enclosing function. See bug475.go
in the testsuite.
From-SVN: r200990
|
|
Previously if a struct S contained an embedded field *T,
a method with receiver *T would not be promoted to a method
with value receiver S.
From-SVN: r200493
|
|
The message should be similar to the one for "var x [...]T",
not to the message for []T(x...).
From-SVN: r200490
|
|
In spec: A "fallthrough" statement may appear as the last
statement of all but the last clause of an expression switch.
From-SVN: r200440
|
|
From-SVN: r200436
|
|
From-SVN: r200426
|
|
From-SVN: r200398
|
|
Otherwise such const declarations are not checked.
From-SVN: r200381
|
|
From-SVN: r200379
|
|
Fixes issue 22.
From-SVN: r200316
|
|
From-SVN: r200280
|
|
From-SVN: r200273
|
|
The x.Field argument to Offsetof may not involve hidden
dereferences of embedded pointer fields.
Also correct uninitialized implicit_ field.
From-SVN: r200221
|
|
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
|
|
The implied offsets must be taken into account
when the selector involves anonymous fields.
From-SVN: r200098
|
|
From-SVN: r200047
|
|
* Makefile.in (LLINKER): New variable.
(mostlyclean): Remove link mutex.
* configure.ac: Handle --enable-link-mutex.
* lock-and-run.sh: New script.
From-SVN: r198977
|
|
From-SVN: r195931
|
|
PR bootstrap/56198
compiler: Always initialize *nested_off in interpret_header.
From-SVN: r195747
|
|
From-SVN: r195638
|
|
From-SVN: r195526
|
|
From-SVN: r195259
|
|
From-SVN: r195244
|
|
From-SVN: r195098
|
|
From-SVN: r194903
|
|
From-SVN: r194685
|
|
PR bootstrap/54659
compiler: Don't include <gmp.h>, now included by go-system.h.
* go-system.h: Don't include <cstdio>.
From-SVN: r194669
|
|
gcc/go:
PR go/55201
* gospec.c: Revert last patch.
gcc/testsuite:
PR go/55201
* lib/go.exp: Revert last patch.
From-SVN: r194593
|
|
./:
PR go/55201
* Makefile.def (all-target-libgo): Depend on all-target-libatomic.
* Makefile.in: Regenerate.
gcc/go:
PR go/55201
* gospec.c (LIBATOMIC): Define.
(LIBATOMIC_PROFILE): Define.
(lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
gcc/testsuite:
* lib/go.exp (go_link_flags): Add libatomic location to flags and
ld_library_path.
From-SVN: r194581
|
|
From-SVN: r194501
|
|
Also fix handling of interfaces seen only in a function or
method declaration.
From-SVN: r194492
|
|
From-SVN: r194240
|
|
From-SVN: r194176
|
|
Fixes issue 19.
From-SVN: r194174
|
|
From-SVN: r194173
|
|
From-SVN: r194124
|
|
From-SVN: r194119
|
|
From-SVN: r194114
|