aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/parse.cc
AgeCommit message (Collapse)AuthorFilesLines
2011-04-23Define go_unreachable to replace gcc_unreachable.Ian Lance Taylor1-8/+8
From Evan Shaw. From-SVN: r172882
2011-04-21Define go_assert to replace gcc_assertIan Lance Taylor1-44/+44
This is defined in go-system.h in the backend. * go-system.h (go_assert, go_unreachable): Define. From-SVN: r172846
2011-04-04Use backend interface for return statements.Ian Lance Taylor1-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). From-SVN: r171959
2011-03-29Fix select setting a map expression.Ian Lance Taylor1-24/+26
Also fix select parsing when declaring a variable with no statements. From-SVN: r171690
2011-03-28Better error message for invalid variable name in switch statement.Ian Lance Taylor1-0/+13
From-SVN: r171639
2011-03-28Better error message for missing condition in if statement.Ian Lance Taylor1-0/+6
From-SVN: r171638
2011-03-28Better error message for old syntax of send expression as value.Ian Lance Taylor1-18/+71
From-SVN: r171637
2011-03-28Better error messages for missing channel element type.Ian Lance Taylor1-0/+17
From-SVN: r171634
2011-03-26Check for invalid uses of ... in builtin function calls.Ian Lance Taylor1-0/+6
From-SVN: r171544
2011-03-26Correctly parse select case <-c <- v.Ian Lance Taylor1-4/+12
From-SVN: r171540
2011-03-25Give an error if a label is defined but not used.Ian Lance Taylor1-15/+29
From-SVN: r171518
2011-03-25Remove closed function. Fix tuple receive in select.Ian Lance Taylor1-0/+2
From-SVN: r171440
2011-03-24Tuple receives indicate whether channel is closed.Ian Lance Taylor1-38/+138
From-SVN: r171380
2011-03-24Condition in if statement is not optional.Ian Lance Taylor1-4/+2
From-SVN: r171377
2011-03-24Change c <- v from an expression to a statement.Ian Lance Taylor1-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. From-SVN: r171371
2011-03-03Don't crash declaring a function named "_".Ian Lance Taylor1-5/+8
From-SVN: r170636
2011-02-24Traverse erroneous send/receive statements.Ian Lance Taylor1-0/+6
From-SVN: r170473
2011-02-22Don't crash on erroneous type switch.Ian Lance Taylor1-4/+7
From-SVN: r170386
2011-02-19Fix struct with array of struct with field that points to first struct.Ian Lance Taylor1-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. From-SVN: r170301
2011-02-10Don't crash on redefined variable.Ian Lance Taylor1-1/+7
From-SVN: r170029
2011-01-19Generate an init function if any global variable needs a preinit.Ian Lance Taylor1-9/+9
From-SVN: r169023
2011-01-04Don't look outside of function literal for break or continue label.Ian Lance Taylor1-12/+30
From-SVN: r168486
2011-01-04Don't crash if tuple init redefines non-variable.Ian Lance Taylor1-6/+24
From-SVN: r168484
2011-01-04Check for multiple default cases in switch or select.Ian Lance Taylor1-6/+36
From-SVN: r168481
2010-12-22Correctly handle tuple assignment to _ at global scope.Ian Lance Taylor1-14/+45
From-SVN: r168184
2010-12-15Tweak handling of invalid function signature for function literal.Ian Lance Taylor1-4/+1
From-SVN: r167879
2010-12-15Add statements to type switch even if there are no valid types.Ian Lance Taylor1-0/+2
From-SVN: r167874
2010-12-14Don't crash on invalid parameters/results.Ian Lance Taylor1-23/+78
From-SVN: r167820
2010-12-14Don't incorrectly parse expression as type switch.Ian Lance Taylor1-6/+11
Improve error reporting of invalid type assertions. From-SVN: r167787
2010-12-03Add Go frontend, libgo library, and Go testsuite.Ian Lance Taylor1-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. From-SVN: r167407