From: Richard Stallman Date: Thu, 11 Nov 1993 05:01:22 +0000 (+0000) Subject: (dbxout_symbol): If it's C++, don't check the X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b1e0ad8a9eee25060c14a5a49a23d3674a28fec;p=gcc.git (dbxout_symbol): If it's C++, don't check the DECL_SOURCE_LINE of a typedef. From-SVN: r6065 --- diff --git a/gcc/dbxout.c b/gcc/dbxout.c index c2adcb8ee8e..c08c4b1a16d 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -1569,7 +1569,10 @@ dbxout_symbol (decl, local) && !TREE_ASM_WRITTEN (TYPE_NAME (type)) /* Distinguish the implicit typedefs of 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); if (TREE_CODE (name) == TYPE_DECL)