From: Jim Wilson Date: Tue, 19 Dec 1995 00:08:11 +0000 (-0800) Subject: (sdbout_symbol, case FUNCTION_DECL): Use DECL_INITIAL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b01a1fdb06f5efceb717c1dcb8dfac73a397fef5;p=gcc.git (sdbout_symbol, case FUNCTION_DECL): Use DECL_INITIAL instead of DECL_EXTERNAL to identify declarations. From-SVN: r10805 --- 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)