From 0fc413c78a823f3a101438152250d70a55326bdb Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 25 Oct 1993 15:34:08 +0000 Subject: [PATCH] Use LCSYM for bss and STSYM for data, so that grind can see the diff --- lang/cem/cemcom.ansi/stab.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/cem/cemcom.ansi/stab.c b/lang/cem/cemcom.ansi/stab.c index 419764b99..f8e25b6c3 100644 --- a/lang/cem/cemcom.ansi/stab.c +++ b/lang/cem/cemcom.ansi/stab.c @@ -274,6 +274,7 @@ stb_string(df, kind, str) } else if (df->df_sc != AUTO && df->df_sc != REGISTER) { /* global */ + int stabtp = df->df_initialized ? N_STSYM : N_LCSYM; if (df->df_sc == STATIC) { if (df->df_level >= L_LOCAL) { addc_db_str('V'); @@ -288,10 +289,10 @@ stb_string(df, kind, str) stb_type(tp); addc_db_str(';'); if (df->df_sc == STATIC && df->df_level >= L_LOCAL) { - C_ms_stb_dlb(db_str.base, N_LCSYM, 0, (label) df->df_address, (arith) 0); + C_ms_stb_dlb(db_str.base, stabtp, 0, (label) df->df_address, (arith) 0); } else { - C_ms_stb_dnam(db_str.base, N_LCSYM, 0, str, (arith) 0); + C_ms_stb_dnam(db_str.base, stabtp, 0, str, (arith) 0); } } else { /* local variable */