From: maartenbrock Date: Wed, 2 Nov 2005 16:55:15 +0000 (+0000) Subject: * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox, X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=6485fa2218a9c3b203173f900f38db59f8a88e7c;p=fw%2Fsdcc * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox, (_asxxxx_mapping): added org directive for future enhancements git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3929 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 5af08de5..cc0958d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,13 @@ +2005-11-02 Maarten Brock + + * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox, + (_asxxxx_mapping): added org directive for future enhancements + 2005-11-01 Borut Razem * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc: enabled sockets on WIN32 - * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized varaibles + * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables 2005-10-31 Borut Razem diff --git a/src/asm.c b/src/asm.c index 6fc273a5..73c545c3 100644 --- a/src/asm.c +++ b/src/asm.c @@ -259,6 +259,7 @@ printILine (iCode *ic) static char verbalICode[1024]; FILE *tmpFile; iCodeTable *icTab=getTableEntry(ic->op); + int ret; if (INLINEASM == ic->op) return "inline"; @@ -281,7 +282,8 @@ printILine (iCode *ic) * Actually the temporary file is only closed. It will be * removed by rm_tmpfiles(). */ - assert(!fclose(tmpFile)); + ret = fclose(tmpFile); + assert(!ret); deleteSetItem(&tmpfileSet, tmpFile); /* kill the trailing NL */ @@ -388,6 +390,7 @@ static const ASM_MAPPING _asxxxx_mapping[] = {"hihil","(%05d$ >> 16)"}, {"hihihil","(%05d$ >> 24)"}, {"equ","="}, + {"org", ".org %04X"}, {NULL, NULL} };