]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree.c (annotate_with_file_line): Compare line numbers before file names.
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Tue, 13 Sep 2005 21:12:57 +0000 (21:12 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Tue, 13 Sep 2005 21:12:57 +0000 (21:12 +0000)
* tree.c (annotate_with_file_line): Compare line numbers before
file names.

From-SVN: r104239

gcc/ChangeLog
gcc/tree.c

index 39345c89d31420e59958a7c22acea7bf77550301..ea56ce6b0fd8f71e91e046ee44dea9bb749128d6 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       * tree.c (annotate_with_file_line): Compare line numbers before
+       file names.
+
 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
 
        PR target/23816
index 448d329d3c88c441614c17535a8da38411a5dbf4..2227d8ea64c44b0880ec7f84a8e33163cd35b441 100644 (file)
@@ -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;