*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Sun, 31 May 1992 05:03:41 +0000 (05:03 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 31 May 1992 05:03:41 +0000 (05:03 +0000)
From-SVN: r1130

gcc/sdbout.c

index 1911e50656874880d9bc125f7fd772934507c52c..e5d36e76b811c90d275e68993cd4efadbb29189b 100644 (file)
@@ -597,10 +597,13 @@ sdbout_symbol (decl, local)
   int regno = -1;
   char *name;
 
+  sdbout_one_type (type);
+
+#if 0 /* This loses when functions are marked to be ignored,
+        which happens in the C++ front end.  */
   if (DECL_IGNORED_P (decl))
     return;
-
-  sdbout_one_type (type);
+#endif
 
   switch (TREE_CODE (decl))
     {
@@ -627,6 +630,8 @@ sdbout_symbol (decl, local)
       /* Done with tagged types.  */
       if (DECL_NAME (decl) == 0)
        return;
+      if (DECL_IGNORED_P (decl))
+       return;
 
       /* Output typedef name.  */
       PUT_SDB_DEF (IDENTIFIER_POINTER (DECL_NAME (decl)));
@@ -644,6 +649,10 @@ sdbout_symbol (decl, local)
       if (TREE_EXTERNAL (decl))
        return;
 
+      /* Ignore __FUNCTION__, etc.  */
+      if (DECL_IGNORED_P (decl))
+       return;
+
       /* If there was an error in the declaration, don't dump core
         if there is no RTL associated with the variable doesn't
         exist.  */