From b01a1fdb06f5efceb717c1dcb8dfac73a397fef5 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 18 Dec 1995 16:08:11 -0800 Subject: [PATCH] (sdbout_symbol, case FUNCTION_DECL): Use DECL_INITIAL instead of DECL_EXTERNAL to identify declarations. From-SVN: r10805 --- gcc/sdbout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 8fdb72c6ae2..73beebac5e7 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) -- 2.30.2