This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc/gcc line-map.h line-map.c ChangeLog
- From: bothner at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: 7 Dec 2003 00:12:46 -0000
- Subject: gcc/gcc line-map.h line-map.c ChangeLog
CVSROOT: /cvs/gcc
Module name: gcc
Branch: tree-ssa-20020619-branch
Changes by: bothner@gcc.gnu.org 2003-12-07 00:12:46
Modified files:
gcc : line-map.h line-map.c ChangeLog
Log message:
Implement a cache for linemap_lookup.
* line-map.h (struct_line_maps): Add cache field.
* line-map.c (linemap_init): Zero cache field.
(linemap_add): Set cache field to offset of newly allocated map.
(linemap_lookup): Use and set cache field.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/line-map.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.9.18.5&r2=1.9.18.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/line-map.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.6.18.6&r2=1.6.18.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.14646.2.113&r2=1.14646.2.114