sources that searched for headers in installation path, now the
device/include/pic16 is used,
* src/pic16/glue.c (pic16glue),
* src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
.line directives if not in debug mode, this suppresses assembler's
warnings for ignored directives
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3525
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
+
+ * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
+ sources that searched for headers in installation path, now the
+ device/include/pic16 is used,
+ * src/pic16/glue.c (pic16glue),
+ * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
+ .line directives if not in debug mode, this suppresses assembler's
+ warnings for ignored directives
+
2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
* src/port.h: made reset_regparms prototype void parameter explicit.
LIBC_INC_DIR = $(PRJDIR)/device/include/pic16
COMPILE_FLAGS += $(MODELFLAGS) --pomit-config-words --pomit-ivt --no-peep --i-code-in-asm
+CFLAGS = --nostdinc -I$(LIBC_INC_DIR)
CFILES = $(patsubst %,%.c,$(SRCS))
OFILES = $(patsubst %.c,%.o,$(CFILES))
extern set *tmpfileNameSet;
extern char *iComments1;
extern char *iComments2;
-//extern void emitStaticSeg (memmap * map);
extern int initsfpnt;
pic16initialComments (asmFile);
/* print module name */
- fprintf(asmFile, "#FILE\t\"%s\"\n", fullSrcFileName);
+ if(options.debug)
+ fprintf(asmFile, "\t.file\t\"%s\"\n", fullSrcFileName);
/* Let the port generate any global directives, etc. */
if (port->genAssemblerPreamble) {
break;
case PC_CSOURCE:
// SAFE_snprintf(&s,&size,";#CSRC\t%s %d\t%s\n", PCCS(pc)->file_name, PCCS(pc)->line_number, PCCS(pc)->line);
- SAFE_snprintf(&s,&size,"%s#LINE\t%d; %s\t%s\n", (pic16_mplab_comp?";":""),
+ SAFE_snprintf(&s,&size,"%s\t.line\t%d; %s\t%s\n", ((pic16_mplab_comp || !options.debug)?";":""),
PCCS(pc)->line_number, PCCS(pc)->file_name, PCCS(pc)->line);
break;
case PC_ASMDIR:
case PC_CSOURCE:
// fprintf(of,";#CSRC\t%s %d\t\t%s\n", PCCS(pc)->file_name, PCCS(pc)->line_number, PCCS(pc)->line);
- fprintf(of,"%s#LINE\t%d; %s\t%s\n", (pic16_mplab_comp?";":""),
+ fprintf(of,"%s\t.line\t%d; %s\t%s\n", ((pic16_mplab_comp || !options.debug)?";":""),
PCCS(pc)->line_number, PCCS(pc)->file_name, PCCS(pc)->line);
break;