From f5428ec5ea71e4ef94f7db0b0b12d3af011a1b41 Mon Sep 17 00:00:00 2001 From: johanknol Date: Sat, 3 Feb 2001 19:32:34 +0000 Subject: [PATCH] Change ALLOC_ATOMIC in ALLOC git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@570 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/avr/gen.c | 4 ++-- src/pic/gen.c | 10 +++++----- src/pic/glue.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/avr/gen.c b/src/avr/gen.c index 1e769c74..40fdc977 100644 --- a/src/avr/gen.c +++ b/src/avr/gen.c @@ -322,7 +322,7 @@ static asmop *aopForSym (iCode *ic,symbol *sym,bool result) /* special case for a function */ if (IS_FUNC(sym->type)) { sym->aop = aop = newAsmop(AOP_IMMD); - ALLOC_ATOMIC(aop->aopu.aop_immd,strlen(sym->rname)+1); + ALLOC(aop->aopu.aop_immd,strlen(sym->rname)+1); strcpy(aop->aopu.aop_immd,sym->rname); aop->size = FPTRSIZE; return aop; @@ -372,7 +372,7 @@ static asmop *aopForRemat (symbol *sym) else strcpy(buffer,OP_SYMBOL(IC_LEFT(ic))->rname); - ALLOC_ATOMIC(aop->aopu.aop_immd,strlen(buffer)+1); + ALLOC(aop->aopu.aop_immd,strlen(buffer)+1); strcpy(aop->aopu.aop_immd,buffer); return aop; } diff --git a/src/pic/gen.c b/src/pic/gen.c index 30884c8d..d9757f2c 100644 --- a/src/pic/gen.c +++ b/src/pic/gen.c @@ -439,7 +439,7 @@ static asmop *aopForSym (iCode *ic,symbol *sym,bool result) /* special case for a function */ if (IS_FUNC(sym->type)) { sym->aop = aop = newAsmop(AOP_IMMD); - ALLOC_ATOMIC(aop->aopu.aop_immd,strlen(sym->rname)+1); + ALLOC(aop->aopu.aop_immd,strlen(sym->rname)+1); strcpy(aop->aopu.aop_immd,sym->rname); aop->size = FPTRSIZE; return aop; @@ -489,7 +489,7 @@ static asmop *aopForRemat (symbol *sym) strcpy(buffer,OP_SYMBOL(IC_LEFT(ic))->rname); //DEBUGemitcode(";","%s",buffer); - ALLOC_ATOMIC(aop->aopu.aop_immd,strlen(buffer)+1); + ALLOC(aop->aopu.aop_immd,strlen(buffer)+1); strcpy(aop->aopu.aop_immd,buffer); return aop; } @@ -848,7 +848,7 @@ static char *aopGet (asmop *aop, int offset, bool bit16, bool dname) return (dname ? "acc" : "a"); } sprintf(s,"@%s",aop->aopu.aop_ptr->name); - ALLOC_ATOMIC(rs,strlen(s)+1); + ALLOC(rs,strlen(s)+1); strcpy(rs,s); return rs; @@ -899,7 +899,7 @@ static char *aopGet (asmop *aop, int offset, bool bit16, bool dname) else sprintf(s,"%s", aop->aopu.aop_immd); - ALLOC_ATOMIC(rs,strlen(s)+1); + ALLOC(rs,strlen(s)+1); strcpy(rs,s); return rs; @@ -910,7 +910,7 @@ static char *aopGet (asmop *aop, int offset, bool bit16, bool dname) offset); else sprintf(s,"%s",aop->aopu.aop_dir); - ALLOC_ATOMIC(rs,strlen(s)+1); + ALLOC(rs,strlen(s)+1); strcpy(rs,s); return rs; diff --git a/src/pic/glue.c b/src/pic/glue.c index bead6f1c..4613e1e0 100644 --- a/src/pic/glue.c +++ b/src/pic/glue.c @@ -88,7 +88,7 @@ char *pic14aopLiteral (value *val, int offset) v >>= (offset * 8); sprintf(buffer,"0x%02x",((char) v) & 0xff); - ALLOC_ATOMIC(rs,strlen(buffer)+1); + ALLOC(rs,strlen(buffer)+1); return strcpy (rs,buffer); } @@ -99,7 +99,7 @@ char *pic14aopLiteral (value *val, int offset) #else sprintf(buffer,"0x%02x",fl.c[offset]); #endif - ALLOC_ATOMIC(rs,strlen(buffer)+1); + ALLOC(rs,strlen(buffer)+1); return strcpy (rs,buffer); } -- 2.47.2