From 59f25f3b7568d46895829357056cfa43cfb68037 Mon Sep 17 00:00:00 2001 From: tecodev Date: Thu, 30 Nov 2006 18:18:53 +0000 Subject: [PATCH] * src/pic/device.c (dump_sfr): always emit symbols * src/pic/glue.c (pic14printPublics): fixed typo git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4495 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 5 +++++ src/pic/device.c | 12 +----------- src/pic/glue.c | 18 +----------------- 3 files changed, 7 insertions(+), 28 deletions(-) diff --git a/ChangeLog b/ChangeLog index c2b6dffa..f15b2df2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-11-30 Raphael Neider + + * src/pic/device.c (dump_sfr): always emit symbols + * src/pic/glue.c (pic14printPublics): fixed typo + 2006-11-30 Raphael Neider * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC diff --git a/src/pic/device.c b/src/pic/device.c index e26ed9fd..ad7a1e15 100644 --- a/src/pic/device.c +++ b/src/pic/device.c @@ -64,7 +64,6 @@ static unsigned int config_word = DEFAULT_CONFIG_WORD; static unsigned int config2_word = DEFAULT_CONFIG2_WORD; static memRange *rangeRAM = NULL; -extern int pic14_is_shared (regs *reg); extern void emitSymbolToFile (FILE *of, const char *name, const char *section_type, int size, int addr, int useEQU, int globalize); @@ -563,16 +562,7 @@ void dump_sfr(FILE *of) if (reg && !reg->isEmitted) { - if (pic14_options.isLibrarySource && pic14_is_shared (reg)) - { - /* rely on external declarations for the non-fixed stack */ - /* Update: We always emit the STACK symbols into a - * udata_shr section, so no extern declaration is - * required. */ - //fprintf (of, "\textern\t%s\n", reg->name); - } else { - emitSymbolToFile (of, reg->name, "udata", reg->size, reg->isFixed ? reg->address : -1, 0, pic14_is_shared (reg)); - } + emitSymbolToFile (of, reg->name, "udata", reg->size, reg->isFixed ? reg->address : -1, 0, 0); reg->isEmitted = 1; } diff --git a/src/pic/glue.c b/src/pic/glue.c index 2267da2e..b075cdb9 100644 --- a/src/pic/glue.c +++ b/src/pic/glue.c @@ -105,22 +105,6 @@ unsigned int pic14aopLiteral (value *val, int offset) } -/* Check whether the given reg is shared amongst all .o files of a project. - * This is true for the pseudo stack and WSAVE, SSAVE and PSAVE. */ -static int -is_shared_address (int addr) -{ - return ((addr > Gstack_base_addr - 18) - && (addr <= Gstack_base_addr)); -} - -int -pic14_is_shared (regs *reg) -{ - if (!reg) return 0; - return is_shared_address (reg->address); -} - static int is_valid_identifier( const char *name ) { @@ -1104,7 +1088,7 @@ pic14printPublics (FILE * afile) symbol *sym; fprintf (afile, "%s", iComments2); - fprintf (afile, "; publics variables in this module\n"); + fprintf (afile, "; public variables in this module\n"); fprintf (afile, "%s", iComments2); for (sym = setFirstItem (publics); sym; -- 2.47.2