var-tracking.c (track_expr_p): Do not track variables which should be ignored for...
authorJosef Zlomek <zlomekj@suse.cz>
Thu, 4 Mar 2004 10:44:05 +0000 (11:44 +0100)
committerJosef Zlomek <zlomek@gcc.gnu.org>
Thu, 4 Mar 2004 10:44:05 +0000 (10:44 +0000)
PR/14362
* var-tracking.c (track_expr_p): Do not track variables which
should be ignored for debugging purposes.

From-SVN: r78902

gcc/ChangeLog
gcc/var-tracking.c

index 071f579e3bdbcfea5e2ead89ae92093fb6a028b2..7d8973a147120f565120f1c6f709760ccc46ee87 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
+
+       PR/14362
+       * var-tracking.c (track_expr_p): Do not track variables which
+       should be ignored for debugging purposes.
+
 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
 
        * real.c (encode_ibm_extended): Don't bother rounding low double.
index 38983ec0524b69d817e8d3f185df32193fa94545..268d44badc1710498e129a0e8f4b74f91932ca21 100644 (file)
@@ -1361,6 +1361,10 @@ track_expr_p (tree expr)
   if (!decl_rtl)
     return 0;
 
+  /* Do not track decl if is should be ignored for debugging purposes.  */
+  if (DECL_IGNORED_P (expr))
+    return 0;
+
   /* Do not track global variables until we are able to emit correct location
      list for them.  */
   if (TREE_STATIC (expr))