summaryrefslogtreecommitdiffstats
path: root/gcc/go/gofrontend/expressions.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't crash on invalid comparison of complex constants.ian2011-02-111-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170037 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash when referring to method other than calling it.ian2011-02-101-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170028 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't get confused when mixing different abstract types in binary expr.ian2011-02-101-0/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170023 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on field reference to erroneous struct.ian2011-02-101-2/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170020 138bc75d-0d04-0410-961f-82ee72b054a4
* Copy initializer to heap if it may contain pointers.ian2011-01-261-10/+17
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169297 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove the types float and complex.ian2011-01-211-26/+22
| | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169098 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on reference to field with erroneous type.ian2011-01-191-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169027 138bc75d-0d04-0410-961f-82ee72b054a4
* Improve check for const initializer loop.ian2011-01-191-7/+47
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169003 138bc75d-0d04-0410-961f-82ee72b054a4
* Check for error type when getting type of binary expression.ian2011-01-191-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169002 138bc75d-0d04-0410-961f-82ee72b054a4
* Avoid crash with extra struct initializers with abstract types.ian2011-01-191-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168984 138bc75d-0d04-0410-961f-82ee72b054a4
* The type of a string slice is the type of the string being sliced.ian2011-01-141-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168775 138bc75d-0d04-0410-961f-82ee72b054a4
* PR go/47158ian2011-01-051-3/+12
| | | | | | | | | | | PR go/47159 PR go/47160 PR go/47161 Fix space leaks. Patch from Ettl Martin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168504 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash if append arguments are erroneous.ian2011-01-041-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168489 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash if named constant has no type when converting to GENERIC.ian2011-01-041-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168483 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash initializing multiple vars from a single result function.ian2011-01-041-3/+13
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168482 138bc75d-0d04-0410-961f-82ee72b054a4
* Avoid endless loop on array with recursive length.ian2010-12-241-6/+52
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168223 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix append with no extra arguments.ian2010-12-231-3/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168195 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash asking for type of invalid const.ian2010-12-231-0/+13
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168194 138bc75d-0d04-0410-961f-82ee72b054a4
* Avoid crash when an unknown object is declared as a type.ian2010-12-231-7/+13
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168188 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on invalid call to append.ian2010-12-221-2/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168187 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on index into erroneous map.ian2010-12-221-5/+17
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168185 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash if array length is invalid const.ian2010-12-221-2/+13
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168171 138bc75d-0d04-0410-961f-82ee72b054a4
* Correct test for number of arguments to append.ian2010-12-221-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168163 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash if a constant initializer refers to the constant.ian2010-12-221-2/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168162 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on invalid type conversion.ian2010-12-221-0/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168161 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash receiving multiple results from void function.ian2010-12-221-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168157 138bc75d-0d04-0410-961f-82ee72b054a4
* Check for errors when building map construction.ian2010-12-221-2/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168148 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on calling new with an erroneous type.ian2010-12-211-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168144 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash indexing into erroneous array.ian2010-12-211-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168142 138bc75d-0d04-0410-961f-82ee72b054a4
* Correct handling of methods which call recover.ian2010-12-211-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168132 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on recursive variables and typed consts.ian2010-12-181-0/+69
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168012 138bc75d-0d04-0410-961f-82ee72b054a4
* Avoid always splitting the stack when calling append and copy.ian2010-12-171-9/+42
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167970 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on recursive consts.ian2010-12-161-3/+49
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167899 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on invalid tuple assignment.ian2010-12-161-18/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167892 138bc75d-0d04-0410-961f-82ee72b054a4
* Check for errors from Gogo::call_builtin.ian2010-12-161-2/+31
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167891 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on Sizeof of undefined type.ian2010-12-161-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167884 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on Sizeof of undefined type.ian2010-12-151-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167883 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on empty struct created due to recursive reference.ian2010-12-151-1/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167881 138bc75d-0d04-0410-961f-82ee72b054a4
* Check errors in binary comparisons and builtin calls.ian2010-12-151-1/+14
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167872 138bc75d-0d04-0410-961f-82ee72b054a4
* Push hash table identity check down to subtypes.ian2010-12-151-5/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167870 138bc75d-0d04-0410-961f-82ee72b054a4
* Check for errors when converting array index to GENERIC.ian2010-12-151-0/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167846 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on invalid slice composite literal.ian2010-12-141-0/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167827 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix comparison of string and interface types.ian2010-12-141-9/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167826 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't try to build unary and binary expressions with invalid types.ian2010-12-141-22/+20
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167824 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on invalid parameters/results.ian2010-12-141-2/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167820 138bc75d-0d04-0410-961f-82ee72b054a4
* Correct handling of undefined name as key in map composite literal.ian2010-12-141-5/+16
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167810 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't incorrectly parse expression as type switch.ian2010-12-141-10/+15
| | | | | | | Improve error reporting of invalid type assertions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167787 138bc75d-0d04-0410-961f-82ee72b054a4
* Avoid some crashes on erroneous programs.ian2010-12-091-1/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167670 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/46776ian2010-12-041-35/+7
| | | | | | | | | | | | | | | * go-backend.c: New file. * go-c.h (go_type_alignment): Declare. (go_field_alignment, go_trampoline_info): Declare. * Make-lang.in (GO_OBJS): Add go/go-backend.o. (go/go-backend.o): New target. (go/go-lang.o): Make dependencies match source file. (go/expressions.o): Don't depend on $(TM_H) $(TM_P_H). (go/gogo-tree.o): Don't depend on $(TM_H). Remove #include "tm.h" from gofrontend/*.cc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167451 138bc75d-0d04-0410-961f-82ee72b054a4
* Add Go frontend, libgo library, and Go testsuite.ian2010-12-031-0/+12264
gcc/: * gcc.c (default_compilers): Add entry for ".go". * common.opt: Add -static-libgo as a driver option. * doc/install.texi (Configuration): Mention libgo as an option for --enable-shared. Mention go as an option for --enable-languages. * doc/invoke.texi (Overall Options): Mention .go as a file name suffix. Mention go as a -x option. * doc/frontends.texi (G++ and GCC): Mention Go as a supported language. * doc/sourcebuild.texi (Top Level): Mention libgo. * doc/standards.texi (Standards): Add section on Go language. Move references for other languages into their own section. * doc/contrib.texi (Contributors): Mention that I contributed the Go frontend. gcc/testsuite/: * lib/go.exp: New file. * lib/go-dg.exp: New file. * lib/go-torture.exp: New file. * lib/target-supports.exp (check_compile): Match // Go. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167407 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud