1 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3 * src/SDCCast.c (decorateType): fixed bug #898889,
4 cast result of a literal complement too
6 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
8 * src/SDCCicode.c (geniCodeLogic): made it static,
9 (geniCodeLogicAndOr): added in order to fix bug #905492,
10 (ast2iCode): fixed bug #905492
11 * support/regression/tests/bug-905492.c: added
12 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
13 (processParms): fixed bug #927659: don't copy parms, this will clear
15 * support/regression/tests/bug-927659.c: added
17 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
19 * src/SDCCast.c (addCast): don't cast float to char
20 * device/lib/libsdcc.lib: added _memmove
22 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
24 * device/lib/large/Makefile: fixed parallel execution by
25 replacing `make` by `$(MAKE)`
27 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
29 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
30 offsets (fixes bug #923936)
32 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
34 * device/lib/small/Makefile: fixed parallel execution by
35 replacing `make` by `$(MAKE)`
37 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
39 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
41 2004-03-23 Scott Dattalo <scott AT dattalo.com>
43 * src/pic/gen.c (genCpl): multi-byte complements were not working.
44 * src/regression/Makefile: Regression test was not running.
46 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
48 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
49 complement if possible
50 * src/SDCCval.c (valComplement),
51 * src/SDCCicode.c (operandOperation): fixed complement of literal
52 * support/regression/tests/onebyte.c (testComplement): added
54 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
56 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
57 return an optimized tree; actually replace actParm with the new tree
58 * src/SDCCast.h: added some parantheses to remove side effects
59 * support/regression/tests/bug-920866.c
61 2004-03-21 Scott Dattalo <scott AT dattalo.com>
62 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
63 Bit operands were not being handled properly in the pic14 port.
64 (now src/regression/add.c passes again).
66 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
68 * src/SDCC.y (labeled_statement): case and default no longer require
69 a following statement (RFE #893037)
71 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
73 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
74 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
75 disabled (fixes bug #916294)
76 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
77 "mov a,acc"; patch provided by Lenny Story
78 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
80 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
82 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
84 * src/ds390/gen.c (genFunction, genEndFunction),
85 * src/ds390/ralloc.c (ds390_assignRegisters),
86 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
87 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
88 pushed if there are parameters passed on the stack. Also, a cleaner
89 way to decide if r0/r1 should be pushed/popped. (Together they fix
92 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
95 * device/lib/mcs51/crtpagesfr.asm,
96 * device/lib/mcs51/crtxinit.asm,
97 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
98 to avoid confusion with Si Lab's SFRPAGE register.
100 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
102 * src/SDCCglue.c (emitMaps): allow public sfr variables
103 * src/SDCCglue.c (initialComments): include compiler build date
104 with compiler version and put the timestamp of the generated
105 assembly file on a serperate line to be less confusing.
106 * src/port.h: added genInitStartup hook
113 * src/z80/main.c: genInitStartup initialize as NULL (default to
114 historical behaviour)
115 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
116 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
117 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
118 library instead of hard coding it into the compiler.
119 * support/regression/ports/mcs51-stack-auto/spec.mk,
120 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
121 * device/lib/mcs51/Makefile,
122 * device/lib/small/Makefile,
123 * device/lib/large/Makefile,
124 * device/lib/mcs51/crtpagesfr.asm,
125 * device/lib/mcs51/crtstart.asm,
126 * device/lib/mcs51/crtxclear.asm,
127 * device/lib/mcs51/crtxinit.asm,
128 * device/lib/mcs51/crtclear.asm,
129 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
130 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
131 and into user configurable files.
132 * device/lib/clean.mk: clean mcs51 directory too
133 * support/regression/tests/longlit.c: added static to T1 declaration
134 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
135 accesses in the initialization code
137 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
139 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
140 OSCTRIMVAL as noted in bug #916008
142 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
144 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
145 in loops with multiple exits (reported as incorrect registers
146 used by Martin Helmling in Sdcc-user list)
148 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
150 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
151 made ds390 register extensions look less like error messages
153 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
155 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
156 reported by Adam Wozniak in Sdcc-user list
158 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
160 * src/SDCCast.c (decorateType): fixed with bug and promotion in
161 arithmetic optimizations, added debug output
163 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
165 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
166 * sdcc.spec: updated and split sdcc into 3 rpms
167 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
168 needed for literals of LEFT_OP and '+'
169 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
170 introduced RESULT_TYPE_NOPROM
171 (geniCodeMultiply): fixed logic for decision if mul is optimized to
173 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
174 limited promotion to int only for '*'
175 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
177 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
179 * src/pic16/gen.c (genSkip),
180 (genc16bit2lit), (gencjneshort): commented out
181 (is_LitOp): new helper function, checks operand type
182 (genCmpEq): rewritten
184 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
186 * support/regression/tests/bug-908454.c: added
188 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
190 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
191 * src/SDCCicode.c (usualBinaryConversions): op needs int type
192 (geniCodeCast): cosmetic, don't preserve bit storage class
193 (geniCodeLeftShift): added promotion
194 (geniCodeLogic): fixed regression
195 * src/SDCCsymt.c (computeTypeOr): accept bits too
196 (compareType): 2nd part of fix for bug #908454, needed for bitfields
198 2004-03-07 Borut Razem <borut.razem AT siol.net>
200 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
202 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
204 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
205 version of pic16_genPackRegisters which does not check if ic is a
207 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
208 function cause string1.c regression test fails
210 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
212 * sim/ucsim/configure.in,
213 * sim/ucsim/configure,
214 * sim/ucsim/doc/Makefile.in: use docdir
215 * src/SDCC.y: fixed sbit atrributes
216 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
217 * src/SDCCast.c (decorateType): |^& need special promotion handling
219 * src/SDCCsymt.h: moved definition of RESULT_TYPE
220 * src/SDCCsymt.h (computeType),
221 * src/SDCCicode.c: computeType() needs op
222 * src/SDCCsymt.c (checkTypeSanity),
223 * doc/sddman.lyx: "plain" bitfields are unsigned
224 * src/SDCCsymt.c (computeTypeOr): added
225 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
227 * src/SDCCval.c (val*): computeType() needs op
228 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
229 * support/regression/tests/onebyte.c: added tests for |^&
231 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
233 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
234 for writing icode into asm output.
236 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
238 * src/pic16/device.c: added some debug lines enabled
239 with macro DEBUG_CHECK,
240 * src/pic16/genarith.c: more debug in genPlus,
241 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
242 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
243 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
244 * (aopForSym): onStack symbols are re-placed in data memspace,
245 and onStack flag is cleared,
246 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
247 copy temporary pcodeop,
248 * (genPcall): added warning for not updating PCLATU,
249 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
250 always true for pic16 port,
251 * (genMultOneWord): NEW, supports integer multiplication,
252 * (genMult): modified to call genMultOneWord,
253 * (ifxForOp): added warning when return NULL,
254 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
255 flag is set before call to operandFromSymbol for implicit
257 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
258 options.intlong_rent are set by default,
259 * (_hasNativeMulFor): modified to allow port generation of integer
261 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
262 set regtype to REG_SFR for all registers, restricting seting the
263 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
265 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
267 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
268 more than 500 times in the regression tests
270 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
272 * support/Util/SDCCerr.h,
273 * support/Util/SDCCerr.c,
274 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
276 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
277 for symbol conflicts.
278 * support/valdiags/tests/enum.c,
279 * support/valdiags/tests/tentdecl.c,
280 * support/valdiags/tests/struct.c: expect possible error messages
281 referring to original symbol definitions.
282 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
284 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
286 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
288 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
290 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
292 * src/pic16/ralloc.c (newReg): fixed bug #908929
294 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
296 * src/ds390/gen.c: added missing #include "main.h"
298 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
300 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
301 checking if symbol is already in set,
302 * src/pic16/device.h: prototype for checkAddSym,
303 * src/pic16/gen.c: (_G): added entry interruptvector,
304 * (assignResultValue): removed some commented out lines,
305 * (genFunction): check for ISR via sym->type, absolute section for
306 interrupt code is created via a new pBlock, the goto instruction is
307 placed now correctly at the interrupt vector position, changed all
308 references from ivec to _G.interruptvector,
309 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
310 is the interrupt is a high priority one, same for return from ISR,
311 * src/pic16/glue.c: changed all calls of addSetHead for publics and
312 externs to calls of checkAddSym,
313 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
314 pic16_pcode_verbose flag is set,
315 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
316 * src/pic16/pcoderegs.c: message about how many registers are saved
317 will only be emitted if pic16_pcode_verbose flag is set,
319 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
321 * src/ds390/ralloc.h,
322 * src/ds390/ralloc.c (ds390_regWithIdx),
323 * src/ds390/gen.c (emitcode),
325 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
326 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
327 ds390operandCompare, getRegsRead, getRegsWritten,
328 initializeAsmLineNode): customized instruction size calculation for
329 ds390, started basis for some register optimizations
330 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
331 corresponding assembly output
332 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
333 missing push/pop of r0/r1. Optimized push/pops
335 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
337 * src/mcs51/main.c (instructionSize): fixed ACALL size
338 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
340 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
342 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
343 the sorting of rlist with NULL elements
344 * (print_idataType, print_idata): NEW to create idata sections
345 * src/pic16/device.h: idataSymSet new variable
346 * src/pic16/gen.c (genFunction): fixed some bugs in string
347 comparing, improved the absolute section creation for ISRs,
348 added FSR0L/FSR0H in registers that are saved in an ISR,
349 * (genInline): fixed the processing of inline snippets,
350 now they undergo no process by the peephole optimizer
351 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
352 are placed in idataSymSet,
353 * (pic16emitStaticSeg): extern symbols are added in externs,
354 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
355 switching when aboslute variables are placed in access bank memory
356 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
357 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
358 commented out with #if,
359 * (pic16_packRegisters): reintroduce the check for CAST because some
360 symbols are not correctly handled,
361 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
362 pCodeInstruction instead of pCode,
363 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
364 pCodeAsmDir definition,
365 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
366 directive, then the argument directive is emitted without the leading
367 tab, hack for inline labels which must be in the first column,
368 * (compareLabel,pic16_findNextInstruction),
369 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
370 * (insertBankSwitch): modified for the new pCodeAsmDir,
372 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
373 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
375 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
377 * (pushSide): commented out with #if,
378 * (assignResultValue): fixed some typos in saving
380 * (genPcall): FIXED and sync'ed with genCall,
381 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
382 * (genNearPointerGet): fixed to handle some more cases,
383 implementation scheme via table reads,
384 * (genConstPointerGet): modified to access code memory correct,
385 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
386 and improved to handle some cases
387 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
388 instead of "RETLW" for init data
389 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
390 not IN_DIRSPACE, work around to reduce bank switching when aboslute
391 variables are placed in access bank memory (<0x80 and >=0xf80),
392 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
393 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
394 TBLWT_POSTDEC,TBLWT_PREINC
395 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
396 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
398 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
399 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
400 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
401 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
403 2004-02-29 Borut Razem <borut.razem AT siol.net>
405 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
406 support/Util/findme.h, support/Util/system.h: enhance binary relative
407 search for lib and include by using findProgramPath()
409 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
412 * src/SDCCpeeph.c (pcDistance),
414 * src/mcs51/ralloc.h,
415 * src/mcs51/ralloc.c (mcs51_regWithIdx),
417 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
418 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
419 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
420 size calculation port specific, started basis for some register
422 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
423 missing push/pop of r0/r1. Optimized push/pops
424 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
425 * device/lib/_modsint.c (_modsint),
426 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
427 and stack version so regression tests pass
429 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
431 * src/Makefile.in (dep): include SLIBOBJS in dependency check
432 * src/SDCCast.c (decorateType): catch another small optimization
434 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
435 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
436 modified to finally use computeType() all over SDCC,
437 see Feature Request #877103
438 * src/SDCCval.h: cosmetic
439 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
440 valCompare(); regression tested in muldiv.c
441 * support/regression/tests/muldiv.c (testMod): mod sign follows
444 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
446 * src/SDCCast.c (decorateType): fixed bug #902362
447 * doc/INSTALL.txt: fixed install instructions for win32
449 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
451 * device/include/Makefile.in (install): fixed by replacing spaces
454 * doc/INSTALL.txt: updated for release
455 * doc/sdccman.lyx: added warning for --xstack being buggy
457 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
459 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
460 to eliminate build warnings.
461 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
463 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
464 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
466 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
467 removed -penable-stack, added comment for stack pragma, added
468 warning for not initializing the stack/frame registers, removed
469 comment at interrupts section
471 Stack is made permanent, there is no ability to disable stack usage.
472 * src/pic16/device.h,
473 * src/pic16/device.c: removed all references to USE_STACK macro,
474 * src/pic16/device.c (pic16_dump_section): when no elements in
475 rlist, free rlist before return,
476 * (pic16_dump_int_registers): NEW, internal registers are a new set
477 of general purpose registers reused by each function,
478 * (checkAddReg): returns 1 if registers is added to set,
479 * (pic16_groupRegistersInSection): when a registers is of type
480 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
481 * src/pic16/device.h: memRange and Assigned Memory are deleted,
482 SRCASECMP macro is moved here from device.c
483 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
484 PO_PCLATU, PO_PRODL, PO_PRODH,
485 * (pic16_pCodeOpType, genMinus,
486 changed compares to "a" register, with AOP_ACC,
487 * (pic16_genPlus): fixed some bugs and indented properly,
488 * (pic16_addSign): changed size to size+offset in the MOVWF
490 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
491 multiply 8-bit operand by literal, result is 8-bit,
492 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
493 multiply 2 8-bit operand, result is 8-bit,
494 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
496 * src/pic16/gen.c: changed accUse to contain WREG only,
497 * (pic16_emitcomment): renamed to pic16_emitpcomment,
498 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
499 true, do not use immediate addressing any more unless sym is a
500 pointer in codespace,
501 * (aopForRemat): do not use immediate addressing when symbol not in
502 codespace and when symbol's address is requested,
503 * (aopOp): for-loop in if(sym->accUse) is modified for the new
505 * (aopGet): added case for AOP_ACC and don't return "accumulator
506 bug" but WREG instead,
507 * (popGetTempReg): pushes contents of temporary register in stack,
508 * (popReleaseTempReg): pops contents of temporary register from
509 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
510 * (pic16_popGet): separated case AOP_ACC to return register WREG
511 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
512 or PO_IMMEDIATE and initializes their instance/offset appropriately,
513 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
514 the use of immediate pointers to certain cases only.
516 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
517 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
518 * (assignResultValue, genCall, genRet): modified to use the new
519 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
520 genPcall is still broken,
521 * (genFunction): added code to create 'A' type pBlocks when
522 interrupt functions are generated, code not extensively tested yet,
523 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
524 * (genEndFunction): modified so ISRs pop stored registers from stack,
525 * (genMultOneByte): cleanup,
526 * (AccRsh): added flag andmask, to and result with appropriate mask,
527 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
528 * (genDataPointerGet): fixed and reenabled its use,
529 * (genNearDataPointerGet): bugs fixed,
530 * (genDataPointerSet): bugs fixed,
531 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
532 pic16_DumpSymbol, pic16_DumpOp,
533 * src/pic16/genutils.h: function prototypes for the above functions,
534 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
536 * (pic16emitRegularMap): many many many improvements, but needs a
538 * src/pic16/main.c: enable_stack in pic16_options is removed,
539 * (_pic16_parseOptions): removed command line options -penable-stack,
540 * (_process_pragma): emit stack symbol only when stack pragma is
542 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
543 redirected to FSR0L/FSR0H pair,
544 * (pic16_get_op, pic16_get_op2): modifications and improvements,
545 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
546 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
548 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
549 * (dumpPicOptype): NEW,
550 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
551 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
552 with movff instruction,
553 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
554 added pic16_int_regs, some packRegsFor* functions are commented out,
555 because produce errors,
556 * src/pic16/NOTES: minor modifications
558 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
560 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
561 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
563 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
564 * as/mcs51/lkaomf51.c: fixed bug #895763
566 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
568 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
570 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
572 * doc/sdccman.lyx: added details about the HC08 storage classes and
573 interrupts, fixed the register usage info for z80 & gbz80
575 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
577 * doc/sdccman.lyx: added more pic16 port documentation
578 * device/include/pic16/: added header pic18fregs.h
580 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
582 * doc/sdccman.lyx: added Vangelis' contribution
584 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
586 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
587 extend to the next CALL or PCALL, not just to the next CALL.
589 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
591 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
593 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
595 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
596 bug #895752 and a better fix for bug #716790
598 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
600 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
602 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
604 * doc/sdccman.lyx: minor changes, minor changed
606 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
608 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
609 which can't handle SDCC_NEWONEBYTEOPS,
610 (geniCodeMultiply): removed conversion from mult to shift for pic14
613 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
616 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
617 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
618 thus fixing bug #895406
620 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
622 * device/lib/_modsint.c,
623 * device/lib/_modslong.c: sign follows divisor only
624 * src/hc08/gen.c (genMultOneByte): if result size is 1,
625 signs or signedness can be ignored
626 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
627 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
628 added optimization for IFX,
629 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
631 reenabled optimization for IFX, which was removed on 2004-01-11
632 * src/SDCCast.h: added return type IFX
633 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
634 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
635 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
636 SDCC_OLDONEBYTEOPS selects the old behaviour
637 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
638 changed again and commented promotion rule
639 * src/SDCCval.c (valDiv): promotion no longer necessary
640 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
641 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
643 * support/regression/tests/onebyte.c: added
645 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
647 * gen.c (genInline): reverted to old code for assemnling inline
648 code because of bug reported James Chadd
650 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
652 * ralloc.h: missing declarations from previous patch,
653 seems that patch for ralloc.h was never applied, fixed
655 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
656 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
660 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
661 indirect addressing. Marked FSR0 as deprecated
662 * gen.c (pointerCode): commented out, not needed now
663 (pic16_popGet2p): new MOVFF helper function
665 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
666 (shiftRLong): removed duplicate debugging info
668 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
670 * src/ds390/gen.c (genNearPointerGet),
671 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
672 optimization with bits, but not bitfields.
673 * src/ds390/ralloc.c (packRegisters),
674 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
676 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
678 * src/SDCCcse.c (algebraicOpts): copy operands before modification
680 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
683 * src/SDCCicode.c (operandFromSymbol),
684 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
685 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
686 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
687 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
688 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
689 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
691 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
692 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
693 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
694 * src/SDCCsymt.c (newSymbol),
695 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
698 * src/SDCCval.c (newiList): fixed bug #885705
700 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
702 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
703 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
705 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
707 * device/include/c8051f120.h,
708 * device/include/c8051f300.h,
709 * device/include/c8051f310.h: added/updated header files for Silicon
710 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
711 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
712 in new section Submitting patches
714 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
716 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
717 genFarPointerGet, genCodePointerGet, genGenPointerGet,
718 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
720 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
721 genFarPointerGet, genCodePointerGet, genGenPointerGet,
722 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
724 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
725 genFarPointerGet, genCodePointerGet, genGenPointerGet,
726 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
728 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
729 genFarPointerGet, genCodePointerGet, genGenPointerGet,
730 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
731 genGenPointerSet): fixed bug #892400
732 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
733 to eliminate build warnings.
734 * src/SDCCast.c (processParms),
735 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
737 * support/valdiag/valdiag.py: added GCC to the list of defines active
738 when compiling with gcc
740 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
742 * support/Util/SDCCerr.h,
743 * support/Util/SDCCerr.c,
744 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
745 with an incomplete type (fixed bug #883734)
746 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
748 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
750 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
752 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
754 * src/SDCCast.c (decorateType),
755 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
756 function pointer implementation
757 * support/regression/tests/funptrs.c: added tests to verify both forms
758 of function pointers work correctly. Added tests to verify parameters
759 are passed in the correct order.
761 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
763 * device.c (regCompare): registers are sorted by ascending
764 address and increasing size,
765 * main.c (_pic16_finaliseOptions): removed the declaration
766 of compiler macro MCU. Now a macro of the format pic18fxxxx
767 will be defined from the command line
769 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
770 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
772 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
773 PCOP_RLCF was overwritten!
774 * gen.c (genSkip): commented out calls to pic16_emitcode,
775 * (genCmpEQ): fixed "long" compares, only high word did get compared,
777 * (genRRC): added debugging info,
778 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
779 overwritten while shifting,
780 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
781 overwritten while shifting,
784 * (shiftLLeftOrResult),
785 * (shiftRLeftOrResult),
787 * (shiftLLong): Implemented with pic16_emitpcode
788 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
789 * (genLeftShift): Fixed bug, operand for shift by variable always
790 was "and"ed with 0x0f,
791 * (genLeftShiftLiteral),
793 * (genRightShiftLiteral): added debugging info,
794 * (genrshFour): added comment,
795 * (genRightShift): determined signedness from operand "left"
798 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
800 * src/SDCCicode.c (geniCodeParms),
801 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
802 function pointers, fixed function pointer bugs #861242 and #861896
804 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
806 * device/include/c8051f000.h,
807 * device/include/c8051f120.h,
808 * device/include/c8051f300.h: added header files for Silicon
809 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
811 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
813 * src/SDCCast.c (processParams): added new type flow and restructured
814 (gatherAutoInit): added new type flow
815 (addCast): cosmetic changes
816 (getLeftResultType): added new type flow for array indices, patch
817 provided by Stas, see FR #877103
818 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
819 array index patch by Stas
820 * src/SDCCast.h: added prototype getResultTypeFromType()
822 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
823 * src/pic/glue.c (pic14emitStaticSeg),
824 * src/pic16/glue.c (pic16emitStaticSeg),
825 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
826 for initialization of symbols
827 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
828 * support/Util/SDCCerr.h:
829 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
830 * .version: bumped version number to 2.3.8
831 * device/include/Makefile.in (install),
832 * doc/Makefile (install): changed to 'rm `find ...`' construct to
835 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
837 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
838 Slade Rich fixed an optimization bug
839 * src/pic/pcodepeep.c,
840 * src/pic/pcoderegs.c
841 * doc/Makefile (install): added test for directory
843 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
845 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
846 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
847 * src/pic/ralloc.c (getRegPtr, getRegGpr),
848 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
849 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
850 * as/mcs51/asexpr.c (term),
851 * as/hc08/asexpr.c (term): fixed bug #887146
853 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
855 * src/z80/gen.c (genMult): handle single byte result product
856 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
857 DUMMY_READ_VOLATILE (fixed bug #886367)
859 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
861 * support/regression/tests/libmullong.c: fixed logic, on little endian
862 hosts we ended without a mullong_wrapper()
864 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
866 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
867 virus/worm forged address usage.
869 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
871 Fixed promotion, it should be done on AST level:
872 * src/SDCCast.c (addCast): added promotion to int
873 (decorateType): updated call to upCast()
874 * src/SDCCicode.c (geniCodeLeftShift): removed call to
875 usualUnaryConversions()
877 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
879 * support/regression/tests/literalop.c (mulWrapper): Added a
880 wrapper to remove integer overflow warnings.
882 * support/regression/tests/float_trans.c: Made work on host.
884 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
887 * support/regression/generate-cases.py (main): Changed from inline
890 * doc/Makefile (install): Changed to depth first to get rid of
891 missing directory install warning.
893 * as/Makefile (install-doc): Made work on Mac.
895 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
897 * src/SDCCast.c: added an additional type flow in decorateType() of
898 opposite direction, see feature request #860006; it's enabled at runtime
899 by setting the environment variable SDCC_NEWTYPEFLOW
900 * src/SDCCast.h: changed prototype of decorateType()
901 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
902 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
903 'char' to 'int' can be omitted, if both operands are 'unsigned char';
904 see feature request #877103
905 * src/SDCCval.c: updated call of decorateType()
906 (valBitwise): fixed bug #882876
907 (valMinus): added promotion
908 (valLogicAndOr): result is unsigned
909 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
910 * src/SDCCsymt.c (computeType),
911 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
912 must not cause an unsigned operation
913 * src/pic/glue (pic14emitRegularMap),
914 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
916 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
918 * src/pic/pcode.c (PCodeID): commented out left over debug code
920 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
922 * support/valdiag/tests/overflow.c: added shift tests
930 * src/pic/pcodepeep.c,
931 * src/pic/pcoderegs.c,
933 * src/pic/ralloc.h: applied patch from Slade Rich;
934 added support for multiple code pages and multiple RAM banks on the
935 PIC 14 port. The ASM files now no longer simply assume all the
936 code / RAM are in the same page / bank. This means the linker can
937 safely allocate code/RAM of separate ASM files to different pages/banks.
938 * doc/sdccman.lyx: added Slade's tips
939 * src/mcs51/peeph.def: fixed bug #880768
941 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
943 * src/hc08/ralloc.c (rematStr): fixed bug #879282
944 * src/SDCCast.c (decorateType): fixed bug #880197
946 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
948 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
951 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
952 strtof is not part of C89 and isn't included with Mac OS X.
954 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
956 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
957 shiftL2Left2Result): fixed bug #879326
958 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
959 (genMultOneByte): fixed bug in signed vs unsigned multiplication
960 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
961 address fetch for clr instruction
962 * device/lib/hc08/_mulint.c: created optimized assembly version
963 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
965 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
967 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
968 proposed in FR #877103
970 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
972 * src/SDCCval.c (cheapestVal): added missing checks
973 * src/SDCCicode.c (usualBinaryConversions): fixed condition
974 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
976 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
978 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
981 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
983 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
984 loaded with the linker search paths (-L arguments) and the libraries
985 to be linked with the current source (-l arguments). Changes
986 currently will affect only the pic16 port.
987 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
988 include path the port specific paths and port specific libraries,
989 * gplink command now contains the $3 argument,
990 * src/pic16/device.h,
991 * src/pic16/device.c,: structure PIC_device is made public and
992 renamed to PIC16_device, the same for variable Pics which is renamed
993 to Pics16. Updated all references to them.
994 * src/pic16/glue.c (pic16glue): corrected bug with code
995 initialization which bypassed the variable initializations block.
997 * device/lib/pic16/Makefile.rules: removed --penable-stack from
998 COMPILE_FLAGS and added the --nostdinc option
1000 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1002 * device/include/mc68hc908jb8.h: Register defs for another member
1003 of the hc08 family. Contributed by Bjorn Bringert - thanks!
1005 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
1007 Documenting changes from previous commits.
1008 * configure.in (version 1.56),
1009 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
1010 when generating output files to configure the pic16 library,
1011 but now I've commented it out, since gputils aren't installed in the
1012 SF compile farm, so library won't compile
1014 * device/lib/Makefile.in (version 1.56): initially I've added in
1015 target 'all' the prerequestive 'model-pic16' so it compiled the
1016 pic16 library, but now I've commented it out for the same reasons
1018 * added targets 'model-pic16' and 'objects-pic16' to compile the
1020 * added target 'port-specific-objects-pic16' to handle the
1021 generated libraries and copy them into the build/ directory
1022 * added target 'clean-intermediate-pic16' to clean intermediate
1023 files into pic16 directory
1024 * in target 'installdirs' added line to create directory pic16 in
1025 the installation path
1027 * device/include/Makefile.in (version 1.11): in target 'install'
1028 added lines to copy all header files to installation path,
1029 * in target 'installdirs' added line create directory for pic16
1030 headers in the installation path
1032 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
1034 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
1037 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
1040 * device/lib/configure.in,
1041 * device/lib/configure: fixed for autoconf 2.57
1043 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1045 * src/z80/main.c (_parseOptions): fixed the portmode= command line
1046 option so that it actually works. Made it specific to the z80, since
1047 the gbz80 doesn't have these kinds of I/O ports.
1049 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1051 * device/include/z180.h,
1052 * device/lib/_memcpy.c,
1053 * device/lib/_memmove.c,
1054 * device/lib/_mulint.c,
1055 * device/lib/ser_ir.c,
1056 * device/lib/ser_ir_cts_rts.c,
1057 * device/lib/_strcmp.c,
1058 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
1059 * src/z80/main.c (_process_pragma): add support for pragmas bank and
1060 portmode; added deprecation warning for bank= and protmode= forms.
1061 Also, guard against buffer overflow.
1062 * src/z80/gen.c (aopGet): generate better code for sfr banked read
1064 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1066 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
1067 changed interrupt vector table generation to only emit declared vectors.
1068 * device/include/Makefile.in: added missing backslash
1069 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
1071 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
1073 Mainly changes to support compilation of the device libraries
1074 * src/pic16/device.c: stack is allocated via symbol and not
1075 via literal number. The symbol is placed in the corresponding
1076 position of the data ram
1077 * (pic16_dump_section): relocatable and absolute uninitialized
1078 data are now emitted in sorted order to reduce section naming,
1079 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
1080 weren't marked as being in the access bank,
1082 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
1084 Added portion of GNU PIC Library under the directory
1085 device/include/pic16 and device/lib/pic16. These files
1086 contain the declarations of SFRs for the PIC18Fxx2 devices.
1087 The directory is initialized via configure from toplevel.
1089 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
1091 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
1092 the spilllocations to be compared correctly
1094 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
1096 * src/SDCCast.c (decorateType): fixed bug introduced today
1098 2004-01-12 Borut Razem <borut.razem AT siol.net>
1100 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
1101 doc/sdccman.lyx: upper case pragmas are deprecated
1103 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
1105 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
1106 in simpler and even better code
1108 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
1110 * src/SDCCicode.c (operandOperation): fixed bug #874819
1111 * src/SDCCast.c (decorateType): fixed
1112 char foo (unsigned long ul) { return ul > 0; }
1114 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1116 * doc/sdccman.lyx: Moved and added some sections, small changes
1117 all over. Telling LaTeX to be less strict with word spacing
1118 to better keep the right margin. Changed some notes about
1119 maintainance of the ports in section 3.2.1 - is it OK like this?
1121 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
1123 SDCC source changes:
1124 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
1125 convilong): modified to inform the pic16 port that builtin functions
1128 PIC16 PORT specific changes:
1129 * src/pic16/device.c pic16_dump_equates() added,
1130 processor registers declared internally by the port are emitted in
1131 the translation as equates,
1132 * src/pic16/gen.c: inline code is passed unprocessed to the
1134 * (pic16_popGetLit2): fnuction modified to take second operand as
1135 pCodeOp pointer and not as literal,
1136 * (popRegFromIdx): prefixed with pic16_,
1137 * (pic16_popCombine2): modified to receive already allocated pCode
1139 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
1140 * (genFunction): initializes local stack frame and pushes on stack
1141 all the registers used by this function,
1142 * (genEndFunction): restores all registers from stack and restores
1144 * src/pic16/glue.c (pic16emitRegularMap): various changes and
1146 * (pic16glue): changed the program startup sequence,
1147 * added new dbName code 'A' for functions placed in absolute section
1148 * src/pic16/main.c: added function attribute _naked,
1149 * added pragma 'code' to place a fnuction at an absolute address,
1150 * added command line arguments --debug-ralloc and --pcode-verbose,
1151 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
1152 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
1153 * (pic16_newpCodeOpLit2): modified to take the second operand as
1155 * (pic16_printpBlock): modified to emit each function in a separate
1157 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
1158 UPPER for immediate operands,
1159 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
1161 * src/pic16/peeph.def: all peepholes with movff are commented out,
1162 because there is a problem in the pcode peep optimizer,
1163 * src/pic16/ralloc.c: the register allocator can now reuse local
1164 function symbols for another function. This saves register usage.
1165 * src/pic16/ralloc.h: added flag isLocal in structure regs,
1167 Added file src/pic16/NOTES with information about program writing on
1168 the current port version.
1170 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1172 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
1173 and peephole 252 (array access)
1175 2004-01-09 Borut Razem <borut.razem AT siol.net>
1177 * src/SDCCmain.c : fixed #872250: -l command line defined library
1178 files are scanned before standard library files
1180 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1182 * src/SDCCast.c (decorateType): fixed bug #874046
1184 2004-01-09 Borut Razem <borut.razem AT siol.net>
1186 * support/scripts/sdcc.nsi: remove previous installation
1188 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1190 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
1191 bytes for last interrupt vector (mcs51)
1192 * sdcc.spec: fixed typo
1194 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1196 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
1197 gen51Code): more efficient parameter receive for --model-large
1200 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1203 * src/z80/main.c: added missed needLinkerScript flags (more than
1204 one port structure defined in these file)
1205 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
1208 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
1210 * src/SDCCmain.c: removed various references to DEFAULT_PORT
1211 * src/port.h: added flag needLinkerScript in port->linker
1212 structure to inform whether to create a .lnk file or not,
1220 * src/z80/main.c: changed appropriately to configure
1221 needLinkerScript flag
1223 * src/pic16/gen.c (genAddrOf): fixed bug #863624
1224 * src/pic/glue.c: added variable udata_section_name to
1225 override default uninitialized data segment definition for
1226 devices only with SHAREBANK memory (reported from Erik Epetrich)
1227 * (pic14emitOverlay): modified to emit a commented overlay segment
1228 directive when no overlay data exist
1229 * (picglue): modified to emit uninitialized data segment
1230 according to udata_section_name
1231 * src/pic/main.c (_pic14_parseOptions): added command line
1232 options --udata-section-name=[name] to override default
1233 udata definition name
1234 * modified _linkCmd and _asmCmd to include compiler passed
1235 arguments via -W option
1236 * src/pic16/main.c: added $l in _asmCmd, changed extension for
1237 object file from '.rel' to '.o' in port->linker structure,
1238 changed size of fptr from 2 to 3 in port structure
1240 2004-01-07 Borut Razem <borut.razem AT siol.net>
1242 * support/scripts/sdcc.nsi: update PATH
1243 * support/scripts/sdcc.ico: craeted
1245 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
1247 * device/include/Makefile.in: fix install
1248 * doc/Makefile: fix install
1250 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1252 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
1254 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
1255 how the function variable allocation summary is displayed; also
1256 include information about variables allocated to the overlay
1259 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1261 * as/mcs51/lkmain.c: Help about -Y option
1262 * as/mcs51/lkarea.c: Fixed gcc warnings
1264 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
1266 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
1268 * support/valdiag/tests/overflow.c: added
1269 * src/SDCCast.c (decorateType),
1270 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
1271 LEFT_OP (left shift)
1273 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1275 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
1276 (default behaviour).
1278 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1280 A python script to validate compiler diagnostic messages. It can be
1281 used to verify that sdcc complains about bad c source code and
1282 gives a good location of the error.
1283 * support/valdiag/Makefile,
1284 * support/valdiag/valdiag.py,
1285 * support/valdiag/tests/*
1287 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1289 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
1290 * src/SDCCsymt.c (newEnumType),
1292 * support/Util/SDCCerr.c,
1293 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
1295 * support/regression/tests/enum.c: added test for enum values that
1296 require at least 2 bytes of storage.
1298 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
1300 * src/common.h: added ifndef/define/endif macros
1301 around the header file.
1302 Bug reported from Jesus Calvino-Fraga
1304 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
1306 * sdcc.spec: updated
1307 * device/include/Makefile.in: don't install CVS directories
1308 * device/lib/Makefile.in: added removal of CVS directories after install
1309 * doc/Makefile: fixed install, added local_icons
1310 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
1311 * src/mcs51/gen.c (genRightShift): fixed bug #870788
1312 * src/ds390/gen.c (genRightShift): fixed bug #870788
1313 * src/SDCCast.c (decorateType): fixed bug #870781
1315 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
1317 PIC16 port related changes:
1318 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
1319 added variable stackPos,
1321 * gen.c: genCall, assignResultValue: added support for
1322 pushing/retrieving function parameters to/from stack,
1323 genFunction,genEndFunction: setup stack frame for the
1325 genAddrOf: will be changed according to bug 863624
1327 * added files genutils.c and genutils.h which contain gen*
1328 debugged and optimised functions extracted from gen.c
1330 * glue.c: added variable 'externs' which holds extern symbols,
1331 pic16emitRegularMap: is modified to properly handle relocatable
1332 symbols under the new scheme,
1333 pic16createInterruptVect: is modified
1334 pic16printPublics: is modified to emit 'global' assembler directives,
1335 added pic16_printExterns to print extern symbols,
1336 pic16glue: initializes stack/frame pointer in the beginning of
1337 the assembly output. Temporary hack, will be corrected later,
1338 because gplink yet does not support stack and SDCC does not
1339 yet support a type of crt0.o object to create the final binary.
1341 * Removed many lines that contain 8051 legacy code.
1342 * The code is finally placed under a 'code' directive.
1343 * Added port specific options.
1345 * _process_pragma: simplified since now we do not need *special*
1346 include file to define SFR registers. But a separate header
1347 will be needed. This will be developed later.
1348 * _pic16_parseOptions: added, parses port specific options:
1349 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
1350 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
1351 --preplace-udata-with=
1353 * _pic16_setDefaultOptions: modified to initialize section names,
1354 but hack is temporarly out of order since it needs improvement.
1355 * _pic16_genAssemblerPreamble: configuration words are emitted by
1356 their address instead of their name. This part is incomplete and
1357 supports only the 18Fxx2 devices. Other devices will emit an error
1358 during assembly since they do not contain the same set of config
1360 * _pic16_genIVT: is modified,
1362 * pcode.c: added definitions for some hardware registers that are needed
1364 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
1365 All PCI entries are updated. Now LFSR is supported.
1366 * Removed pic16_pciTRIS is mentioned by mdubuc in source
1367 * added pic16_newpCodeOpLit2 to support instructions with
1368 two literal arguments
1369 * pic16_pCode2str: corrected code that emits assembler instructions
1370 with two literal operands and those that have an access bit modifier
1371 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
1372 this fixes a bug which caused some labels to be lost, when an
1373 assembler directive was added, i.e. banksel,
1374 * pic16_FixRegisterBanking: improved logic that causes the insertion
1376 * InlineFunction: functions that are called once, are not any more
1377 inlined. This can be a port option in the future,
1379 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
1381 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
1382 hold the corresponding uninitialized symbols,
1383 * pic16_allocProcessorRegister: registers have explicit marked the
1385 * pic16_allocInternalRegister: registers are explicit marked as
1387 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
1388 processing list, so bit registers were lost,
1391 * ralloc.h: added field 'accessBank' and original symbol operand
1392 in register definition,
1393 * removed the field isMapped from register definition,
1395 ** Several functions have been removed from various sources:
1396 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
1397 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
1398 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
1399 pic16_assignRelocatableRegisters
1401 ** others have been introduced:
1402 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
1403 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
1405 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
1407 * support/scripts/inc2h.pl: changed definition of BIT_AT
1408 to emit 'sbit at' instead of 'bit at'. This was a request.
1410 PIC16 port related preliminary changes:
1411 * gen.c: prefixed function popRegFromString with
1412 pic16_ and all references to it corrected
1413 * pcode.c: all pic16_pc_* hardware registers prefixed
1414 with underscore (_),
1415 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
1416 * ralloc.c: newReg(): when register is REG_SFR then
1417 set address to rIdx,
1418 pic16_allocProcessorRegister(): marks register wasUsed=0
1419 pic16_writeUsedRegs(): added a call to assign processor
1420 registers via pic16_assignFixedRegisters
1422 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1424 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
1425 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
1426 variables in unused register banks. Also the SSEG is placed
1427 wherever there is enough space for it, and IDATA can be anywhere
1428 in internal RAM. For now compile using -Wl-Y[stack_size].
1429 The mem file is different for this option as well, since it
1430 makes no sense of talking about DSEG lenght.
1432 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
1434 * src/SDCClrange.c: fixed bug 869095 that caused segfault
1435 in certain cases, e.g. when ROM assignment, patch provided
1436 from Albert den Haan.
1438 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1440 Many signedness and type propagation fixes:
1441 * src/SDCCicode.c: made geniCodeCast() static
1442 replaced SPEC_ by IS_ (cosmetic)
1443 (operandOperation): fixed div and mod operation
1444 (usualBinaryConversions): added support for promotion of char
1445 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
1446 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
1447 (geniCodeAdd): an array index will stay unsigned, even if promoted
1449 (geniCodeArray): ditto
1450 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
1451 * src/SDCCsymt.c (computeType): added more support for char;
1452 promotion of char is selectable by promoteCharToInt, fixed signedness
1454 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1455 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1456 * src/SDCCval (val*): replaced signedness calculation by
1458 rearranged if-branches (cosmetic)
1459 (valShift): added warning W_SHIFT_CHANGED
1460 (valCompare): fixed problem with different types
1461 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
1462 * support/regression/tests/literalop.c: added many cases
1463 * support/regression/tests/ast_constant_folding.c: changed finally to
1465 * .version: new year, new version: 2.3.7
1466 * src/SDCCmain.c (main): applied patch #866468
1467 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
1468 provided by Scott Bronson
1469 * doc/sdccman.lyx: updated documentation for sdcdb
1470 updated and added chapter tips
1472 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1474 * src/SDCCsymt.h: missing from yesterday's commits
1476 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1478 * src/SDCC.y (struct_or_union_specifier),
1479 * support/Util/SDCCerr.c,
1480 * support/Util/SDCCerr.h: verify that struct & union tags are used
1483 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1485 * src/SDCCglobl.h: missing from yesterday's commits
1487 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1489 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
1490 sft_attributes, struct_declaration, parameter_declaration,
1491 type_name, start_block, declaration_list),
1492 * src/SDCC.lex (check_type): support redefinition of typedef names
1494 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1496 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
1497 aligned xdata arrays. Erik helped me with the if clause.
1499 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1501 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
1504 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1507 * src/SDCCast.c (newAst_),
1509 * src/SDCCicode.c (ast2iCode, newiCode),
1511 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
1512 expr, statement, expression_statement, selection_statement,
1513 iteration_statement, expr_opt, jump_statement): foundation for tracking
1515 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
1518 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1520 * support/Util/SDCCerr.c,
1522 * src/SDCCast.c (createCase, createDefault, decorateType),
1523 * src/SDCClabel.c (labelUnreach),
1524 * src/SDCC.y (labeled_statement, jump_statement): More improvements
1526 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
1527 (with thanks to Stas Sergeev)
1528 * device/include/time.h,
1529 * device/lib/time.c (CheckTime): suppress unreachable code warning
1531 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1533 * src/SDCCast.c (createIvalCharPtr),
1534 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
1536 * support/regression/tests/nullstring.c: tests for these two bugs
1538 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1540 * support/Util/SDCCerr.h,
1541 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
1542 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
1543 about storage class and 'at' used inside struct or union
1544 * src/SDCCBBlock.c (iCodeFromeBBlock),
1545 * src/SDCCcse.c (ifxOptimize),
1546 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
1547 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
1548 printIval, emitStaticSeg, emitOverlay),
1549 * src/SDCClabel.c (deleteIfx),
1550 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
1551 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
1552 gatherAutoInit, processParms),
1553 * support/Util/SDCCerr.h,
1554 * support/Util/SDCCerr.c (werrorfl): Support for better error location
1555 reporting for post-parse errors.
1557 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1559 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
1560 implicit casts via union; they don't work on big endian systems
1561 (possible fix for bug #861138)
1563 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1565 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
1566 * src/mcs51/main.c: fixed the fix for bug #737001
1568 2003-12-15 Borut Razem <borut.razem AT siol.net>
1570 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
1572 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1574 * support/makebin/makebin.c: put output in binary mode
1576 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1578 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
1579 xdata and data memory on startup. Set the environment variable
1580 SDCC_NOGENRAMCLEAR to disable this.
1581 * src/mcs51/peephole.def,
1582 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
1583 (allows non-interrupt and interrupt code to safely compete for a resource
1584 without the non-interrupt code having to disable interrupts)
1586 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1588 * src/SDCCicode.c (geniCodeAdd),
1589 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
1590 with valFromType if type might be a pointer and host is big endian).
1591 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
1592 types, not just integer types.
1593 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
1594 multiply defined with mismatching "at" address.
1596 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1598 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
1599 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
1600 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
1601 with embedded nulls (fixed bug #753752)
1603 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1605 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
1606 Apparently this did not see much testing (endless loop)
1608 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1610 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
1612 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1614 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
1615 gracefully handle NULL memmap pointers
1617 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1619 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
1620 instead of deleting the iCode when an operand is volatile
1621 * src/z80/gen.c (genDummyRead),
1622 * src/mcs51/gen.c (genDummyRead),
1623 * src/ds390/gen.c (genDummyRead),
1624 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
1626 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
1627 * src/SDCC.y: fixed bug #850420
1629 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1631 Applied z80 i/o port patch from Peter Townson and fixed some operators
1632 to better handle operands in A register.
1633 * device/include/z180.h
1639 * src/z80/peeph-z80.def
1643 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1645 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
1647 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1649 * device/lib/hc08/_mullong.c: Removed extra #endif
1651 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1653 * sim/ucsim/hc08.src/inst.cc,
1654 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
1656 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
1657 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
1658 * device/include/stdarg.h: fixed varargs for hc08
1659 * device/lib/Makefile.in,
1660 * device/lib/hc08/Makefile,
1661 * device/lib/hc08/_mulint.c,
1662 * device/lib/hc08/_mullong.c: fixed some endian problems
1664 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1666 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
1667 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
1668 * device/lib/_gptrget.c,
1669 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
1671 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1673 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
1674 * src/SDCCast.c (astErrors): fixed bug #846007
1675 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
1677 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1679 * src/SDCCast.c (decorateType): disabled a transformation I added in
1680 revision 1.188 (access to fields of a structure at an absolute address);
1681 it breaks with bitfields, extern declarations, and gcse analysis.
1682 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
1683 could be assigned through a pointer, so don't complain.
1684 * src/SDCCast.c (astErrors),
1686 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
1688 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
1690 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
1691 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
1692 output of __config directives, since gpasm now supports them
1693 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
1694 pre-processor macro, i.e. -DMCU=p18f452
1695 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
1696 and modified to handle 'cast' icode similarly to '=' icode
1697 * src/pic16/device.h (typedef struct PIC_device): added field
1698 'extMIface' to indicate that chip has external memory interface
1699 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
1700 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
1703 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1705 * src/SDCC.y (pointer): fixed bug #846006
1706 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
1707 * src/SDCCast.c (decorateType): fixed bug #846009
1708 * src/ds390/peeph.def,
1709 * src/ds390/gen.c (genAnd, genOr),
1710 * src/mcs51/peeph.def,
1711 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
1713 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1715 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
1722 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
1726 * src/SDCCbitv.c: added function to free a bitvector
1728 * src/SDCClrange.c: added function to recompute the liveranges
1730 * src/ds390/ralloc.c,
1731 * src/hc08/ralloc.c,
1732 * src/mcs51/ralloc.c,
1734 * src/pic16/ralloc.c,
1735 * src/xa51/ralloc.c,
1736 * src/z80/ralloc.c: recompute the liveranges after register packing
1738 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
1740 * src/SDCCloop.c (newInduction): fixed bug #845630
1742 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1744 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
1745 inadvertantly left behind from my 2003-11-12 change
1747 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1749 Updated headers I neglected to commit yesterday.
1753 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1755 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
1756 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
1757 * src/SDCCopt.c (eBBlockFromiCode),
1758 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
1759 the creation of the key hash table from the sequencing so it can be used
1760 earlier (for some GCSE bug fixes still pending)
1762 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1764 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
1765 * support/regression/tests/addsub.c: testing genPlus shortcut
1767 2003-11-15 Borut Razem <borut.razem AT siol.net>
1769 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
1771 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1773 * src/SDCCcse.c (cseBBlock): fixed bug #527779
1774 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
1775 ordering is immaterial.
1776 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
1778 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1780 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
1781 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
1782 (SIGSEV) of bug #840381
1783 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
1784 unlink new file before rename if new and old filenames are the same)
1786 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1788 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
1789 uninitialized variables) for the mcs51. Set environment variable
1790 SDCC_GENRAMCLEAR to test.
1791 xdata initialization slightly shorter
1793 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1796 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
1797 #838241 & 780691 (basicly the same bug)
1798 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
1799 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
1801 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
1803 * src/SDCCmain.c (linkEdit): "fix" #834252
1805 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1807 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
1809 * src/SDCC.y: fixed bug #819403
1811 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1813 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
1814 the reentrant attribute.
1815 * src/hc08/gen.c (genPackBits): added missing stack readjustment
1816 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
1818 * src/SDCCast.c (decorateType): fixed bug with storage class not being
1819 updated during pointer dereference; f.e. ~(((char *)1)*) was being
1820 erroneously reduced to a literal.
1821 * src/hc08/ralloc.c (packRegisters, rematStr),
1822 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
1825 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1827 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
1828 * doc/sdccman.lyx: changed from 'article' to 'book'
1829 * doc/Makefile: readded test_suite_spec and cdbfileformat
1831 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
1833 * device/include/stdlib.h: include malloc.h to comply with ANSI
1834 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
1836 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1838 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
1839 * doc/clean.mk: also remove *.out files
1840 * doc/sdccman.lyx: some additions, larger top/bottom margins
1842 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1844 * src/SDCC.y: fixed bug #837365
1845 * support/regression/tests/bitopcse.c
1846 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
1847 a symbol (might be valop instead)
1848 * device/lib/Makefile.in: added errno.c to HC08SOURCES
1849 * device/lib/clean.mk: added hc08 to the cleaning list
1851 2003-11-04 Borut Razem <borut.razem AT siol.net>
1853 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
1855 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1856 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
1857 malloc is declared in standard stdlib.h
1859 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1861 * device/lib/hc08/Makefile: need to clean .rel not .o files
1862 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
1864 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1874 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
1875 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
1876 tests (which uses the port's oclsExpense function)
1882 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
1884 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1886 * src/SDCCcse.c (ifxOptimize),
1887 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
1888 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
1889 deleting the IFX iCode.
1890 * src/hc08/ralloc.c: reduced unneeded slocs
1891 * src/hc08/gen.c: fixed bug in asmopToBoolean
1893 2003-11-04 Borut Razem <borut.razem AT siol.net>
1895 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
1896 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1897 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
1898 transferred to configure
1900 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
1902 Use headers defined in the C[++] standards:
1903 * sim/ucsim/gui.src/serio.src/fileio.cc
1904 * sim/ucsim/gui.src/serio.src/frontend.cc
1905 * sim/ucsim/gui.src/serio.src/main.cc
1906 * sim/ucsim/gui.src/serio.src/posix_signal.cc
1907 * support/Util/NewAlloc.c
1913 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1915 * Added MSVC projects for hc08 assembler and linker:
1916 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
1917 /as/hc08/link_hc08.dsp
1919 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
1921 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
1923 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
1925 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
1927 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1929 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
1931 2003-10-31 Borut Razem <borut.razem AT siol.net>
1933 * support/cpp2/cpplib.h,
1934 support/cpp2/cpplib.c,
1935 support/cpp2/cpplex.c,
1936 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
1937 to switch _asm block preprocessing on / off. Default is
1938 #pragma preproc_asm +
1940 2003-10-31 Borut Razem <borut.razem AT siol.net>
1942 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
1943 when outputting comment blocks (when executed with -C option) and
1944 _asm (SDCPP specific) blocks
1946 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1948 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
1950 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
1952 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
1954 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
1956 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
1957 * src/SDCCast.c (decorateType): fixed bug #832664
1959 2003-10-31 Borut Razem <borut.razem AT siol.net>
1961 * support\cpp2\cpplex.c: fixed for SDCPP:
1962 comments(when executed with -C option) and _asm blocks
1963 were included even if they where in skipped #if block.
1964 Applied solution from GCC cpp 3.3.2
1966 2003-10-31 Borut Razem <borut.razem AT siol.net>
1968 * src/SDCC.lex: sdcc now understands both formats:
1969 '# <line_number> <file_name>' and
1970 '#line <line_number> <file_name>'
1971 * support/cpp2/cppmain.c: sdcpp now generates the standard
1972 '# <line_number> <file_name>' instead of former
1973 '#line <line_number> <file_name>'
1975 2003-10-30 Borut Razem <borut.razem AT siol.net>
1977 * support/cpp2/cpphash.h,
1978 * support/cpp2/cpplib.h
1979 * support/cpp2/cpplex.c,
1980 * support/cpp2/cppmain.c,
1981 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
1983 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1985 Fixed a number of problems revealed by bug #827883.
1986 * src/SDCCloop.c (loopInvariants): Spill location of the
1987 result operand should be recomputed if extracted from
1988 a loop. Also, don't extract assignments of an iTemp
1990 * src/SDCCast.c (isConformingBody): loop reversal should
1991 not occur if the control variable is involved with a
1992 relational operator.
1994 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1996 * .version: bumped to 2.3.6 to reflect the big improvements
1997 made by Erik and Klaus. Thanks!
1999 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
2001 Replaced the livrange code.
2002 * src/SDCClrange.c: added new LR code
2004 * src/SDCCBBlock.h: removed remainig parts from old LR code
2005 * src/ds390/ralloc.c,
2006 * src/ds390/gen.c: minor fixes to make it work with new code
2008 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2013 * src/hc08/ralloc.c: Fix various warnings related to the hc08
2014 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
2015 (tweaked fix for bug #818696)
2017 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2019 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
2021 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2024 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
2025 * src/mcs51/gen.c (gencjneshort),
2026 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
2027 more efficient (per Scott Bronson's suggestion)
2029 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2031 Extended the semantics of the critical keyword to include
2032 individual statements. See RFE #827755 and #799831
2037 * support/Util/SDCCerr.c
2038 * support/Util/SDCCerr.h
2043 2003-10-19 Borut Razem <borut.razem AT siol.net>
2045 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
2047 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2049 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
2051 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
2052 and predecrement operand is displayed
2054 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
2056 * src/SDCCval.c (valMinus): fixed bug #826041
2058 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2060 Some hc08 related updates that I missed earlier
2061 * sim/ucsim/stypes.h
2062 * support/regression/ports/hc08/spec.mk
2064 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2066 New target "hc08" for the Motorola 68hc08 family of micros
2074 * sim/ucsim/hc08.src/*
2075 * sim/ucsim/configure.in
2076 * src/ucsim/configure
2077 * sim/ucsim/packages_in.mk
2080 * device/include/mc68hc908qy.h
2082 * device/lib/Makefile.in
2083 * support/regression/ports/hc08/*
2084 * support/regression/Makefile
2086 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2088 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
2090 * src/ds390/gen.c (genCast): fixed bug #821957
2092 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
2094 * device/lib/logf.c: "fixed" overlay bug
2095 * support/regression/ports/host/spec.mk: added m library
2096 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
2097 * support/regression/tests/float_trans: added (for Eric)
2099 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
2101 * src/mcs51/gen.c (genCpl): fixed bug
2102 http://sf.net/mailarchive/message.php?msg_id=6263915
2104 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
2106 * src/SDCCast.c (decorateType): added extended constant folding
2107 * src/SDCCsymt.c (computeType): cleanup
2108 * src/SDCCval.c (valShift): minor optimization
2109 * support/regression/tests/ast_constant_folding.c: added
2111 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2113 * src/SDCCmain.c: removed some unintended changes
2115 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2117 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
2118 * src/z80/gen.c: fixed part of bug #817589
2119 * src/SDCCsymt.c (checkFunction): fixed bug #817895
2121 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
2123 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
2134 * src/ds390/ralloc.c
2136 * src/mcs51/ralloc.c
2138 * src/pic16/ralloc.c
2141 * src/z80/gen.c: removed unused label "release:"
2143 2003-10-06 Borut Razem <borut.razem AT siol.net>
2145 * src/SDCC.lex: removed definition of unused variables
2146 save_optimize and save_options
2148 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2150 * clean.mk: removed '=' in "-maxdepth=1"
2151 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
2152 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
2154 2003-10-06 Borut Razem <borut.razem AT siol.net>
2156 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
2157 my_unput() replaced by unput()
2159 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
2161 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
2162 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
2163 type-punned pointer will break strict-aliasing rules"
2164 Old LR behaviour is again default; Klaus' LR can be choosen by
2165 defining the environment variable LRKLAUS
2169 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
2170 * clean.mk: fixed removal of files in bin/CVS/
2171 * device/lib/clean.mk: fixed removal of directories small and large
2172 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
2174 * src/SDCCval.c: removed superflous test for pedantic
2176 2003-10-05 Borut Razem <borut.razem AT siol.net>
2178 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
2179 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
2180 message "unmatched #pragma SAVE and #pragma RESTORE"
2182 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2184 * doc/sdccman.lyx: various additions and updates (interrupts, inline
2185 assembly, critical functions, atomic, nojtbound)
2187 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
2189 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
2195 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2198 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2200 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2202 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2203 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
2204 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
2206 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2208 * src/z80/gen.c (genRet): fixed bug #524753
2209 * src/z80/gen.c (genCast): fixed internal error on cast from
2211 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
2212 fix for bug #477835 to the z80
2213 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
2214 for tracking iCodes in the peephole optimizer for z80
2216 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2218 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
2219 the other part of bug #814548
2220 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
2222 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
2224 * src/SDCCcse.c: fixed part of bug #814548
2226 2003-09-28 Borut Razem <borut.razem AT siol.net>
2228 * src/asm.c: rewrite of printILine() to use temporary file instead
2230 * src/xa51/main.c: commented out declaration of int rewinds
2232 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2234 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
2236 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2238 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
2239 * src/asm.c (printILine): Fixed bug #811015
2241 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2243 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
2246 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2248 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
2249 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
2250 to correctly handle general case of AOP_PAIRPTR
2251 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
2253 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2255 * src/mcs51/ralloc.c (fillGaps),
2256 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
2257 register positioning bug)
2259 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
2261 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
2263 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2265 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
2266 genCodePointerGet, genGenPointerGet, genFarPointerSet,
2267 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
2268 (ralloc doesn't intentionally do this now, but perhaps later)
2269 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
2270 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
2271 register positioning bugs (Fixed bug #762602 and #795325)
2272 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
2274 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
2275 lines that --i-code-in-asm generates
2277 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2279 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
2280 trying to fclose a FILE* that was already closed.
2282 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2284 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
2285 of const struct should be treated as if const themselves)
2287 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
2289 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
2291 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2293 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
2294 Unix (/n) and DOS (/r/n) line terminations.
2296 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2298 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
2301 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2303 * src/mcs51/gen.c (genFunction, genEndFunction),
2304 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
2305 and restore of EA so that stack offsets to parameters are
2306 correct when using both critical and reentrant/stack-auto.
2307 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
2308 size (can be triggered in error if sloc is shared between
2309 different sized objects)
2310 * device/include/float.h: fixed macros to explicitly use
2311 unsigned long where needed
2313 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
2315 Feature req. 799831: added code to allow nesting of critical functions
2316 * src/mcs51/gen.c (genFunction, genEndFunction)
2317 * src/ds390/gen.c (genFunction, genEndFunction)
2319 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2321 * src/SDCCsymt.c (sclsFromPtr),
2323 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
2324 support for standard C idiom of memory mapped variables; for
2325 example, *((xdata int*)0x1234) = 1 is now internally equivalent
2326 to xdata int at 0x1234 tempvar = 1.
2327 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
2328 provided by Akiya ISHIDA
2330 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
2332 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
2333 * src/SDCCval.c (constVal): added reduction from int to char
2334 * src/SDCCval.c (valMult, valDiv): fixed sign handling
2335 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
2336 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
2338 * support/regression/tests/shifts.c: fixed
2340 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2342 * src/z80/gen.c (genXor): Fixed bug #805445
2344 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2346 Fixed bug #621531 (const & volatile confusion in the type chain).
2347 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
2348 refer to the const or volatile state of the pointer itself.
2360 * src/pic16/ralloc.c
2361 * support/regression/tests/const.c
2363 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2365 When checking for duplicated modules, use absolute paths
2366 instead of relative paths. Files changed:
2371 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2373 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
2375 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2377 * device/include/string.h: added size_t typedef, changed
2378 prototypes to use size_t, eliminated separate reentrant and
2379 non-reentrant declarations, added _memmove declaration
2380 * device/lib/_memcpy.c: changed to use size_t instead of int,
2381 changed /4 to >>2 to avoid division library call
2382 * device/lib/_memcmp.c,
2383 * device/lib/_memset.c,
2384 * device/lib/_strncat.c,
2385 * device/lib/_strncpy.c,
2386 * device/lib/_strncmp.c: changed to use size_t instead of int
2387 * device/lib/_memmove.c: new file (fixed bug #772294)
2388 * device/lib/Makefile.in: added _memmove.c
2389 * device/lib/z80/asm_strings.s: fixed bug #772290
2390 * support/regression/tests/bitfields.c: attempt to fix host assertion
2391 failure on amd64-unknown-linux2.2
2393 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2395 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
2396 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
2397 * as/z80/asmain.c (main): fixed bug #801766
2399 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
2401 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
2404 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2406 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
2407 reported in bug #800609
2409 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
2411 * Top header beautifications in src/pic16 directory:
2412 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
2413 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
2414 pcoderegs.h, ralloc.c, ralloc.h
2415 * main.c: added top header and GPL license notice
2416 * pcode.c: fixed the if-conditional warning
2418 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
2420 * device/lib/_mullong.c: replaced int by short for gcc
2422 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2424 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
2425 and JUMPTABLE iCodes properly now (worked by accident before)
2426 * src/mcs51/gen.c (leftRightUseAcc),
2427 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
2428 iCode properly now. Use getSize instead of nRegs since a & b
2429 aren't part of the nRegs tally.
2431 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
2433 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
2434 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
2435 before instructions that use the _STATUS register
2437 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
2439 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
2440 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
2441 fetching of the pointer
2442 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
2443 copied from genNearPointerSet()
2444 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
2445 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
2446 If they pop r0/r1 they must be called in the opposite order than aopOp().
2447 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
2448 (resp. --stack-auto), prepared for --xstack
2450 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2452 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
2454 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
2456 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
2457 these ports have their own __sdcc_external_start()
2459 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
2461 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2462 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
2463 type for bits was changed. It resulted in bit variables becoming
2464 global, which is not permitted in PIC 14 assembly output.
2466 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2468 * doc/sdccman.lyx: various additions and updates. Rearranged sections
2470 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2472 Z80 and MCS51 linkers complaint if a public symbol is defined
2473 in more than one library module:
2477 * as/mcs51/Makefile.in
2479 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2481 A few small changes that speed up the peephole optimizer.
2485 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2487 Try to make the peephole optimizer smarter by maintaining
2488 an association between the assembly source code and the
2489 iCodes that originated them. Put this information to use
2490 with a new peephole rule condition "notVolatile" so that
2491 the rules can be aggressive yet still safe.
2496 * src/mcs51/peeph.def
2498 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2502 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
2503 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
2504 if the left or right operand symbols have the accuse flag set.
2506 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2508 Changed the type of the result of the ! (NOT) operator to char;
2509 previously it returned the same type as the source. This allows
2510 us to eliminate all the genFloatNot functions (all of its target
2511 implementations were very buggy) since !float can use the same
2514 * src/SDCCicode.c (ast2iCode): ! returns char
2515 * src/mcs51/gen.c (genNot, genNotFloat),
2516 * src/ds390/gen.c (genNot, genNotFloat),
2517 * src/z80/gen.c (genNot, genNotFloat),
2518 * src/pic/gen.c (genNot, genNotFloat),
2519 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
2521 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
2523 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2524 1. Interrupt would not compile properly. Ensure PCLATH register is saved
2525 during interrupts. Ensure WSAVE is located at a shared bank address.
2526 2. Fixed page selection in some places
2527 3. Fixed BTFSS/C to where necessary use registers directly and not simply
2528 the registers name strings.
2529 4. Fixed "signed / unsigned compare" compiler warnings.
2530 5. The PIC port manages its own allocation of the general purpose
2531 registers, but makes no attempt to reuse them. As a result when
2532 compiling it soon runs out of general purpose registers. Some
2533 additional code was added to the files pcode.c and device.c to walk
2534 through the function call tree and rename the registers so that they
2544 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
2545 genPlus() & genMinus() when the result is the same as left or right
2547 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2549 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
2551 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2553 Made bitfield a distinct type from bit so that bitfields
2554 convert as per ANSI C and bits retain their traditional
2555 boolean style behaviour. Implemented bitfield support in
2563 * src/ds390/gen.c: bit v bitfield split
2564 * src/z80/gen.c: New support for bitfields
2565 * support/regression/tests/bitfields.c: reenabled z80,
2568 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2570 Rules 246.x, 247.x relate to bitfields, the others speed up
2571 access to xdata mapped I/O devices.
2573 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
2575 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2577 Cleaned up genPackBits and genUnpackBits and added two helper
2578 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
2579 for literal assignments in genPackBits (thanks to Frieder for
2585 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2587 Fixed bug #748310 (pointer to function type mishandled when the
2588 function name is omitted). Also fixed a SIGSEGV when a function
2589 attribute (reentrant, etc) is used on a non-function or on a
2590 function but misplaced before the parameter list.
2592 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
2594 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
2595 * support/Util/SDCCerr.h,
2596 * support/Util/SDCCerr.c: Added func attr misuse error msg
2598 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2600 Fixed bug #787649 by anonymous
2601 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
2602 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
2604 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2606 Fixed numerous bitfield problems.
2608 * src/SDCC.y: More bitfield related error checking
2610 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
2611 * support/Util/SDCCerr.h,
2612 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
2613 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2614 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2615 * support/regression/tests/bitfields.c: tests added
2617 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2619 Made the constant following the "interrupt" keyword optional. If
2620 omitted, the function will not automatically be given an entry
2621 in the interrupt vector table (similar to #pragma NOIV, but
2622 less syntacticly kludgy). The interrupt number is also now
2623 range checked. Also fixed a bug in the high order bit example
2630 * support/Util/SDCCerr.c
2631 * support/Util/SDCCerr.h
2634 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2636 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
2637 * src/SDCCicode.c (operandOperation): rewritten some ops
2638 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
2639 * src/SDCCsymt.c (computeType): literals are handled the same way as any
2641 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
2642 be re-activated by defining REDUCE_LITERALS)
2643 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
2644 unsigned, but are signed by default
2645 * src/SDCCval.c (constVal): rearranged
2646 * src/SDCCval.c (valMod): preliminary fix
2647 * src/SDCCval.c (valCastLiteral): use TYPE_* types
2648 * support/regression/literalop.c: added, work in progress
2650 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2652 Generate warnings for useless declarations like "char data;"
2653 that don't do what new users expect.
2656 * support/Util/SDCCerr.h
2657 * support/Util/SDCCerr.c
2659 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
2661 * src/SDCCval.c (valMult): fix overflow detection of negative int
2663 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2665 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
2667 Changes to support big endian targets:
2680 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
2682 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
2683 * device/lib/time.c: fixed warning "integer overflow in expression"
2685 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
2687 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
2688 * src/SDCCval.c (constVal): changed default to signed; hex and octal
2689 constants are unsigned; added recognition of "u" flag for unsigned
2690 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
2691 * src/SDCCval.c (valDiv, valMod): fixed signdness
2692 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
2693 signedness of modulo, left and right shift
2694 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
2695 * support/Util/SDCCerr.h: added warning W_INT_OVL
2696 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
2697 * src/SDCCast.c (ast_print): improved output of constants
2699 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2701 Fixed some warnings when building with MSVC:
2714 * support\cpp2\cpplib.c
2718 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
2720 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
2722 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2724 * support\librarian\clean.mk: Do not remove Makefile.
2725 * support\librarian\Makefile: added.
2727 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2729 Added librarian to MSVC build:
2732 * support\librarian\librarian.dsp
2734 'configure' not needed for librarian, removed:
2735 * support\librarian\configure
2736 * support\librarian\configure.in
2737 * support\librarian\config_in.h
2738 * support\librarian\Makefile.in
2740 Hopefully these ones built the librarian and the rest of sdcc properly:
2742 * Makefile.common.in
2744 Messed up 'configure', so revert to previous version:
2748 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
2750 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
2751 there, while the mantissa of a double is "only" 53 bits wide.
2753 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2755 Adding sdcclib to the build. MSVC project coming soon.
2756 Files added/changed:
2758 * support\librarian\clean.mk
2759 * support\librarian\configure
2760 * support\librarian\configure.in
2761 * support\librarian\config_in.h
2762 * support\librarian\Makefile.bcc
2763 * support\librarian\Makefile.in
2764 * support\librarian\sdcclib.c
2767 * Makefile.common.in
2771 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2773 Linker now complaints if linked modules have conflicting options, for
2774 example, one compiled using --model-large and another one compiled with
2775 --model-small. The following files were modified:
2797 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2799 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
2800 as/mcs51/lklibr.c: Generate a warning when a library is not found.
2802 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
2804 * src/z80/mappings.i: fix _mul[us][int,long] entries
2806 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2808 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
2810 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2812 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
2813 * support/regression/tests/bitopcse.c: added
2821 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2823 added support for new library format to z80, gbz80 linkers:
2829 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2831 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
2832 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
2834 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
2836 added DUMMY_READ_VOLATILE:
2845 * src/SDCCcse.c (algebraicOpts): many improvements
2846 * src/SDCCcse.h: removed algebraicOpts()
2847 * src/SDCCicode.c (picDummyRead): added
2849 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2851 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
2852 "Insufficient space in data memory".
2854 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2856 * src/mcs51/gen.c: fixed bug #771358
2857 * src/z80/gen.c: fixed bug #759087
2859 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
2861 * src/pic16/glue.c: minor cleanup by Vangelis
2863 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2865 * device/include/regc515c.h: fixed #758477
2866 * device/lib/_gptrget.c: saving some cycles in generic pointer get
2867 * device/lib/_gptrput.c: saved a few bytes
2868 * my tab spacing is 8, yours too?)
2869 * device/lib/_ser.c: process RX bytes earlier than TX bytes
2870 * device/lib/serial.c: process RX bytes earlier than TX bytes
2871 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
2873 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2875 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
2877 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2879 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
2881 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
2883 * device/lib/Makefile.in: bad fix, reverted to 1.43
2885 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
2887 * device/lib/Makefile.in: added missing z80 object files
2889 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
2891 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
2892 pic16 progress by Vangelis:
2907 * pic16/pcodepeep.c:
2910 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2912 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
2914 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2916 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
2917 added gbz80 build to MSVC project.
2918 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
2919 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
2920 from 8051 stuff and setup so it links using a .lnk file.
2922 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2924 * support/librarian/sdcclib.c: sdcc librarian.
2925 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
2928 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2930 * as/mcs51/lkmain.c: properly handle extensions in function afile.
2932 2003-07-02 Borut Razem <borut.razem AT siol.net>
2934 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
2935 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
2936 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
2937 src/xa51/main.c, src/z80/main.c:
2938 virtualization of glue() function: each port has it's own glue function,
2939 which is accessed by do_glue function pointer in PORT.general structure
2941 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
2943 * DS800C400 fun, improved ROM interface and tinibios.
2945 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
2947 * More support for DS80C400. Now includes beginning of interface to ROM.
2949 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
2951 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
2953 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2955 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
2957 2003-06-19 Borut Razem <borut.razem AT siol.net>
2959 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
2961 2003-06-19 Borut Razem <borut.razem AT siol.net>
2963 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
2964 fixed Z80 port - crt0.o: cannot open.
2966 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
2968 * support/Util/MySystem.c (merge_command): revert bad fix
2970 2003-06-18 Borut Razem <borut.razem AT siol.net>
2972 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
2974 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2976 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2977 option --use-stdout sends errors to stdout instead of stderr.
2979 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
2981 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
2983 2003-06-15 Borut Razem <borut.razem AT siol.net>
2985 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
2986 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
2987 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
2988 fixed width array of pointers replaced with sets;
2989 multiple include and lib paths ared transferred to preprocessor and linker
2990 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
2991 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
2992 fixed width array of pointers
2993 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
2994 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
2995 fixupPath(), getPathDifference()
2996 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
2997 fixed width array of pointers
2999 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
3001 * src/pic16/ralloc.c: fix warnings
3002 * src/pic16/pcode.c: fix warning
3004 2003-06-10 Scott Dattalo <scott AT dattalo.com>
3006 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
3007 know all the details, but essentially this set of changes enable
3008 the pic16 port to generate movff instructions and generate assembler
3013 * src/pic16/pcode.c:
3014 * src/pic16/device.c:
3016 * src/pic16/pcode.h:
3017 * src/pic16/pcoderegs.c:
3018 * src/pic16/ralloc.c:
3019 * src/pic16/ralloc.h:
3021 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3023 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
3024 added option --vc, so sdcc errors and warnings are compatible with
3025 Microsoft Visual Studio.
3027 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3029 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
3030 device/lib/libfloat.lib: added atof function.
3032 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3034 * doc/sdccman.lyx: updated to Lyx 1.3
3035 * doc/cdbfileformat.lyx: updated to Lyx 1.3
3036 * doc/test_suite_spec.lyx: updated to Lyx 1.3
3037 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
3039 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
3041 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
3043 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3045 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
3046 additions to the "related tools/documentation" section
3048 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
3050 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
3052 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
3054 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
3055 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
3057 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
3059 * doc/sdccman.lyx: fix double dash and other minor things
3060 * doc/Makefile: fix double dash
3062 2003-05-28 Karl Bongers(patches from Martin Helmling)
3063 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
3064 condition and ignore commands.
3066 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3068 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
3069 is in parts still quite out of date, I did changes as far as I felt makes sense
3070 for a non-native english speaker.
3071 Please feel free to add to the manual or to correct my changes.
3072 * doc/Makefile: undid touching the date of intermediate tex files.
3074 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3076 * doc/sdccman.lyx: Manual has an index now
3078 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
3080 Finalize muluint/mulsint and mululong/mulslong merging:
3081 * device/lib/_mulint.c
3082 * device/lib/_mullong.c
3083 * device/lib/gbz80/mul.s
3084 * device/lib/gbz80/stubs.s
3085 * device/lib/z80/mul.s
3086 * device/lib/z80/stubs.s
3087 * src/SDCCsymt.c (initCSupport)
3089 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3091 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
3092 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
3093 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
3094 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
3097 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3099 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
3100 the regression tests I'm not brave enough to enable 245.b, 245.c
3101 * doc/sdccman.lyx: added latex preamble for hyperref package.
3102 Using pdflatex this will give you a hyperlinked pdf file with
3103 bookmarks. (prepend '%' before /usepackage if this breaks something)
3105 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3107 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
3109 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
3111 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
3113 2003-05-21 <johan AT balder>
3115 * src/SDCCglue.c (printIval): fixed bug #739934
3117 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
3119 Applied patch from bug 737905 (renamed yylineo to mylineno):
3126 * src/pic16/pcode.c: Cleaned warnings
3127 * src/pic16/pcodeflow.c: Cleaned warnings
3128 * src/pic16/pcoderegs.c: Cleaned warnings
3130 2003-05-19 Scott Dattalo <scott AT dattalo.com>
3132 * src/pic16/pcode.c: Cleaned warnings
3133 * src/pic16/pcodepeep.c: Cleaned warnings
3134 * src/pic16/ralloc.c: Cleaned warnings
3136 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
3138 * doc/sdccman.lyx: fixed bug 739745
3139 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
3141 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
3143 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
3144 it can be defined with CFLAGS when running configure
3145 * src/SDCCmain.c: fixed compiling + linking with object files
3147 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
3149 * configure.in: configure for pic16 port,
3150 added --disable-pic16-port
3151 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
3152 * src/SDCCmain.c: linkOptions is changed to set *,
3153 added if/endif conditional macros to remove options help
3154 messages from optionsTable when a port is not configured, added
3155 support for the PIc16 port in the ports table, when executing
3156 the compiler with no port specified on command line, a default
3157 port is selected with the new macro DEFAULT_PORT which is
3158 defined in port.h, in setDefaultOptions() linkOptions is removed
3159 from initialization assignment, since now it is a set,
3160 parseCmdLine uses setParseWithComma for linkOptions, in
3161 linkEdit() linkOptions are accessed with new function indexSet()
3162 which returns the i'th item of a set variable. See SDCCset.c, in
3163 linkEdit() when calling buildCmdLine(), added linkOptions as
3164 last argument. Now users can pass arguments to gplink via the
3165 -Wl option, main() uses pic16glue() to glue up pic16 programs
3166 * src/SDCCpeeph.c: various changes to support pic16
3167 * src/SDCCset.c: added function void *indexSet(set *, int) to
3168 return the i'th item of the set
3169 * src/SDCCset.h: added function prototype for indexSet()
3170 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
3171 * src/clean.mk: added pic16 in CLEANALLPORTS variable
3172 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
3173 added macro DEFAULT_PORT
3174 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
3175 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
3177 * src/pic16/glue.c: commented out some error producing lines
3178 * src/pic16/main.c: __config directives are commented out to stop
3179 gpasm complaining and test the linkage with gplink, _linkCmd and
3180 _asmCmd changed to be more gplink and gpasm friendly
3181 * src/pic16/peeph.def: peep rule 3 is commented out, since it
3182 produced an error when parsed, peep rule 12 is added to utilize
3183 movff, but it is commented out since the pCode does not support
3184 yet a command with 2 address arguments
3186 2003-05-18 <johan AT balder>
3188 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
3189 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
3190 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
3192 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
3193 Added feature to script commands from file.
3195 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3197 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
3198 * src/SDCCutil.c: include ctype.h for win32
3200 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3202 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
3204 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
3206 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
3207 Fixed so you can set breakpoints prior to run, run does not stop
3208 on entry now. Add tbreak. Other enhancements and fixes for use
3211 2003-05-12 Borut Razem <borut.razem AT siol.net>
3213 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
3215 2003-05-11 Borut Razem <borut.razem AT siol.net>
3217 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
3218 the path of bin directory, so that PATH is the only env. variable, which has to be set
3219 in case of standard installation.
3220 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
3221 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
3222 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
3224 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
3226 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
3227 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
3228 temp files are in the port dir; clean the gen/test directory when
3229 generating new test.c
3230 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
3231 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
3232 * support/regression/tests/zeropad.c: added
3234 2003-05-09 <johan AT balder>
3236 * src/SDCCglue.c: fixed bug #597940
3238 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
3240 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
3241 cache sfr, optimize next,step, fix off by one sourceline,
3242 support ddd list function.
3243 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
3245 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
3247 * support/regression/HTMLgen.py: added compare_s2f()
3248 * support/regression/Makefile: redo 1.27
3249 * support/regression/generate-cases.py: redo 1.5
3251 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3253 * support/regression/tests/float.c: workaround 33 bit hex constant
3254 * support/regression/tests/simplefloat.c: fix division for host
3256 2003-04-29 Scott Dattalo <scott AT dattalo.com>
3258 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
3259 that tame's the PIC's over-aggressive optimizer.
3261 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3263 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
3266 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
3268 Initial support for DS80C400. "Hello world" runs on TINIm400
3271 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
3273 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
3274 * Some notes on ddd usage added in debugger/README
3275 Martin Helmling adding more features and fixes for ddd GUI debugger.
3276 Code added for nexti, stepi, up, down, and other adjustments.
3278 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
3280 * src/pic/pCodepeep.c non-wildcard asmops are now handled
3281 * src/pic/peeph.def Added two rules to optimize carry manipulation
3282 * src/pic/* removed debug printfs
3284 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3286 * debugger/mcs51/cmd.c: added header newalloc.h
3288 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3290 * as/Makefile: new EXEEXT
3291 * as/z80/Makefile: remove trailing slash of BUILDIR
3292 * as/z80/clean.mk: new EXEEXT
3293 * Makefile.common.in: add to CFLAGS (and others), don't replace it
3294 * support/cpp2/Makefile.in: new EXEEXT
3295 * src/pic/glue.c (pic14emitRegularMap): fixed warning
3297 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3299 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
3300 EXEEXT was introduced to fix all related problems with targets
3301 "clean", "install" and "uninstall"; a couple of further flaws
3302 especially with "clean" have been fixed too
3303 * as/mcs51/Makefile.in
3308 * debugger/mcs51/Makefile.in
3309 * debugger/mcs51/clean.mk
3311 * link/z80/Makefile.in
3314 * packihx/Makefile.in
3316 * sim/ucsim/Makefile
3317 * sim/ucsim/clean.mk
3318 * sim/ucsim/avr.src/Makefile.in
3319 * sim/ucsim/avr.src/clean.mk
3320 * sim/ucsim/s51.src/Makefile.in
3321 * sim/ucsim/s51.src/clean.mk
3322 * sim/ucsim/xa.src/Makefile.in
3323 * sim/ucsim/xa.src/clean.mk
3324 * sim/ucsim/z80.src/Makefile.in
3325 * sim/ucsim/z80.src/clean.mk
3326 * sim/ucsim/main_in.mk
3327 * sim/ucsim/packages_in.mk
3328 * sim/ucsim/gui.src/Makefile.in
3329 * sim/ucsim/gui.src/serio.src/Makefile.in
3330 * sim/ucsim/gui.src/serio.src/clean.mk
3333 * support/cpp2/Makefile.in
3334 * support/cpp2/clean.mk
3335 * support/makebin/Makefile
3336 * support/makebin/clean.mk
3337 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
3338 * doc/sdccman.lyx: --program-suffix no longer needed
3340 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
3342 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
3343 Martin Helmling added support for ddd GUI debugger.
3344 Code added to display assembly, set variables, and other commands
3345 to interface to ddd.
3347 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
3349 * as/Makefile: fix target clean
3350 * as/clean.mk: fix target clean
3351 * as/z80/clean.mk: fix target clean
3353 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
3355 * Makefile.common.in: added AT EXEEXT AT
3356 * configure.in: removed all mingw32 stuff
3357 * configure: rebuilt from configure.in
3358 * doc/sdccman.lyx: updated section "installation"
3359 * support/scripts/sdcc_mingw32: adapted to configure
3360 * support/scripts/sdcc_cygwin_mingw32: added
3362 2003-04-22 Scott Dattalo <scott AT dattalo.com>
3364 * src/pic Added object file support for the PIC port
3365 * src/pic Applied patch from Craig Franklin (this started the object file support)
3366 * src/regression Updated the PIC regression tests for object files
3368 2003-04-20 Borut Razem <borut.razem AT siol.net>
3370 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
3371 lklex.c: In function `getfid':
3372 lklex.c:203: warning: array subscript has type `char'
3373 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
3374 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
3375 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
3376 stack handling macros
3378 2003-04-19 Borut Razem <borut.razem AT siol.net>
3380 * "handling space characters in file path" task:
3381 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
3382 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
3383 * support/Util/MySystem.h: make it self-sufficient
3384 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
3385 src/z80/main.c, sdcc/as/mcs51/lklex.c:
3386 handling space characters in file path
3387 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
3388 (it will be used by assemblers, which have their own includes, e.g. gpasm)
3389 * support/Util/MySystem.c: handling space characters in executable's path
3391 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
3393 * as/z80/Makefile: fix permanent rebuild of z80
3394 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
3395 * support/regression/tests/bitfields.c: added Johan's bitfields.c
3397 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
3399 * src/SDCCopt.c: add special case optimization to replace modulo by
3400 a power of two with a bitwise AND.
3402 2003-04-18 <johan AT balder>
3404 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
3406 2003-04-17 <johan AT balder>
3408 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
3409 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
3411 2003-04-13 Borut Razem <borut.razem AT siol.net>
3413 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
3414 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
3415 fixed mingw problem in adl_NORMALIZE_PATH
3417 2003-04-12 Borut Razem <borut.razem AT siol.net>
3419 * fixed "#pragma SAVE/RESTORE can not be nested":
3420 * src/SDCC.lex: reworked pragma handling functions
3421 * sdcc/src/SDCCglobl.h: reworked stack handling macros
3422 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
3424 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3426 * src/SDCCutil.c (pathEquivalent): defined but not used
3427 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
3428 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
3429 * configure: rebuilt from configure.in
3430 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3431 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3432 * device/include/Makefile.in: replace sdcc_datadir
3433 * device/lib/Makefile.in: replace sdcc_datadir
3434 * Makefile.common.in: add LDFLAGS from configure
3435 * packihx/Makefile.in: use LDFLAGS
3436 * src/Makefile.in: use LDFLAGS
3437 * support/cpp2/Makefile.in: add LDFLAGS from configure
3438 * support/makebin/Makefile: use LDFLAGS
3439 * .version: bumped version number to 2.3.5
3441 2003-04-12 Borut Razem <borut.razem AT siol.net>
3443 * completed "different paths" task:
3444 * src/SDCCmacro.c: fixed bug in handling quotes
3445 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
3446 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
3448 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3450 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
3452 2003-04-11 kevin Vigor <kevin AT vigor.nu>
3454 * ds390/gen.c ds390/peeph.def: fix bug 706781
3456 2003-04-11 Borut Razem <borut.razem AT siol.net>
3458 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
3460 2003-04-10 Scott Dattalo <scott AT dattalo.com>
3462 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
3463 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
3464 set - this bit used to not be set...).
3465 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
3466 bad code in PIC Port
3467 * src/regression/and2.c added to test bug 609268
3468 * src/regression/Makefile added and2.c to regression test
3471 2003-04-08 <johan AT CP255758-A>
3473 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
3474 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
3475 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
3477 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
3479 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
3481 * support/cpp2/Makefile.in: fix bug #487815
3482 * configure: rebuilt from configure.in
3483 * Makefile.common.in: docdir changed, new path suffixes
3484 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3485 * sdcc_vc_in.h: reflect changes from sdccconf.h
3486 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
3487 * src/SDCCutil.h: remove BINDIR hack
3488 * doc/sdccman.lyx: update new path hierarchy
3490 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3492 * src/SDCCpeeph.c: added okToRemoveSLOC test
3494 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3496 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
3498 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3500 * src/SDCCpeeph.c: added labelIsReturnOnly test
3501 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
3503 2003-04-05 <johan AT balder>
3505 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
3506 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
3507 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
3508 * src/SDCCast.c: fixed a warning
3509 * src/SDCCast.h: fixed a warning
3510 * src/SDCCicode.c (operandFromAst): fixed a warning
3512 2003-04-04 <johan AT balder>
3514 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
3515 * src/SDCCast.c (decorateType): fixed bug #715076
3516 * src/SDCC.y: fixed bug #702907
3518 2003-04-03 <johan AT balder>
3520 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
3521 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
3522 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
3523 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
3524 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
3526 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
3528 * _decdptr.c: fix return values
3529 * _gptrget.c: fix return values
3530 * _gptrgetc.c: fix return values
3531 * _gptrput.c: fix return values
3532 * _mulint.c: fix return values
3533 * as/z80/Makefile: fix 'make -j' problem
3535 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
3537 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
3538 * configure.in: big cleanup, updated to autoconf 2.5x
3539 * configure: rebuilt from configure.in
3540 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3541 * sdcc_vc_in.h: reflect changes from sdccconf.h
3542 * doc/Makefile: fixed a flaw in "make install"
3544 2003-04-02 <johan AT balder>
3546 * src/ds390/gen.c (genCmp): no comments
3547 * src/mcs51/gen.c (genCmp): no comments
3548 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
3549 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
3551 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
3553 * support/regression/generate-cases.py: place generated file in given sub directory
3554 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
3555 * support/regression/Makefile: improvements for 'make -j';
3556 side effect: it's simpler and faster now
3558 2003-03-31 Borut Razem <borut.razem AT siol.net>
3560 * src/z80/main.c: link-{port} and as-{port} defined without path
3561 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
3563 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
3565 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
3567 2003-03-30 Borut Razem <borut.razem AT siol.net>
3569 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
3570 changed type of list parameter to set
3571 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
3572 * src/port.h: changed type of do_assemble() parameter to set
3573 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
3574 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
3575 definition of "cppoutfilename" macro with NULL value in preProcess()
3576 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
3577 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
3578 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
3579 replaced with set *binPathSet
3580 * shash_add() deallocates the item, if allready exsists, before adding the new one
3581 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
3583 2003-03-30 Scott Dattalo <scott AT dattalo.com>
3585 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
3586 a nested for loop bug in the PIC port
3587 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
3590 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
3592 * support/Util/dbuf.h: remove C++ stuff to make it portable
3594 2003-03-28 Borut Razem <borut.razem AT siol.net>
3596 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
3597 literal strings in stringLiteral()
3598 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
3599 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
3602 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
3604 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
3606 2003-03-26 <johan AT balder>
3608 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
3609 * src/ds390/gen.c (saveRegisters): catched symbol abuse
3610 * src/SDCCast.c (decorateType): fixed " -v < 3"
3612 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3614 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
3615 Added Lenny Story's debug infrastructure changes:
3616 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
3617 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
3618 * src/cdbFile.c: added
3619 * src/SDCCdebug.c: added
3620 * src/SDCCdebug.h: added
3621 * src/SDCCast.c (createFunction)
3622 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
3623 * src/SDCCmain.c (parseCmdLine, main)
3624 * src/SDCCmem.c (redoStackOffsets)
3625 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
3628 * src/avr/gen.c (genAVRCode)
3629 * src/ds390/gen.c (gen390Code)
3630 * src/mcs51/gen.c (gen51Code)
3631 * src/pic/gen.c (genpic14Code)
3632 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
3633 * src/xa51/gen.c (genXA51Code)
3634 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
3636 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3638 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
3639 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
3641 2003-03-22 <johan AT balder>
3643 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
3645 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
3647 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
3648 * doc/cdbfileformat.lyx: added, written by Lenny Story
3649 * doc/Makefile: added cdbfileformat.lyx
3650 * doc/clean.mk: added cdbfileformat.lyx
3652 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
3654 * src/mcs51/peeph.def: fix bug #705773
3656 2003-03-20 <johan AT balder>
3658 An sfr/sbit can have an "at #" AND an initializer
3659 * src/SDCCsymt.c (checkSClass):
3660 * src/SDCCmem.c (allocGlobal):
3661 * src/SDCCmem.c (allocLocal):
3662 * src/SDCCast.c (createBlock):
3664 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
3666 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
3668 2003-03-16 <johan AT balder>
3670 Undid the hackup of const and volatile, the problem is much bigger
3672 * src/SDCCast.c:1.171
3673 * src/SDCCglue.c:1.138
3674 * src/SDCCicode.c:1.146
3675 * src/SDCCsymt.c:1.150
3676 * src/SDCCval.c:1.65
3678 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
3680 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
3681 * src/ds390/gen.c (genAddrOf): fixed bug #704087
3683 2003-03-13 <johan AT balder>
3685 Hackup const and volatile modifiers in type chains a bit:
3687 * src/SDCCast.c:1.169
3688 * src/SDCCglue.c:1.136
3689 * src/SDCCicode.c:1.143
3690 * src/SDCCsymt.c1.146
3691 * src/SDCCsymt.h1.59
3692 * src/SDCCval.c:1.63
3694 2003-03-12 <johan AT balder>
3696 * src/SDCCBBlock.h: more LRH debugging junk
3697 * src/SDCCcflow.h: more LRH debugging junk
3698 * src/SDCCloop.c: more LRH debugging junk
3699 * src/SDCC.y (struct_declaration): fixed bug #697590
3700 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
3701 * src/ds390/gen.c (aopForRemat): fixed bug #700031
3702 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
3704 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3705 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
3706 test function names must now match exactly).
3707 * src/SDCCcse.c: added special case in findCheaperOp to allow
3708 extending a short integer. Makes less awful code for bug 700121 test case.
3710 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3712 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
3713 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
3715 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3717 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
3718 actually called (operandsNotEqual() was called for all
3719 operandsNotEqualX tests).
3721 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3723 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
3724 with shorter literals. Fixes bug 700121.
3726 2003-03-11 <johan AT balder>
3728 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
3730 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
3732 * src/SDCCloop.c (mergeRegions): an evil beast is dead
3733 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
3735 2003-03-10 Borut Razem <borut.razem AT siol.net>
3737 * src/SDCCmain.c: pipe preprocessor's output
3738 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3739 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3740 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3741 which closes all pipes in pipeSet set
3742 * src/SDCCset.c: free deleted item in function deleteSetItem()
3743 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3744 moved from z80 to src subproject
3745 * .version: increased version number to 2.3.4
3747 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
3749 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
3750 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
3751 * support/regression/ports/xa51/spec.mk: fix typo
3753 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
3755 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
3757 2003-03-09 Borut Razem <borut.razem AT siol.net>
3759 * src/SDCCmain.c: pipe preprocessor's output
3760 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3761 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3762 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3763 which closes all pipes in pipeSet set
3764 * src/SDCCset.c: free deleted item in function deleteSetItem()
3765 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3766 moved from z80 to src subproject
3768 2003-03-09 Borut Razem <borut.razem AT siol.net>
3770 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
3771 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
3772 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
3773 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
3774 * src/SDCCglobl.h: unification of WIN32 native definitions
3776 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3778 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
3780 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3782 * src/configure.in: check for endianess (even while cross-compiling)
3783 * src/configure: check for endianess (even while cross-compiling)
3784 * src/configure_in.h: check for endianess (even while cross-compiling)
3785 * src/avr/gen.c: remove old endianess stuff
3786 * src/mcs51/gen.c: remove old endianess stuff
3787 * src/ds390/gen.c: remove old endianess stuff
3788 * src/pic/gen.c: remove old endianess stuff
3789 * src/pic/genarith.c: remove old endianess stuff
3790 * src/pic/glue.c: fix endianess check
3791 * src/pic16/gen.c: remove old endianess stuff
3792 * src/pic16/genarith.c: remove old endianess stuff
3793 * src/pic16/glue.c: fix endianess check
3794 * src/xa51/gen.c: remove old endianess stuff
3795 * src/z80/gen.c: fix endianess check
3796 * src/SDCCglue.c: fix endianess check
3797 * src/ds390/peeph.def: fix bug 700036
3799 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3801 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
3802 * src/configure: find appropriate data-types on host for SDCC's int and long
3803 * src/configure.in: find appropriate data-types on host for SDCC's int and long
3804 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
3805 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
3807 2003-03-07 <johan AT balder>
3810 some minor cleanups before the big shot
3811 OP_DEFS and OP_USES now use Kevin's protection
3812 new option --nolabelopt
3823 * src/ds390/ralloc.c:
3824 * src/mcs51/ralloc.c:
3826 * src/xa51/ralloc.c:
3829 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
3831 * src/pic/pcode.c (get_op): fix 64 bit warnings
3832 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
3833 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
3834 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
3835 * support/regression/tests/malloc.c: fix 64 bit warnings
3837 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
3839 * src/mcs51/gen.c (genMinus): fixed bug 696436
3841 2003-03-02 Borut Razem <borut.razem AT siol.net>
3843 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
3845 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
3847 * configure.in: test for mkstemp
3848 * sdccconf_in.h: add HAVE_MKSTEMP
3850 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
3852 * device/include/ctype.h: removed warning while using --stack-auto
3853 * device/include/malloc.h: removed warning while using --stack-auto
3854 * device/include/string.h: removed warning while using --stack-auto
3856 2003-02-23 Borut Razem <borut.razem AT siol.net>
3858 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
3859 because NDEBUG is defined (see man assert)
3860 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
3862 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3864 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
3865 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
3867 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3869 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
3870 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
3872 2003-02-18 <johan AT balder>
3874 * as/mcs51/asmain.c (asmbl): module can start with a digit
3875 * as/z80/asmain.c (asmbl): module can start with a digit
3877 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
3879 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
3880 * src/asm.c: fix pipe() for Mingw32
3882 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
3884 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
3885 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
3886 make -V work again; --c1mode reads now from stdin
3887 * doc/sdccman.lyx: added --c1mode
3888 * support/Util/SDCCerr.c: new messages for c1 mode
3889 * support/Util/SDCCerr.h: new messages for c1 mode
3890 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
3892 2003-02-15 <johan AT balder>
3894 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
3896 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
3898 * doc/sdccman.lyx: Environment variables, -o and other minor things
3900 2003-02-14 <johan AT balder>
3902 * src/xa51/main.c: before anyone really tries to use it :)
3904 * Install doc's in share/sdcc/doc
3905 * removed some obsolete files
3906 * Do a proper make distclean and uninstall
3907 M Makefile.common.in
3910 M device/include/Makefile.in
3911 M device/lib/Makefile.in
3914 M sim/ucsim/doc/Makefile.in
3917 R src/xa51/peeph.rul
3918 M support/cpp2/Makefile.in
3919 M support/makebin/Makefile
3922 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
3924 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
3926 2003-02-10 Borut Razem <borut.razem AT siol.net>
3928 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
3929 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
3930 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
3931 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
3932 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
3933 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
3934 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
3935 src/z80/Makefile.bcc: Borland Makefile cleanup
3936 * as/z80/Makefile.bcc: Added Borland Makefile
3937 * support/cpp2/borland.h: Removed
3939 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
3941 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
3942 * src/SDCC.lex: new pragma NOIV
3943 * src/SDCCglobl.h: new pragma NOIV
3944 * src/SDCCmem.c: new pragma NOIV
3946 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3948 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
3950 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3952 * src/SDCCmain.c: signal handling is switched off by --debug
3953 * doc/Makefile: small fix for install; use clean.mk again
3954 * doc/clean.mk: clean *.pdf and *.html too
3956 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
3958 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
3959 * device/lib/printfl.c: fix a ds390 bug by making it portable
3960 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
3961 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
3962 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
3963 * debugger/mcs51/cmd.c: converted multi-line string literals
3964 * sim/ucsim/globals.cc: converted multi-line string literals
3965 * src/SDCCmain.c: introduced signal handler to remove temp files
3966 * doc/Makefile: small tweaks, implement clean
3967 * doc: removed generated files
3969 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3971 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
3972 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
3973 Address Record is not correctly generated for DS390."
3975 2003-02-02 Borut Razem <borut.razem AT siol.net>
3977 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
3978 * as/mcs51/asm.h: fixed compilation with Borland C
3979 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
3980 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
3981 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
3982 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
3983 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
3984 src/z80/Makefile.bcc: delete $(LIB) only if exist
3985 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
3987 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
3989 * device/include/malloc.h: introduced NULL
3990 * device/include/string.h: introduced NULL
3991 * device/include/stdlib.h: introduced NULL
3992 * device/lib/_memcpy.c: removed NULL
3993 * device/lib/_strcat.c: removed NULL
3994 * device/lib/_strchr.c: removed NULL
3995 * device/lib/_strcmp.c: removed NULL
3996 * device/lib/_strcpy.c: removed NULL
3997 * device/lib/_strcspn.c: removed NULL
3998 * device/lib/_strlen.c: removed NULL
3999 * device/lib/_strncat.c: removed NULL
4000 * device/lib/_strncmp.c: removed NULL
4001 * device/lib/_strncpy.c: removed NULL
4002 * device/lib/_strpbrk.c: removed NULL
4003 * device/lib/_strrchr.c: removed NULL
4004 * device/lib/_strspn.c: removed NULL
4005 * device/lib/_strstr.c: removed NULL
4006 * device/lib/_strtok.c: removed NULL
4007 * device/lib/malloc.c: removed NULL, include own header
4009 2003-02-02 <johan AT balder>
4011 * src/mcs51/ralloc.c (packForPush): fixed bug #631653, maybe other ports need this too? At least now some new alerts in SDCCBBlock.c and SDCCicode.c gives an early warning
4012 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
4013 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
4014 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
4015 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
4016 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
4018 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4020 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
4023 2003-02-01 <johan AT balder>
4025 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
4027 2003-01-31 <johan AT CP255758-A>
4029 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
4031 2003-01-30 <johan AT balder>
4033 * src/SDCCBBlock.c: automatic bug detection
4034 * src/SDCCicode.c: automatic bug detection
4036 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4038 * src/SDCCglobl.h: now --xram-size 0 works
4039 * src/SDCCmain.c: now --xram-size 0 works
4041 2003-01-29 <johan AT balder>
4043 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
4045 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4047 * as/mcs51/aslink.h: Added options --xram-size and --code-size
4048 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
4049 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
4050 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
4051 * src/SDCCglobl.h: Added options --xram-size and --code-size
4052 * src/SDCCmain.c: Added options --xram-size and --code-size
4054 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4056 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
4057 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
4059 2003-01-27 <johan AT balder>
4061 * src/SDCC.y: fixed bug #613764
4063 2003-01-26 <johan AT balder>
4065 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
4066 * src/SDCCsymt.h: fixed bug #673374
4067 * src/SDCCglue.c: fixed bug #661910
4068 * src/SDCCast.c: fixed bug #458099 and 673374
4070 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4072 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
4073 * as/mcs51/strcmpi.h: added
4074 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
4075 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
4076 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
4077 * as/mcs51/assym.c: strcmpi -> as_strcmpi
4078 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
4079 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
4080 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
4081 * as/mcs51/Makefile.aslink: new module strcmpi
4082 * as/mcs51/Makefile.asx8051: new module strcmpi
4083 * as/mcs51/Makefil.bcc: new module strcmpi
4084 * as/mcs51/Makefile.in: new module strcmpi
4085 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
4087 2003-01-26 <johan AT balder>
4089 * src/SDCCglue.c: reverted back to 1.124
4090 * src/SDCCast.c: reverted back to 1.156
4091 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
4093 2003-01-25 <johan AT balder>
4095 * src/SDCCglue.c: A better fix for bug #661910
4096 * src/SDCCast.c: A better fix for bug #661910
4097 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
4099 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
4101 * src/Makefile.in: remove spawn.o
4102 * src/SDCCmain.c: remove spawn.h
4103 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
4104 * src/spawn.c: removed
4105 * src/spawn.h: removed
4106 * support/regression/ports/ds390/spec.mk: link with -r
4108 2003-01-24 <johan AT CP255758-A>
4110 * src/ds390/gen.c (aopOp): fixed bug #667458
4111 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
4112 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
4113 (createIvalCharPtr): an ival doesn't always have a storage class anymore
4115 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
4117 * src/mcs51/peeph.def: better assembler identation by Frieder
4118 * src/mcs51/gen.c: better assembler identation by Frieder
4120 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4122 * as/z80/string.h: removed for gcc 3.2
4123 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
4124 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
4126 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4128 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
4129 * src/SDCCpeeph.c (replaceRule): fix bug #663503
4130 * support/regression/Makefile: separate temp files for ports
4131 * support/regression/generate-cases.py: separate temp files for ports
4132 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
4133 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
4135 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4137 * moved tinitalk to device/examples/ds390
4139 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
4141 * as/mcs51/lkmem.c: rflag is for DS390
4142 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
4143 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
4144 (linkEdit): move mem- and map-files the same way as ihx-files
4145 * src/z80/main.c (_setDefaultOptions): removed --generic
4146 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
4147 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
4148 * src/pic/glue.c (picglue): --c1mode works again
4149 * src/pic16/glue.c (pic16glue): --c1mode works again
4150 * src/asm.c (printCLine): fix #660034
4152 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4154 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
4155 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
4156 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
4157 * as/mcs51/lkmem (summary): better fix for sp problem
4158 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
4159 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
4160 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
4161 remove --stack-after-data
4163 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
4165 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
4166 * src/SDCCutil.c (join): ugly bug: missing '\0'
4167 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
4169 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
4171 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
4173 * src/pic/main.c (_asmCmd): gpasm supports -o
4174 * src/z80/main.c: more general macros
4175 * device/lib/Makefile.in: remove intermediate files
4177 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
4179 * .version: Bumped version number to 2.3.3
4180 * src/SDCCBBlock.c: new option -o
4181 * src/SDCCglobl.h: new option -o
4182 * src/SDCCglue.c: new option -o
4183 * src/SDCCmain.c: new option -o
4184 * src/asm.c: new option -o
4185 * src/ds390/main.c: new option -o
4186 * src/pic/glue.c: new option -o
4187 * src/pic/pcode.c: new option -o
4188 * src/pic/ralloc.c: new option -o
4189 * src/pic16/glue.c: new option -o
4190 * src/pic16/pcode.c: new option -o
4191 * src/pic16/ralloc.c: new option -o
4192 * src/z80/main.c: new option -o
4193 * device/lib/Makefile.in: use -o
4194 * support/regression/ports/ds390/spec.mk: use -o
4195 * support/regression/ports/gbz80/spec.mk: use -o
4196 * support/regression/ports/mcs51/spec.mk: use -o
4197 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
4198 * support/regression/ports/z80/spec.mk: use -o
4199 * support/regression/ports/ucz80/spec.mk: use -o
4200 * support/regression/ports/xa51/spec.mk: use -o
4201 * support/regression/fwk/lib/timeout.c: fix usage string
4203 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
4204 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
4206 2003-01-07 <johan AT balder>
4208 * src/SDCCast.c (decorateType): fixed bug #600035
4210 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
4211 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
4212 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
4213 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
4214 * src/pic/pcode.c: outcommented unused variable to remove warnings
4215 * src/pic/ralloc.c: outcommented unused variable to remove warnings
4217 2003-01-06 <karl AT turbobit.com>
4218 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
4221 2003-01-06 <johan AT balder>
4223 * src/SDCCicode.c: fixed array add
4225 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
4226 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
4227 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
4229 2003-01-04 <johan AT balder>
4231 * src/SDCCval.c (getNelements): fixed the initialized array of structures
4233 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4234 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
4236 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4237 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
4238 * support/regression/tests/bug-524697.c: fit mem usage into 8032
4240 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4241 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
4243 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
4244 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
4246 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4247 * src/mcs51/main.c: removed {bindir}{sep} from aslink
4249 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4251 * in \sdcc\as\mcs51\ changed these files in order to create an
4252 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
4253 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
4254 following files to include the previous two files: aslink.dsp,
4255 Makefile.aslink, Makefile.bcc, and Makefile.in.
4257 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
4258 .adb instead of .cdb
4260 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4262 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
4263 value from option --iram-size.
4265 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4267 * \sdcc\as\mcs51\lklist.c: added boundary check before using
4270 2002-09-18 <wiml AT hhhh.org>
4272 * SDCClrange.h: exposed setFromRange() and setToRange()
4273 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
4274 packRegsForAccUse() (bug 542397)
4275 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
4276 multiple times and emitting the fetch operations more than once
4277 added aopGetUsesAcc() function to allow binary operators to
4278 fetch their operands in the correct order; made genMinus() emit
4279 compact code for X = LITERAL - Y
4281 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4282 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
4283 sprintf() in line 1267.
4285 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4286 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
4289 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4290 Changes to aslink (All the changes are marked with 'JCF'):
4292 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
4295 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
4296 area BSEG. Also moves, if possible, the DATA area down into the internal
4297 ram so more space is available.
4299 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
4302 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
4303 not bytes. Function summary() which creates a memory usage summary
4304 file with extension .mem. Reports of overlaping stack and small stack
4305 size. If the space for the stack is less than 16 bytes aslink trows a
4308 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
4309 the 8051. Option 'y' for memory summary output file.
4311 Changes to sdcc (All the changes are marked with 'JCF'):
4313 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
4315 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
4316 overlaying area for it (uses RegBankUsed[4]).
4318 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
4319 bank zero as used by default. By default aslink locates the stack
4320 (equivalent to --stack-after-data). Pass option 'y' to aslink for
4321 the creation of the .mem file. Delegates the allocation of data area
4322 to aslink (it is not longer 0x30 by default). If --stack-loc passes
4323 the begining of the stack area to aslink.
4325 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
4326 glue() in SDCCglue.c creates an area for it.
4328 2002-09-03 Borut Razem <borut.razem AT siol.net>
4329 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
4330 sdcc/src/pic/glue.c:
4331 introduced atexit() handler for teporay files removal in case of
4332 errors, assertions, ...
4334 2002-08-29 Borut Razem <borut.razem AT siol.net>
4335 * sdcc/support/cpp2/auto-host_vc_in.h:
4336 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
4337 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
4338 Maybe there is a similar problem with BORLANDC? It should be checked!
4340 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
4341 corrected improper use of assert: the assignment to clr variable was done inside the assert.
4342 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
4343 was not executed, and the compiler (cl) launched a warning:
4344 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
4346 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
4347 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
4349 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
4350 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
4352 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
4353 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
4354 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
4355 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
4356 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
4357 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
4358 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
4359 - added Release configuration in VS projects
4360 - review of compiler an linker options
4361 - VC .exe files are generated in bin_vc directory, not to interfere
4362 with binaries generated from other projects (cygwin, mingw, bcc ...)
4364 * sdcc/src/yacc.dsp: added
4366 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
4367 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
4368 and insert the version number definitions from .version
4370 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
4372 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
4373 added - genarate auto-host.h using auto-host_vc_in.h as template
4376 removed from CVS, generated automatically
4378 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
4379 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
4381 2002-08-11 Borut Razem <borut.razem AT siol.net>
4382 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
4384 2002-08-10 Borut Razem <borut.razem AT siol.net>
4385 * src/SDCCmain.c (main):
4386 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
4387 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
4388 The consequence was that some temporary files were not removed.
4391 unification of code in functions tempfilename() and tempfile():
4392 function tempnam() is defined in Visual Studio 6.0 and .NET
4394 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
4396 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
4397 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
4398 - removed compiler command line option /WX: Treats all warnings as errors
4399 - update a list of source files, included into the project
4401 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
4402 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
4403 changed project type to Generic Project so that can be correcly converted to VS.NET project
4405 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
4407 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
4409 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
4411 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
4412 added return 0 statements after assert() to make compiler happy
4414 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
4415 added newline in the def file to keep MSC compiler satisfied
4417 * sdcc/src/z80/gen.c:
4418 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
4419 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
4420 - solved MSC error in function aopDump()
4422 * sdcc_vc.h: define PREFIX as "\\sdcc"
4424 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
4425 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
4427 2002-06-22 Scott Dattalo <scott AT dattalo.com>
4428 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
4429 - Rewrote the register banking algorithm.
4430 - Added pCode live-range analysis to registers (for now, only non-used and
4431 singly-used registers optimized away)
4433 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
4435 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba AT cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
4437 2002-05-10 Scott Dattalo <scott AT dattalo.com>
4438 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
4440 2002-04-22 Michael Hope <michaelh AT vroom>
4442 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
4444 * configure.in (DD_COPT): Added include support required for gbdk.
4446 * .version: Bumped version number just to increase it.
4448 * src/SDCCmain.c: Added -nostdinc to the default options.
4450 2002-04-15 Michael Hope <michaelh AT vroom>
4452 * device/lib/z80/printf.c (sprintf): Added.
4454 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
4456 * src/z80/peeph.def: Added transpose redundent load rule.
4458 * src/z80/main.c: Added force callee saves for jaune.
4460 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
4462 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
4464 2002-03-28 Johan Knol <johan AT balder>
4466 * src/SDCCval.c: fixed bug #532436
4468 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4470 Added "char *Processor" field to the port structure.
4473 Added -p option. Allows port dependent processor to be specified.
4476 Initialized the new field char *Processor field to NULL in all ports
4479 Compiler generated registers for interrupt context saving
4480 were not getting allocated.
4482 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
4485 Fixed left shift. Will promote the left side of a left shift
4486 if a) left shifting more than size of operand or b) when assigned
4487 to something size > size of left side
4489 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4491 tons of changes. Register allocation has been
4492 rewritten. Added customization for the various PICs. Flow
4493 analysis is restructured. ...
4499 Added. device.c is a PIC port hack to accomodate variations
4502 2002-03-13 Michael Hope <michaelh AT vroom>
4504 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
4506 2002-03-04 johanknol <johanknol AT manik>
4508 * /src/SDCCval.c: fixed
4510 const unsigned char arr[][2] = { { 0, 1 } };
4511 t18.c:1: error: Initializer element is not constant
4513 2002-03-04 bela <bela AT manik>
4515 * /device/include/mcs51reg.h:
4516 ds89c420 register definition update
4518 2002-03-03 <johan AT FRIJA>
4520 * support/Util/SDCCerr.c: did something, but don't no why anymore
4522 * support/regression/tests/bug-524691.c: made it a little less shy
4524 * src/SDCCast.c (decorateType): fixed bug #524697
4526 * src/SDCCast.c: made some lineno improvements
4528 * src/SDCCval.c (getNelements): changed warning to error
4530 * src/SDCCglue.c (printIvalArray): changed warning to error
4532 * src/SDCCicode.c: fixed a warning for mingw
4534 * src/SDCCast.c (decorateType): fixed the << promotion for ops
4536 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
4538 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
4540 * src/ds390/peeph.def:
4541 Added some more peephole rules
4543 * src/ds390/gen.c: Various fixes & enhancements
4545 * src/SDCClrange.c, src/SDCClrange.h:
4546 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
4548 * src/ds390/ralloc.c:
4549 various fixes & enhancements (ds390) specific
4551 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
4552 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
4555 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
4557 2002-03-02 <johan AT FRIJA>
4559 * src/SDCCast.c (decorateType): fixed bug #524708
4561 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
4563 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
4565 2002-03-01 Michael Hope <michaelh AT vroom>
4567 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
4569 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
4571 2002-03-01 <johan AT FRIJA>
4573 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
4575 * src/SDCCast.c (decorateType): fixed bug #524209
4577 * src/SDCCval.c (valNot): fixed bug #524195
4579 2002-02-26 <johan AT balder>
4581 * src/xa51/gen.c: fixed a warning
4583 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
4585 * src/SDCCast.c (decorateType): fixed bug #522534
4587 2002-02-23 <johan AT balder>
4589 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
4591 2002-02-22 <johan AT balder>
4593 * src/SDCCast.c: fixed bug #514865
4595 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
4597 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
4599 * sdcc/src/SDCCloop.c:
4600 Previous fix was not good. basic blocks that have "break" or "return" are
4601 not really partof a loop , but live ranges used in these blocks should
4602 be live thru the entire loop, so set partOfLoop but don't add them to
4605 2002-02-21 <johan AT FRIJA>
4607 * src/SDCCcse.c: fixed bug #514308
4609 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
4612 Fixed BUG #519583. If a conditional block ended in a return/break
4613 statement inside a loop, it was not being considered part of the loop.
4615 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
4617 2002-02-10 Karl Bongers <karl AT turbobit.com>
4620 Fixed up SDCDB debugger somewhat. Updated debugger/README
4621 with lots of comments and notes.
4623 * device/examples/test2.c:
4624 Fix bug, "red" variable not being initialized(compiler complained).
4626 * device/examples/Makefile, examples/test3.c:
4627 Add Makefile in device/examples folder, compiles test3.c
4628 for use as a multiple module SDCDB test case.
4630 * sim/ucsim/cmd.src/cmdset.cc:
4631 Took out debug printfs in ucsim "next" command.
4634 Karl and Johan start ucsim XA support. Most dissassembly working,
4635 about 75% emulation done(plenty of work remaining).
4637 * sim/ucsim/z80.src:
4638 Add Z80 support to ucsim, add test-ucz80 regression test,
4639 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
4640 Notice z80 compiler fails on examples/test3.c/crc code.
4642 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
4644 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
4645 Added support for --parms-in-bank1
4647 * src/ds390/peeph.def:
4648 added a few more peephole optimzations
4651 1) added __builtin_inp & __builtin_outp used to read in data of given length
4652 from a memory mapped port
4653 2) added __builtin_memcmp
4654 3) added __builtin_swapw swap bytes of a short
4656 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
4657 1) handle multiple send & receives from register bank1
4658 2) ralloc can now allocate DPTR1 to some liveRanges
4660 * src/SDCCsymt.c, src/SDCCsymt.h:
4661 changes to handle multiple sends & receives
4664 added some pointer arithmetic optimization
4667 added some pointer arithmetic optimizations but not stable yet so not
4668 called from anywhere (will get this working shortly)
4670 * src/SDCCopt.c: fixed for multiple sends & receives
4673 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
4674 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
4675 set preprocessor defines (depending on options)
4677 * src/SDCCicode.c, src/SDCCicode.h:
4678 changes made to handle multiple sends & receives
4681 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
4683 * src/SDCCcse.c, src/SDCCcse.h:
4684 added function findbackward def (to be used in upcoming optimization)
4686 * src/SDCCcflow.c, src/SDCCcflow.h:
4687 added function returnAtEnd - to determine if a basic block terminates with
4690 * src/SDCCast.c, src/SDCCast.h:
4691 added option parms-in-bank1
4693 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
4694 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
4695 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
4696 adjusted for --parms-in-bank1 option
4698 * device/include/string.h:
4699 donot redefine "reentrant" keyword
4701 * device/include/ds80c390.h: Added some more SFRs
4703 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4705 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
4707 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4709 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
4711 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4713 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
4715 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
4717 * Added --xram-movc option
4719 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4721 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
4723 2002-01-11 Johan Knol
4725 * Added math lib of Jesus Calvino-Fraga
4727 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
4729 * src/SDCCmain.c (processFile): fix processing of ../../src.c
4730 * support/regression/Makefile: new target test-mcs51-stack-auto
4731 * support/regression/ports/mcs51-stack-auto/spec.mk: added
4733 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4735 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
4737 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4739 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
4741 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4743 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
4745 * src/SDCCglue.h: add definition for printIvalChar()
4747 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4749 * src/SDCCast.c: fix #498138 by Johan
4751 * src/SDCCglue.c: fix #498138 by Johan
4753 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4755 * support/regression/Makefile: fix clean
4757 * support/regression/ports/ds390/support.c: fix transmission of last character
4759 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
4761 * /sdcc/src/ds390/gen.c:
4762 a) improved computing address of stack variable
4763 b) took out some #if 0 code
4764 c) improved parmBytes adjustment
4765 d) improved genPlusIncr & genMinusIncr
4766 e) genCmp could generate bad code (when left assigned to DPTR)
4767 f) Fixed bug in hasInc
4769 * /sdcc/src/ds390/ralloc.c:
4770 a) packRegsForSupport could mess up live information (Fixed)
4771 b) packRegsDPTRuse could be incorrect for left & right shift
4773 * /sdcc/src/mcs51/ralloc.c:
4774 packRegsForSupport could mess up the live information (Fixed)
4776 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
4778 * /sdcc/src/SDCCast.c:
4779 can reverse a loop even if function call is present as long
4780 as the loop control variable is local & is not passed as parameter
4782 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4784 * /sdcc/ChangeLog: *** empty log message ***
4786 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
4787 More builtin function additions for TININative
4789 * /sdcc/src/ds390/ralloc.c:
4790 Had broken the regression testsuite
4792 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
4794 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
4795 Added funcattr hasStackParms will be set for reentrant functions when there
4796 are paramteres on the stack, this helps in minimizing frame pointer generation
4797 typeFromStr can handle function pointers now
4799 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
4800 *** empty log message ***
4802 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4804 * /src/ds390/gen.c, /src/ds390/main.c:
4805 More builtin function additions for TININative
4807 * /src/ds390/ralloc.c:
4808 Had broken the regression testsuite
4810 * /src/SDCCast.c: Fixed a bug in dumptree
4812 * /src/SDCCsymt.c, /src/SDCCsymt.h:
4813 Added funcattr hasStackParms will be set for reentrant functions when there
4814 are paramteres on the stack, this helps in minimizing frame pointer generation
4815 typeFromStr can handle function pointers now
4817 * /doc/builtins.txt, /doc/TININative.txt:
4818 *** empty log message ***
4821 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4823 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
4824 ALPHA version for -mTININative
4826 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
4827 updated to reflect changes in the port structure
4830 added function do_assemble (similar to do_link) if non-null this function
4831 will be called to do assembly (-mTININative) requires a multi command
4833 added function genAssemblerEnd will be called to generate assembler Epilogue
4836 added _JavaNative to debug info printing
4838 * /src/SDCCmain.c: added option --tini-libid
4839 added port->do_assemble function (-mTININative) has a multi command assemble
4841 * /src/SDCCglue.c: Disabled "constExpr" check
4842 added port->genAssemblerEnd function
4844 * /src/SDCCglobl.h: Added option --tini-libid value
4847 tookout optimizeCompare from the header (has no external references)
4849 * /src/SDCCast.c: made one more function "static"
4851 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
4853 * src/z80/mappings.i: Added z80asm support.
4855 * src/z80/main.c: Added z80asm support on --asm=z80asm
4857 * src/z80/gen.c: Fixed asm portability issues.
4859 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
4861 * src/SDCCglue.c (printExterns): Added global/extern split.
4863 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
4865 * support/regression/Makefile: added test for mcs51 model large
4867 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
4869 * support/regression/ports/gbz80/spec.mk: added -mgbz80
4871 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
4873 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
4875 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
4877 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
4879 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
4881 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
4883 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
4885 * support/regression/tests/simplefloat.c: Port to mcs51.
4887 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
4888 * support/regression/tests/bug-485362.c: Added.
4890 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
4892 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
4894 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
4896 * src/z80/gen.c (aopDump): Added a dump function.
4898 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
4899 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
4901 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
4903 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
4905 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
4907 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
4909 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
4911 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
4913 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
4915 * support/regression/ports/ds390/support.c: Use tinibios.
4917 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
4919 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
4921 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
4922 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
4924 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
4926 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
4928 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
4930 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
4932 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
4933 (packRegsForIYUse): Created and optimised.
4935 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4937 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
4938 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4940 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
4942 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
4944 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
4946 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4948 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
4950 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
4952 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4954 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
4956 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
4958 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
4960 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4962 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
4963 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
4964 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
4966 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
4968 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
4969 (genNotFloat): Added.
4970 (genUminusFloat): Added.
4972 * device/lib/z80/Makefile: Added floating pt stubs.
4974 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
4976 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
4978 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
4980 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4982 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
4984 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
4986 * sdcc/support/regression/Makefile: Add port ds390.
4988 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
4990 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
4992 * sdcc/support/regression/ports/ds390/spec.mk: Added.
4994 * sdcc/support/regression/ports/ds390/support.c: Added.
4996 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
4998 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
5000 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
5002 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
5004 * device/include/malloc.h: Added z80 and gbz80 support.
5006 * device/lib/gbz80/heap.s: Added.
5008 * device/lib/z80/heap.s: Added.
5010 * device/lib/malloc.c: Added z80 and gbz80 support.
5012 * support/regression/tests/malloc.c (testMalloc): Added.
5014 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
5016 * support/regression/tests/bug-478094.c: Added.
5018 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
5020 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
5022 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
5024 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
5026 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
5028 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
5030 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
5032 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
5034 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
5036 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
5038 * support/regression/tests/bug-477927.c: Added.
5040 * src/z80/peeph.def: Added minor rules.
5042 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
5044 * src/z80/peeph.def: Added jump optimisation modification.
5046 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
5048 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
5050 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
5052 * support/regression/tests/funptrs.c: Added.
5054 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
5056 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
5058 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
5060 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
5062 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
5064 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
5065 (movLeft2ResultLong): Created.
5067 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
5068 (joinPushes): Added. Joins two char pushes into a word push.
5070 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
5072 * support/cpp2/Makefile.in (install): Added creation of dest dir.
5074 * support/makebin/Makefile (install): Added creation of dest dir.
5076 2001-10-24 Karl Bongers <karl AT turbobit.com>
5078 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
5080 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
5082 * src/z80/ralloc.c: Turned off faulty pack for one use.
5084 * src/z80/peeph-gbz80.def: Removed redundent restart options.
5086 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
5088 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
5090 * support/regression/Makefile: Improved clean
5092 * support/regression/ports/gbz80/spec.mk: Added clean
5094 * support/regression/ports/host/spec.mk: Added clean
5096 * support/regression/ports/z80/spec.mk: Added clean
5098 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
5100 * support/regression/ports/mcs51/timeout.c: little improvements
5102 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
5104 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
5106 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
5108 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
5110 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
5112 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
5114 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
5116 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
5117 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
5119 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
5121 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
5123 * src/mcs51/main.c (_linkCmd): Added bin path to command.
5125 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
5127 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
5129 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
5131 * support/regression/tests/longor.c: Added.
5133 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
5135 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
5137 * as/mcs51/aslink.h: define PATH_MAX
5139 * as/mcs51/asm.h: define PATH_MAX
5141 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
5143 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
5145 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
5147 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
5149 * src/SDCCglobl.h: define PATH_MAX
5151 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
5153 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
5155 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
5157 * src/z80/gen.c (gencjneshort): Fixed
5159 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
5161 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
5163 * support/regression/tests/bug-469671.c: Added.
5165 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
5167 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
5169 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
5171 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
5173 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
5175 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
5177 * src/device/lib/_mulint.c : removed hint: nooverlay bug
5179 * src/device/lib/_mullong.c : removed hint: nooverlay bug
5181 * src/device/lib/_divuint.c : removed hint: nooverlay bug
5183 * src/device/lib/_divulong.c: removed hint: nooverlay bug
5185 * src/device/lib/_moduint.c : removed hint: nooverlay bug
5187 * src/device/lib/_modulong.c: removed hint: nooverlay bug
5189 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
5191 * src/z80/gen.c (setupPair): Added 'extended stack' support for the z80. Can now have local variables or parameters of more than 127 bytes in size. Increadibly slow, but it will work. Currently anything involving the carry flag.
5193 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
5195 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
5197 2001-10-07 <johan AT FRIJA>
5199 * device/lib/gets.c (gets): fixed the return value.
5201 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
5202 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
5204 * src/SDCCpeeph.c (peepHole): Fixed all leaks. Added trace support for freeing lines. Optimised restart logic to re-run instead of restart. Now compiles dscan.c on ~60MB instead of ~200MB.
5206 * support/Util/NewAlloc.c: Added ability to use libgc instead of malloc. Added Safe_free and Safe_strdup. Added trace support where you can log allocations and free all at once.
5208 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
5210 * src/pic/gen.c: Removed Safe_strdup.
5212 * configure.in: Added option to enable libgc support.
5214 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
5215 (bitVectUnion): Optimised.
5216 (bitVectIntersect): Optimised.
5217 (bitVectBitsInCommon): Optimised.
5218 (bitVectCplAnd): Optimised.
5220 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
5222 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5224 * src/SDCCmain.c: distinguish between assembler debug and plain options
5226 * src/avr/main.c: remove standard assembler options
5228 * src/ds390/main.c: remove standard assembler options
5230 * src/mcs51/main.c: remove standard assembler options
5232 * src/port.h: removed "PENDING" comment
5234 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5236 * src/device/lib/_mulint.c : new, with assember functions
5238 * src/device/lib/_mullong.c : new, with assember functions
5240 * src/device/lib/_divuint.c : with assember functions
5242 * src/device/lib/_divsint.c : with assember functions
5244 * src/device/lib/_divulong.c: with assember functions
5246 * src/device/lib/_divslong.c: with assember functions
5248 * src/device/lib/_moduint.c : with assember functions
5250 * src/device/lib/_modsint.c : with assember functions
5252 * src/device/lib/_modulong.c: with assember functions
5254 * src/device/lib/_modslong.c: with assember functions
5256 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
5258 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
5260 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
5261 replaced _mululong.c and _mulslong.c by _mullong.c
5263 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5265 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
5267 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
5269 * src/SDCCglue.c: test, if win32api is available for MINGW
5271 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
5273 * src/SDCCsymt.c: no more _modifier in printTypeChain()
5274 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
5275 * support/regression/ports/gbz80/spec.mk: removed GENERIC
5276 * support/regression/ports/host/spec.mk: removed GENERIC
5277 * support/regression/ports/mcs51/spec.mk: removed GENERIC
5278 * support/regression/ports/z80/spec.mk: removed GENERIC
5280 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
5282 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
5284 * support/regression/tests/bug-467035.c: Created.
5286 2001-10-01 <johan AT FRIJA>
5288 * src/SDCC.y: fixed bug #466586 part 1
5290 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
5292 * SDCCicode.c: z80 has no generic pointers
5293 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
5295 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
5297 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
5299 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
5301 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
5303 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
5305 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
5307 * configure.in: Fixed up so that ucsim is only configured once.
5309 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
5311 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
5312 (getPathDifference): As above.
5314 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
5316 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
5318 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
5319 * .version: Updated to 2.3.1
5321 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
5322 Added copyright header.
5324 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
5325 (assemble): Added support for macro based assembler commands.
5326 (linkEdit): Added support for macro based linker commands.
5327 (preProcess): Changed the pre-processor to use macros.
5328 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
5329 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
5331 * device/lib/z80/crt0.s: Added module name for debugging.
5333 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
5335 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
5337 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
5339 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
5341 * src/Makefile.in: Added SDCCmacro and SDCCutil
5343 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
5345 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
5347 2001-09-16 <johan AT FRIJA>
5349 * support/Util/SDCCerr.c: fixed up the error/warning/info database. I only changed the E_ W_ I_ prefix to what SDCCerr.c says it is.
5351 2001-09-15 <johan AT FRIJA>
5353 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
5354 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
5356 2001-09-11 <johan AT FRIJA>
5358 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
5360 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
5362 * support/regression/tests/bug-460444.c: Added test case.
5364 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
5365 (genCast): Added justification for all of the asserts.
5367 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
5369 * support/regression/support.c: _xdata replaced by xdata
5371 * support/regression/spec.mk: removed _generic
5373 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
5375 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
5377 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
5378 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
5380 * src/z80/peeph.def: Added a rule to optimise shift then compare.
5382 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
5384 * support/regression/tests/bug-460010.c: Added test case.
5386 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
5388 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
5390 * support/regression/Makefile: inter-port-clean adjusted for mcs51
5392 * support/regression/testfwk.c: removed workaround for bug #436344
5394 * support/regression/tests/bp.c: use less memory with mcs51
5396 * support/regression/tests/bug-441448.c: use less memory
5398 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
5400 * support/regression/collate-results.py: typo
5402 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
5404 * support/regression/tests/fetchoverlap.c: Added new test case.
5406 * support/regression/tests/bp.c: Added new test case.
5408 * support/regression/tests/bug-448984.c: Added new test case.
5410 * support/regression/tests/pow2shifts.c: Added new test case.
5412 * src/z80/gen.c: Turned off the noise it normally generates for the release.
5413 (genlshTwo): Fixed right shift for count > 8.
5415 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
5417 2001-09-08 <johan AT FRIJA>
5419 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
5421 2001-09-07 <johan AT FRIJA>
5423 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
5425 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
5427 2001-09-06 <johan AT FRIJA>
5429 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
5430 * bernhard noted me at this: "() equals to (void)" (1.38)
5432 2001-09-05 <johan AT FRIJA>
5434 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
5436 2001-09-04 <johan AT FRIJA>
5438 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
5441 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
5443 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
5445 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
5447 * link/z80/aslink.h: Fixed path for PATH_MAX
5449 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
5451 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
5453 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
5455 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
5457 * src/z80/gen.c (genUminus): Fixed add, sub, and uminus on the gbz80 port for longs. Had to shift some functions about to do it.
5459 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
5461 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
5462 (genCmp): Fixed up genCmp for the GB with longs.
5464 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
5466 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
5468 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
5470 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
5472 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
5474 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
5476 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
5478 * device/lib/gbz80/crt0.s (init): Fixed up support for the gbz80 such that it will at least run (and fail badly) the regression tests.
5480 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
5482 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
5484 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
5486 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
5488 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5490 * sim/ucsim/configure: little improvement of Cygwin-detection
5491 * sim/ucsim/configure.in: little improvement of Cygwin-detection
5492 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
5493 * support/regression/tests/bug-221100.c: small changes for mcs51
5494 * support/regression/tests/bug-221168.c: small changes for mcs51
5495 * support/regression/tests/bug-227710.c: small changes for mcs51
5496 * support/regression/tests/staticinit.c: small changes for mcs51
5497 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
5498 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
5499 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601