From: tecodev Date: Fri, 2 Feb 2007 09:26:09 +0000 (+0000) Subject: * src/pic/glue.c (emitSymbolSet): check sym->etype before use X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=8e14f2362d6ec562a6d0cf433bb56d09f717b333;p=fw%2Fsdcc * src/pic/glue.c (emitSymbolSet): check sym->etype before use * src/regression/Makefile: use --no-pcode-opt, ignore failing tests git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4612 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 2c0740e9..e0ffad55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-02 Raphael Neider + + * src/pic/glue.c (emitSymbolSet): check sym->etype before use + * src/regression/Makefile: use --no-pcode-opt, ignore failing tests + 2007-02-01 Raphael Neider * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the diff --git a/src/pic/glue.c b/src/pic/glue.c index b2780700..316bf02c 100644 --- a/src/pic/glue.c +++ b/src/pic/glue.c @@ -2058,7 +2058,7 @@ emitSymbolSet(set *s, int type) sym->name, sym->rname, sym->level, sym->block, sym->key, sym->islocal, sym->ival, IS_STATIC(sym->etype), sym->cdef, sym->used); #endif - if (SPEC_ABSA(sym->etype) + if (sym->etype && SPEC_ABSA(sym->etype) && IS_CONFIG_ADDRESS(SPEC_ADDR(sym->etype)) && sym->ival) { diff --git a/src/regression/Makefile b/src/regression/Makefile index 7e911ec4..6066a396 100644 --- a/src/regression/Makefile +++ b/src/regression/Makefile @@ -52,7 +52,7 @@ Q ?= @ # be quiet CC = sdcc LINKER = gplink TARGETPIC = 16f877 -CFLAGS = -Wl,--map -I ../../device/include/pic -L ../../device/lib/pic/bin -mpic14 -pp$(TARGETPIC) -Wl,-q +CFLAGS = -Wl,--map -I ../../device/include/pic -L ../../device/lib/pic/bin -mpic14 -pp$(TARGETPIC) -Wl,-q --no-pcode-opt .SUFFIXES: .asm .c .cod .stc @@ -127,12 +127,12 @@ all: test # The cod files are generated by sdcc .c.cod: - $(Q)$(CC) $(CFLAGS) $*.c + $(Q)-$(CC) $(CFLAGS) $*.c # The .stc files are script files for gpsim .cod.stc: - $(Q)./$(CREATESTC) $*.cod $*.stc - $(Q)./$(SIMULATE) $*.stc $(LOGFILE) + $(Q)-./$(CREATESTC) $*.cod $*.stc + $(Q)-./$(SIMULATE) $*.stc $(LOGFILE) # this will also make .stc files #%.stc : %.cod