Commit 7b1e0ad8 by Richard Stallman

(dbxout_symbol): If it's C++, don't check the

DECL_SOURCE_LINE of a typedef.

From-SVN: r6065
parent 72f180fb
...@@ -1569,7 +1569,10 @@ dbxout_symbol (decl, local) ...@@ -1569,7 +1569,10 @@ dbxout_symbol (decl, local)
&& !TREE_ASM_WRITTEN (TYPE_NAME (type)) && !TREE_ASM_WRITTEN (TYPE_NAME (type))
/* Distinguish the implicit typedefs of C++ /* Distinguish the implicit typedefs of C++
from explicit ones that might be found in C. */ from explicit ones that might be found in C. */
&& DECL_SOURCE_LINE (decl) == 0) && (!strcmp (lang_identify (), "cplusplus")
/* The following line maybe unnecessary;
in 2.6, try removing it. */
|| DECL_SOURCE_LINE (decl) == 0))
{ {
tree name = TYPE_NAME (type); tree name = TYPE_NAME (type);
if (TREE_CODE (name) == TYPE_DECL) if (TREE_CODE (name) == TYPE_DECL)
......
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