(dbxout_symbol): If it's C++, don't check the
authorRichard Stallman <rms@gnu.org>
Thu, 11 Nov 1993 05:01:22 +0000 (05:01 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 11 Nov 1993 05:01:22 +0000 (05:01 +0000)
DECL_SOURCE_LINE of a typedef.

From-SVN: r6065

gcc/dbxout.c

index c2adcb8ee8e37731f0752f71b5b045fd3a60c30a..c08c4b1a16de707eb6921b84bfb26a1e95e480fe 100644 (file)
@@ -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)