+2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
+
+ * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
+ added condition to macro, fixes bug 1666080
+
2007-03-02 Raphael Neider <rneider AT web.de>
* src/pic/gen.c (genGenPointerSet): removed bogus assertion
* src/SDCCglobl.h,
* src/SDCCmain.c,
- * src/mcs51/gen.c,
- * src/mcs51/rtrack.c,
+ * src/mcs51/gen.c,
+ * src/mcs51/rtrack.c,
* src/ds390/gen.c,
* doc/sdccman.lyx: added --no-gen-comments
* src/mcs51/peeph.def: added 192.b, disabled 185
if (TARGET_IS_MCS51)
{
options.float_rent++;
- }
- /* set up external stack location if not explicitly specified */
- if (!options.xstack_loc)
- options.xstack_loc = options.xdata_loc;
+ /* set up external stack location if not explicitly specified */
+ if (!options.xstack_loc)
+ options.xstack_loc = options.xdata_loc;
+ }
/* if debug option is set then open the cdbFile */
if (options.debug && fullSrcFileName)
}
#define WRITE_SEG_LOC(N, L) \
- segName = Safe_strdup(N); \
- c = strtok(segName, " \t"); \
- fprintf (lnkfile,"-b %s = 0x%04x\n", c, L); \
- if (segName) { Safe_free(segName); }
+ if (N) \
+ { \
+ segName = Safe_strdup(N); \
+ c = strtok(segName, " \t"); \
+ fprintf (lnkfile,"-b %s = 0x%04x\n", c, L); \
+ if (segName) { Safe_free(segName); } \
+ }
if (!(TARGET_Z80_LIKE)) /*Not for the z80, gbz80*/
{