summaryrefslogtreecommitdiff
path: root/gcc/sdbout.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1995-12-19 00:08:11 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1995-12-19 00:08:11 +0000
commitd9904a8e7ad8ce4693ce88681db9ec2cf198199b (patch)
treee52b924a6303ecb7b04838a904af886eb1d8d16b /gcc/sdbout.c
parentba10055aefd40137a22a119c9735500e48de6343 (diff)
downloadgcc-d9904a8e7ad8ce4693ce88681db9ec2cf198199b.tar.gz
(sdbout_symbol, case FUNCTION_DECL): Use DECL_INITIAL
instead of DECL_EXTERNAL to identify declarations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10805 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r--gcc/sdbout.c5
1 files changed, 4 insertions, 1 deletions
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)