aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1995-12-18 16:08:11 -0800
committerJim Wilson <wilson@gcc.gnu.org>1995-12-18 16:08:11 -0800
commitb01a1fdb06f5efceb717c1dcb8dfac73a397fef5 (patch)
treee52b924a6303ecb7b04838a904af886eb1d8d16b
parent7f0d4f6d8392dd3b6655349bf1853b21f08484e1 (diff)
downloadgcc-b01a1fdb06f5efceb717c1dcb8dfac73a397fef5.zip
gcc-b01a1fdb06f5efceb717c1dcb8dfac73a397fef5.tar.gz
gcc-b01a1fdb06f5efceb717c1dcb8dfac73a397fef5.tar.bz2
(sdbout_symbol, case FUNCTION_DECL): Use DECL_INITIAL
instead of DECL_EXTERNAL to identify declarations. From-SVN: r10805
-rw-r--r--gcc/sdbout.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index 8fdb72c..73beeba 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -691,7 +691,10 @@ sdbout_symbol (decl, local)
context = decl_function_context (decl);
if (context == current_function_decl)
return;
- if (DECL_EXTERNAL (decl))
+ /* Check DECL_INITIAL to distinguish declarations from definitions.
+ Don't output debug info here for declarations; they will have
+ a DECL_INITIAL value of 0. */
+ if (! DECL_INITIAL (decl))
return;
if (GET_CODE (DECL_RTL (decl)) != MEM
|| GET_CODE (XEXP (DECL_RTL (decl), 0)) != SYMBOL_REF)