From 16d907969ec0e6c45d880c053fe5973561ab3bc0 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sun, 31 May 1992 05:03:41 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r1130 --- gcc/sdbout.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 1911e506568..e5d36e76b81 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -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. */ -- 2.30.2