* tree.c (last_annotated_node): Change type to location_t*.
(annotate_with_file_line): Reflect the change of
last_annotated_node type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104944
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * tree.c (last_annotated_node): Change type to location_t*.
+ (annotate_with_file_line): Reflect the change of
+ last_annotated_node type.
+
2005-10-04 Richard Guenther <rguenther@suse.de>
PR c/23576
2005-10-04 Richard Guenther <rguenther@suse.de>
PR c/23576
#if 1 /* ! defined(USE_MAPPED_LOCATION) */
/* ??? gengtype doesn't handle conditionals */
#if 1 /* ! defined(USE_MAPPED_LOCATION) */
/* ??? gengtype doesn't handle conditionals */
-static GTY(()) tree last_annotated_node;
+static GTY(()) location_t *last_annotated_node;
#endif
#ifdef USE_MAPPED_LOCATION
#endif
#ifdef USE_MAPPED_LOCATION
&& (EXPR_FILENAME (node) == file
|| !strcmp (EXPR_FILENAME (node), file)))
{
&& (EXPR_FILENAME (node) == file
|| !strcmp (EXPR_FILENAME (node), file)))
{
- last_annotated_node = node;
+ last_annotated_node = EXPR_LOCUS (node);
entry cache can reduce the number of allocations by more
than half. */
if (last_annotated_node
entry cache can reduce the number of allocations by more
than half. */
if (last_annotated_node
- && EXPR_LOCUS (last_annotated_node)
- && EXPR_LINENO (last_annotated_node) == line
- && (EXPR_FILENAME (last_annotated_node) == file
- || !strcmp (EXPR_FILENAME (last_annotated_node), file)))
+ && last_annotated_node->line == line == line
+ && (last_annotated_node->file == file
+ || !strcmp (last_annotated_node->file, file)))
- SET_EXPR_LOCUS (node, EXPR_LOCUS (last_annotated_node));
+ SET_EXPR_LOCUS (node, last_annotated_node);
return;
}
SET_EXPR_LOCUS (node, ggc_alloc (sizeof (location_t)));
EXPR_LINENO (node) = line;
EXPR_FILENAME (node) = file;
return;
}
SET_EXPR_LOCUS (node, ggc_alloc (sizeof (location_t)));
EXPR_LINENO (node) = line;
EXPR_FILENAME (node) = file;
- last_annotated_node = node;
+ last_annotated_node = EXPR_LOCUS (node);