This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r240453 - in /trunk/gcc/go: ChangeLog Make-lang...
- From: ian at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 23 Sep 2016 19:36:45 -0000
- Subject: r240453 - in /trunk/gcc/go: ChangeLog Make-lang...
Author: ian
Date: Fri Sep 23 19:36:45 2016
New Revision: 240453
URL: https://gcc.gnu.org/viewcvs?rev=240453&root=gcc&view=rev
Log:
compiler: better abstraction layer for diagnostics.
Introduce an abstraction layer for reporting diagnostics, so as to avoid
directly using the native GCC interfaces such as "error_at",
"warning_at", "open_quote", "close_quote", etc. The new interfaces have
the same look and feel as the GCC equivalents, but make calls into
back-end functions to allow the back end to select the proper final
reporting routine.
Reviewed-on: https://go-review.googlesource.com/29191
* go-gcc-diagnostics.cc: New file.
* go-location.h (Location): Remove operator source_location. Add
operator==.
* go-system.h: #include <sstream>.
* Make-lang.in (GO_OBJS): Add go/go-diagnostics.o and
go/go-gcc-diagnostics.o.
(CFLAGS-go/go-gcc-diagnostics.o): New variable.
Added:
trunk/gcc/go/go-gcc-diagnostics.cc
trunk/gcc/go/gofrontend/go-diagnostics.cc
trunk/gcc/go/gofrontend/go-diagnostics.h
Modified:
trunk/gcc/go/ChangeLog
trunk/gcc/go/Make-lang.in
trunk/gcc/go/go-location.h
trunk/gcc/go/go-system.h
trunk/gcc/go/gofrontend/MERGE
trunk/gcc/go/gofrontend/ast-dump.cc
trunk/gcc/go/gofrontend/backend.h
trunk/gcc/go/gofrontend/escape.cc
trunk/gcc/go/gofrontend/expressions.cc
trunk/gcc/go/gofrontend/go.cc
trunk/gcc/go/gofrontend/gogo.cc
trunk/gcc/go/gofrontend/import-archive.cc
trunk/gcc/go/gofrontend/import.cc
trunk/gcc/go/gofrontend/lex.cc
trunk/gcc/go/gofrontend/parse.cc
trunk/gcc/go/gofrontend/parse.h
trunk/gcc/go/gofrontend/statements.cc
trunk/gcc/go/gofrontend/statements.h
trunk/gcc/go/gofrontend/types.cc