Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-08-17 | compiler: Don't generate value reference in range clause if receiver is a sink. | Ian Lance Taylor | 1 | -1/+2 | |
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 | |||||
2013-08-07 | compiler: Fix "missing return" error for case T1, T2 in type switches. | Ian Lance Taylor | 2 | -1/+12 | |
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 | |||||
2013-08-06 | go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use ↵ | Ian Lance Taylor | 2 | -1/+8 | |
compute_reloc_for_constant. * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use compute_reloc_for_constant. From-SVN: r201535 | |||||
2013-08-02 | go-gcc.cc (immutable_struct_set_init): Always call resolve_unique_section. | Ian Lance Taylor | 2 | -4/+10 | |
* go-gcc.cc (immutable_struct_set_init): Always call resolve_unique_section. From-SVN: r201446 | |||||
2013-08-02 | compiler: Always put descriptor wrappers in their own section. | Ian Lance Taylor | 1 | -0/+6 | |
This lets the linker GC them. From-SVN: r201442 | |||||
2013-07-24 | go-gcc.cc (Gcc_backend::non_zero_size_type): If a struct has a fields... | Ian Lance Taylor | 2 | -14/+41 | |
* 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 | |||||
2013-07-23 | go-backend.c: Don't #include "rtl.h". | Ian Lance Taylor | 3 | -8/+7 | |
* 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 | |||||
2013-07-23 | go-lang.c: Don't #include "except.h". | Ian Lance Taylor | 3 | -2/+6 | |
* go-lang.c: Don't #include "except.h". * Make-lang.in (go/go-lang.o): Don't depend on $(EXCEPT_H). From-SVN: r201171 | |||||
2013-07-16 | compiler: adjust closure field indexes | Ian Lance Taylor | 1 | -1/+1 | |
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 | |||||
2013-06-27 | compiler: structs inherit all methods from embedded pointer fields. | Ian Lance Taylor | 1 | -1/+6 | |
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 | |||||
2013-06-27 | compiler: more consistent error message for [...]T(x) | Ian Lance Taylor | 1 | -1/+1 | |
The message should be similar to the one for "var x [...]T", not to the message for []T(x...). From-SVN: r200490 | |||||
2013-06-26 | compiler: disallow fallthrough in last case of switch. | Ian Lance Taylor | 1 | -0/+3 | |
In spec: A "fallthrough" statement may appear as the last statement of all but the last clause of an expression switch. From-SVN: r200440 | |||||
2013-06-26 | compiler: reject integer division by zero constant. | Ian Lance Taylor | 1 | -0/+14 | |
From-SVN: r200436 | |||||
2013-06-26 | compiler: forbid identifiers named "init" in package scope. | Ian Lance Taylor | 1 | -0/+8 | |
From-SVN: r200426 | |||||
2013-06-25 | compiler: Fix type determination issues. | Ian Lance Taylor | 2 | -3/+22 | |
From-SVN: r200398 | |||||
2013-06-24 | compiler: generate dummy names for blank-named constants. | Ian Lance Taylor | 3 | -9/+30 | |
Otherwise such const declarations are not checked. From-SVN: r200381 | |||||
2013-06-24 | compiler: Add support for method values. | Ian Lance Taylor | 7 | -161/+699 | |
From-SVN: r200379 | |||||
2013-06-21 | compiler: do not skip compilation of blank-named functions. | Ian Lance Taylor | 3 | -3/+22 | |
Fixes issue 22. From-SVN: r200316 | |||||
2013-06-21 | compiler: Really only make descriptors when needed. | Ian Lance Taylor | 2 | -21/+0 | |
From-SVN: r200280 | |||||
2013-06-21 | compiler: Only make function descriptors if needed. | Ian Lance Taylor | 5 | -109/+252 | |
From-SVN: r200273 | |||||
2013-06-19 | compiler: reject incorrect unsafe.Offsetof expressions. | Ian Lance Taylor | 2 | -1/+21 | |
The x.Field argument to Offsetof may not involve hidden dereferences of embedded pointer fields. Also correct uninitialized implicit_ field. From-SVN: r200221 | |||||
2013-06-18 | compiler, runtime: Use function descriptors. | Ian Lance Taylor | 13 | -292/+957 | |
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-14 | compiler: fix computation of Offsetof. | Ian Lance Taylor | 3 | -12/+37 | |
The implied offsets must be taken into account when the selector involves anonymous fields. From-SVN: r200098 | |||||
2013-06-12 | compiler: implement Go 1.1 spec of terminating statements. | Ian Lance Taylor | 3 | -42/+136 | |
From-SVN: r200047 | |||||
2013-05-16 | Makefile.in (LLINKER): New variable. | Jason Merrill | 2 | -1/+5 | |
* Makefile.in (LLINKER): New variable. (mostlyclean): Remove link mutex. * configure.ac: Handle --enable-link-mutex. * lock-and-run.sh: New script. From-SVN: r198977 | |||||
2013-02-10 | compiler, libgo: Permit testing package when test imports it circularly. | Ian Lance Taylor | 1 | -9/+16 | |
From-SVN: r195931 | |||||
2013-02-05 | re PR bootstrap/56198 (Go profiledbootstrap error) | Ian Lance Taylor | 1 | -3/+2 | |
PR bootstrap/56198 compiler: Always initialize *nested_off in interpret_header. From-SVN: r195747 | |||||
2013-02-01 | compiler: Don't emit multiple methods for identical unnamed structs. | Ian Lance Taylor | 2 | -0/+26 | |
From-SVN: r195638 | |||||
2013-01-29 | compiler: Correct initialization order determination. | Ian Lance Taylor | 3 | -30/+53 | |
From-SVN: r195526 | |||||
2013-01-17 | compiler: Provide location for initialization function. | Ian Lance Taylor | 1 | -5/+7 | |
From-SVN: r195259 | |||||
2013-01-16 | * gospec.c: pass -u pthread_create to linker when static linking. | Shenghou Ma | 2 | -1/+19 | |
From-SVN: r195244 | |||||
2013-01-10 | Update copyright years in gcc/ | Richard Sandiford | 11 | -11/+11 | |
From-SVN: r195098 | |||||
2013-01-04 | Update Copyright years for files modified in 2011 and/or 2012. | Jakub Jelinek | 2 | -2/+2 | |
From-SVN: r194903 | |||||
2012-12-21 | compiler: Error if name defined in both package and file blocks. | Ian Lance Taylor | 2 | -4/+46 | |
From-SVN: r194685 | |||||
2012-12-21 | re PR bootstrap/54659 (Bootstrap with --disable-nls broken under Windows) | Ian Lance Taylor | 9 | -21/+5 | |
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 | |||||
2012-12-18 | libgo: Link against libatomic_convenience.la. | Ian Lance Taylor | 2 | -8/+5 | |
gcc/go: PR go/55201 * gospec.c: Revert last patch. gcc/testsuite: PR go/55201 * lib/go.exp: Revert last patch. From-SVN: r194593 | |||||
2012-12-18 | libgo: Link against libatomic. | Andreas Schwab | 2 | -0/+15 | |
./: 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 | |||||
2012-12-14 | compiler: Better error message for invalid shift operations. | Ian Lance Taylor | 1 | -6/+3 | |
From-SVN: r194501 | |||||
2012-12-13 | compiler: Accept trailing comma after varargs parameter. | Ian Lance Taylor | 5 | -20/+87 | |
Also fix handling of interfaces seen only in a function or method declaration. From-SVN: r194492 | |||||
2012-12-06 | compiler: Correct test for whether go/defer arg is parenthesized. | Ian Lance Taylor | 2 | -46/+87 | |
From-SVN: r194240 | |||||
2012-12-05 | compiler: Accept trailing comma after expression in type conversion. | Ian Lance Taylor | 1 | -0/+2 | |
From-SVN: r194176 | |||||
2012-12-05 | compiler: Make sure we produce an error for a call to a non-function. | Ian Lance Taylor | 1 | -0/+10 | |
Fixes issue 19. From-SVN: r194174 | |||||
2012-12-05 | compiler: Check for negative or inverted arguments to make. | Ian Lance Taylor | 1 | -18/+43 | |
From-SVN: r194173 | |||||
2012-12-04 | compiler: Give error for constant inverted slice range. | Ian Lance Taylor | 1 | -2/+12 | |
From-SVN: r194124 | |||||
2012-12-04 | compiler: Reject invalid nil == nil comparisons. | Ian Lance Taylor | 1 | -0/+5 | |
From-SVN: r194119 | |||||
2012-12-04 | compiler: Fix crash in go/defer of some builtin functions. | Ian Lance Taylor | 3 | -27/+38 | |
From-SVN: r194114 | |||||
2012-12-04 | compiler: Don't permit go/defer argument to be parenthesized. | Ian Lance Taylor | 1 | -3/+6 | |
Fixes Go repository issue 4468. From-SVN: r194112 | |||||
2012-12-03 | compiler: Fix field tracking for references in global initializers. | Ian Lance Taylor | 1 | -1/+2 | |
From-SVN: r194073 | |||||
2012-12-03 | compiler: Don't encode non-ASCII characters in identifiers. | Ian Lance Taylor | 1 | -5/+1 | |
From-SVN: r194068 | |||||
2012-12-03 | compiler: Fix nil func panics, constant type conversions. | Ian Lance Taylor | 2 | -63/+98 | |
From-SVN: r194064 |