projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
[fw/sdcc]
/
src
/
avr
/
gen.c
diff --git
a/src/avr/gen.c
b/src/avr/gen.c
index 59dbabcebc9e0eddf6839aaa1a806be213999ade..7c17501518f6b2e52645cd68e34217f0b4197c5f 100644
(file)
--- a/
src/avr/gen.c
+++ b/
src/avr/gen.c
@@
-65,7
+65,7
@@
static struct {
extern int avr_ptrRegReq;
extern int avr_nRegs;
extern int avr_ptrRegReq;
extern int avr_nRegs;
-extern
FILE *codeOutFile
;
+extern
struct dbuf_s *codeOutBuf
;
#define RESULTONSTACK(x) \
(IC_RESULT(x) && IC_RESULT(x)->aop && \
IC_RESULT(x)->aop->type == AOP_STK )
#define RESULTONSTACK(x) \
(IC_RESULT(x) && IC_RESULT(x)->aop && \
IC_RESULT(x)->aop->type == AOP_STK )
@@
-1707,12
+1707,6
@@
resultRemat (iCode * ic)
return 0;
}
return 0;
}
-#if defined(__BORLANDC__) || defined(_MSC_VER)
-#define STRCASECMP stricmp
-#else
-#define STRCASECMP strcasecmp
-#endif
-
/*-----------------------------------------------------------------*/
/* genFunction - generated code for function entry */
/*-----------------------------------------------------------------*/
/*-----------------------------------------------------------------*/
/* genFunction - generated code for function entry */
/*-----------------------------------------------------------------*/
@@
-5134,7
+5128,7
@@
genAVRCode (iCode * lic)
recvCnt = 0;
/* print the allocation information */
if (allocInfo)
recvCnt = 0;
/* print the allocation information */
if (allocInfo)
- printAllocInfo (currFunc, codeOut
File
);
+ printAllocInfo (currFunc, codeOut
Buf
);
/* if debug information required */
if (options.debug && currFunc) {
debugFile->writeFunction (currFunc, lic);
/* if debug information required */
if (options.debug && currFunc) {
debugFile->writeFunction (currFunc, lic);
@@
-5360,6
+5354,6
@@
genAVRCode (iCode * lic)
peepHole (&lineHead);
/* now do the actual printing */
peepHole (&lineHead);
/* now do the actual printing */
- printLine (lineHead, codeOut
File
);
+ printLine (lineHead, codeOut
Buf
);
return;
}
return;
}