diff options
author | Richard Stallman <rms@gnu.org> | 1993-11-11 05:01:22 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-11-11 05:01:22 +0000 |
commit | 7b1e0ad8a9eee25060c14a5a49a23d3674a28fec (patch) | |
tree | f7a67b6679693947e0947862a245499fb62ed0e3 | |
parent | 72f180fbf0d8bf3ebb3e00bc330d76a5bae432e5 (diff) | |
download | gcc-7b1e0ad8a9eee25060c14a5a49a23d3674a28fec.zip gcc-7b1e0ad8a9eee25060c14a5a49a23d3674a28fec.tar.gz gcc-7b1e0ad8a9eee25060c14a5a49a23d3674a28fec.tar.bz2 |
(dbxout_symbol): If it's C++, don't check the
DECL_SOURCE_LINE of a typedef.
From-SVN: r6065
-rw-r--r-- | gcc/dbxout.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index c2adcb8..c08c4b1 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) |