aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2005-09-13 21:12:57 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2005-09-13 21:12:57 +0000
commit282c3fdc47dafe3bead2991d54e8a31d409e119d (patch)
tree2c9000117ce555ca56e9ed6e34ccca9b4006ecce /gcc/tree.c
parent00ff8e19264668b1202fadf0501b2c6837cc0feb (diff)
downloadgcc-282c3fdc47dafe3bead2991d54e8a31d409e119d.zip
gcc-282c3fdc47dafe3bead2991d54e8a31d409e119d.tar.gz
gcc-282c3fdc47dafe3bead2991d54e8a31d409e119d.tar.bz2
tree.c (annotate_with_file_line): Compare line numbers before file names.
* tree.c (annotate_with_file_line): Compare line numbers before file names. From-SVN: r104239
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 448d329..2227d8e 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -3116,9 +3116,9 @@ annotate_with_file_line (tree node, const char *file, int line)
a node with the same information already attached to that node!
Just return instead of wasting memory. */
if (EXPR_LOCUS (node)
+ && EXPR_LINENO (node) == line
&& (EXPR_FILENAME (node) == file
- || ! strcmp (EXPR_FILENAME (node), file))
- && EXPR_LINENO (node) == line)
+ || !strcmp (EXPR_FILENAME (node), file)))
{
last_annotated_node = node;
return;
@@ -3129,9 +3129,9 @@ annotate_with_file_line (tree node, const char *file, int line)
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))
- && EXPR_LINENO (last_annotated_node) == line)
+ || !strcmp (EXPR_FILENAME (last_annotated_node), file)))
{
SET_EXPR_LOCUS (node, EXPR_LOCUS (last_annotated_node));
return;