summaryrefslogtreecommitdiffstats
path: root/gcc/go
Commit message (Collapse)AuthorAgeFilesLines
...
* compiler, runtime: Check make int64 args for overflow.ian2012-02-082-6/+33
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183994 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler, libgo: Use //extern comments rather than __asm__.ian2012-02-075-12/+76
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183981 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler, reflect: Fix hash codes of named types, fix PtrTo hash.ian2012-02-041-1/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183889 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Compare slice start and end with cap, not len.ian2012-02-022-14/+27
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183851 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Permit importing a method to a type being defined.ian2012-02-025-13/+32
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183840 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Fix parameter references in method expressions.ian2012-02-021-6/+17
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183825 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Fix type checking for append.ian2012-02-011-6/+13
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183816 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Don't crash on switch _ := v.(type).ian2012-02-011-3/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183814 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/52079jakub2012-02-012-2/+24
| | | | | | | | * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI return build_nonstandard_integer_type result if possible. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183806 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Permit a general expression in case x := <-c.ian2012-02-011-9/+17
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183802 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Don't crash on type switch case nil with selector.ian2012-02-012-2/+19
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183782 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Use new __builtin_init_heap_trampoline.ian2012-01-271-2/+2
| | | | | | | | | | | | | PR go/47656 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define. * builtins.c (expand_builtin_init_trampoline): Add onstack parameter. Change caller. (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE. * tree.c (build_common_builtin_nodes): Declare __builtin_init_heap_trampoline. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183650 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Don't make type fns for private fields in other packages.ian2012-01-261-5/+17
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183579 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Always re-lower lowered expressions.ian2012-01-251-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183530 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Error if type switch case can not implement switch value.ian2012-01-242-7/+25
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183500 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Do not allow slice of array literal.ian2012-01-241-16/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183499 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Simple statement in type switch is in different block.ian2012-01-241-2/+24
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183496 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Correct type of expressions involving character constants.ian2012-01-241-1/+29
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183490 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Verify types of sink variables.ian2012-01-243-0/+25
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183482 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Better handling of erroneous function signatures.ian2012-01-247-26/+140
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183479 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Better error message for invalid use of predeclared function.ian2012-01-241-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183466 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Give an error if a variable is defined but not used.ian2012-01-237-3/+146
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183458 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: The type descriptor of an undefined forward type is an error.ian2012-01-213-4/+22
| | | | | | | | | | * go-gcc.cc (Gcc_backend::type_size): Check for error_mark_node. (Gcc_backend::type_alignment): Likewise. (Gcc_backend::type_field_alignment): Likewise. (Gcc_backend::type_field_offset): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183381 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Check for calling value method with dereferenced value.ian2012-01-211-0/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183379 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Change alias handling, change rune alias to int32.ian2012-01-2114-39/+217
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183374 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Don't crash if receiver name is _.ian2012-01-201-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183359 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Handle _ with explicit type correctly.ian2012-01-201-2/+15
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183358 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Handle recursive interfaces.ian2012-01-2010-230/+394
| | | | | | | | | * go-gcc.cc (Gcc_backend::placeholder_struct_type): Permit name to be empty. (Gcc_backend::set_placeholder_struct_type): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183340 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Don't use import path for ./ or ../ imports.ian2012-01-171-3/+14
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183261 138bc75d-0d04-0410-961f-82ee72b054a4
* * gospec.c (lang_specific_driver): If we see -S without -o, add -oian2012-01-172-5/+20
| | | | | | | BASE.s rather than -o BASE.o. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183248 138bc75d-0d04-0410-961f-82ee72b054a4
* * go-lang.c (go_langhook_init): Initialize void_list_node beforeian2012-01-122-3/+8
| | | | | | | calling go_create_gogo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183119 138bc75d-0d04-0410-961f-82ee72b054a4
* libgo: Update to weekly.2011-12-14.ian2012-01-122-4/+99
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183118 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Permit type B byte; type S []B; var v = S("x").ian2012-01-114-29/+55
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183112 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Don't use memcmp for structs/arrays with padding.ian2012-01-114-117/+170
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183109 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Fix names for hash/equality functions for unnamed types.ian2012-01-111-1/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183098 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Use backend interface for type sizes and alignments.ian2012-01-118-63/+313
| | | | | | | | | | | | * go-gcc.cc (Gcc_backend::type_size): New function. (Gcc_backend::type_alignment): New function. (Gcc_backend::type_field_alignment): New function. (Gcc_backend::type_field_offset): New function. * go-backend.c (go_type_alignment): Remove. * go-c.h (go_type_alignment): Don't declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183089 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler, runtime: Implement struct and array comparisons.ian2012-01-0610-175/+1530
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182971 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Prohibit comparisons of funcs, maps, and slices to non-nil.ian2011-12-283-8/+23
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182703 138bc75d-0d04-0410-961f-82ee72b054a4
* * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Useian2011-12-282-7/+33
| | | | | | | | | | build_distinct_type_copy rather than build_variant_type_copy. (Gcc_backend::set_placeholder_array_type): Likewise. (Gcc_backend::named_type): Add special handling for builtin basic types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182698 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Rework range over slice.ian2011-12-282-2/+112
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182697 138bc75d-0d04-0410-961f-82ee72b054a4
* * go-gcc.cc (set_placeholder_pointer_type): Arrange for the typeian2011-12-222-4/+32
| | | | | | | | | | name to have a DECL_ORIGINAL_TYPE as gcc expects. (set_placeholder_struct_type): Likewise. (set_placeholder_array_type): Likewise. (named_type): Set DECL_ORIGINAL_TYPE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182639 138bc75d-0d04-0410-961f-82ee72b054a4
* libgo: Update to weekly.2011-12-06.ian2011-12-141-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182347 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Permit omitting &T in composite literal.ian2011-12-141-3/+17
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182331 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Move import of Go export data to gcc side of interface.ian2011-12-145-38/+120
| | | | | | | | | | | | * go-backend.c: #include "simple-object.h" and "intl.h". (GO_EXPORT_SEGMENT_NAME): Define if not defined. (GO_EXPORT_SECTION_NAME): Likewise. (go_write_export_data): Use GO_EXPORT_SECTION_NAME. (go_read_export_data): New function. * go-c.h (go_read_export_data): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182321 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Fix multiple conversions to different named slices.ian2011-12-131-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182293 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Permit converting between string and named []byte/[]rune.ian2011-12-132-16/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182291 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Another correction to hidden fields in composite literals.ian2011-12-091-8/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182154 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: It's OK to assign a struct with hidden fields in a literal.ian2011-12-091-12/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182144 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Don't check for hidden fields on struct assignments.ian2011-12-082-2/+37
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182143 138bc75d-0d04-0410-961f-82ee72b054a4
* libgo: Update to weekly.2011-11-01.ian2011-12-021-3/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181938 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud