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: [PATCH] C++/DWARF : Add 'using' support



On Dec 12, 2003, at 10:43 AM, Devang Patel wrote:



/* Otherwise we're emitting the primary DIE for this decl. */
! else if (debug_info_level > DINFO_LEVEL_TERSE)
--- 11976,12005 ----
/* Otherwise we're emitting the primary DIE for this decl. */
! else
! {
! if (debug_info_level > DINFO_LEVEL_TERSE)

More gratuitous reformatting.

here I am including gen_subprogram_die() call inside else { ... } because
dwarf2out_abstract_function() will do it for earlier cases.


--
Devang


*************** gen_decl_die (tree decl, dw_die_ref cont *** 11959,11985 **** }

        /* Otherwise we're emitting the primary DIE for this decl.  */
!       else if (debug_info_level > DINFO_LEVEL_TERSE)
! 	{
! 	  /* Before we describe the FUNCTION_DECL itself, make sure that we
! 	     have described its return type.  */
! 	  gen_type_die (TREE_TYPE (TREE_TYPE (decl)), context_die);
!
! 	  /* And its virtual context.  */
! 	  if (DECL_VINDEX (decl) != NULL_TREE)
! 	    gen_type_die (DECL_CONTEXT (decl), context_die);
!
! 	  /* And its containing type.  */
! 	  origin = decl_class_context (decl);
! 	  if (origin != NULL_TREE)
! 	    gen_type_die_for_member (origin, decl, context_die);
!
! 	  /* And its containing namespace.  */
! 	  declare_in_namespace (decl, context_die);
  	}
-
-       /* Now output a DIE to represent the function itself.  */
-       gen_subprogram_die (decl, context_die);
        break;

      case TYPE_DECL:
--- 11976,12005 ----
  	}

/* Otherwise we're emitting the primary DIE for this decl. */
! else
! {
! if (debug_info_level > DINFO_LEVEL_TERSE)
! {
! /* Before we describe the FUNCTION_DECL itself, make sure that we
! have described its return type. */
! gen_type_die (TREE_TYPE (TREE_TYPE (decl)), context_die);
!
! /* And its virtual context. */
! if (DECL_VINDEX (decl) != NULL_TREE)
! gen_type_die (DECL_CONTEXT (decl), context_die);
!
! /* And its containing type. */
! origin = decl_class_context (decl);
! if (origin != NULL_TREE)
! gen_type_die_for_member (origin, decl, context_die);
!
! /* And its containing namespace. */
! declare_in_namespace (decl, context_die);
! }
!
! /* Now output a DIE to represent the function itself. */
! gen_subprogram_die (decl, context_die);
}
break;


case TYPE_DECL:


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