From b77c03bd44acfa0ff8f2194869166f7a23530cc4 Mon Sep 17 00:00:00 2001 From: zlomek Date: Thu, 4 Mar 2004 10:44:05 +0000 Subject: [PATCH] PR/14362 * var-tracking.c (track_expr_p): Do not track variables which should be ignored for debugging purposes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78902 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/var-tracking.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 071f579..7d8973a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-03-04 Josef Zlomek + + PR/14362 + * var-tracking.c (track_expr_p): Do not track variables which + should be ignored for debugging purposes. + 2004-03-04 Alan Modra * real.c (encode_ibm_extended): Don't bother rounding low double. diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index 38983ec..268d44b 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -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)) -- 2.7.4