This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR/14362


> > +   /* Do not track compiler-generated decl except FRAME_BASE_DECL.  */
> > +   if (DECL_ARTIFICIAL (expr) && expr != frame_base_decl)
> 
> This is the wrong test.  The correct test for "don't generate
> debug info for this variable" is DECL_IGNORED_P.

Commited as pre-approved to mainline and tree-ssa.

Josef

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.

Index: var-tracking.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/var-tracking.c,v
retrieving revision 2.4.2.2
diff -c -3 -p -r2.4.2.2 var-tracking.c
*** var-tracking.c	24 Feb 2004 23:55:23 -0000	2.4.2.2
--- var-tracking.c	2 Mar 2004 07:06:30 -0000
*************** track_expr_p (tree expr)
*** 1361,1366 ****
--- 1361,1370 ----
    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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]