This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc/gcjx ChangeLog location.hh exception.hh ty ...
- From: rmathew at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org, java-cvs at gcc dot gnu dot org
- Date: 3 Oct 2005 17:38:09 -0000
- Subject: gcc/gcjx ChangeLog location.hh exception.hh ty ...
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcjx-branch
Changes by: rmathew@gcc.gnu.org 2005-10-03 17:38:09
Modified files:
gcjx : ChangeLog location.hh exception.hh typedefs.hh
compiler.cc
gcjx/source : ucs2.hh ucs2.cc iconv.cc lex.hh lex.cc parse.hh
gcjx/format : format.hh format.cc
gcjx/model : unit.hh
gcjx/reader : source.cc
Log message:
Show lines from input files in diagnostics.
* source/ucs2.hh (ucs2_reader::limit): Rename to 'end'.
(ucs2_reader::begin): New field.
(ucs2_reader::posn): Likewise.
(ucs2_reader::max_posn): Likewise.
(ucs2_reader::get_uint8): Update POSN as needed.
(ucs2_reader::get_posn): New method.
(ucs2_reader::set_posn): Likewise.
* source/ucs2.cc (ucs2_reader::ucs2_reader): Initialise new fields.
* source/iconv.cc (iconv_ucs2_reader::refill): Use END instead of
LIMIT.
(iconv_ucs2_reader::get): Likewise.
* source/lex.hh (lexer::get_line): New method.
* source/lex.cc (lexer::get_line): Implementation of the above.
* location.hh (location::get_column): New method.
* format/format.hh (format_repr::src_lexer): New field.
(format_repr::set_lexer): New method.
* format/format.cc (format_repr::format_repr): Initialise SRC_LEXER.
(format_repr::dump): Show source line, if possible, using SRC_LEXER.
* exception.hh (exception_base::set_lexer): New method.
* model/unit.hh (model_unit::src_lexer): New field.
(model_unit::model_unit): Initialise SRC_LEXER.
(model_unit::~model_unit): New destructor.
(model_unit::set_lexer): New method.
(model_unit::get_lexer): Likewise.
* reader/source.cc (source_file_creator::apply): Set lexer for
compilation unit and exception, if any.
* source/parse.hh (parse::~parse): Do not destory token stream.
* typedefs.hh: Rearrange inclusion of headers.
* compiler.cc (compiler::do_analyze_unit): Set lexer for exception,
if any.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.119&r2=1.1.2.120
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/location.hh.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.1&r2=1.1.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/exception.hh.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.1&r2=1.1.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/typedefs.hh.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.2&r2=1.1.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/compiler.cc.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.5&r2=1.1.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/source/ucs2.hh.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.1&r2=1.1.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/source/ucs2.cc.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.1&r2=1.1.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/source/iconv.cc.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.1&r2=1.1.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/source/lex.hh.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.2&r2=1.1.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/source/lex.cc.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.3&r2=1.1.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/source/parse.hh.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.1&r2=1.1.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/format/format.hh.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.2&r2=1.1.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/format/format.cc.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.2&r2=1.1.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/model/unit.hh.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.1&r2=1.1.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcjx/reader/source.cc.diff?cvsroot=gcc&only_with_tag=gcjx-branch&r1=1.1.2.1&r2=1.1.2.2