* sim/ucsim/cmd.src/cmdlex.l: added #include <stdio.h>
* support/cpp/sdcpp-opts.c: fixed warning:
unknown conversion type character 'm' in format,
use strerror(errno) instead of %m glibc extension format specifier
* src/SDCCsymt.c: fixed warning:
suggest parentheses around operand of '!' or change '&' to '&&' or
'!' to '~'
* src/pic16/pcode.c, src/pic16/glue.c: fixed warning:
unknown conversion type character 'h' in format,
replaced hh printf format specifier with parameter casting to
unsigned char
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5438
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2009-04-27 Borut Razem <borut.razem AT siol.net>
+
+ * fixed GCC 4.4.0 mingw compilation:
+ * sim/ucsim/cmd.src/cmdlex.l: added #include <stdio.h>
+ * support/cpp/sdcpp-opts.c: fixed warning:
+ unknown conversion type character 'm' in format,
+ use strerror(errno) instead of %m glibc extension format specifier
+ * src/SDCCsymt.c: fixed warning:
+ suggest parentheses around operand of '!' or change '&' to '&&' or
+ '!' to '~'
+ * src/pic16/pcode.c, src/pic16/glue.c: fixed warning:
+ unknown conversion type character 'h' in format,
+ replaced hh printf format specifier with parameter casting to
+ unsigned char
+
+support\cpp\sdcpp-opts.c
+
2009-04-19 Philipp Klaus Krause <pkk AT spth.de>
* device/lib/z80/shift.s,
device/lib/z80/memmove.s,
%{
+#include <stdio.h>
#include "cmdlexcl.h"
#include "cmdpars.h"
srcScls = SPEC_SCLS (src);
/* Compensate for const to const code change in checkSClass() */
- if (!level & port->mem.code_ro && SPEC_CONST (dest))
+ if ((!level & port->mem.code_ro) && SPEC_CONST (dest))
{
if (srcScls == S_CODE && destScls == S_FIXED)
destScls = S_CODE;
for(i=0;i<=(pic16->cwInfo.confAddrEnd-pic16->cwInfo.confAddrStart);i++)
if(pic16->cwInfo.crInfo[i].emit) //mask != -1)
- fprintf (of, "\t__config 0x%x, 0x%hhx\n",
+ fprintf (of, "\t__config 0x%x, 0x%02x\n",
pic16->cwInfo.confAddrStart+i,
- pic16->cwInfo.crInfo[i].value);
+ (unsigned char) pic16->cwInfo.crInfo[i].value);
}
void pic16_emitIDRegs(FILE *of)
for(i=0;i<=(pic16->idInfo.idAddrEnd-pic16->idInfo.idAddrStart);i++)
if(pic16->idInfo.irInfo[i].emit)
- fprintf (of, "\t__idlocs 0x%06x, 0x%hhx\n",
+ fprintf (of, "\t__idlocs 0x%06x, 0x%02x\n",
pic16->idInfo.idAddrStart+i,
- pic16->idInfo.irInfo[i].value);
+ (unsigned char) pic16->idInfo.irInfo[i].value);
}
pcop->name = NULL;
//if(lit>=0)
- sprintf(s,"0x%02hhx", (unsigned char)lit);
+ sprintf(s,"0x%02x", (unsigned char) lit);
//else
// sprintf(s, "%i", lit);
if (out_stream == NULL)
{
- fatal_error ("opening output file %s: %m", out_fname);
+ fatal_error ("opening output file %s: %s", out_fname, strerror(errno));
return false;
}
{
deps_stream = fopen (deps_file, deps_append ? "a": "w");
if (!deps_stream)
- fatal_error ("opening dependency file %s: %m", deps_file);
+ fatal_error ("opening dependency file %s: %s", deps_file, strerror(errno));
}
}
if (deps_stream && deps_stream != out_stream
&& (ferror (deps_stream) || fclose (deps_stream)))
- fatal_error ("closing dependency file %s: %m", deps_file);
+ fatal_error ("closing dependency file %s: %s", deps_file, strerror(errno));
if (out_stream && (ferror (out_stream) || fclose (out_stream)))
- fatal_error ("when writing output to %s: %m", out_fname);
+ fatal_error ("when writing output to %s: %s", out_fname, strerror(errno));
}
/* Either of two environment variables can specify output of