From: reichelt Date: Tue, 13 Sep 2005 21:12:57 +0000 (+0000) Subject: * tree.c (annotate_with_file_line): Compare line numbers before X-Git-Tag: upstream/4.9.2~58655 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b70e19061b0e31b5b9defffa21ba0a02e9c43d17;p=platform%2Fupstream%2Flinaro-gcc.git * tree.c (annotate_with_file_line): Compare line numbers before file names. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104239 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 39345c8..ea56ce6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-09-13 Volker Reichelt + + * tree.c (annotate_with_file_line): Compare line numbers before + file names. + 2005-09-13 Uros Bizjak PR target/23816 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;