public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug other/17762] New: treelang doesn't use mapped locations @ 2004-10-01 1:47 phython at gcc dot gnu dot org 2004-10-01 1:48 ` [Bug other/17762] " phython at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: phython at gcc dot gnu dot org @ 2004-10-01 1:47 UTC (permalink / raw) To: gcc-bugs Treelang does not use mapped locations. -- Summary: treelang doesn't use mapped locations Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: phython at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17762 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/17762] treelang doesn't use mapped locations 2004-10-01 1:47 [Bug other/17762] New: treelang doesn't use mapped locations phython at gcc dot gnu dot org @ 2004-10-01 1:48 ` phython at gcc dot gnu dot org 2004-10-01 3:24 ` pinskia at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: phython at gcc dot gnu dot org @ 2004-10-01 1:48 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From phython at gcc dot gnu dot org 2004-10-01 01:48 ------- Created an attachment (id=7249) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7249&action=view) Make treelang work with --enable-mapped-location -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17762 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/17762] treelang doesn't use mapped locations 2004-10-01 1:47 [Bug other/17762] New: treelang doesn't use mapped locations phython at gcc dot gnu dot org 2004-10-01 1:48 ` [Bug other/17762] " phython at gcc dot gnu dot org @ 2004-10-01 3:24 ` pinskia at gcc dot gnu dot org 2004-10-02 18:38 ` cvs-commit at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-10-01 3:24 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-01 03:24 ------- Patch posted here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00012.html>. Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |patch Last reconfirmed|0000-00-00 00:00:00 |2004-10-01 03:24:56 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17762 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/17762] treelang doesn't use mapped locations 2004-10-01 1:47 [Bug other/17762] New: treelang doesn't use mapped locations phython at gcc dot gnu dot org 2004-10-01 1:48 ` [Bug other/17762] " phython at gcc dot gnu dot org 2004-10-01 3:24 ` pinskia at gcc dot gnu dot org @ 2004-10-02 18:38 ` cvs-commit at gcc dot gnu dot org 2004-10-02 18:46 ` phython at gcc dot gnu dot org 2004-10-15 17:15 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2004-10-02 18:38 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-02 18:38 ------- Subject: Bug 17762 CVSROOT: /cvs/gcc Module name: gcc Changes by: phython@gcc.gnu.org 2004-10-02 18:38:30 Modified files: gcc/testsuite/treelang: ChangeLog gcc/testsuite/treelang/compile: var_defs.tree gcc/treelang : ChangeLog lex.l parse.y tree1.c treetree.c Added files: gcc/testsuite/treelang/compile: autofunc.tree badchar.tree externvar.tree mismatch.tree noproto.tree novar.tree Log message: 2004-10-02 James A. Morrison <phython@gcc.gnu.org> PR other/17762 * lex.l: Include input.h and errors.h (lineno): New variable. (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION is not defined. Set column position with LINEMAP_POSITION_FOR_COLUMN. Use error instead of fprintf. Set input_location with the value returned by linemap_start_line when USE_MAPPED_LOCATION is defined. (dump_lex_value): Use LOCATION_LINE. * parse.y: Include errors.h. Use error and warning instead of fprintf. (return): Move exp to rule scope and always set to $2. Test against exp instead of $2. (init): Set $$ to $2. (print_token): Use LOCATION_LINE. * tree1.c (treelang_init): Call treelang_init_decl_processing last. Call linemap_add to set input_filename when USE_MAPPED_LOCATION is defined. (treelang_parse_file): Always start at line one. Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is defined. Leave main_input_filename when done parsing the input. (insert_tree_name): Use error instead of fprintf. * treetree.c (tree_code_get_expression): Wrap long line. (tree_mark_addressable): Use %qD to print out DECLs. 2004-10-02 James A. Morrison <phython@gcc.gnu.org> * compile/autofunc.tree: New File. * compile/badchar.tree: New File. * compile/externvar.tree: New File. * compile/mismatch.tree: New File. * compile/noproto.tree: New File. * compile/novar.tree: New File. * compile/var_defs.tree: Add duplicate variable. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/ChangeLog.diff?cvsroot=gcc&r1=1.5&r2=1.6 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/autofunc.tree.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/badchar.tree.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/externvar.tree.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/mismatch.tree.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/noproto.tree.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/novar.tree.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/treelang/compile/var_defs.tree.diff?cvsroot=gcc&r1=1.1&r2=1.2 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/ChangeLog.diff?cvsroot=gcc&r1=1.96&r2=1.97 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/lex.l.diff?cvsroot=gcc&r1=1.10&r2=1.11 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/parse.y.diff?cvsroot=gcc&r1=1.15&r2=1.16 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/tree1.c.diff?cvsroot=gcc&r1=1.19&r2=1.20 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/treetree.c.diff?cvsroot=gcc&r1=1.48&r2=1.49 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17762 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/17762] treelang doesn't use mapped locations 2004-10-01 1:47 [Bug other/17762] New: treelang doesn't use mapped locations phython at gcc dot gnu dot org ` (2 preceding siblings ...) 2004-10-02 18:38 ` cvs-commit at gcc dot gnu dot org @ 2004-10-02 18:46 ` phython at gcc dot gnu dot org 2004-10-15 17:15 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: phython at gcc dot gnu dot org @ 2004-10-02 18:46 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From phython at gcc dot gnu dot org 2004-10-02 18:46 ------- Treelang now works with --enable-mapped-location. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17762 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/17762] treelang doesn't use mapped locations 2004-10-01 1:47 [Bug other/17762] New: treelang doesn't use mapped locations phython at gcc dot gnu dot org ` (3 preceding siblings ...) 2004-10-02 18:46 ` phython at gcc dot gnu dot org @ 2004-10-15 17:15 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-10-15 17:15 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17762 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-10-15 17:15 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-10-01 1:47 [Bug other/17762] New: treelang doesn't use mapped locations phython at gcc dot gnu dot org 2004-10-01 1:48 ` [Bug other/17762] " phython at gcc dot gnu dot org 2004-10-01 3:24 ` pinskia at gcc dot gnu dot org 2004-10-02 18:38 ` cvs-commit at gcc dot gnu dot org 2004-10-02 18:46 ` phython at gcc dot gnu dot org 2004-10-15 17:15 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).