+2008-11-06 Borut Razem <borut.razem AT siol.net>
+
+ * src/SDCCmain.c: #fixed bug 2224960: sdcc -MM no working correctly
+ pass system include paths with -isystem to sdcpp
+ * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneded
+ functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
+
2008-11-02 Raphael Neider <rneider AT web.de>
* doc/sdccman.lyx: updated the sections on the library build process
* src/SDCCglue.c, src/SDCCast.c:
fixed throw of "excess elements" warning for char arrays
+ * support/regression/tests/nullstring.c:
+ disable warning about excess elements in array of chars initializer
2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
int noInit = 0; /* no initialization */
-/*-----------------------------------------------------------------*/
-/* closePipes - closes all pipes created by the compiler */
-/*-----------------------------------------------------------------*/
-DEFSETFUNC (closePipes)
-{
- FILE *pfile = item;
- int ret;
-
- if (pfile) {
- ret = pclose (pfile);
- assert(ret != -1);
- }
-
- return 0;
-}
-
-/*-----------------------------------------------------------------*/
-/* closeTmpFiles - closes all tmp files created by the compiler */
-/* because of BRAIN DEAD MS/DOS & CYGNUS Libraries */
-/*-----------------------------------------------------------------*/
-DEFSETFUNC (closeTmpFiles)
-{
- FILE *tfile = item;
- int ret;
-
- if (tfile) {
- ret = fclose (tfile);
- assert(ret == 0);
- }
-
- return 0;
-}
-
-/*-----------------------------------------------------------------*/
-/* rmTmpFiles - unlinks all tmp files created by the compiler */
-/* because of BRAIN DEAD MS/DOS & CYGNUS Libraries */
-/*-----------------------------------------------------------------*/
-DEFSETFUNC (rmTmpFiles)
-{
- char *name = item;
- int ret;
-
- if (name) {
- ret = remove (name);
- assert(ret == 0);
- Safe_free (name);
- }
-
- return 0;
-}
-
char *
aopLiteralLong (value * val, int offset, int size)
{
/* standard include path */
if (!options.nostdinc) {
- inclList = appendStrSet(includeDirsSet, "-I\"", "\"");
+ inclList = appendStrSet(includeDirsSet, "-isystem \"", "\"");
mergeSets(&preArgvSet, inclList);
}
/*-------------------------------------------------------------------------
- SDCCglue.c - glues everything we have done together into one file.
+ glue.c - glues everything we have done together into one file.
Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
This program is free software; you can redistribute it and/or modify it
extern symbol *mainf;
extern struct dbuf_s *codeOutBuf;
-extern DEFSETFUNC(closeTmpFiles);
-extern DEFSETFUNC(rmTmpFiles);
-extern void initialComments(FILE *afile);
-extern operand *operandFromAst(ast *tree, int lvl);
-extern value *initPointer(initList *ilist, sym_link *toType);
+extern void initialComments (FILE *afile);
+extern operand *operandFromAst (ast *tree, int lvl);
+extern value *initPointer (initList *ilist, sym_link *toType);
set *pic14_localFunctions = NULL;
static set *emitted = NULL;
-static void showAllMemmaps(FILE *of); // XXX: emits initialized symbols
+static void showAllMemmaps (FILE *of); // XXX: emits initialized symbols
static void
emitPseudoStack(struct dbuf_s *oBuf, struct dbuf_s *oBufExt)
extern unsigned long pic16_countInstructions();
set *pic16_localFunctions = NULL;
-set *rel_idataSymSet=NULL;
-set *fix_idataSymSet=NULL;
-
-extern DEFSETFUNC (closeTmpFiles);
-extern DEFSETFUNC (rmTmpFiles);
+set *rel_idataSymSet = NULL;
+set *fix_idataSymSet = NULL;
extern void pic16_AnalyzeBanking (void);
-extern void pic16_OptimizeJumps ();
-extern void pic16_OptimizeBanksel ();
-extern void pic16_InlinepCode(void);
-extern void pic16_writeUsedRegs(FILE *);
+extern void pic16_OptimizeJumps (void);
+extern void pic16_OptimizeBanksel (void);
+extern void pic16_InlinepCode (void);
+extern void pic16_writeUsedRegs (FILE *);
extern void initialComments (FILE * afile);
extern void printPublics (FILE * afile);
-void pic16_pCodeInitRegisters(void);
-pCodeOp *pic16_popCopyReg(pCodeOpReg *pc);
-extern void pic16_pCodeConstString(char *name, char *value, unsigned length);
+void pic16_pCodeInitRegisters (void);
+pCodeOp *pic16_popCopyReg (pCodeOpReg *pc);
+extern void pic16_pCodeConstString (char *name, char *value, unsigned length);
/*-----------------------------------------------------------------*/