Commit e65f61cf by Jim Wilson

(dbxout_type): Always emit cross-references if

use_gnu_debug_info_extensions set.

From-SVN: r7410
parent b2526fe6
...@@ -979,10 +979,13 @@ dbxout_type (type, full, show_arg_types) ...@@ -979,10 +979,13 @@ dbxout_type (type, full, show_arg_types)
#ifdef DBX_NO_XREFS #ifdef DBX_NO_XREFS
/* For systems where dbx output does not allow the `=xsNAME:' syntax, /* For systems where dbx output does not allow the `=xsNAME:' syntax,
leave the type-number completely undefined rather than output leave the type-number completely undefined rather than output
a cross-reference. */ a cross-reference. If we have already used GNU debug info extensions,
if (TREE_CODE (type) == RECORD_TYPE || TREE_CODE (type) == UNION_TYPE then it is OK to output a cross reference. This is necessary to get
|| TREE_CODE (type) == QUAL_UNION_TYPE proper C++ debug output. */
|| TREE_CODE (type) == ENUMERAL_TYPE) if ((TREE_CODE (type) == RECORD_TYPE || TREE_CODE (type) == UNION_TYPE
|| TREE_CODE (type) == QUAL_UNION_TYPE
|| TREE_CODE (type) == ENUMERAL_TYPE)
&& ! use_gnu_debug_info_extensions)
/* We must use the same test here as we use twice below when deciding /* We must use the same test here as we use twice below when deciding
whether to emit a cross-reference. */ whether to emit a cross-reference. */
if ((TYPE_NAME (type) != 0 if ((TYPE_NAME (type) != 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment