summaryrefslogtreecommitdiffstats
path: root/gcc/go/gofrontend/lex.cc
Commit message (Collapse)AuthorAgeFilesLines
* PR go/61746ian2014-07-081-1/+1
| | | | | | | | | | compiler: Fix C-style comment parsing. The compiler was incorrectly seeing /*/ as a complete C-style comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@212371 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Improve handling of invalid ASCII characters in identifiers.ian2013-10-111-1/+22
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203450 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Don't encode non-ASCII characters in identifiers.ian2012-12-031-5/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194068 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Implement //go:nointerface comments.ian2012-11-281-1/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193874 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler, runtime: Reject surrogate pair converting int to string.ian2012-09-221-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191636 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Give error for byte-order-mark in middle of file.ian2012-09-201-1/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191507 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Ignore byte-order-mark at start of file.ian2012-09-191-1/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191485 138bc75d-0d04-0410-961f-82ee72b054a4
* compile: Detect invalid and likely-bad import statements.ian2012-09-171-0/+30
| | | | | | | * Make-lang.in (go/gogo.o): Depend on filenames.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191372 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: fix an ICE when parsing 0xdie, reject token 0x123i.ian2012-05-071-1/+3
| | | | | | | | | The lexer used to incorrectly accept a token like 0x123i and interpreted it as 123i. It also used to die when encountering 0xdie. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187266 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler, libgo: Use //extern comments rather than __asm__.ian2012-02-071-1/+34
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183981 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Give an error if a variable is defined but not used.ian2012-01-231-0/+14
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183458 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Change alias handling, change rune alias to int32.ian2012-01-211-2/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183374 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler: Define and use backend-independent Location class.ian2011-11-291-22/+20
| | | | | | | | | | | | | | | | From Sanjoy Das. * go-location.h: New file. * go-linemap.cc: New file. * go-gcc.cc: Change all uses of source_location to Location. * Make-lang.in (GO_OBJS): Add go/go-linemap.o. (GO_LINEMAP_H): New variable. (GO_LEX_H): Use $(GO_LINEMAP_H). (GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise. (go/go-linemap.o): New target. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181813 138bc75d-0d04-0410-961f-82ee72b054a4
* LINEMAP_POSITION_FOR_COLUMN had the exact same effect asgchare2011-08-151-6/+2
| | | | | | | | | | | | | | | | linemap_position_for_column, removed it and updated users to use linemap_position_for_column instead libcpp/ChangeLog * include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Remove. Update all users to use linemap_position_for_column instead. gcc/go/ChangeLog * gofrontend/lex.cc (Lex::location): Update to use linemap_position_for_column instead. (Lex::earlier_location): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177768 138bc75d-0d04-0410-961f-82ee72b054a4
* Define go_unreachable to replace gcc_unreachable.ian2011-04-231-4/+4
| | | | | | | 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-5/+5
| | | | | | | | | 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
* Initialize Lex::lineoff_ field.ian2010-12-231-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168196 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't warn about []int of string with NUL bytes.ian2010-12-211-10/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168146 138bc75d-0d04-0410-961f-82ee72b054a4
* Correct lexing of exponents.ian2010-12-211-3/+22
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168129 138bc75d-0d04-0410-961f-82ee72b054a4
* Insert semicolon at EOF if necessary.ian2010-12-141-1/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167809 138bc75d-0d04-0410-961f-82ee72b054a4
* Add Go frontend, libgo library, and Go testsuite.ian2010-12-031-0/+2287
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