summaryrefslogtreecommitdiffstats
path: root/gcc/go/gofrontend/parse.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Define go_unreachable to replace gcc_unreachable.ian2011-04-231-8/+8
| | | | | | | From Evan Shaw. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172882 138bc75d-0d04-0410-961f-82ee72b054a4
* Define go_assert to replace gcc_assertian2011-04-211-44/+44
| | | | | | | | | This is defined in go-system.h in the backend. * go-system.h (go_assert, go_unreachable): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172846 138bc75d-0d04-0410-961f-82ee72b054a4
* Use backend interface for return statements.ian2011-04-041-4/+1
| | | | | | | | | | | | | | * go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h". (class Bfunction): Define. (Gcc_backend::assignment_statement): Rename from assignment. Check for errors. (Gcc_backend::return_statement): New function. (tree_to_function): New function. * Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h, $(GIMPLE_H), and $(GO_GOGO_H). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171959 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix select setting a map expression.ian2011-03-291-24/+26
| | | | | | | | Also fix select parsing when declaring a variable with no statements. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171690 138bc75d-0d04-0410-961f-82ee72b054a4
* Better error message for invalid variable name in switch statement.ian2011-03-281-0/+13
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171639 138bc75d-0d04-0410-961f-82ee72b054a4
* Better error message for missing condition in if statement.ian2011-03-281-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171638 138bc75d-0d04-0410-961f-82ee72b054a4
* Better error message for old syntax of send expression as value.ian2011-03-281-18/+71
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171637 138bc75d-0d04-0410-961f-82ee72b054a4
* Better error messages for missing channel element type.ian2011-03-281-0/+17
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171634 138bc75d-0d04-0410-961f-82ee72b054a4
* Check for invalid uses of ... in builtin function calls.ian2011-03-261-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171544 138bc75d-0d04-0410-961f-82ee72b054a4
* Correctly parse select case <-c <- v.ian2011-03-261-4/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171540 138bc75d-0d04-0410-961f-82ee72b054a4
* Give an error if a label is defined but not used.ian2011-03-251-15/+29
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171518 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove closed function. Fix tuple receive in select.ian2011-03-251-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171440 138bc75d-0d04-0410-961f-82ee72b054a4
* Tuple receives indicate whether channel is closed.ian2011-03-241-38/+138
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171380 138bc75d-0d04-0410-961f-82ee72b054a4
* Condition in if statement is not optional.ian2011-03-241-4/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171377 138bc75d-0d04-0410-961f-82ee72b054a4
* Change c <- v from an expression to a statement.ian2011-03-241-22/+31
| | | | | | | | Don't do anything special if we don't use the value of <-c. Fix sending an untyped constant in a select statement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171371 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash declaring a function named "_".ian2011-03-031-5/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170636 138bc75d-0d04-0410-961f-82ee72b054a4
* Traverse erroneous send/receive statements.ian2011-02-241-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170473 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on erroneous type switch.ian2011-02-221-4/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170386 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix struct with array of struct with field that points to first struct.ian2011-02-191-0/+2
| | | | | | | | | | | | Don't crash converting an untyped complex constant to an integer type. Don't crash on unsafe.Sizeof of erroneous type. Don't crash on method expression of erroneous type. Don't crash when sink and global var are initialized from type guard. Don't crash initializing erroneous slice. Don't crash on erroneous method of type seen before definition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170301 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on redefined variable.ian2011-02-101-1/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170029 138bc75d-0d04-0410-961f-82ee72b054a4
* Generate an init function if any global variable needs a preinit.ian2011-01-191-9/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169023 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't look outside of function literal for break or continue label.ian2011-01-041-12/+30
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168486 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash if tuple init redefines non-variable.ian2011-01-041-6/+24
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168484 138bc75d-0d04-0410-961f-82ee72b054a4
* Check for multiple default cases in switch or select.ian2011-01-041-6/+36
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168481 138bc75d-0d04-0410-961f-82ee72b054a4
* Correctly handle tuple assignment to _ at global scope.ian2010-12-221-14/+45
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168184 138bc75d-0d04-0410-961f-82ee72b054a4
* Tweak handling of invalid function signature for function literal.ian2010-12-151-4/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167879 138bc75d-0d04-0410-961f-82ee72b054a4
* Add statements to type switch even if there are no valid types.ian2010-12-151-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167874 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't crash on invalid parameters/results.ian2010-12-141-23/+78
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167820 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't incorrectly parse expression as type switch.ian2010-12-141-6/+11
| | | | | | | Improve error reporting of invalid type assertions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167787 138bc75d-0d04-0410-961f-82ee72b054a4
* Add Go frontend, libgo library, and Go testsuite.ian2010-12-031-0/+4730
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