1 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
5 2004-03-23 Scott Dattalo <scott AT dattalo.com>
7 * src/pic/gen.c (genCpl): multi-byte complements were not working.
8 * src/regression/Makefile: Regression test was not running.
10 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
13 complement if possible
14 * src/SDCCval.c (valComplement),
15 * src/SDCCicode.c (operandOperation): fixed complement of literal
16 * support/regression/tests/onebyte.c (testComplement): added
18 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
20 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
21 return an optimized tree; actually replace actParm with the new tree
22 * src/SDCCast.h: added some parantheses to remove side effects
23 * support/regression/tests/bug-920866.c
25 2004-03-21 Scott Dattalo <scott AT dattalo.com>
26 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
27 Bit operands were not being handled properly in the pic14 port.
28 (now src/regression/add.c passes again).
30 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
32 * src/SDCC.y (labeled_statement): case and default no longer require
33 a following statement (RFE #893037)
35 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
37 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
38 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
39 disabled (fixes bug #916294)
40 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
41 "mov a,acc"; patch provided by Lenny Story
42 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
44 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
46 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
48 * src/ds390/gen.c (genFunction, genEndFunction),
49 * src/ds390/ralloc.c (ds390_assignRegisters),
50 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
51 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
52 pushed if there are parameters passed on the stack. Also, a cleaner
53 way to decide if r0/r1 should be pushed/popped. (Together they fix
56 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
59 * device/lib/mcs51/crtpagesfr.asm,
60 * device/lib/mcs51/crtxinit.asm,
61 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
62 to avoid confusion with Si Lab's SFRPAGE register.
64 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
66 * src/SDCCglue.c (emitMaps): allow public sfr variables
67 * src/SDCCglue.c (initialComments): include compiler build date
68 with compiler version and put the timestamp of the generated
69 assembly file on a serperate line to be less confusing.
70 * src/port.h: added genInitStartup hook
77 * src/z80/main.c: genInitStartup initialize as NULL (default to
79 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
80 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
81 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
82 library instead of hard coding it into the compiler.
83 * support/regression/ports/mcs51-stack-auto/spec.mk,
84 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
85 * device/lib/mcs51/Makefile,
86 * device/lib/small/Makefile,
87 * device/lib/large/Makefile,
88 * device/lib/mcs51/crtpagesfr.asm,
89 * device/lib/mcs51/crtstart.asm,
90 * device/lib/mcs51/crtxclear.asm,
91 * device/lib/mcs51/crtxinit.asm,
92 * device/lib/mcs51/crtclear.asm,
93 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
94 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
95 and into user configurable files.
96 * device/lib/clean.mk: clean mcs51 directory too
97 * support/regression/tests/longlit.c: added static to T1 declaration
98 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
99 accesses in the initialization code
101 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
103 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
104 OSCTRIMVAL as noted in bug #916008
106 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
108 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
109 in loops with multiple exits (reported as incorrect registers
110 used by Martin Helmling in Sdcc-user list)
112 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
114 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
115 made ds390 register extensions look less like error messages
117 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
119 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
120 reported by Adam Wozniak in Sdcc-user list
122 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
124 * src/SDCCast.c (decorateType): fixed with bug and promotion in
125 arithmetic optimizations, added debug output
127 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
129 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
130 * sdcc.spec: updated and split sdcc into 3 rpms
131 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
132 needed for literals of LEFT_OP and '+'
133 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
134 introduced RESULT_TYPE_NOPROM
135 (geniCodeMultiply): fixed logic for decision if mul is optimized to
137 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
138 limited promotion to int only for '*'
139 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
141 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
143 * src/pic16/gen.c (genSkip),
144 (genc16bit2lit), (gencjneshort): commented out
145 (is_LitOp): new helper function, checks operand type
146 (genCmpEq): rewritten
148 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
150 * support/regression/tests/bug-908454.c: added
152 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
154 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
155 * src/SDCCicode.c (usualBinaryConversions): op needs int type
156 (geniCodeCast): cosmetic, don't preserve bit storage class
157 (geniCodeLeftShift): added promotion
158 (geniCodeLogic): fixed regression
159 * src/SDCCsymt.c (computeTypeOr): accept bits too
160 (compareType): 2nd part of fix for bug #908454, needed for bitfields
162 2004-03-07 Borut Razem <borut.razem AT siol.net>
164 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
166 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
168 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
169 version of pic16_genPackRegisters which does not check if ic is a
171 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
172 function cause string1.c regression test fails
174 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
176 * sim/ucsim/configure.in,
177 * sim/ucsim/configure,
178 * sim/ucsim/doc/Makefile.in: use docdir
179 * src/SDCC.y: fixed sbit atrributes
180 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
181 * src/SDCCast.c (decorateType): |^& need special promotion handling
183 * src/SDCCsymt.h: moved definition of RESULT_TYPE
184 * src/SDCCsymt.h (computeType),
185 * src/SDCCicode.c: computeType() needs op
186 * src/SDCCsymt.c (checkTypeSanity),
187 * doc/sddman.lyx: "plain" bitfields are unsigned
188 * src/SDCCsymt.c (computeTypeOr): added
189 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
191 * src/SDCCval.c (val*): computeType() needs op
192 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
193 * support/regression/tests/onebyte.c: added tests for |^&
195 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
197 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
198 for writing icode into asm output.
200 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
202 * src/pic16/device.c: added some debug lines enabled
203 with macro DEBUG_CHECK,
204 * src/pic16/genarith.c: more debug in genPlus,
205 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
206 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
207 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
208 * (aopForSym): onStack symbols are re-placed in data memspace,
209 and onStack flag is cleared,
210 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
211 copy temporary pcodeop,
212 * (genPcall): added warning for not updating PCLATU,
213 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
214 always true for pic16 port,
215 * (genMultOneWord): NEW, supports integer multiplication,
216 * (genMult): modified to call genMultOneWord,
217 * (ifxForOp): added warning when return NULL,
218 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
219 flag is set before call to operandFromSymbol for implicit
221 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
222 options.intlong_rent are set by default,
223 * (_hasNativeMulFor): modified to allow port generation of integer
225 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
226 set regtype to REG_SFR for all registers, restricting seting the
227 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
229 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
231 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
232 more than 500 times in the regression tests
234 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
236 * support/Util/SDCCerr.h,
237 * support/Util/SDCCerr.c,
238 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
240 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
241 for symbol conflicts.
242 * support/valdiags/tests/enum.c,
243 * support/valdiags/tests/tentdecl.c,
244 * support/valdiags/tests/struct.c: expect possible error messages
245 referring to original symbol definitions.
246 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
248 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
250 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
252 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
254 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
256 * src/pic16/ralloc.c (newReg): fixed bug #908929
258 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
260 * src/ds390/gen.c: added missing #include "main.h"
262 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
264 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
265 checking if symbol is already in set,
266 * src/pic16/device.h: prototype for checkAddSym,
267 * src/pic16/gen.c: (_G): added entry interruptvector,
268 * (assignResultValue): removed some commented out lines,
269 * (genFunction): check for ISR via sym->type, absolute section for
270 interrupt code is created via a new pBlock, the goto instruction is
271 placed now correctly at the interrupt vector position, changed all
272 references from ivec to _G.interruptvector,
273 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
274 is the interrupt is a high priority one, same for return from ISR,
275 * src/pic16/glue.c: changed all calls of addSetHead for publics and
276 externs to calls of checkAddSym,
277 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
278 pic16_pcode_verbose flag is set,
279 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
280 * src/pic16/pcoderegs.c: message about how many registers are saved
281 will only be emitted if pic16_pcode_verbose flag is set,
283 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
285 * src/ds390/ralloc.h,
286 * src/ds390/ralloc.c (ds390_regWithIdx),
287 * src/ds390/gen.c (emitcode),
289 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
290 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
291 ds390operandCompare, getRegsRead, getRegsWritten,
292 initializeAsmLineNode): customized instruction size calculation for
293 ds390, started basis for some register optimizations
294 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
295 corresponding assembly output
296 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
297 missing push/pop of r0/r1. Optimized push/pops
299 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
301 * src/mcs51/main.c (instructionSize): fixed ACALL size
302 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
304 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
306 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
307 the sorting of rlist with NULL elements
308 * (print_idataType, print_idata): NEW to create idata sections
309 * src/pic16/device.h: idataSymSet new variable
310 * src/pic16/gen.c (genFunction): fixed some bugs in string
311 comparing, improved the absolute section creation for ISRs,
312 added FSR0L/FSR0H in registers that are saved in an ISR,
313 * (genInline): fixed the processing of inline snippets,
314 now they undergo no process by the peephole optimizer
315 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
316 are placed in idataSymSet,
317 * (pic16emitStaticSeg): extern symbols are added in externs,
318 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
319 switching when aboslute variables are placed in access bank memory
320 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
321 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
322 commented out with #if,
323 * (pic16_packRegisters): reintroduce the check for CAST because some
324 symbols are not correctly handled,
325 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
326 pCodeInstruction instead of pCode,
327 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
328 pCodeAsmDir definition,
329 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
330 directive, then the argument directive is emitted without the leading
331 tab, hack for inline labels which must be in the first column,
332 * (compareLabel,pic16_findNextInstruction),
333 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
334 * (insertBankSwitch): modified for the new pCodeAsmDir,
336 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
337 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
339 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
341 * (pushSide): commented out with #if,
342 * (assignResultValue): fixed some typos in saving
344 * (genPcall): FIXED and sync'ed with genCall,
345 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
346 * (genNearPointerGet): fixed to handle some more cases,
347 implementation scheme via table reads,
348 * (genConstPointerGet): modified to access code memory correct,
349 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
350 and improved to handle some cases
351 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
352 instead of "RETLW" for init data
353 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
354 not IN_DIRSPACE, work around to reduce bank switching when aboslute
355 variables are placed in access bank memory (<0x80 and >=0xf80),
356 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
357 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
358 TBLWT_POSTDEC,TBLWT_PREINC
359 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
360 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
362 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
363 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
364 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
365 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
367 2004-02-29 Borut Razem <borut.razem AT siol.net>
369 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
370 support/Util/findme.h, support/Util/system.h: enhance binary relative
371 search for lib and include by using findProgramPath()
373 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
376 * src/SDCCpeeph.c (pcDistance),
378 * src/mcs51/ralloc.h,
379 * src/mcs51/ralloc.c (mcs51_regWithIdx),
381 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
382 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
383 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
384 size calculation port specific, started basis for some register
386 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
387 missing push/pop of r0/r1. Optimized push/pops
388 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
389 * device/lib/_modsint.c (_modsint),
390 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
391 and stack version so regression tests pass
393 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
395 * src/Makefile.in (dep): include SLIBOBJS in dependency check
396 * src/SDCCast.c (decorateType): catch another small optimization
398 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
399 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
400 modified to finally use computeType() all over SDCC,
401 see Feature Request #877103
402 * src/SDCCval.h: cosmetic
403 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
404 valCompare(); regression tested in muldiv.c
405 * support/regression/tests/muldiv.c (testMod): mod sign follows
408 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
410 * src/SDCCast.c (decorateType): fixed bug #902362
411 * doc/INSTALL.txt: fixed install instructions for win32
413 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
415 * device/include/Makefile.in (install): fixed by replacing spaces
418 * doc/INSTALL.txt: updated for release
419 * doc/sdccman.lyx: added warning for --xstack being buggy
421 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
423 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
424 to eliminate build warnings.
425 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
427 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
428 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
430 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
431 removed -penable-stack, added comment for stack pragma, added
432 warning for not initializing the stack/frame registers, removed
433 comment at interrupts section
435 Stack is made permanent, there is no ability to disable stack usage.
436 * src/pic16/device.h,
437 * src/pic16/device.c: removed all references to USE_STACK macro,
438 * src/pic16/device.c (pic16_dump_section): when no elements in
439 rlist, free rlist before return,
440 * (pic16_dump_int_registers): NEW, internal registers are a new set
441 of general purpose registers reused by each function,
442 * (checkAddReg): returns 1 if registers is added to set,
443 * (pic16_groupRegistersInSection): when a registers is of type
444 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
445 * src/pic16/device.h: memRange and Assigned Memory are deleted,
446 SRCASECMP macro is moved here from device.c
447 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
448 PO_PCLATU, PO_PRODL, PO_PRODH,
449 * (pic16_pCodeOpType, genMinus,
450 changed compares to "a" register, with AOP_ACC,
451 * (pic16_genPlus): fixed some bugs and indented properly,
452 * (pic16_addSign): changed size to size+offset in the MOVWF
454 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
455 multiply 8-bit operand by literal, result is 8-bit,
456 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
457 multiply 2 8-bit operand, result is 8-bit,
458 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
460 * src/pic16/gen.c: changed accUse to contain WREG only,
461 * (pic16_emitcomment): renamed to pic16_emitpcomment,
462 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
463 true, do not use immediate addressing any more unless sym is a
464 pointer in codespace,
465 * (aopForRemat): do not use immediate addressing when symbol not in
466 codespace and when symbol's address is requested,
467 * (aopOp): for-loop in if(sym->accUse) is modified for the new
469 * (aopGet): added case for AOP_ACC and don't return "accumulator
470 bug" but WREG instead,
471 * (popGetTempReg): pushes contents of temporary register in stack,
472 * (popReleaseTempReg): pops contents of temporary register from
473 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
474 * (pic16_popGet): separated case AOP_ACC to return register WREG
475 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
476 or PO_IMMEDIATE and initializes their instance/offset appropriately,
477 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
478 the use of immediate pointers to certain cases only.
480 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
481 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
482 * (assignResultValue, genCall, genRet): modified to use the new
483 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
484 genPcall is still broken,
485 * (genFunction): added code to create 'A' type pBlocks when
486 interrupt functions are generated, code not extensively tested yet,
487 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
488 * (genEndFunction): modified so ISRs pop stored registers from stack,
489 * (genMultOneByte): cleanup,
490 * (AccRsh): added flag andmask, to and result with appropriate mask,
491 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
492 * (genDataPointerGet): fixed and reenabled its use,
493 * (genNearDataPointerGet): bugs fixed,
494 * (genDataPointerSet): bugs fixed,
495 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
496 pic16_DumpSymbol, pic16_DumpOp,
497 * src/pic16/genutils.h: function prototypes for the above functions,
498 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
500 * (pic16emitRegularMap): many many many improvements, but needs a
502 * src/pic16/main.c: enable_stack in pic16_options is removed,
503 * (_pic16_parseOptions): removed command line options -penable-stack,
504 * (_process_pragma): emit stack symbol only when stack pragma is
506 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
507 redirected to FSR0L/FSR0H pair,
508 * (pic16_get_op, pic16_get_op2): modifications and improvements,
509 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
510 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
512 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
513 * (dumpPicOptype): NEW,
514 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
515 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
516 with movff instruction,
517 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
518 added pic16_int_regs, some packRegsFor* functions are commented out,
519 because produce errors,
520 * src/pic16/NOTES: minor modifications
522 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
524 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
525 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
527 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
528 * as/mcs51/lkaomf51.c: fixed bug #895763
530 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
532 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
534 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
536 * doc/sdccman.lyx: added details about the HC08 storage classes and
537 interrupts, fixed the register usage info for z80 & gbz80
539 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
541 * doc/sdccman.lyx: added more pic16 port documentation
542 * device/include/pic16/: added header pic18fregs.h
544 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
546 * doc/sdccman.lyx: added Vangelis' contribution
548 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
550 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
551 extend to the next CALL or PCALL, not just to the next CALL.
553 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
555 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
557 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
559 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
560 bug #895752 and a better fix for bug #716790
562 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
564 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
566 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
568 * doc/sdccman.lyx: minor changes, minor changed
570 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
572 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
573 which can't handle SDCC_NEWONEBYTEOPS,
574 (geniCodeMultiply): removed conversion from mult to shift for pic14
577 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
580 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
581 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
582 thus fixing bug #895406
584 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
586 * device/lib/_modsint.c,
587 * device/lib/_modslong.c: sign follows divisor only
588 * src/hc08/gen.c (genMultOneByte): if result size is 1,
589 signs or signedness can be ignored
590 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
591 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
592 added optimization for IFX,
593 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
595 reenabled optimization for IFX, which was removed on 2004-01-11
596 * src/SDCCast.h: added return type IFX
597 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
598 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
599 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
600 SDCC_OLDONEBYTEOPS selects the old behaviour
601 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
602 changed again and commented promotion rule
603 * src/SDCCval.c (valDiv): promotion no longer necessary
604 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
605 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
607 * support/regression/tests/onebyte.c: added
609 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
611 * gen.c (genInline): reverted to old code for assemnling inline
612 code because of bug reported James Chadd
614 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
616 * ralloc.h: missing declarations from previous patch,
617 seems that patch for ralloc.h was never applied, fixed
619 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
620 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
624 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
625 indirect addressing. Marked FSR0 as deprecated
626 * gen.c (pointerCode): commented out, not needed now
627 (pic16_popGet2p): new MOVFF helper function
629 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
630 (shiftRLong): removed duplicate debugging info
632 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
634 * src/ds390/gen.c (genNearPointerGet),
635 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
636 optimization with bits, but not bitfields.
637 * src/ds390/ralloc.c (packRegisters),
638 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
640 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
642 * src/SDCCcse.c (algebraicOpts): copy operands before modification
644 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
647 * src/SDCCicode.c (operandFromSymbol),
648 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
649 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
650 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
651 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
652 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
653 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
655 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
656 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
657 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
658 * src/SDCCsymt.c (newSymbol),
659 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
662 * src/SDCCval.c (newiList): fixed bug #885705
664 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
666 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
667 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
669 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
671 * device/include/c8051f120.h,
672 * device/include/c8051f300.h,
673 * device/include/c8051f310.h: added/updated header files for Silicon
674 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
675 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
676 in new section Submitting patches
678 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
680 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
681 genFarPointerGet, genCodePointerGet, genGenPointerGet,
682 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
684 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
685 genFarPointerGet, genCodePointerGet, genGenPointerGet,
686 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
688 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
689 genFarPointerGet, genCodePointerGet, genGenPointerGet,
690 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
692 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
693 genFarPointerGet, genCodePointerGet, genGenPointerGet,
694 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
695 genGenPointerSet): fixed bug #892400
696 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
697 to eliminate build warnings.
698 * src/SDCCast.c (processParms),
699 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
701 * support/valdiag/valdiag.py: added GCC to the list of defines active
702 when compiling with gcc
704 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
706 * support/Util/SDCCerr.h,
707 * support/Util/SDCCerr.c,
708 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
709 with an incomplete type (fixed bug #883734)
710 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
712 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
714 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
716 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
718 * src/SDCCast.c (decorateType),
719 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
720 function pointer implementation
721 * support/regression/tests/funptrs.c: added tests to verify both forms
722 of function pointers work correctly. Added tests to verify parameters
723 are passed in the correct order.
725 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
727 * device.c (regCompare): registers are sorted by ascending
728 address and increasing size,
729 * main.c (_pic16_finaliseOptions): removed the declaration
730 of compiler macro MCU. Now a macro of the format pic18fxxxx
731 will be defined from the command line
733 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
734 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
736 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
737 PCOP_RLCF was overwritten!
738 * gen.c (genSkip): commented out calls to pic16_emitcode,
739 * (genCmpEQ): fixed "long" compares, only high word did get compared,
741 * (genRRC): added debugging info,
742 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
743 overwritten while shifting,
744 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
745 overwritten while shifting,
748 * (shiftLLeftOrResult),
749 * (shiftRLeftOrResult),
751 * (shiftLLong): Implemented with pic16_emitpcode
752 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
753 * (genLeftShift): Fixed bug, operand for shift by variable always
754 was "and"ed with 0x0f,
755 * (genLeftShiftLiteral),
757 * (genRightShiftLiteral): added debugging info,
758 * (genrshFour): added comment,
759 * (genRightShift): determined signedness from operand "left"
762 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
764 * src/SDCCicode.c (geniCodeParms),
765 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
766 function pointers, fixed function pointer bugs #861242 and #861896
768 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
770 * device/include/c8051f000.h,
771 * device/include/c8051f120.h,
772 * device/include/c8051f300.h: added header files for Silicon
773 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
775 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
777 * src/SDCCast.c (processParams): added new type flow and restructured
778 (gatherAutoInit): added new type flow
779 (addCast): cosmetic changes
780 (getLeftResultType): added new type flow for array indices, patch
781 provided by Stas, see FR #877103
782 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
783 array index patch by Stas
784 * src/SDCCast.h: added prototype getResultTypeFromType()
786 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
787 * src/pic/glue.c (pic14emitStaticSeg),
788 * src/pic16/glue.c (pic16emitStaticSeg),
789 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
790 for initialization of symbols
791 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
792 * support/Util/SDCCerr.h:
793 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
794 * .version: bumped version number to 2.3.8
795 * device/include/Makefile.in (install),
796 * doc/Makefile (install): changed to 'rm `find ...`' construct to
799 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
801 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
802 Slade Rich fixed an optimization bug
803 * src/pic/pcodepeep.c,
804 * src/pic/pcoderegs.c
805 * doc/Makefile (install): added test for directory
807 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
809 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
810 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
811 * src/pic/ralloc.c (getRegPtr, getRegGpr),
812 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
813 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
814 * as/mcs51/asexpr.c (term),
815 * as/hc08/asexpr.c (term): fixed bug #887146
817 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
819 * src/z80/gen.c (genMult): handle single byte result product
820 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
821 DUMMY_READ_VOLATILE (fixed bug #886367)
823 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
825 * support/regression/tests/libmullong.c: fixed logic, on little endian
826 hosts we ended without a mullong_wrapper()
828 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
830 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
831 virus/worm forged address usage.
833 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
835 Fixed promotion, it should be done on AST level:
836 * src/SDCCast.c (addCast): added promotion to int
837 (decorateType): updated call to upCast()
838 * src/SDCCicode.c (geniCodeLeftShift): removed call to
839 usualUnaryConversions()
841 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
843 * support/regression/tests/literalop.c (mulWrapper): Added a
844 wrapper to remove integer overflow warnings.
846 * support/regression/tests/float_trans.c: Made work on host.
848 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
851 * support/regression/generate-cases.py (main): Changed from inline
854 * doc/Makefile (install): Changed to depth first to get rid of
855 missing directory install warning.
857 * as/Makefile (install-doc): Made work on Mac.
859 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
861 * src/SDCCast.c: added an additional type flow in decorateType() of
862 opposite direction, see feature request #860006; it's enabled at runtime
863 by setting the environment variable SDCC_NEWTYPEFLOW
864 * src/SDCCast.h: changed prototype of decorateType()
865 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
866 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
867 'char' to 'int' can be omitted, if both operands are 'unsigned char';
868 see feature request #877103
869 * src/SDCCval.c: updated call of decorateType()
870 (valBitwise): fixed bug #882876
871 (valMinus): added promotion
872 (valLogicAndOr): result is unsigned
873 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
874 * src/SDCCsymt.c (computeType),
875 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
876 must not cause an unsigned operation
877 * src/pic/glue (pic14emitRegularMap),
878 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
880 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
882 * src/pic/pcode.c (PCodeID): commented out left over debug code
884 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
886 * support/valdiag/tests/overflow.c: added shift tests
894 * src/pic/pcodepeep.c,
895 * src/pic/pcoderegs.c,
897 * src/pic/ralloc.h: applied patch from Slade Rich;
898 added support for multiple code pages and multiple RAM banks on the
899 PIC 14 port. The ASM files now no longer simply assume all the
900 code / RAM are in the same page / bank. This means the linker can
901 safely allocate code/RAM of separate ASM files to different pages/banks.
902 * doc/sdccman.lyx: added Slade's tips
903 * src/mcs51/peeph.def: fixed bug #880768
905 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
907 * src/hc08/ralloc.c (rematStr): fixed bug #879282
908 * src/SDCCast.c (decorateType): fixed bug #880197
910 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
912 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
915 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
916 strtof is not part of C89 and isn't included with Mac OS X.
918 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
920 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
921 shiftL2Left2Result): fixed bug #879326
922 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
923 (genMultOneByte): fixed bug in signed vs unsigned multiplication
924 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
925 address fetch for clr instruction
926 * device/lib/hc08/_mulint.c: created optimized assembly version
927 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
929 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
931 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
932 proposed in FR #877103
934 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
936 * src/SDCCval.c (cheapestVal): added missing checks
937 * src/SDCCicode.c (usualBinaryConversions): fixed condition
938 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
940 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
942 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
945 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
947 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
948 loaded with the linker search paths (-L arguments) and the libraries
949 to be linked with the current source (-l arguments). Changes
950 currently will affect only the pic16 port.
951 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
952 include path the port specific paths and port specific libraries,
953 * gplink command now contains the $3 argument,
954 * src/pic16/device.h,
955 * src/pic16/device.c,: structure PIC_device is made public and
956 renamed to PIC16_device, the same for variable Pics which is renamed
957 to Pics16. Updated all references to them.
958 * src/pic16/glue.c (pic16glue): corrected bug with code
959 initialization which bypassed the variable initializations block.
961 * device/lib/pic16/Makefile.rules: removed --penable-stack from
962 COMPILE_FLAGS and added the --nostdinc option
964 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
966 * device/include/mc68hc908jb8.h: Register defs for another member
967 of the hc08 family. Contributed by Bjorn Bringert - thanks!
969 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
971 Documenting changes from previous commits.
972 * configure.in (version 1.56),
973 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
974 when generating output files to configure the pic16 library,
975 but now I've commented it out, since gputils aren't installed in the
976 SF compile farm, so library won't compile
978 * device/lib/Makefile.in (version 1.56): initially I've added in
979 target 'all' the prerequestive 'model-pic16' so it compiled the
980 pic16 library, but now I've commented it out for the same reasons
982 * added targets 'model-pic16' and 'objects-pic16' to compile the
984 * added target 'port-specific-objects-pic16' to handle the
985 generated libraries and copy them into the build/ directory
986 * added target 'clean-intermediate-pic16' to clean intermediate
987 files into pic16 directory
988 * in target 'installdirs' added line to create directory pic16 in
989 the installation path
991 * device/include/Makefile.in (version 1.11): in target 'install'
992 added lines to copy all header files to installation path,
993 * in target 'installdirs' added line create directory for pic16
994 headers in the installation path
996 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
998 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
1001 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
1004 * device/lib/configure.in,
1005 * device/lib/configure: fixed for autoconf 2.57
1007 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1009 * src/z80/main.c (_parseOptions): fixed the portmode= command line
1010 option so that it actually works. Made it specific to the z80, since
1011 the gbz80 doesn't have these kinds of I/O ports.
1013 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1015 * device/include/z180.h,
1016 * device/lib/_memcpy.c,
1017 * device/lib/_memmove.c,
1018 * device/lib/_mulint.c,
1019 * device/lib/ser_ir.c,
1020 * device/lib/ser_ir_cts_rts.c,
1021 * device/lib/_strcmp.c,
1022 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
1023 * src/z80/main.c (_process_pragma): add support for pragmas bank and
1024 portmode; added deprecation warning for bank= and protmode= forms.
1025 Also, guard against buffer overflow.
1026 * src/z80/gen.c (aopGet): generate better code for sfr banked read
1028 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1030 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
1031 changed interrupt vector table generation to only emit declared vectors.
1032 * device/include/Makefile.in: added missing backslash
1033 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
1035 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
1037 Mainly changes to support compilation of the device libraries
1038 * src/pic16/device.c: stack is allocated via symbol and not
1039 via literal number. The symbol is placed in the corresponding
1040 position of the data ram
1041 * (pic16_dump_section): relocatable and absolute uninitialized
1042 data are now emitted in sorted order to reduce section naming,
1043 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
1044 weren't marked as being in the access bank,
1046 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
1048 Added portion of GNU PIC Library under the directory
1049 device/include/pic16 and device/lib/pic16. These files
1050 contain the declarations of SFRs for the PIC18Fxx2 devices.
1051 The directory is initialized via configure from toplevel.
1053 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
1055 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
1056 the spilllocations to be compared correctly
1058 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
1060 * src/SDCCast.c (decorateType): fixed bug introduced today
1062 2004-01-12 Borut Razem <borut.razem AT siol.net>
1064 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
1065 doc/sdccman.lyx: upper case pragmas are deprecated
1067 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
1069 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
1070 in simpler and even better code
1072 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
1074 * src/SDCCicode.c (operandOperation): fixed bug #874819
1075 * src/SDCCast.c (decorateType): fixed
1076 char foo (unsigned long ul) { return ul > 0; }
1078 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1080 * doc/sdccman.lyx: Moved and added some sections, small changes
1081 all over. Telling LaTeX to be less strict with word spacing
1082 to better keep the right margin. Changed some notes about
1083 maintainance of the ports in section 3.2.1 - is it OK like this?
1085 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
1087 SDCC source changes:
1088 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
1089 convilong): modified to inform the pic16 port that builtin functions
1092 PIC16 PORT specific changes:
1093 * src/pic16/device.c pic16_dump_equates() added,
1094 processor registers declared internally by the port are emitted in
1095 the translation as equates,
1096 * src/pic16/gen.c: inline code is passed unprocessed to the
1098 * (pic16_popGetLit2): fnuction modified to take second operand as
1099 pCodeOp pointer and not as literal,
1100 * (popRegFromIdx): prefixed with pic16_,
1101 * (pic16_popCombine2): modified to receive already allocated pCode
1103 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
1104 * (genFunction): initializes local stack frame and pushes on stack
1105 all the registers used by this function,
1106 * (genEndFunction): restores all registers from stack and restores
1108 * src/pic16/glue.c (pic16emitRegularMap): various changes and
1110 * (pic16glue): changed the program startup sequence,
1111 * added new dbName code 'A' for functions placed in absolute section
1112 * src/pic16/main.c: added function attribute _naked,
1113 * added pragma 'code' to place a fnuction at an absolute address,
1114 * added command line arguments --debug-ralloc and --pcode-verbose,
1115 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
1116 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
1117 * (pic16_newpCodeOpLit2): modified to take the second operand as
1119 * (pic16_printpBlock): modified to emit each function in a separate
1121 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
1122 UPPER for immediate operands,
1123 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
1125 * src/pic16/peeph.def: all peepholes with movff are commented out,
1126 because there is a problem in the pcode peep optimizer,
1127 * src/pic16/ralloc.c: the register allocator can now reuse local
1128 function symbols for another function. This saves register usage.
1129 * src/pic16/ralloc.h: added flag isLocal in structure regs,
1131 Added file src/pic16/NOTES with information about program writing on
1132 the current port version.
1134 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1136 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
1137 and peephole 252 (array access)
1139 2004-01-09 Borut Razem <borut.razem AT siol.net>
1141 * src/SDCCmain.c : fixed #872250: -l command line defined library
1142 files are scanned before standard library files
1144 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1146 * src/SDCCast.c (decorateType): fixed bug #874046
1148 2004-01-09 Borut Razem <borut.razem AT siol.net>
1150 * support/scripts/sdcc.nsi: remove previous installation
1152 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1154 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
1155 bytes for last interrupt vector (mcs51)
1156 * sdcc.spec: fixed typo
1158 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1160 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
1161 gen51Code): more efficient parameter receive for --model-large
1164 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1167 * src/z80/main.c: added missed needLinkerScript flags (more than
1168 one port structure defined in these file)
1169 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
1172 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
1174 * src/SDCCmain.c: removed various references to DEFAULT_PORT
1175 * src/port.h: added flag needLinkerScript in port->linker
1176 structure to inform whether to create a .lnk file or not,
1184 * src/z80/main.c: changed appropriately to configure
1185 needLinkerScript flag
1187 * src/pic16/gen.c (genAddrOf): fixed bug #863624
1188 * src/pic/glue.c: added variable udata_section_name to
1189 override default uninitialized data segment definition for
1190 devices only with SHAREBANK memory (reported from Erik Epetrich)
1191 * (pic14emitOverlay): modified to emit a commented overlay segment
1192 directive when no overlay data exist
1193 * (picglue): modified to emit uninitialized data segment
1194 according to udata_section_name
1195 * src/pic/main.c (_pic14_parseOptions): added command line
1196 options --udata-section-name=[name] to override default
1197 udata definition name
1198 * modified _linkCmd and _asmCmd to include compiler passed
1199 arguments via -W option
1200 * src/pic16/main.c: added $l in _asmCmd, changed extension for
1201 object file from '.rel' to '.o' in port->linker structure,
1202 changed size of fptr from 2 to 3 in port structure
1204 2004-01-07 Borut Razem <borut.razem AT siol.net>
1206 * support/scripts/sdcc.nsi: update PATH
1207 * support/scripts/sdcc.ico: craeted
1209 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
1211 * device/include/Makefile.in: fix install
1212 * doc/Makefile: fix install
1214 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1216 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
1218 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
1219 how the function variable allocation summary is displayed; also
1220 include information about variables allocated to the overlay
1223 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1225 * as/mcs51/lkmain.c: Help about -Y option
1226 * as/mcs51/lkarea.c: Fixed gcc warnings
1228 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
1230 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
1232 * support/valdiag/tests/overflow.c: added
1233 * src/SDCCast.c (decorateType),
1234 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
1235 LEFT_OP (left shift)
1237 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1239 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
1240 (default behaviour).
1242 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1244 A python script to validate compiler diagnostic messages. It can be
1245 used to verify that sdcc complains about bad c source code and
1246 gives a good location of the error.
1247 * support/valdiag/Makefile,
1248 * support/valdiag/valdiag.py,
1249 * support/valdiag/tests/*
1251 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1253 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
1254 * src/SDCCsymt.c (newEnumType),
1256 * support/Util/SDCCerr.c,
1257 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
1259 * support/regression/tests/enum.c: added test for enum values that
1260 require at least 2 bytes of storage.
1262 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
1264 * src/common.h: added ifndef/define/endif macros
1265 around the header file.
1266 Bug reported from Jesus Calvino-Fraga
1268 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
1270 * sdcc.spec: updated
1271 * device/include/Makefile.in: don't install CVS directories
1272 * device/lib/Makefile.in: added removal of CVS directories after install
1273 * doc/Makefile: fixed install, added local_icons
1274 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
1275 * src/mcs51/gen.c (genRightShift): fixed bug #870788
1276 * src/ds390/gen.c (genRightShift): fixed bug #870788
1277 * src/SDCCast.c (decorateType): fixed bug #870781
1279 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
1281 PIC16 port related changes:
1282 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
1283 added variable stackPos,
1285 * gen.c: genCall, assignResultValue: added support for
1286 pushing/retrieving function parameters to/from stack,
1287 genFunction,genEndFunction: setup stack frame for the
1289 genAddrOf: will be changed according to bug 863624
1291 * added files genutils.c and genutils.h which contain gen*
1292 debugged and optimised functions extracted from gen.c
1294 * glue.c: added variable 'externs' which holds extern symbols,
1295 pic16emitRegularMap: is modified to properly handle relocatable
1296 symbols under the new scheme,
1297 pic16createInterruptVect: is modified
1298 pic16printPublics: is modified to emit 'global' assembler directives,
1299 added pic16_printExterns to print extern symbols,
1300 pic16glue: initializes stack/frame pointer in the beginning of
1301 the assembly output. Temporary hack, will be corrected later,
1302 because gplink yet does not support stack and SDCC does not
1303 yet support a type of crt0.o object to create the final binary.
1305 * Removed many lines that contain 8051 legacy code.
1306 * The code is finally placed under a 'code' directive.
1307 * Added port specific options.
1309 * _process_pragma: simplified since now we do not need *special*
1310 include file to define SFR registers. But a separate header
1311 will be needed. This will be developed later.
1312 * _pic16_parseOptions: added, parses port specific options:
1313 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
1314 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
1315 --preplace-udata-with=
1317 * _pic16_setDefaultOptions: modified to initialize section names,
1318 but hack is temporarly out of order since it needs improvement.
1319 * _pic16_genAssemblerPreamble: configuration words are emitted by
1320 their address instead of their name. This part is incomplete and
1321 supports only the 18Fxx2 devices. Other devices will emit an error
1322 during assembly since they do not contain the same set of config
1324 * _pic16_genIVT: is modified,
1326 * pcode.c: added definitions for some hardware registers that are needed
1328 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
1329 All PCI entries are updated. Now LFSR is supported.
1330 * Removed pic16_pciTRIS is mentioned by mdubuc in source
1331 * added pic16_newpCodeOpLit2 to support instructions with
1332 two literal arguments
1333 * pic16_pCode2str: corrected code that emits assembler instructions
1334 with two literal operands and those that have an access bit modifier
1335 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
1336 this fixes a bug which caused some labels to be lost, when an
1337 assembler directive was added, i.e. banksel,
1338 * pic16_FixRegisterBanking: improved logic that causes the insertion
1340 * InlineFunction: functions that are called once, are not any more
1341 inlined. This can be a port option in the future,
1343 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
1345 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
1346 hold the corresponding uninitialized symbols,
1347 * pic16_allocProcessorRegister: registers have explicit marked the
1349 * pic16_allocInternalRegister: registers are explicit marked as
1351 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
1352 processing list, so bit registers were lost,
1355 * ralloc.h: added field 'accessBank' and original symbol operand
1356 in register definition,
1357 * removed the field isMapped from register definition,
1359 ** Several functions have been removed from various sources:
1360 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
1361 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
1362 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
1363 pic16_assignRelocatableRegisters
1365 ** others have been introduced:
1366 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
1367 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
1369 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
1371 * support/scripts/inc2h.pl: changed definition of BIT_AT
1372 to emit 'sbit at' instead of 'bit at'. This was a request.
1374 PIC16 port related preliminary changes:
1375 * gen.c: prefixed function popRegFromString with
1376 pic16_ and all references to it corrected
1377 * pcode.c: all pic16_pc_* hardware registers prefixed
1378 with underscore (_),
1379 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
1380 * ralloc.c: newReg(): when register is REG_SFR then
1381 set address to rIdx,
1382 pic16_allocProcessorRegister(): marks register wasUsed=0
1383 pic16_writeUsedRegs(): added a call to assign processor
1384 registers via pic16_assignFixedRegisters
1386 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1388 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
1389 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
1390 variables in unused register banks. Also the SSEG is placed
1391 wherever there is enough space for it, and IDATA can be anywhere
1392 in internal RAM. For now compile using -Wl-Y[stack_size].
1393 The mem file is different for this option as well, since it
1394 makes no sense of talking about DSEG lenght.
1396 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
1398 * src/SDCClrange.c: fixed bug 869095 that caused segfault
1399 in certain cases, e.g. when ROM assignment, patch provided
1400 from Albert den Haan.
1402 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1404 Many signedness and type propagation fixes:
1405 * src/SDCCicode.c: made geniCodeCast() static
1406 replaced SPEC_ by IS_ (cosmetic)
1407 (operandOperation): fixed div and mod operation
1408 (usualBinaryConversions): added support for promotion of char
1409 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
1410 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
1411 (geniCodeAdd): an array index will stay unsigned, even if promoted
1413 (geniCodeArray): ditto
1414 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
1415 * src/SDCCsymt.c (computeType): added more support for char;
1416 promotion of char is selectable by promoteCharToInt, fixed signedness
1418 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1419 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1420 * src/SDCCval (val*): replaced signedness calculation by
1422 rearranged if-branches (cosmetic)
1423 (valShift): added warning W_SHIFT_CHANGED
1424 (valCompare): fixed problem with different types
1425 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
1426 * support/regression/tests/literalop.c: added many cases
1427 * support/regression/tests/ast_constant_folding.c: changed finally to
1429 * .version: new year, new version: 2.3.7
1430 * src/SDCCmain.c (main): applied patch #866468
1431 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
1432 provided by Scott Bronson
1433 * doc/sdccman.lyx: updated documentation for sdcdb
1434 updated and added chapter tips
1436 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1438 * src/SDCCsymt.h: missing from yesterday's commits
1440 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1442 * src/SDCC.y (struct_or_union_specifier),
1443 * support/Util/SDCCerr.c,
1444 * support/Util/SDCCerr.h: verify that struct & union tags are used
1447 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1449 * src/SDCCglobl.h: missing from yesterday's commits
1451 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1453 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
1454 sft_attributes, struct_declaration, parameter_declaration,
1455 type_name, start_block, declaration_list),
1456 * src/SDCC.lex (check_type): support redefinition of typedef names
1458 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1460 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
1461 aligned xdata arrays. Erik helped me with the if clause.
1463 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1465 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
1468 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1471 * src/SDCCast.c (newAst_),
1473 * src/SDCCicode.c (ast2iCode, newiCode),
1475 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
1476 expr, statement, expression_statement, selection_statement,
1477 iteration_statement, expr_opt, jump_statement): foundation for tracking
1479 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
1482 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1484 * support/Util/SDCCerr.c,
1486 * src/SDCCast.c (createCase, createDefault, decorateType),
1487 * src/SDCClabel.c (labelUnreach),
1488 * src/SDCC.y (labeled_statement, jump_statement): More improvements
1490 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
1491 (with thanks to Stas Sergeev)
1492 * device/include/time.h,
1493 * device/lib/time.c (CheckTime): suppress unreachable code warning
1495 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1497 * src/SDCCast.c (createIvalCharPtr),
1498 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
1500 * support/regression/tests/nullstring.c: tests for these two bugs
1502 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1504 * support/Util/SDCCerr.h,
1505 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
1506 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
1507 about storage class and 'at' used inside struct or union
1508 * src/SDCCBBlock.c (iCodeFromeBBlock),
1509 * src/SDCCcse.c (ifxOptimize),
1510 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
1511 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
1512 printIval, emitStaticSeg, emitOverlay),
1513 * src/SDCClabel.c (deleteIfx),
1514 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
1515 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
1516 gatherAutoInit, processParms),
1517 * support/Util/SDCCerr.h,
1518 * support/Util/SDCCerr.c (werrorfl): Support for better error location
1519 reporting for post-parse errors.
1521 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1523 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
1524 implicit casts via union; they don't work on big endian systems
1525 (possible fix for bug #861138)
1527 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1529 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
1530 * src/mcs51/main.c: fixed the fix for bug #737001
1532 2003-12-15 Borut Razem <borut.razem AT siol.net>
1534 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
1536 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1538 * support/makebin/makebin.c: put output in binary mode
1540 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1542 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
1543 xdata and data memory on startup. Set the environment variable
1544 SDCC_NOGENRAMCLEAR to disable this.
1545 * src/mcs51/peephole.def,
1546 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
1547 (allows non-interrupt and interrupt code to safely compete for a resource
1548 without the non-interrupt code having to disable interrupts)
1550 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1552 * src/SDCCicode.c (geniCodeAdd),
1553 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
1554 with valFromType if type might be a pointer and host is big endian).
1555 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
1556 types, not just integer types.
1557 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
1558 multiply defined with mismatching "at" address.
1560 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1562 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
1563 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
1564 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
1565 with embedded nulls (fixed bug #753752)
1567 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1569 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
1570 Apparently this did not see much testing (endless loop)
1572 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1574 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
1576 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1578 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
1579 gracefully handle NULL memmap pointers
1581 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1583 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
1584 instead of deleting the iCode when an operand is volatile
1585 * src/z80/gen.c (genDummyRead),
1586 * src/mcs51/gen.c (genDummyRead),
1587 * src/ds390/gen.c (genDummyRead),
1588 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
1590 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
1591 * src/SDCC.y: fixed bug #850420
1593 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1595 Applied z80 i/o port patch from Peter Townson and fixed some operators
1596 to better handle operands in A register.
1597 * device/include/z180.h
1603 * src/z80/peeph-z80.def
1607 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1609 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
1611 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1613 * device/lib/hc08/_mullong.c: Removed extra #endif
1615 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1617 * sim/ucsim/hc08.src/inst.cc,
1618 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
1620 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
1621 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
1622 * device/include/stdarg.h: fixed varargs for hc08
1623 * device/lib/Makefile.in,
1624 * device/lib/hc08/Makefile,
1625 * device/lib/hc08/_mulint.c,
1626 * device/lib/hc08/_mullong.c: fixed some endian problems
1628 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1630 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
1631 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
1632 * device/lib/_gptrget.c,
1633 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
1635 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1637 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
1638 * src/SDCCast.c (astErrors): fixed bug #846007
1639 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
1641 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1643 * src/SDCCast.c (decorateType): disabled a transformation I added in
1644 revision 1.188 (access to fields of a structure at an absolute address);
1645 it breaks with bitfields, extern declarations, and gcse analysis.
1646 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
1647 could be assigned through a pointer, so don't complain.
1648 * src/SDCCast.c (astErrors),
1650 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
1652 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
1654 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
1655 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
1656 output of __config directives, since gpasm now supports them
1657 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
1658 pre-processor macro, i.e. -DMCU=p18f452
1659 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
1660 and modified to handle 'cast' icode similarly to '=' icode
1661 * src/pic16/device.h (typedef struct PIC_device): added field
1662 'extMIface' to indicate that chip has external memory interface
1663 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
1664 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
1667 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1669 * src/SDCC.y (pointer): fixed bug #846006
1670 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
1671 * src/SDCCast.c (decorateType): fixed bug #846009
1672 * src/ds390/peeph.def,
1673 * src/ds390/gen.c (genAnd, genOr),
1674 * src/mcs51/peeph.def,
1675 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
1677 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1679 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
1686 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
1690 * src/SDCCbitv.c: added function to free a bitvector
1692 * src/SDCClrange.c: added function to recompute the liveranges
1694 * src/ds390/ralloc.c,
1695 * src/hc08/ralloc.c,
1696 * src/mcs51/ralloc.c,
1698 * src/pic16/ralloc.c,
1699 * src/xa51/ralloc.c,
1700 * src/z80/ralloc.c: recompute the liveranges after register packing
1702 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
1704 * src/SDCCloop.c (newInduction): fixed bug #845630
1706 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1708 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
1709 inadvertantly left behind from my 2003-11-12 change
1711 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1713 Updated headers I neglected to commit yesterday.
1717 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1719 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
1720 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
1721 * src/SDCCopt.c (eBBlockFromiCode),
1722 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
1723 the creation of the key hash table from the sequencing so it can be used
1724 earlier (for some GCSE bug fixes still pending)
1726 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1728 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
1729 * support/regression/tests/addsub.c: testing genPlus shortcut
1731 2003-11-15 Borut Razem <borut.razem AT siol.net>
1733 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
1735 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1737 * src/SDCCcse.c (cseBBlock): fixed bug #527779
1738 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
1739 ordering is immaterial.
1740 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
1742 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1744 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
1745 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
1746 (SIGSEV) of bug #840381
1747 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
1748 unlink new file before rename if new and old filenames are the same)
1750 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1752 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
1753 uninitialized variables) for the mcs51. Set environment variable
1754 SDCC_GENRAMCLEAR to test.
1755 xdata initialization slightly shorter
1757 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1760 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
1761 #838241 & 780691 (basicly the same bug)
1762 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
1763 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
1765 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
1767 * src/SDCCmain.c (linkEdit): "fix" #834252
1769 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1771 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
1773 * src/SDCC.y: fixed bug #819403
1775 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1777 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
1778 the reentrant attribute.
1779 * src/hc08/gen.c (genPackBits): added missing stack readjustment
1780 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
1782 * src/SDCCast.c (decorateType): fixed bug with storage class not being
1783 updated during pointer dereference; f.e. ~(((char *)1)*) was being
1784 erroneously reduced to a literal.
1785 * src/hc08/ralloc.c (packRegisters, rematStr),
1786 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
1789 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1791 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
1792 * doc/sdccman.lyx: changed from 'article' to 'book'
1793 * doc/Makefile: readded test_suite_spec and cdbfileformat
1795 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
1797 * device/include/stdlib.h: include malloc.h to comply with ANSI
1798 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
1800 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1802 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
1803 * doc/clean.mk: also remove *.out files
1804 * doc/sdccman.lyx: some additions, larger top/bottom margins
1806 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1808 * src/SDCC.y: fixed bug #837365
1809 * support/regression/tests/bitopcse.c
1810 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
1811 a symbol (might be valop instead)
1812 * device/lib/Makefile.in: added errno.c to HC08SOURCES
1813 * device/lib/clean.mk: added hc08 to the cleaning list
1815 2003-11-04 Borut Razem <borut.razem AT siol.net>
1817 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
1819 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1820 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
1821 malloc is declared in standard stdlib.h
1823 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1825 * device/lib/hc08/Makefile: need to clean .rel not .o files
1826 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
1828 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1838 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
1839 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
1840 tests (which uses the port's oclsExpense function)
1846 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
1848 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1850 * src/SDCCcse.c (ifxOptimize),
1851 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
1852 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
1853 deleting the IFX iCode.
1854 * src/hc08/ralloc.c: reduced unneeded slocs
1855 * src/hc08/gen.c: fixed bug in asmopToBoolean
1857 2003-11-04 Borut Razem <borut.razem AT siol.net>
1859 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
1860 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1861 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
1862 transferred to configure
1864 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
1866 Use headers defined in the C[++] standards:
1867 * sim/ucsim/gui.src/serio.src/fileio.cc
1868 * sim/ucsim/gui.src/serio.src/frontend.cc
1869 * sim/ucsim/gui.src/serio.src/main.cc
1870 * sim/ucsim/gui.src/serio.src/posix_signal.cc
1871 * support/Util/NewAlloc.c
1877 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1879 * Added MSVC projects for hc08 assembler and linker:
1880 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
1881 /as/hc08/link_hc08.dsp
1883 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
1885 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
1887 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
1889 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
1891 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1893 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
1895 2003-10-31 Borut Razem <borut.razem AT siol.net>
1897 * support/cpp2/cpplib.h,
1898 support/cpp2/cpplib.c,
1899 support/cpp2/cpplex.c,
1900 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
1901 to switch _asm block preprocessing on / off. Default is
1902 #pragma preproc_asm +
1904 2003-10-31 Borut Razem <borut.razem AT siol.net>
1906 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
1907 when outputting comment blocks (when executed with -C option) and
1908 _asm (SDCPP specific) blocks
1910 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1912 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
1914 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
1916 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
1918 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
1920 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
1921 * src/SDCCast.c (decorateType): fixed bug #832664
1923 2003-10-31 Borut Razem <borut.razem AT siol.net>
1925 * support\cpp2\cpplex.c: fixed for SDCPP:
1926 comments(when executed with -C option) and _asm blocks
1927 were included even if they where in skipped #if block.
1928 Applied solution from GCC cpp 3.3.2
1930 2003-10-31 Borut Razem <borut.razem AT siol.net>
1932 * src/SDCC.lex: sdcc now understands both formats:
1933 '# <line_number> <file_name>' and
1934 '#line <line_number> <file_name>'
1935 * support/cpp2/cppmain.c: sdcpp now generates the standard
1936 '# <line_number> <file_name>' instead of former
1937 '#line <line_number> <file_name>'
1939 2003-10-30 Borut Razem <borut.razem AT siol.net>
1941 * support/cpp2/cpphash.h,
1942 * support/cpp2/cpplib.h
1943 * support/cpp2/cpplex.c,
1944 * support/cpp2/cppmain.c,
1945 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
1947 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1949 Fixed a number of problems revealed by bug #827883.
1950 * src/SDCCloop.c (loopInvariants): Spill location of the
1951 result operand should be recomputed if extracted from
1952 a loop. Also, don't extract assignments of an iTemp
1954 * src/SDCCast.c (isConformingBody): loop reversal should
1955 not occur if the control variable is involved with a
1956 relational operator.
1958 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1960 * .version: bumped to 2.3.6 to reflect the big improvements
1961 made by Erik and Klaus. Thanks!
1963 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
1965 Replaced the livrange code.
1966 * src/SDCClrange.c: added new LR code
1968 * src/SDCCBBlock.h: removed remainig parts from old LR code
1969 * src/ds390/ralloc.c,
1970 * src/ds390/gen.c: minor fixes to make it work with new code
1972 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1977 * src/hc08/ralloc.c: Fix various warnings related to the hc08
1978 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
1979 (tweaked fix for bug #818696)
1981 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1983 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
1985 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1988 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
1989 * src/mcs51/gen.c (gencjneshort),
1990 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
1991 more efficient (per Scott Bronson's suggestion)
1993 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1995 Extended the semantics of the critical keyword to include
1996 individual statements. See RFE #827755 and #799831
2001 * support/Util/SDCCerr.c
2002 * support/Util/SDCCerr.h
2007 2003-10-19 Borut Razem <borut.razem AT siol.net>
2009 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
2011 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2013 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
2015 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
2016 and predecrement operand is displayed
2018 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
2020 * src/SDCCval.c (valMinus): fixed bug #826041
2022 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2024 Some hc08 related updates that I missed earlier
2025 * sim/ucsim/stypes.h
2026 * support/regression/ports/hc08/spec.mk
2028 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2030 New target "hc08" for the Motorola 68hc08 family of micros
2038 * sim/ucsim/hc08.src/*
2039 * sim/ucsim/configure.in
2040 * src/ucsim/configure
2041 * sim/ucsim/packages_in.mk
2044 * device/include/mc68hc908qy.h
2046 * device/lib/Makefile.in
2047 * support/regression/ports/hc08/*
2048 * support/regression/Makefile
2050 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2052 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
2054 * src/ds390/gen.c (genCast): fixed bug #821957
2056 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
2058 * device/lib/logf.c: "fixed" overlay bug
2059 * support/regression/ports/host/spec.mk: added m library
2060 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
2061 * support/regression/tests/float_trans: added (for Eric)
2063 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
2065 * src/mcs51/gen.c (genCpl): fixed bug
2066 http://sf.net/mailarchive/message.php?msg_id=6263915
2068 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
2070 * src/SDCCast.c (decorateType): added extended constant folding
2071 * src/SDCCsymt.c (computeType): cleanup
2072 * src/SDCCval.c (valShift): minor optimization
2073 * support/regression/tests/ast_constant_folding.c: added
2075 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2077 * src/SDCCmain.c: removed some unintended changes
2079 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2081 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
2082 * src/z80/gen.c: fixed part of bug #817589
2083 * src/SDCCsymt.c (checkFunction): fixed bug #817895
2085 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
2087 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
2098 * src/ds390/ralloc.c
2100 * src/mcs51/ralloc.c
2102 * src/pic16/ralloc.c
2105 * src/z80/gen.c: removed unused label "release:"
2107 2003-10-06 Borut Razem <borut.razem AT siol.net>
2109 * src/SDCC.lex: removed definition of unused variables
2110 save_optimize and save_options
2112 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2114 * clean.mk: removed '=' in "-maxdepth=1"
2115 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
2116 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
2118 2003-10-06 Borut Razem <borut.razem AT siol.net>
2120 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
2121 my_unput() replaced by unput()
2123 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
2125 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
2126 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
2127 type-punned pointer will break strict-aliasing rules"
2128 Old LR behaviour is again default; Klaus' LR can be choosen by
2129 defining the environment variable LRKLAUS
2133 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
2134 * clean.mk: fixed removal of files in bin/CVS/
2135 * device/lib/clean.mk: fixed removal of directories small and large
2136 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
2138 * src/SDCCval.c: removed superflous test for pedantic
2140 2003-10-05 Borut Razem <borut.razem AT siol.net>
2142 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
2143 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
2144 message "unmatched #pragma SAVE and #pragma RESTORE"
2146 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2148 * doc/sdccman.lyx: various additions and updates (interrupts, inline
2149 assembly, critical functions, atomic, nojtbound)
2151 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
2153 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
2159 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2162 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2164 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2166 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2167 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
2168 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
2170 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2172 * src/z80/gen.c (genRet): fixed bug #524753
2173 * src/z80/gen.c (genCast): fixed internal error on cast from
2175 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
2176 fix for bug #477835 to the z80
2177 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
2178 for tracking iCodes in the peephole optimizer for z80
2180 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2182 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
2183 the other part of bug #814548
2184 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
2186 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
2188 * src/SDCCcse.c: fixed part of bug #814548
2190 2003-09-28 Borut Razem <borut.razem AT siol.net>
2192 * src/asm.c: rewrite of printILine() to use temporary file instead
2194 * src/xa51/main.c: commented out declaration of int rewinds
2196 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2198 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
2200 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2202 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
2203 * src/asm.c (printILine): Fixed bug #811015
2205 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2207 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
2210 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2212 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
2213 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
2214 to correctly handle general case of AOP_PAIRPTR
2215 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
2217 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2219 * src/mcs51/ralloc.c (fillGaps),
2220 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
2221 register positioning bug)
2223 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
2225 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
2227 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2229 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
2230 genCodePointerGet, genGenPointerGet, genFarPointerSet,
2231 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
2232 (ralloc doesn't intentionally do this now, but perhaps later)
2233 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
2234 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
2235 register positioning bugs (Fixed bug #762602 and #795325)
2236 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
2238 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
2239 lines that --i-code-in-asm generates
2241 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2243 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
2244 trying to fclose a FILE* that was already closed.
2246 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2248 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
2249 of const struct should be treated as if const themselves)
2251 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
2253 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
2255 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2257 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
2258 Unix (/n) and DOS (/r/n) line terminations.
2260 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2262 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
2265 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2267 * src/mcs51/gen.c (genFunction, genEndFunction),
2268 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
2269 and restore of EA so that stack offsets to parameters are
2270 correct when using both critical and reentrant/stack-auto.
2271 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
2272 size (can be triggered in error if sloc is shared between
2273 different sized objects)
2274 * device/include/float.h: fixed macros to explicitly use
2275 unsigned long where needed
2277 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
2279 Feature req. 799831: added code to allow nesting of critical functions
2280 * src/mcs51/gen.c (genFunction, genEndFunction)
2281 * src/ds390/gen.c (genFunction, genEndFunction)
2283 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2285 * src/SDCCsymt.c (sclsFromPtr),
2287 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
2288 support for standard C idiom of memory mapped variables; for
2289 example, *((xdata int*)0x1234) = 1 is now internally equivalent
2290 to xdata int at 0x1234 tempvar = 1.
2291 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
2292 provided by Akiya ISHIDA
2294 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
2296 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
2297 * src/SDCCval.c (constVal): added reduction from int to char
2298 * src/SDCCval.c (valMult, valDiv): fixed sign handling
2299 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
2300 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
2302 * support/regression/tests/shifts.c: fixed
2304 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2306 * src/z80/gen.c (genXor): Fixed bug #805445
2308 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2310 Fixed bug #621531 (const & volatile confusion in the type chain).
2311 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
2312 refer to the const or volatile state of the pointer itself.
2324 * src/pic16/ralloc.c
2325 * support/regression/tests/const.c
2327 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2329 When checking for duplicated modules, use absolute paths
2330 instead of relative paths. Files changed:
2335 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2337 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
2339 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2341 * device/include/string.h: added size_t typedef, changed
2342 prototypes to use size_t, eliminated separate reentrant and
2343 non-reentrant declarations, added _memmove declaration
2344 * device/lib/_memcpy.c: changed to use size_t instead of int,
2345 changed /4 to >>2 to avoid division library call
2346 * device/lib/_memcmp.c,
2347 * device/lib/_memset.c,
2348 * device/lib/_strncat.c,
2349 * device/lib/_strncpy.c,
2350 * device/lib/_strncmp.c: changed to use size_t instead of int
2351 * device/lib/_memmove.c: new file (fixed bug #772294)
2352 * device/lib/Makefile.in: added _memmove.c
2353 * device/lib/z80/asm_strings.s: fixed bug #772290
2354 * support/regression/tests/bitfields.c: attempt to fix host assertion
2355 failure on amd64-unknown-linux2.2
2357 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2359 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
2360 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
2361 * as/z80/asmain.c (main): fixed bug #801766
2363 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
2365 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
2368 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2370 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
2371 reported in bug #800609
2373 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
2375 * Top header beautifications in src/pic16 directory:
2376 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
2377 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
2378 pcoderegs.h, ralloc.c, ralloc.h
2379 * main.c: added top header and GPL license notice
2380 * pcode.c: fixed the if-conditional warning
2382 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
2384 * device/lib/_mullong.c: replaced int by short for gcc
2386 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2388 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
2389 and JUMPTABLE iCodes properly now (worked by accident before)
2390 * src/mcs51/gen.c (leftRightUseAcc),
2391 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
2392 iCode properly now. Use getSize instead of nRegs since a & b
2393 aren't part of the nRegs tally.
2395 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
2397 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
2398 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
2399 before instructions that use the _STATUS register
2401 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
2403 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
2404 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
2405 fetching of the pointer
2406 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
2407 copied from genNearPointerSet()
2408 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
2409 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
2410 If they pop r0/r1 they must be called in the opposite order than aopOp().
2411 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
2412 (resp. --stack-auto), prepared for --xstack
2414 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2416 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
2418 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
2420 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
2421 these ports have their own __sdcc_external_start()
2423 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
2425 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2426 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
2427 type for bits was changed. It resulted in bit variables becoming
2428 global, which is not permitted in PIC 14 assembly output.
2430 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2432 * doc/sdccman.lyx: various additions and updates. Rearranged sections
2434 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2436 Z80 and MCS51 linkers complaint if a public symbol is defined
2437 in more than one library module:
2441 * as/mcs51/Makefile.in
2443 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2445 A few small changes that speed up the peephole optimizer.
2449 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2451 Try to make the peephole optimizer smarter by maintaining
2452 an association between the assembly source code and the
2453 iCodes that originated them. Put this information to use
2454 with a new peephole rule condition "notVolatile" so that
2455 the rules can be aggressive yet still safe.
2460 * src/mcs51/peeph.def
2462 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2466 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
2467 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
2468 if the left or right operand symbols have the accuse flag set.
2470 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2472 Changed the type of the result of the ! (NOT) operator to char;
2473 previously it returned the same type as the source. This allows
2474 us to eliminate all the genFloatNot functions (all of its target
2475 implementations were very buggy) since !float can use the same
2478 * src/SDCCicode.c (ast2iCode): ! returns char
2479 * src/mcs51/gen.c (genNot, genNotFloat),
2480 * src/ds390/gen.c (genNot, genNotFloat),
2481 * src/z80/gen.c (genNot, genNotFloat),
2482 * src/pic/gen.c (genNot, genNotFloat),
2483 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
2485 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
2487 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2488 1. Interrupt would not compile properly. Ensure PCLATH register is saved
2489 during interrupts. Ensure WSAVE is located at a shared bank address.
2490 2. Fixed page selection in some places
2491 3. Fixed BTFSS/C to where necessary use registers directly and not simply
2492 the registers name strings.
2493 4. Fixed "signed / unsigned compare" compiler warnings.
2494 5. The PIC port manages its own allocation of the general purpose
2495 registers, but makes no attempt to reuse them. As a result when
2496 compiling it soon runs out of general purpose registers. Some
2497 additional code was added to the files pcode.c and device.c to walk
2498 through the function call tree and rename the registers so that they
2508 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
2509 genPlus() & genMinus() when the result is the same as left or right
2511 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2513 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
2515 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2517 Made bitfield a distinct type from bit so that bitfields
2518 convert as per ANSI C and bits retain their traditional
2519 boolean style behaviour. Implemented bitfield support in
2527 * src/ds390/gen.c: bit v bitfield split
2528 * src/z80/gen.c: New support for bitfields
2529 * support/regression/tests/bitfields.c: reenabled z80,
2532 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2534 Rules 246.x, 247.x relate to bitfields, the others speed up
2535 access to xdata mapped I/O devices.
2537 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
2539 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2541 Cleaned up genPackBits and genUnpackBits and added two helper
2542 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
2543 for literal assignments in genPackBits (thanks to Frieder for
2549 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2551 Fixed bug #748310 (pointer to function type mishandled when the
2552 function name is omitted). Also fixed a SIGSEGV when a function
2553 attribute (reentrant, etc) is used on a non-function or on a
2554 function but misplaced before the parameter list.
2556 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
2558 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
2559 * support/Util/SDCCerr.h,
2560 * support/Util/SDCCerr.c: Added func attr misuse error msg
2562 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2564 Fixed bug #787649 by anonymous
2565 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
2566 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
2568 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2570 Fixed numerous bitfield problems.
2572 * src/SDCC.y: More bitfield related error checking
2574 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
2575 * support/Util/SDCCerr.h,
2576 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
2577 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2578 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2579 * support/regression/tests/bitfields.c: tests added
2581 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2583 Made the constant following the "interrupt" keyword optional. If
2584 omitted, the function will not automatically be given an entry
2585 in the interrupt vector table (similar to #pragma NOIV, but
2586 less syntacticly kludgy). The interrupt number is also now
2587 range checked. Also fixed a bug in the high order bit example
2594 * support/Util/SDCCerr.c
2595 * support/Util/SDCCerr.h
2598 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2600 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
2601 * src/SDCCicode.c (operandOperation): rewritten some ops
2602 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
2603 * src/SDCCsymt.c (computeType): literals are handled the same way as any
2605 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
2606 be re-activated by defining REDUCE_LITERALS)
2607 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
2608 unsigned, but are signed by default
2609 * src/SDCCval.c (constVal): rearranged
2610 * src/SDCCval.c (valMod): preliminary fix
2611 * src/SDCCval.c (valCastLiteral): use TYPE_* types
2612 * support/regression/literalop.c: added, work in progress
2614 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2616 Generate warnings for useless declarations like "char data;"
2617 that don't do what new users expect.
2620 * support/Util/SDCCerr.h
2621 * support/Util/SDCCerr.c
2623 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
2625 * src/SDCCval.c (valMult): fix overflow detection of negative int
2627 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2629 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
2631 Changes to support big endian targets:
2644 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
2646 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
2647 * device/lib/time.c: fixed warning "integer overflow in expression"
2649 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
2651 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
2652 * src/SDCCval.c (constVal): changed default to signed; hex and octal
2653 constants are unsigned; added recognition of "u" flag for unsigned
2654 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
2655 * src/SDCCval.c (valDiv, valMod): fixed signdness
2656 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
2657 signedness of modulo, left and right shift
2658 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
2659 * support/Util/SDCCerr.h: added warning W_INT_OVL
2660 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
2661 * src/SDCCast.c (ast_print): improved output of constants
2663 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2665 Fixed some warnings when building with MSVC:
2678 * support\cpp2\cpplib.c
2682 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
2684 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
2686 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2688 * support\librarian\clean.mk: Do not remove Makefile.
2689 * support\librarian\Makefile: added.
2691 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2693 Added librarian to MSVC build:
2696 * support\librarian\librarian.dsp
2698 'configure' not needed for librarian, removed:
2699 * support\librarian\configure
2700 * support\librarian\configure.in
2701 * support\librarian\config_in.h
2702 * support\librarian\Makefile.in
2704 Hopefully these ones built the librarian and the rest of sdcc properly:
2706 * Makefile.common.in
2708 Messed up 'configure', so revert to previous version:
2712 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
2714 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
2715 there, while the mantissa of a double is "only" 53 bits wide.
2717 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2719 Adding sdcclib to the build. MSVC project coming soon.
2720 Files added/changed:
2722 * support\librarian\clean.mk
2723 * support\librarian\configure
2724 * support\librarian\configure.in
2725 * support\librarian\config_in.h
2726 * support\librarian\Makefile.bcc
2727 * support\librarian\Makefile.in
2728 * support\librarian\sdcclib.c
2731 * Makefile.common.in
2735 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2737 Linker now complaints if linked modules have conflicting options, for
2738 example, one compiled using --model-large and another one compiled with
2739 --model-small. The following files were modified:
2761 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2763 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
2764 as/mcs51/lklibr.c: Generate a warning when a library is not found.
2766 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
2768 * src/z80/mappings.i: fix _mul[us][int,long] entries
2770 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2772 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
2774 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2776 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
2777 * support/regression/tests/bitopcse.c: added
2785 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2787 added support for new library format to z80, gbz80 linkers:
2793 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2795 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
2796 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
2798 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
2800 added DUMMY_READ_VOLATILE:
2809 * src/SDCCcse.c (algebraicOpts): many improvements
2810 * src/SDCCcse.h: removed algebraicOpts()
2811 * src/SDCCicode.c (picDummyRead): added
2813 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2815 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
2816 "Insufficient space in data memory".
2818 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2820 * src/mcs51/gen.c: fixed bug #771358
2821 * src/z80/gen.c: fixed bug #759087
2823 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
2825 * src/pic16/glue.c: minor cleanup by Vangelis
2827 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2829 * device/include/regc515c.h: fixed #758477
2830 * device/lib/_gptrget.c: saving some cycles in generic pointer get
2831 * device/lib/_gptrput.c: saved a few bytes
2832 * my tab spacing is 8, yours too?)
2833 * device/lib/_ser.c: process RX bytes earlier than TX bytes
2834 * device/lib/serial.c: process RX bytes earlier than TX bytes
2835 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
2837 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2839 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
2841 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2843 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
2845 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
2847 * device/lib/Makefile.in: bad fix, reverted to 1.43
2849 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
2851 * device/lib/Makefile.in: added missing z80 object files
2853 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
2855 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
2856 pic16 progress by Vangelis:
2871 * pic16/pcodepeep.c:
2874 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2876 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
2878 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2880 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
2881 added gbz80 build to MSVC project.
2882 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
2883 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
2884 from 8051 stuff and setup so it links using a .lnk file.
2886 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2888 * support/librarian/sdcclib.c: sdcc librarian.
2889 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
2892 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2894 * as/mcs51/lkmain.c: properly handle extensions in function afile.
2896 2003-07-02 Borut Razem <borut.razem AT siol.net>
2898 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
2899 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
2900 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
2901 src/xa51/main.c, src/z80/main.c:
2902 virtualization of glue() function: each port has it's own glue function,
2903 which is accessed by do_glue function pointer in PORT.general structure
2905 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
2907 * DS800C400 fun, improved ROM interface and tinibios.
2909 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
2911 * More support for DS80C400. Now includes beginning of interface to ROM.
2913 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
2915 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
2917 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2919 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
2921 2003-06-19 Borut Razem <borut.razem AT siol.net>
2923 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
2925 2003-06-19 Borut Razem <borut.razem AT siol.net>
2927 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
2928 fixed Z80 port - crt0.o: cannot open.
2930 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
2932 * support/Util/MySystem.c (merge_command): revert bad fix
2934 2003-06-18 Borut Razem <borut.razem AT siol.net>
2936 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
2938 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2940 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2941 option --use-stdout sends errors to stdout instead of stderr.
2943 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
2945 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
2947 2003-06-15 Borut Razem <borut.razem AT siol.net>
2949 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
2950 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
2951 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
2952 fixed width array of pointers replaced with sets;
2953 multiple include and lib paths ared transferred to preprocessor and linker
2954 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
2955 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
2956 fixed width array of pointers
2957 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
2958 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
2959 fixupPath(), getPathDifference()
2960 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
2961 fixed width array of pointers
2963 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
2965 * src/pic16/ralloc.c: fix warnings
2966 * src/pic16/pcode.c: fix warning
2968 2003-06-10 Scott Dattalo <scott AT dattalo.com>
2970 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
2971 know all the details, but essentially this set of changes enable
2972 the pic16 port to generate movff instructions and generate assembler
2977 * src/pic16/pcode.c:
2978 * src/pic16/device.c:
2980 * src/pic16/pcode.h:
2981 * src/pic16/pcoderegs.c:
2982 * src/pic16/ralloc.c:
2983 * src/pic16/ralloc.h:
2985 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2987 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2988 added option --vc, so sdcc errors and warnings are compatible with
2989 Microsoft Visual Studio.
2991 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2993 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
2994 device/lib/libfloat.lib: added atof function.
2996 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2998 * doc/sdccman.lyx: updated to Lyx 1.3
2999 * doc/cdbfileformat.lyx: updated to Lyx 1.3
3000 * doc/test_suite_spec.lyx: updated to Lyx 1.3
3001 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
3003 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
3005 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
3007 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3009 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
3010 additions to the "related tools/documentation" section
3012 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
3014 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
3016 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
3018 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
3019 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
3021 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
3023 * doc/sdccman.lyx: fix double dash and other minor things
3024 * doc/Makefile: fix double dash
3026 2003-05-28 Karl Bongers(patches from Martin Helmling)
3027 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
3028 condition and ignore commands.
3030 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3032 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
3033 is in parts still quite out of date, I did changes as far as I felt makes sense
3034 for a non-native english speaker.
3035 Please feel free to add to the manual or to correct my changes.
3036 * doc/Makefile: undid touching the date of intermediate tex files.
3038 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3040 * doc/sdccman.lyx: Manual has an index now
3042 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
3044 Finalize muluint/mulsint and mululong/mulslong merging:
3045 * device/lib/_mulint.c
3046 * device/lib/_mullong.c
3047 * device/lib/gbz80/mul.s
3048 * device/lib/gbz80/stubs.s
3049 * device/lib/z80/mul.s
3050 * device/lib/z80/stubs.s
3051 * src/SDCCsymt.c (initCSupport)
3053 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3055 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
3056 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
3057 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
3058 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
3061 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3063 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
3064 the regression tests I'm not brave enough to enable 245.b, 245.c
3065 * doc/sdccman.lyx: added latex preamble for hyperref package.
3066 Using pdflatex this will give you a hyperlinked pdf file with
3067 bookmarks. (prepend '%' before /usepackage if this breaks something)
3069 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3071 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
3073 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
3075 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
3077 2003-05-21 <johan AT balder>
3079 * src/SDCCglue.c (printIval): fixed bug #739934
3081 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
3083 Applied patch from bug 737905 (renamed yylineo to mylineno):
3090 * src/pic16/pcode.c: Cleaned warnings
3091 * src/pic16/pcodeflow.c: Cleaned warnings
3092 * src/pic16/pcoderegs.c: Cleaned warnings
3094 2003-05-19 Scott Dattalo <scott AT dattalo.com>
3096 * src/pic16/pcode.c: Cleaned warnings
3097 * src/pic16/pcodepeep.c: Cleaned warnings
3098 * src/pic16/ralloc.c: Cleaned warnings
3100 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
3102 * doc/sdccman.lyx: fixed bug 739745
3103 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
3105 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
3107 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
3108 it can be defined with CFLAGS when running configure
3109 * src/SDCCmain.c: fixed compiling + linking with object files
3111 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
3113 * configure.in: configure for pic16 port,
3114 added --disable-pic16-port
3115 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
3116 * src/SDCCmain.c: linkOptions is changed to set *,
3117 added if/endif conditional macros to remove options help
3118 messages from optionsTable when a port is not configured, added
3119 support for the PIc16 port in the ports table, when executing
3120 the compiler with no port specified on command line, a default
3121 port is selected with the new macro DEFAULT_PORT which is
3122 defined in port.h, in setDefaultOptions() linkOptions is removed
3123 from initialization assignment, since now it is a set,
3124 parseCmdLine uses setParseWithComma for linkOptions, in
3125 linkEdit() linkOptions are accessed with new function indexSet()
3126 which returns the i'th item of a set variable. See SDCCset.c, in
3127 linkEdit() when calling buildCmdLine(), added linkOptions as
3128 last argument. Now users can pass arguments to gplink via the
3129 -Wl option, main() uses pic16glue() to glue up pic16 programs
3130 * src/SDCCpeeph.c: various changes to support pic16
3131 * src/SDCCset.c: added function void *indexSet(set *, int) to
3132 return the i'th item of the set
3133 * src/SDCCset.h: added function prototype for indexSet()
3134 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
3135 * src/clean.mk: added pic16 in CLEANALLPORTS variable
3136 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
3137 added macro DEFAULT_PORT
3138 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
3139 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
3141 * src/pic16/glue.c: commented out some error producing lines
3142 * src/pic16/main.c: __config directives are commented out to stop
3143 gpasm complaining and test the linkage with gplink, _linkCmd and
3144 _asmCmd changed to be more gplink and gpasm friendly
3145 * src/pic16/peeph.def: peep rule 3 is commented out, since it
3146 produced an error when parsed, peep rule 12 is added to utilize
3147 movff, but it is commented out since the pCode does not support
3148 yet a command with 2 address arguments
3150 2003-05-18 <johan AT balder>
3152 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
3153 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
3154 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
3156 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
3157 Added feature to script commands from file.
3159 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3161 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
3162 * src/SDCCutil.c: include ctype.h for win32
3164 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3166 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
3168 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
3170 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
3171 Fixed so you can set breakpoints prior to run, run does not stop
3172 on entry now. Add tbreak. Other enhancements and fixes for use
3175 2003-05-12 Borut Razem <borut.razem AT siol.net>
3177 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
3179 2003-05-11 Borut Razem <borut.razem AT siol.net>
3181 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
3182 the path of bin directory, so that PATH is the only env. variable, which has to be set
3183 in case of standard installation.
3184 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
3185 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
3186 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
3188 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
3190 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
3191 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
3192 temp files are in the port dir; clean the gen/test directory when
3193 generating new test.c
3194 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
3195 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
3196 * support/regression/tests/zeropad.c: added
3198 2003-05-09 <johan AT balder>
3200 * src/SDCCglue.c: fixed bug #597940
3202 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
3204 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
3205 cache sfr, optimize next,step, fix off by one sourceline,
3206 support ddd list function.
3207 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
3209 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
3211 * support/regression/HTMLgen.py: added compare_s2f()
3212 * support/regression/Makefile: redo 1.27
3213 * support/regression/generate-cases.py: redo 1.5
3215 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3217 * support/regression/tests/float.c: workaround 33 bit hex constant
3218 * support/regression/tests/simplefloat.c: fix division for host
3220 2003-04-29 Scott Dattalo <scott AT dattalo.com>
3222 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
3223 that tame's the PIC's over-aggressive optimizer.
3225 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3227 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
3230 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
3232 Initial support for DS80C400. "Hello world" runs on TINIm400
3235 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
3237 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
3238 * Some notes on ddd usage added in debugger/README
3239 Martin Helmling adding more features and fixes for ddd GUI debugger.
3240 Code added for nexti, stepi, up, down, and other adjustments.
3242 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
3244 * src/pic/pCodepeep.c non-wildcard asmops are now handled
3245 * src/pic/peeph.def Added two rules to optimize carry manipulation
3246 * src/pic/* removed debug printfs
3248 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3250 * debugger/mcs51/cmd.c: added header newalloc.h
3252 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3254 * as/Makefile: new EXEEXT
3255 * as/z80/Makefile: remove trailing slash of BUILDIR
3256 * as/z80/clean.mk: new EXEEXT
3257 * Makefile.common.in: add to CFLAGS (and others), don't replace it
3258 * support/cpp2/Makefile.in: new EXEEXT
3259 * src/pic/glue.c (pic14emitRegularMap): fixed warning
3261 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3263 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
3264 EXEEXT was introduced to fix all related problems with targets
3265 "clean", "install" and "uninstall"; a couple of further flaws
3266 especially with "clean" have been fixed too
3267 * as/mcs51/Makefile.in
3272 * debugger/mcs51/Makefile.in
3273 * debugger/mcs51/clean.mk
3275 * link/z80/Makefile.in
3278 * packihx/Makefile.in
3280 * sim/ucsim/Makefile
3281 * sim/ucsim/clean.mk
3282 * sim/ucsim/avr.src/Makefile.in
3283 * sim/ucsim/avr.src/clean.mk
3284 * sim/ucsim/s51.src/Makefile.in
3285 * sim/ucsim/s51.src/clean.mk
3286 * sim/ucsim/xa.src/Makefile.in
3287 * sim/ucsim/xa.src/clean.mk
3288 * sim/ucsim/z80.src/Makefile.in
3289 * sim/ucsim/z80.src/clean.mk
3290 * sim/ucsim/main_in.mk
3291 * sim/ucsim/packages_in.mk
3292 * sim/ucsim/gui.src/Makefile.in
3293 * sim/ucsim/gui.src/serio.src/Makefile.in
3294 * sim/ucsim/gui.src/serio.src/clean.mk
3297 * support/cpp2/Makefile.in
3298 * support/cpp2/clean.mk
3299 * support/makebin/Makefile
3300 * support/makebin/clean.mk
3301 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
3302 * doc/sdccman.lyx: --program-suffix no longer needed
3304 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
3306 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
3307 Martin Helmling added support for ddd GUI debugger.
3308 Code added to display assembly, set variables, and other commands
3309 to interface to ddd.
3311 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
3313 * as/Makefile: fix target clean
3314 * as/clean.mk: fix target clean
3315 * as/z80/clean.mk: fix target clean
3317 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
3319 * Makefile.common.in: added AT EXEEXT AT
3320 * configure.in: removed all mingw32 stuff
3321 * configure: rebuilt from configure.in
3322 * doc/sdccman.lyx: updated section "installation"
3323 * support/scripts/sdcc_mingw32: adapted to configure
3324 * support/scripts/sdcc_cygwin_mingw32: added
3326 2003-04-22 Scott Dattalo <scott AT dattalo.com>
3328 * src/pic Added object file support for the PIC port
3329 * src/pic Applied patch from Craig Franklin (this started the object file support)
3330 * src/regression Updated the PIC regression tests for object files
3332 2003-04-20 Borut Razem <borut.razem AT siol.net>
3334 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
3335 lklex.c: In function `getfid':
3336 lklex.c:203: warning: array subscript has type `char'
3337 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
3338 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
3339 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
3340 stack handling macros
3342 2003-04-19 Borut Razem <borut.razem AT siol.net>
3344 * "handling space characters in file path" task:
3345 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
3346 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
3347 * support/Util/MySystem.h: make it self-sufficient
3348 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
3349 src/z80/main.c, sdcc/as/mcs51/lklex.c:
3350 handling space characters in file path
3351 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
3352 (it will be used by assemblers, which have their own includes, e.g. gpasm)
3353 * support/Util/MySystem.c: handling space characters in executable's path
3355 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
3357 * as/z80/Makefile: fix permanent rebuild of z80
3358 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
3359 * support/regression/tests/bitfields.c: added Johan's bitfields.c
3361 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
3363 * src/SDCCopt.c: add special case optimization to replace modulo by
3364 a power of two with a bitwise AND.
3366 2003-04-18 <johan AT balder>
3368 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
3370 2003-04-17 <johan AT balder>
3372 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
3373 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
3375 2003-04-13 Borut Razem <borut.razem AT siol.net>
3377 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
3378 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
3379 fixed mingw problem in adl_NORMALIZE_PATH
3381 2003-04-12 Borut Razem <borut.razem AT siol.net>
3383 * fixed "#pragma SAVE/RESTORE can not be nested":
3384 * src/SDCC.lex: reworked pragma handling functions
3385 * sdcc/src/SDCCglobl.h: reworked stack handling macros
3386 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
3388 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3390 * src/SDCCutil.c (pathEquivalent): defined but not used
3391 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
3392 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
3393 * configure: rebuilt from configure.in
3394 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3395 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3396 * device/include/Makefile.in: replace sdcc_datadir
3397 * device/lib/Makefile.in: replace sdcc_datadir
3398 * Makefile.common.in: add LDFLAGS from configure
3399 * packihx/Makefile.in: use LDFLAGS
3400 * src/Makefile.in: use LDFLAGS
3401 * support/cpp2/Makefile.in: add LDFLAGS from configure
3402 * support/makebin/Makefile: use LDFLAGS
3403 * .version: bumped version number to 2.3.5
3405 2003-04-12 Borut Razem <borut.razem AT siol.net>
3407 * completed "different paths" task:
3408 * src/SDCCmacro.c: fixed bug in handling quotes
3409 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
3410 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
3412 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3414 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
3416 2003-04-11 kevin Vigor <kevin AT vigor.nu>
3418 * ds390/gen.c ds390/peeph.def: fix bug 706781
3420 2003-04-11 Borut Razem <borut.razem AT siol.net>
3422 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
3424 2003-04-10 Scott Dattalo <scott AT dattalo.com>
3426 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
3427 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
3428 set - this bit used to not be set...).
3429 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
3430 bad code in PIC Port
3431 * src/regression/and2.c added to test bug 609268
3432 * src/regression/Makefile added and2.c to regression test
3435 2003-04-08 <johan AT CP255758-A>
3437 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
3438 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
3439 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
3441 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
3443 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
3445 * support/cpp2/Makefile.in: fix bug #487815
3446 * configure: rebuilt from configure.in
3447 * Makefile.common.in: docdir changed, new path suffixes
3448 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3449 * sdcc_vc_in.h: reflect changes from sdccconf.h
3450 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
3451 * src/SDCCutil.h: remove BINDIR hack
3452 * doc/sdccman.lyx: update new path hierarchy
3454 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3456 * src/SDCCpeeph.c: added okToRemoveSLOC test
3458 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3460 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
3462 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3464 * src/SDCCpeeph.c: added labelIsReturnOnly test
3465 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
3467 2003-04-05 <johan AT balder>
3469 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
3470 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
3471 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
3472 * src/SDCCast.c: fixed a warning
3473 * src/SDCCast.h: fixed a warning
3474 * src/SDCCicode.c (operandFromAst): fixed a warning
3476 2003-04-04 <johan AT balder>
3478 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
3479 * src/SDCCast.c (decorateType): fixed bug #715076
3480 * src/SDCC.y: fixed bug #702907
3482 2003-04-03 <johan AT balder>
3484 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
3485 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
3486 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
3487 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
3488 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
3490 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
3492 * _decdptr.c: fix return values
3493 * _gptrget.c: fix return values
3494 * _gptrgetc.c: fix return values
3495 * _gptrput.c: fix return values
3496 * _mulint.c: fix return values
3497 * as/z80/Makefile: fix 'make -j' problem
3499 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
3501 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
3502 * configure.in: big cleanup, updated to autoconf 2.5x
3503 * configure: rebuilt from configure.in
3504 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3505 * sdcc_vc_in.h: reflect changes from sdccconf.h
3506 * doc/Makefile: fixed a flaw in "make install"
3508 2003-04-02 <johan AT balder>
3510 * src/ds390/gen.c (genCmp): no comments
3511 * src/mcs51/gen.c (genCmp): no comments
3512 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
3513 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
3515 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
3517 * support/regression/generate-cases.py: place generated file in given sub directory
3518 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
3519 * support/regression/Makefile: improvements for 'make -j';
3520 side effect: it's simpler and faster now
3522 2003-03-31 Borut Razem <borut.razem AT siol.net>
3524 * src/z80/main.c: link-{port} and as-{port} defined without path
3525 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
3527 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
3529 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
3531 2003-03-30 Borut Razem <borut.razem AT siol.net>
3533 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
3534 changed type of list parameter to set
3535 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
3536 * src/port.h: changed type of do_assemble() parameter to set
3537 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
3538 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
3539 definition of "cppoutfilename" macro with NULL value in preProcess()
3540 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
3541 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
3542 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
3543 replaced with set *binPathSet
3544 * shash_add() deallocates the item, if allready exsists, before adding the new one
3545 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
3547 2003-03-30 Scott Dattalo <scott AT dattalo.com>
3549 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
3550 a nested for loop bug in the PIC port
3551 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
3554 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
3556 * support/Util/dbuf.h: remove C++ stuff to make it portable
3558 2003-03-28 Borut Razem <borut.razem AT siol.net>
3560 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
3561 literal strings in stringLiteral()
3562 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
3563 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
3566 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
3568 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
3570 2003-03-26 <johan AT balder>
3572 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
3573 * src/ds390/gen.c (saveRegisters): catched symbol abuse
3574 * src/SDCCast.c (decorateType): fixed " -v < 3"
3576 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3578 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
3579 Added Lenny Story's debug infrastructure changes:
3580 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
3581 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
3582 * src/cdbFile.c: added
3583 * src/SDCCdebug.c: added
3584 * src/SDCCdebug.h: added
3585 * src/SDCCast.c (createFunction)
3586 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
3587 * src/SDCCmain.c (parseCmdLine, main)
3588 * src/SDCCmem.c (redoStackOffsets)
3589 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
3592 * src/avr/gen.c (genAVRCode)
3593 * src/ds390/gen.c (gen390Code)
3594 * src/mcs51/gen.c (gen51Code)
3595 * src/pic/gen.c (genpic14Code)
3596 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
3597 * src/xa51/gen.c (genXA51Code)
3598 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
3600 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3602 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
3603 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
3605 2003-03-22 <johan AT balder>
3607 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
3609 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
3611 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
3612 * doc/cdbfileformat.lyx: added, written by Lenny Story
3613 * doc/Makefile: added cdbfileformat.lyx
3614 * doc/clean.mk: added cdbfileformat.lyx
3616 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
3618 * src/mcs51/peeph.def: fix bug #705773
3620 2003-03-20 <johan AT balder>
3622 An sfr/sbit can have an "at #" AND an initializer
3623 * src/SDCCsymt.c (checkSClass):
3624 * src/SDCCmem.c (allocGlobal):
3625 * src/SDCCmem.c (allocLocal):
3626 * src/SDCCast.c (createBlock):
3628 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
3630 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
3632 2003-03-16 <johan AT balder>
3634 Undid the hackup of const and volatile, the problem is much bigger
3636 * src/SDCCast.c:1.171
3637 * src/SDCCglue.c:1.138
3638 * src/SDCCicode.c:1.146
3639 * src/SDCCsymt.c:1.150
3640 * src/SDCCval.c:1.65
3642 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
3644 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
3645 * src/ds390/gen.c (genAddrOf): fixed bug #704087
3647 2003-03-13 <johan AT balder>
3649 Hackup const and volatile modifiers in type chains a bit:
3651 * src/SDCCast.c:1.169
3652 * src/SDCCglue.c:1.136
3653 * src/SDCCicode.c:1.143
3654 * src/SDCCsymt.c1.146
3655 * src/SDCCsymt.h1.59
3656 * src/SDCCval.c:1.63
3658 2003-03-12 <johan AT balder>
3660 * src/SDCCBBlock.h: more LRH debugging junk
3661 * src/SDCCcflow.h: more LRH debugging junk
3662 * src/SDCCloop.c: more LRH debugging junk
3663 * src/SDCC.y (struct_declaration): fixed bug #697590
3664 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
3665 * src/ds390/gen.c (aopForRemat): fixed bug #700031
3666 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
3668 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3669 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
3670 test function names must now match exactly).
3671 * src/SDCCcse.c: added special case in findCheaperOp to allow
3672 extending a short integer. Makes less awful code for bug 700121 test case.
3674 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3676 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
3677 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
3679 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3681 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
3682 actually called (operandsNotEqual() was called for all
3683 operandsNotEqualX tests).
3685 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3687 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
3688 with shorter literals. Fixes bug 700121.
3690 2003-03-11 <johan AT balder>
3692 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
3694 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
3696 * src/SDCCloop.c (mergeRegions): an evil beast is dead
3697 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
3699 2003-03-10 Borut Razem <borut.razem AT siol.net>
3701 * src/SDCCmain.c: pipe preprocessor's output
3702 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3703 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3704 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3705 which closes all pipes in pipeSet set
3706 * src/SDCCset.c: free deleted item in function deleteSetItem()
3707 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3708 moved from z80 to src subproject
3709 * .version: increased version number to 2.3.4
3711 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
3713 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
3714 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
3715 * support/regression/ports/xa51/spec.mk: fix typo
3717 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
3719 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
3721 2003-03-09 Borut Razem <borut.razem AT siol.net>
3723 * src/SDCCmain.c: pipe preprocessor's output
3724 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3725 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3726 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3727 which closes all pipes in pipeSet set
3728 * src/SDCCset.c: free deleted item in function deleteSetItem()
3729 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3730 moved from z80 to src subproject
3732 2003-03-09 Borut Razem <borut.razem AT siol.net>
3734 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
3735 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
3736 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
3737 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
3738 * src/SDCCglobl.h: unification of WIN32 native definitions
3740 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3742 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
3744 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3746 * src/configure.in: check for endianess (even while cross-compiling)
3747 * src/configure: check for endianess (even while cross-compiling)
3748 * src/configure_in.h: check for endianess (even while cross-compiling)
3749 * src/avr/gen.c: remove old endianess stuff
3750 * src/mcs51/gen.c: remove old endianess stuff
3751 * src/ds390/gen.c: remove old endianess stuff
3752 * src/pic/gen.c: remove old endianess stuff
3753 * src/pic/genarith.c: remove old endianess stuff
3754 * src/pic/glue.c: fix endianess check
3755 * src/pic16/gen.c: remove old endianess stuff
3756 * src/pic16/genarith.c: remove old endianess stuff
3757 * src/pic16/glue.c: fix endianess check
3758 * src/xa51/gen.c: remove old endianess stuff
3759 * src/z80/gen.c: fix endianess check
3760 * src/SDCCglue.c: fix endianess check
3761 * src/ds390/peeph.def: fix bug 700036
3763 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3765 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
3766 * src/configure: find appropriate data-types on host for SDCC's int and long
3767 * src/configure.in: find appropriate data-types on host for SDCC's int and long
3768 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
3769 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
3771 2003-03-07 <johan AT balder>
3774 some minor cleanups before the big shot
3775 OP_DEFS and OP_USES now use Kevin's protection
3776 new option --nolabelopt
3787 * src/ds390/ralloc.c:
3788 * src/mcs51/ralloc.c:
3790 * src/xa51/ralloc.c:
3793 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
3795 * src/pic/pcode.c (get_op): fix 64 bit warnings
3796 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
3797 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
3798 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
3799 * support/regression/tests/malloc.c: fix 64 bit warnings
3801 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
3803 * src/mcs51/gen.c (genMinus): fixed bug 696436
3805 2003-03-02 Borut Razem <borut.razem AT siol.net>
3807 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
3809 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
3811 * configure.in: test for mkstemp
3812 * sdccconf_in.h: add HAVE_MKSTEMP
3814 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
3816 * device/include/ctype.h: removed warning while using --stack-auto
3817 * device/include/malloc.h: removed warning while using --stack-auto
3818 * device/include/string.h: removed warning while using --stack-auto
3820 2003-02-23 Borut Razem <borut.razem AT siol.net>
3822 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
3823 because NDEBUG is defined (see man assert)
3824 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
3826 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3828 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
3829 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
3831 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3833 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
3834 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
3836 2003-02-18 <johan AT balder>
3838 * as/mcs51/asmain.c (asmbl): module can start with a digit
3839 * as/z80/asmain.c (asmbl): module can start with a digit
3841 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
3843 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
3844 * src/asm.c: fix pipe() for Mingw32
3846 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
3848 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
3849 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
3850 make -V work again; --c1mode reads now from stdin
3851 * doc/sdccman.lyx: added --c1mode
3852 * support/Util/SDCCerr.c: new messages for c1 mode
3853 * support/Util/SDCCerr.h: new messages for c1 mode
3854 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
3856 2003-02-15 <johan AT balder>
3858 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
3860 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
3862 * doc/sdccman.lyx: Environment variables, -o and other minor things
3864 2003-02-14 <johan AT balder>
3866 * src/xa51/main.c: before anyone really tries to use it :)
3868 * Install doc's in share/sdcc/doc
3869 * removed some obsolete files
3870 * Do a proper make distclean and uninstall
3871 M Makefile.common.in
3874 M device/include/Makefile.in
3875 M device/lib/Makefile.in
3878 M sim/ucsim/doc/Makefile.in
3881 R src/xa51/peeph.rul
3882 M support/cpp2/Makefile.in
3883 M support/makebin/Makefile
3886 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
3888 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
3890 2003-02-10 Borut Razem <borut.razem AT siol.net>
3892 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
3893 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
3894 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
3895 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
3896 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
3897 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
3898 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
3899 src/z80/Makefile.bcc: Borland Makefile cleanup
3900 * as/z80/Makefile.bcc: Added Borland Makefile
3901 * support/cpp2/borland.h: Removed
3903 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
3905 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
3906 * src/SDCC.lex: new pragma NOIV
3907 * src/SDCCglobl.h: new pragma NOIV
3908 * src/SDCCmem.c: new pragma NOIV
3910 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3912 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
3914 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3916 * src/SDCCmain.c: signal handling is switched off by --debug
3917 * doc/Makefile: small fix for install; use clean.mk again
3918 * doc/clean.mk: clean *.pdf and *.html too
3920 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
3922 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
3923 * device/lib/printfl.c: fix a ds390 bug by making it portable
3924 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
3925 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
3926 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
3927 * debugger/mcs51/cmd.c: converted multi-line string literals
3928 * sim/ucsim/globals.cc: converted multi-line string literals
3929 * src/SDCCmain.c: introduced signal handler to remove temp files
3930 * doc/Makefile: small tweaks, implement clean
3931 * doc: removed generated files
3933 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3935 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
3936 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
3937 Address Record is not correctly generated for DS390."
3939 2003-02-02 Borut Razem <borut.razem AT siol.net>
3941 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
3942 * as/mcs51/asm.h: fixed compilation with Borland C
3943 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
3944 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
3945 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
3946 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
3947 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
3948 src/z80/Makefile.bcc: delete $(LIB) only if exist
3949 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
3951 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
3953 * device/include/malloc.h: introduced NULL
3954 * device/include/string.h: introduced NULL
3955 * device/include/stdlib.h: introduced NULL
3956 * device/lib/_memcpy.c: removed NULL
3957 * device/lib/_strcat.c: removed NULL
3958 * device/lib/_strchr.c: removed NULL
3959 * device/lib/_strcmp.c: removed NULL
3960 * device/lib/_strcpy.c: removed NULL
3961 * device/lib/_strcspn.c: removed NULL
3962 * device/lib/_strlen.c: removed NULL
3963 * device/lib/_strncat.c: removed NULL
3964 * device/lib/_strncmp.c: removed NULL
3965 * device/lib/_strncpy.c: removed NULL
3966 * device/lib/_strpbrk.c: removed NULL
3967 * device/lib/_strrchr.c: removed NULL
3968 * device/lib/_strspn.c: removed NULL
3969 * device/lib/_strstr.c: removed NULL
3970 * device/lib/_strtok.c: removed NULL
3971 * device/lib/malloc.c: removed NULL, include own header
3973 2003-02-02 <johan AT balder>
3975 * 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
3976 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
3977 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
3978 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
3979 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
3980 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
3982 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3984 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
3987 2003-02-01 <johan AT balder>
3989 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
3991 2003-01-31 <johan AT CP255758-A>
3993 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
3995 2003-01-30 <johan AT balder>
3997 * src/SDCCBBlock.c: automatic bug detection
3998 * src/SDCCicode.c: automatic bug detection
4000 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4002 * src/SDCCglobl.h: now --xram-size 0 works
4003 * src/SDCCmain.c: now --xram-size 0 works
4005 2003-01-29 <johan AT balder>
4007 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
4009 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4011 * as/mcs51/aslink.h: Added options --xram-size and --code-size
4012 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
4013 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
4014 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
4015 * src/SDCCglobl.h: Added options --xram-size and --code-size
4016 * src/SDCCmain.c: Added options --xram-size and --code-size
4018 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4020 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
4021 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
4023 2003-01-27 <johan AT balder>
4025 * src/SDCC.y: fixed bug #613764
4027 2003-01-26 <johan AT balder>
4029 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
4030 * src/SDCCsymt.h: fixed bug #673374
4031 * src/SDCCglue.c: fixed bug #661910
4032 * src/SDCCast.c: fixed bug #458099 and 673374
4034 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4036 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
4037 * as/mcs51/strcmpi.h: added
4038 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
4039 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
4040 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
4041 * as/mcs51/assym.c: strcmpi -> as_strcmpi
4042 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
4043 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
4044 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
4045 * as/mcs51/Makefile.aslink: new module strcmpi
4046 * as/mcs51/Makefile.asx8051: new module strcmpi
4047 * as/mcs51/Makefil.bcc: new module strcmpi
4048 * as/mcs51/Makefile.in: new module strcmpi
4049 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
4051 2003-01-26 <johan AT balder>
4053 * src/SDCCglue.c: reverted back to 1.124
4054 * src/SDCCast.c: reverted back to 1.156
4055 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
4057 2003-01-25 <johan AT balder>
4059 * src/SDCCglue.c: A better fix for bug #661910
4060 * src/SDCCast.c: A better fix for bug #661910
4061 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
4063 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
4065 * src/Makefile.in: remove spawn.o
4066 * src/SDCCmain.c: remove spawn.h
4067 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
4068 * src/spawn.c: removed
4069 * src/spawn.h: removed
4070 * support/regression/ports/ds390/spec.mk: link with -r
4072 2003-01-24 <johan AT CP255758-A>
4074 * src/ds390/gen.c (aopOp): fixed bug #667458
4075 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
4076 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
4077 (createIvalCharPtr): an ival doesn't always have a storage class anymore
4079 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
4081 * src/mcs51/peeph.def: better assembler identation by Frieder
4082 * src/mcs51/gen.c: better assembler identation by Frieder
4084 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4086 * as/z80/string.h: removed for gcc 3.2
4087 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
4088 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
4090 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4092 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
4093 * src/SDCCpeeph.c (replaceRule): fix bug #663503
4094 * support/regression/Makefile: separate temp files for ports
4095 * support/regression/generate-cases.py: separate temp files for ports
4096 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
4097 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
4099 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4101 * moved tinitalk to device/examples/ds390
4103 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
4105 * as/mcs51/lkmem.c: rflag is for DS390
4106 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
4107 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
4108 (linkEdit): move mem- and map-files the same way as ihx-files
4109 * src/z80/main.c (_setDefaultOptions): removed --generic
4110 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
4111 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
4112 * src/pic/glue.c (picglue): --c1mode works again
4113 * src/pic16/glue.c (pic16glue): --c1mode works again
4114 * src/asm.c (printCLine): fix #660034
4116 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4118 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
4119 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
4120 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
4121 * as/mcs51/lkmem (summary): better fix for sp problem
4122 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
4123 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
4124 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
4125 remove --stack-after-data
4127 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
4129 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
4130 * src/SDCCutil.c (join): ugly bug: missing '\0'
4131 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
4133 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
4135 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
4137 * src/pic/main.c (_asmCmd): gpasm supports -o
4138 * src/z80/main.c: more general macros
4139 * device/lib/Makefile.in: remove intermediate files
4141 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
4143 * .version: Bumped version number to 2.3.3
4144 * src/SDCCBBlock.c: new option -o
4145 * src/SDCCglobl.h: new option -o
4146 * src/SDCCglue.c: new option -o
4147 * src/SDCCmain.c: new option -o
4148 * src/asm.c: new option -o
4149 * src/ds390/main.c: new option -o
4150 * src/pic/glue.c: new option -o
4151 * src/pic/pcode.c: new option -o
4152 * src/pic/ralloc.c: new option -o
4153 * src/pic16/glue.c: new option -o
4154 * src/pic16/pcode.c: new option -o
4155 * src/pic16/ralloc.c: new option -o
4156 * src/z80/main.c: new option -o
4157 * device/lib/Makefile.in: use -o
4158 * support/regression/ports/ds390/spec.mk: use -o
4159 * support/regression/ports/gbz80/spec.mk: use -o
4160 * support/regression/ports/mcs51/spec.mk: use -o
4161 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
4162 * support/regression/ports/z80/spec.mk: use -o
4163 * support/regression/ports/ucz80/spec.mk: use -o
4164 * support/regression/ports/xa51/spec.mk: use -o
4165 * support/regression/fwk/lib/timeout.c: fix usage string
4167 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
4168 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
4170 2003-01-07 <johan AT balder>
4172 * src/SDCCast.c (decorateType): fixed bug #600035
4174 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
4175 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
4176 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
4177 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
4178 * src/pic/pcode.c: outcommented unused variable to remove warnings
4179 * src/pic/ralloc.c: outcommented unused variable to remove warnings
4181 2003-01-06 <karl AT turbobit.com>
4182 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
4185 2003-01-06 <johan AT balder>
4187 * src/SDCCicode.c: fixed array add
4189 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
4190 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
4191 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
4193 2003-01-04 <johan AT balder>
4195 * src/SDCCval.c (getNelements): fixed the initialized array of structures
4197 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4198 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
4200 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4201 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
4202 * support/regression/tests/bug-524697.c: fit mem usage into 8032
4204 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4205 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
4207 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
4208 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
4210 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4211 * src/mcs51/main.c: removed {bindir}{sep} from aslink
4213 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4215 * in \sdcc\as\mcs51\ changed these files in order to create an
4216 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
4217 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
4218 following files to include the previous two files: aslink.dsp,
4219 Makefile.aslink, Makefile.bcc, and Makefile.in.
4221 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
4222 .adb instead of .cdb
4224 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4226 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
4227 value from option --iram-size.
4229 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4231 * \sdcc\as\mcs51\lklist.c: added boundary check before using
4234 2002-09-18 <wiml AT hhhh.org>
4236 * SDCClrange.h: exposed setFromRange() and setToRange()
4237 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
4238 packRegsForAccUse() (bug 542397)
4239 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
4240 multiple times and emitting the fetch operations more than once
4241 added aopGetUsesAcc() function to allow binary operators to
4242 fetch their operands in the correct order; made genMinus() emit
4243 compact code for X = LITERAL - Y
4245 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4246 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
4247 sprintf() in line 1267.
4249 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4250 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
4253 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4254 Changes to aslink (All the changes are marked with 'JCF'):
4256 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
4259 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
4260 area BSEG. Also moves, if possible, the DATA area down into the internal
4261 ram so more space is available.
4263 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
4266 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
4267 not bytes. Function summary() which creates a memory usage summary
4268 file with extension .mem. Reports of overlaping stack and small stack
4269 size. If the space for the stack is less than 16 bytes aslink trows a
4272 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
4273 the 8051. Option 'y' for memory summary output file.
4275 Changes to sdcc (All the changes are marked with 'JCF'):
4277 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
4279 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
4280 overlaying area for it (uses RegBankUsed[4]).
4282 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
4283 bank zero as used by default. By default aslink locates the stack
4284 (equivalent to --stack-after-data). Pass option 'y' to aslink for
4285 the creation of the .mem file. Delegates the allocation of data area
4286 to aslink (it is not longer 0x30 by default). If --stack-loc passes
4287 the begining of the stack area to aslink.
4289 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
4290 glue() in SDCCglue.c creates an area for it.
4292 2002-09-03 Borut Razem <borut.razem AT siol.net>
4293 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
4294 sdcc/src/pic/glue.c:
4295 introduced atexit() handler for teporay files removal in case of
4296 errors, assertions, ...
4298 2002-08-29 Borut Razem <borut.razem AT siol.net>
4299 * sdcc/support/cpp2/auto-host_vc_in.h:
4300 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
4301 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
4302 Maybe there is a similar problem with BORLANDC? It should be checked!
4304 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
4305 corrected improper use of assert: the assignment to clr variable was done inside the assert.
4306 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
4307 was not executed, and the compiler (cl) launched a warning:
4308 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
4310 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
4311 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
4313 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
4314 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
4316 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
4317 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
4318 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
4319 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
4320 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
4321 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
4322 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
4323 - added Release configuration in VS projects
4324 - review of compiler an linker options
4325 - VC .exe files are generated in bin_vc directory, not to interfere
4326 with binaries generated from other projects (cygwin, mingw, bcc ...)
4328 * sdcc/src/yacc.dsp: added
4330 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
4331 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
4332 and insert the version number definitions from .version
4334 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
4336 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
4337 added - genarate auto-host.h using auto-host_vc_in.h as template
4340 removed from CVS, generated automatically
4342 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
4343 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
4345 2002-08-11 Borut Razem <borut.razem AT siol.net>
4346 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
4348 2002-08-10 Borut Razem <borut.razem AT siol.net>
4349 * src/SDCCmain.c (main):
4350 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
4351 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
4352 The consequence was that some temporary files were not removed.
4355 unification of code in functions tempfilename() and tempfile():
4356 function tempnam() is defined in Visual Studio 6.0 and .NET
4358 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
4360 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
4361 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
4362 - removed compiler command line option /WX: Treats all warnings as errors
4363 - update a list of source files, included into the project
4365 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
4366 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
4367 changed project type to Generic Project so that can be correcly converted to VS.NET project
4369 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
4371 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
4373 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
4375 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
4376 added return 0 statements after assert() to make compiler happy
4378 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
4379 added newline in the def file to keep MSC compiler satisfied
4381 * sdcc/src/z80/gen.c:
4382 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
4383 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
4384 - solved MSC error in function aopDump()
4386 * sdcc_vc.h: define PREFIX as "\\sdcc"
4388 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
4389 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
4391 2002-06-22 Scott Dattalo <scott AT dattalo.com>
4392 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
4393 - Rewrote the register banking algorithm.
4394 - Added pCode live-range analysis to registers (for now, only non-used and
4395 singly-used registers optimized away)
4397 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
4399 * 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.
4401 2002-05-10 Scott Dattalo <scott AT dattalo.com>
4402 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
4404 2002-04-22 Michael Hope <michaelh AT vroom>
4406 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
4408 * configure.in (DD_COPT): Added include support required for gbdk.
4410 * .version: Bumped version number just to increase it.
4412 * src/SDCCmain.c: Added -nostdinc to the default options.
4414 2002-04-15 Michael Hope <michaelh AT vroom>
4416 * device/lib/z80/printf.c (sprintf): Added.
4418 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
4420 * src/z80/peeph.def: Added transpose redundent load rule.
4422 * src/z80/main.c: Added force callee saves for jaune.
4424 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
4426 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
4428 2002-03-28 Johan Knol <johan AT balder>
4430 * src/SDCCval.c: fixed bug #532436
4432 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4434 Added "char *Processor" field to the port structure.
4437 Added -p option. Allows port dependent processor to be specified.
4440 Initialized the new field char *Processor field to NULL in all ports
4443 Compiler generated registers for interrupt context saving
4444 were not getting allocated.
4446 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
4449 Fixed left shift. Will promote the left side of a left shift
4450 if a) left shifting more than size of operand or b) when assigned
4451 to something size > size of left side
4453 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4455 tons of changes. Register allocation has been
4456 rewritten. Added customization for the various PICs. Flow
4457 analysis is restructured. ...
4463 Added. device.c is a PIC port hack to accomodate variations
4466 2002-03-13 Michael Hope <michaelh AT vroom>
4468 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
4470 2002-03-04 johanknol <johanknol AT manik>
4472 * /src/SDCCval.c: fixed
4474 const unsigned char arr[][2] = { { 0, 1 } };
4475 t18.c:1: error: Initializer element is not constant
4477 2002-03-04 bela <bela AT manik>
4479 * /device/include/mcs51reg.h:
4480 ds89c420 register definition update
4482 2002-03-03 <johan AT FRIJA>
4484 * support/Util/SDCCerr.c: did something, but don't no why anymore
4486 * support/regression/tests/bug-524691.c: made it a little less shy
4488 * src/SDCCast.c (decorateType): fixed bug #524697
4490 * src/SDCCast.c: made some lineno improvements
4492 * src/SDCCval.c (getNelements): changed warning to error
4494 * src/SDCCglue.c (printIvalArray): changed warning to error
4496 * src/SDCCicode.c: fixed a warning for mingw
4498 * src/SDCCast.c (decorateType): fixed the << promotion for ops
4500 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
4502 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
4504 * src/ds390/peeph.def:
4505 Added some more peephole rules
4507 * src/ds390/gen.c: Various fixes & enhancements
4509 * src/SDCClrange.c, src/SDCClrange.h:
4510 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
4512 * src/ds390/ralloc.c:
4513 various fixes & enhancements (ds390) specific
4515 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
4516 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
4519 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
4521 2002-03-02 <johan AT FRIJA>
4523 * src/SDCCast.c (decorateType): fixed bug #524708
4525 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
4527 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
4529 2002-03-01 Michael Hope <michaelh AT vroom>
4531 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
4533 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
4535 2002-03-01 <johan AT FRIJA>
4537 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
4539 * src/SDCCast.c (decorateType): fixed bug #524209
4541 * src/SDCCval.c (valNot): fixed bug #524195
4543 2002-02-26 <johan AT balder>
4545 * src/xa51/gen.c: fixed a warning
4547 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
4549 * src/SDCCast.c (decorateType): fixed bug #522534
4551 2002-02-23 <johan AT balder>
4553 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
4555 2002-02-22 <johan AT balder>
4557 * src/SDCCast.c: fixed bug #514865
4559 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
4561 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
4563 * sdcc/src/SDCCloop.c:
4564 Previous fix was not good. basic blocks that have "break" or "return" are
4565 not really partof a loop , but live ranges used in these blocks should
4566 be live thru the entire loop, so set partOfLoop but don't add them to
4569 2002-02-21 <johan AT FRIJA>
4571 * src/SDCCcse.c: fixed bug #514308
4573 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
4576 Fixed BUG #519583. If a conditional block ended in a return/break
4577 statement inside a loop, it was not being considered part of the loop.
4579 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
4581 2002-02-10 Karl Bongers <karl AT turbobit.com>
4584 Fixed up SDCDB debugger somewhat. Updated debugger/README
4585 with lots of comments and notes.
4587 * device/examples/test2.c:
4588 Fix bug, "red" variable not being initialized(compiler complained).
4590 * device/examples/Makefile, examples/test3.c:
4591 Add Makefile in device/examples folder, compiles test3.c
4592 for use as a multiple module SDCDB test case.
4594 * sim/ucsim/cmd.src/cmdset.cc:
4595 Took out debug printfs in ucsim "next" command.
4598 Karl and Johan start ucsim XA support. Most dissassembly working,
4599 about 75% emulation done(plenty of work remaining).
4601 * sim/ucsim/z80.src:
4602 Add Z80 support to ucsim, add test-ucz80 regression test,
4603 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
4604 Notice z80 compiler fails on examples/test3.c/crc code.
4606 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
4608 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
4609 Added support for --parms-in-bank1
4611 * src/ds390/peeph.def:
4612 added a few more peephole optimzations
4615 1) added __builtin_inp & __builtin_outp used to read in data of given length
4616 from a memory mapped port
4617 2) added __builtin_memcmp
4618 3) added __builtin_swapw swap bytes of a short
4620 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
4621 1) handle multiple send & receives from register bank1
4622 2) ralloc can now allocate DPTR1 to some liveRanges
4624 * src/SDCCsymt.c, src/SDCCsymt.h:
4625 changes to handle multiple sends & receives
4628 added some pointer arithmetic optimization
4631 added some pointer arithmetic optimizations but not stable yet so not
4632 called from anywhere (will get this working shortly)
4634 * src/SDCCopt.c: fixed for multiple sends & receives
4637 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
4638 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
4639 set preprocessor defines (depending on options)
4641 * src/SDCCicode.c, src/SDCCicode.h:
4642 changes made to handle multiple sends & receives
4645 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
4647 * src/SDCCcse.c, src/SDCCcse.h:
4648 added function findbackward def (to be used in upcoming optimization)
4650 * src/SDCCcflow.c, src/SDCCcflow.h:
4651 added function returnAtEnd - to determine if a basic block terminates with
4654 * src/SDCCast.c, src/SDCCast.h:
4655 added option parms-in-bank1
4657 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
4658 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
4659 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
4660 adjusted for --parms-in-bank1 option
4662 * device/include/string.h:
4663 donot redefine "reentrant" keyword
4665 * device/include/ds80c390.h: Added some more SFRs
4667 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4669 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
4671 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4673 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
4675 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4677 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
4679 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
4681 * Added --xram-movc option
4683 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4685 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
4687 2002-01-11 Johan Knol
4689 * Added math lib of Jesus Calvino-Fraga
4691 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
4693 * src/SDCCmain.c (processFile): fix processing of ../../src.c
4694 * support/regression/Makefile: new target test-mcs51-stack-auto
4695 * support/regression/ports/mcs51-stack-auto/spec.mk: added
4697 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4699 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
4701 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4703 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
4705 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4707 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
4709 * src/SDCCglue.h: add definition for printIvalChar()
4711 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4713 * src/SDCCast.c: fix #498138 by Johan
4715 * src/SDCCglue.c: fix #498138 by Johan
4717 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4719 * support/regression/Makefile: fix clean
4721 * support/regression/ports/ds390/support.c: fix transmission of last character
4723 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
4725 * /sdcc/src/ds390/gen.c:
4726 a) improved computing address of stack variable
4727 b) took out some #if 0 code
4728 c) improved parmBytes adjustment
4729 d) improved genPlusIncr & genMinusIncr
4730 e) genCmp could generate bad code (when left assigned to DPTR)
4731 f) Fixed bug in hasInc
4733 * /sdcc/src/ds390/ralloc.c:
4734 a) packRegsForSupport could mess up live information (Fixed)
4735 b) packRegsDPTRuse could be incorrect for left & right shift
4737 * /sdcc/src/mcs51/ralloc.c:
4738 packRegsForSupport could mess up the live information (Fixed)
4740 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
4742 * /sdcc/src/SDCCast.c:
4743 can reverse a loop even if function call is present as long
4744 as the loop control variable is local & is not passed as parameter
4746 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4748 * /sdcc/ChangeLog: *** empty log message ***
4750 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
4751 More builtin function additions for TININative
4753 * /sdcc/src/ds390/ralloc.c:
4754 Had broken the regression testsuite
4756 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
4758 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
4759 Added funcattr hasStackParms will be set for reentrant functions when there
4760 are paramteres on the stack, this helps in minimizing frame pointer generation
4761 typeFromStr can handle function pointers now
4763 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
4764 *** empty log message ***
4766 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4768 * /src/ds390/gen.c, /src/ds390/main.c:
4769 More builtin function additions for TININative
4771 * /src/ds390/ralloc.c:
4772 Had broken the regression testsuite
4774 * /src/SDCCast.c: Fixed a bug in dumptree
4776 * /src/SDCCsymt.c, /src/SDCCsymt.h:
4777 Added funcattr hasStackParms will be set for reentrant functions when there
4778 are paramteres on the stack, this helps in minimizing frame pointer generation
4779 typeFromStr can handle function pointers now
4781 * /doc/builtins.txt, /doc/TININative.txt:
4782 *** empty log message ***
4785 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4787 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
4788 ALPHA version for -mTININative
4790 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
4791 updated to reflect changes in the port structure
4794 added function do_assemble (similar to do_link) if non-null this function
4795 will be called to do assembly (-mTININative) requires a multi command
4797 added function genAssemblerEnd will be called to generate assembler Epilogue
4800 added _JavaNative to debug info printing
4802 * /src/SDCCmain.c: added option --tini-libid
4803 added port->do_assemble function (-mTININative) has a multi command assemble
4805 * /src/SDCCglue.c: Disabled "constExpr" check
4806 added port->genAssemblerEnd function
4808 * /src/SDCCglobl.h: Added option --tini-libid value
4811 tookout optimizeCompare from the header (has no external references)
4813 * /src/SDCCast.c: made one more function "static"
4815 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
4817 * src/z80/mappings.i: Added z80asm support.
4819 * src/z80/main.c: Added z80asm support on --asm=z80asm
4821 * src/z80/gen.c: Fixed asm portability issues.
4823 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
4825 * src/SDCCglue.c (printExterns): Added global/extern split.
4827 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
4829 * support/regression/Makefile: added test for mcs51 model large
4831 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
4833 * support/regression/ports/gbz80/spec.mk: added -mgbz80
4835 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
4837 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
4839 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
4841 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
4843 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
4845 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
4847 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
4849 * support/regression/tests/simplefloat.c: Port to mcs51.
4851 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
4852 * support/regression/tests/bug-485362.c: Added.
4854 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
4856 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
4858 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
4860 * src/z80/gen.c (aopDump): Added a dump function.
4862 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
4863 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
4865 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
4867 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
4869 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
4871 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
4873 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
4875 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
4877 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
4879 * support/regression/ports/ds390/support.c: Use tinibios.
4881 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
4883 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
4885 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
4886 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
4888 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
4890 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
4892 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
4894 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
4896 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
4897 (packRegsForIYUse): Created and optimised.
4899 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4901 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
4902 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4904 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
4906 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
4908 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
4910 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4912 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
4914 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
4916 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4918 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
4920 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
4922 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
4924 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4926 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
4927 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
4928 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
4930 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
4932 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
4933 (genNotFloat): Added.
4934 (genUminusFloat): Added.
4936 * device/lib/z80/Makefile: Added floating pt stubs.
4938 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
4940 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
4942 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
4944 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4946 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
4948 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
4950 * sdcc/support/regression/Makefile: Add port ds390.
4952 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
4954 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
4956 * sdcc/support/regression/ports/ds390/spec.mk: Added.
4958 * sdcc/support/regression/ports/ds390/support.c: Added.
4960 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
4962 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
4964 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
4966 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4968 * device/include/malloc.h: Added z80 and gbz80 support.
4970 * device/lib/gbz80/heap.s: Added.
4972 * device/lib/z80/heap.s: Added.
4974 * device/lib/malloc.c: Added z80 and gbz80 support.
4976 * support/regression/tests/malloc.c (testMalloc): Added.
4978 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
4980 * support/regression/tests/bug-478094.c: Added.
4982 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
4984 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
4986 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
4988 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
4990 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
4992 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
4994 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
4996 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4998 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
5000 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
5002 * support/regression/tests/bug-477927.c: Added.
5004 * src/z80/peeph.def: Added minor rules.
5006 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
5008 * src/z80/peeph.def: Added jump optimisation modification.
5010 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
5012 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
5014 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
5016 * support/regression/tests/funptrs.c: Added.
5018 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
5020 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
5022 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
5024 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
5026 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
5028 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
5029 (movLeft2ResultLong): Created.
5031 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
5032 (joinPushes): Added. Joins two char pushes into a word push.
5034 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
5036 * support/cpp2/Makefile.in (install): Added creation of dest dir.
5038 * support/makebin/Makefile (install): Added creation of dest dir.
5040 2001-10-24 Karl Bongers <karl AT turbobit.com>
5042 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
5044 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
5046 * src/z80/ralloc.c: Turned off faulty pack for one use.
5048 * src/z80/peeph-gbz80.def: Removed redundent restart options.
5050 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
5052 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
5054 * support/regression/Makefile: Improved clean
5056 * support/regression/ports/gbz80/spec.mk: Added clean
5058 * support/regression/ports/host/spec.mk: Added clean
5060 * support/regression/ports/z80/spec.mk: Added clean
5062 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
5064 * support/regression/ports/mcs51/timeout.c: little improvements
5066 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
5068 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
5070 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
5072 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
5074 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
5076 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
5078 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
5080 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
5081 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
5083 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
5085 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
5087 * src/mcs51/main.c (_linkCmd): Added bin path to command.
5089 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
5091 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
5093 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
5095 * support/regression/tests/longor.c: Added.
5097 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
5099 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
5101 * as/mcs51/aslink.h: define PATH_MAX
5103 * as/mcs51/asm.h: define PATH_MAX
5105 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
5107 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
5109 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
5111 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
5113 * src/SDCCglobl.h: define PATH_MAX
5115 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
5117 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
5119 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
5121 * src/z80/gen.c (gencjneshort): Fixed
5123 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
5125 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
5127 * support/regression/tests/bug-469671.c: Added.
5129 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
5131 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
5133 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
5135 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
5137 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
5139 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
5141 * src/device/lib/_mulint.c : removed hint: nooverlay bug
5143 * src/device/lib/_mullong.c : removed hint: nooverlay bug
5145 * src/device/lib/_divuint.c : removed hint: nooverlay bug
5147 * src/device/lib/_divulong.c: removed hint: nooverlay bug
5149 * src/device/lib/_moduint.c : removed hint: nooverlay bug
5151 * src/device/lib/_modulong.c: removed hint: nooverlay bug
5153 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
5155 * 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.
5157 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
5159 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
5161 2001-10-07 <johan AT FRIJA>
5163 * device/lib/gets.c (gets): fixed the return value.
5165 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
5166 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
5168 * 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.
5170 * 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.
5172 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
5174 * src/pic/gen.c: Removed Safe_strdup.
5176 * configure.in: Added option to enable libgc support.
5178 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
5179 (bitVectUnion): Optimised.
5180 (bitVectIntersect): Optimised.
5181 (bitVectBitsInCommon): Optimised.
5182 (bitVectCplAnd): Optimised.
5184 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
5186 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5188 * src/SDCCmain.c: distinguish between assembler debug and plain options
5190 * src/avr/main.c: remove standard assembler options
5192 * src/ds390/main.c: remove standard assembler options
5194 * src/mcs51/main.c: remove standard assembler options
5196 * src/port.h: removed "PENDING" comment
5198 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5200 * src/device/lib/_mulint.c : new, with assember functions
5202 * src/device/lib/_mullong.c : new, with assember functions
5204 * src/device/lib/_divuint.c : with assember functions
5206 * src/device/lib/_divsint.c : with assember functions
5208 * src/device/lib/_divulong.c: with assember functions
5210 * src/device/lib/_divslong.c: with assember functions
5212 * src/device/lib/_moduint.c : with assember functions
5214 * src/device/lib/_modsint.c : with assember functions
5216 * src/device/lib/_modulong.c: with assember functions
5218 * src/device/lib/_modslong.c: with assember functions
5220 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
5222 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
5224 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
5225 replaced _mululong.c and _mulslong.c by _mullong.c
5227 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5229 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
5231 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
5233 * src/SDCCglue.c: test, if win32api is available for MINGW
5235 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
5237 * src/SDCCsymt.c: no more _modifier in printTypeChain()
5238 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
5239 * support/regression/ports/gbz80/spec.mk: removed GENERIC
5240 * support/regression/ports/host/spec.mk: removed GENERIC
5241 * support/regression/ports/mcs51/spec.mk: removed GENERIC
5242 * support/regression/ports/z80/spec.mk: removed GENERIC
5244 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
5246 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
5248 * support/regression/tests/bug-467035.c: Created.
5250 2001-10-01 <johan AT FRIJA>
5252 * src/SDCC.y: fixed bug #466586 part 1
5254 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
5256 * SDCCicode.c: z80 has no generic pointers
5257 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
5259 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
5261 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
5263 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
5265 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
5267 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
5269 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
5271 * configure.in: Fixed up so that ucsim is only configured once.
5273 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
5275 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
5276 (getPathDifference): As above.
5278 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
5280 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
5282 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
5283 * .version: Updated to 2.3.1
5285 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
5286 Added copyright header.
5288 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
5289 (assemble): Added support for macro based assembler commands.
5290 (linkEdit): Added support for macro based linker commands.
5291 (preProcess): Changed the pre-processor to use macros.
5292 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
5293 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
5295 * device/lib/z80/crt0.s: Added module name for debugging.
5297 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
5299 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
5301 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
5303 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
5305 * src/Makefile.in: Added SDCCmacro and SDCCutil
5307 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
5309 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
5311 2001-09-16 <johan AT FRIJA>
5313 * 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.
5315 2001-09-15 <johan AT FRIJA>
5317 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
5318 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
5320 2001-09-11 <johan AT FRIJA>
5322 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
5324 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
5326 * support/regression/tests/bug-460444.c: Added test case.
5328 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
5329 (genCast): Added justification for all of the asserts.
5331 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
5333 * support/regression/support.c: _xdata replaced by xdata
5335 * support/regression/spec.mk: removed _generic
5337 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
5339 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
5341 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
5342 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
5344 * src/z80/peeph.def: Added a rule to optimise shift then compare.
5346 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
5348 * support/regression/tests/bug-460010.c: Added test case.
5350 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
5352 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
5354 * support/regression/Makefile: inter-port-clean adjusted for mcs51
5356 * support/regression/testfwk.c: removed workaround for bug #436344
5358 * support/regression/tests/bp.c: use less memory with mcs51
5360 * support/regression/tests/bug-441448.c: use less memory
5362 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
5364 * support/regression/collate-results.py: typo
5366 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
5368 * support/regression/tests/fetchoverlap.c: Added new test case.
5370 * support/regression/tests/bp.c: Added new test case.
5372 * support/regression/tests/bug-448984.c: Added new test case.
5374 * support/regression/tests/pow2shifts.c: Added new test case.
5376 * src/z80/gen.c: Turned off the noise it normally generates for the release.
5377 (genlshTwo): Fixed right shift for count > 8.
5379 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
5381 2001-09-08 <johan AT FRIJA>
5383 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
5385 2001-09-07 <johan AT FRIJA>
5387 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
5389 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
5391 2001-09-06 <johan AT FRIJA>
5393 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
5394 * bernhard noted me at this: "() equals to (void)" (1.38)
5396 2001-09-05 <johan AT FRIJA>
5398 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
5400 2001-09-04 <johan AT FRIJA>
5402 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
5405 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
5407 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
5409 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
5411 * link/z80/aslink.h: Fixed path for PATH_MAX
5413 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
5415 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
5417 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
5419 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
5421 * 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.
5423 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
5425 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
5426 (genCmp): Fixed up genCmp for the GB with longs.
5428 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
5430 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
5432 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
5434 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
5436 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
5438 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
5440 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
5442 * 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.
5444 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
5446 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
5448 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
5450 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
5452 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5454 * sim/ucsim/configure: little improvement of Cygwin-detection
5455 * sim/ucsim/configure.in: little improvement of Cygwin-detection
5456 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
5457 * support/regression/tests/bug-221100.c: small changes for mcs51
5458 * support/regression/tests/bug-221168.c: small changes for mcs51
5459 * support/regression/tests/bug-227710.c: small changes for mcs51
5460 * support/regression/tests/staticinit.c: small changes for mcs51
5461 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
5462 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
5463 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601