From 972fe9e7506426b370daf0a77dd263113cea867a Mon Sep 17 00:00:00 2001 From: tecodev Date: Fri, 8 Sep 2006 08:06:23 +0000 Subject: [PATCH] * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd), * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r" to gplink to disable processor mismatch warning and to allow the use of devices with only aliased (shared) memory banks, (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4371 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 8 ++++++++ src/pic/main.c | 4 ++-- src/pic16/main.c | 8 ++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 021a12a1..f022f2a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-09-08 Raphael Neider + + * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd), + * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r" + to gplink to disable processor mismatch warning and to allow + the use of devices with only aliased (shared) memory banks, + (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp + 2006-09-07 Jesus Calvino-Fraga * doc/sdccman.lyx: Some re-formating plus example on using diff --git a/src/pic/main.c b/src/pic/main.c index 7881c1c6..263d5f81 100644 --- a/src/pic/main.c +++ b/src/pic/main.c @@ -419,7 +419,7 @@ MUST be terminated with a NULL. */ static const char *_linkCmd[] = { - "gplink", "$l", "-o \"$2\"", "\"$1\"", "$3", NULL + "gplink", "$l", "-w", "-r", "-o \"$2\"", "\"$1\"", "$3", NULL }; static const char *_asmCmd[] = @@ -453,7 +453,7 @@ static void _pic14_do_link (void) * */ - sprintf(lfrm, "{linker} {incdirs} {sysincdirs} {lflags} -o {outfile} {user_ofile} {spec_ofiles} {ofiles} {libs}"); + sprintf(lfrm, "{linker} {incdirs} {sysincdirs} {lflags} -w -r -o {outfile} {user_ofile} {spec_ofiles} {ofiles} {libs}"); shash_add(&linkValues, "linker", "gplink"); diff --git a/src/pic16/main.c b/src/pic16/main.c index c091aa2d..7f77737c 100644 --- a/src/pic16/main.c +++ b/src/pic16/main.c @@ -664,7 +664,7 @@ static void _pic16_linkEdit(void) * {linker} {incdirs} {lflags} -o {outfile} {spec_ofiles} {ofiles} {libs} * */ - sprintf(lfrm, "{linker} {incdirs} {lflags} -o {outfile} {user_ofile} {ofiles} {spec_ofiles} {libs}"); + sprintf(lfrm, "{linker} {incdirs} {lflags} -w -r -o {outfile} {user_ofile} {ofiles} {spec_ofiles} {libs}"); shash_add(&linkValues, "linker", pic16_linkCmd[0]); @@ -863,6 +863,10 @@ _pic16_genAssemblerPreamble (FILE * of) } fprintf (of, "\tlist\tp=%s\n",&name[1]); + if (pic16_mplab_comp) { + // provide ACCESS macro used during SFR accesses + fprintf (of, "\tinclude \n", &name[1]); + } if(!pic16_options.omit_configw) { pic16_emitConfigRegs(of); @@ -1099,7 +1103,7 @@ oclsExpense (struct memmap *oclass) */ const char *pic16_linkCmd[] = { - "gplink", "$l", "-o \"$2\"", "\"$1\"","$3", NULL + "gplink", "$l", "-w", "-r", "-o \"$2\"", "\"$1\"","$3", NULL }; -- 2.30.2