+2006-11-30 Raphael Neider <rneider AT web.de>
+
+ * src/pic/device.c (dump_sfr): always emit symbols
+ * src/pic/glue.c (pic14printPublics): fixed typo
+
2006-11-30 Raphael Neider <rneider AT web.de>
* src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
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);
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;
}
}
-/* 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 )
{
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;