1 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3 * src/ds390/gen.c: added missing #include "main.h"
5 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
7 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
8 checking if symbol is already in set,
9 * src/pic16/device.h: prototype for checkAddSym,
10 * src/pic16/gen.c: (_G): added entry interruptvector,
11 * (assignResultValue): removed some commented out lines,
12 * (genFunction): check for ISR via sym->type, absolute section for
13 interrupt code is created via a new pBlock, the goto instruction is
14 placed now correctly at the interrupt vector position, changed all
15 references from ivec to _G.interruptvector,
16 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
17 is the interrupt is a high priority one, same for return from ISR,
18 * src/pic16/glue.c: changed all calls of addSetHead for publics and
19 externs to calls of checkAddSym,
20 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
21 pic16_pcode_verbose flag is set,
22 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
23 * src/pic16/pcoderegs.c: message about how many registers are saved
24 will only be emitted if pic16_pcode_verbose flag is set,
26 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
29 * src/ds390/ralloc.c (ds390_regWithIdx),
30 * src/ds390/gen.c (emitcode),
32 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
33 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
34 ds390operandCompare, getRegsRead, getRegsWritten,
35 initializeAsmLineNode): customized instruction size calculation for
36 ds390, started basis for some register optimizations
37 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
38 corresponding assembly output
39 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
40 missing push/pop of r0/r1. Optimized push/pops
42 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
44 * src/mcs51/main.c (instructionSize): fixed ACALL size
45 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
47 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
49 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
50 the sorting of rlist with NULL elements
51 * (print_idataType, print_idata): NEW to create idata sections
52 * src/pic16/device.h: idataSymSet new variable
53 * src/pic16/gen.c (genFunction): fixed some bugs in string
54 comparing, improved the absolute section creation for ISRs,
55 added FSR0L/FSR0H in registers that are saved in an ISR,
56 * (genInline): fixed the processing of inline snippets,
57 now they undergo no process by the peephole optimizer
58 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
59 are placed in idataSymSet,
60 * (pic16emitStaticSeg): extern symbols are added in externs,
61 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
62 switching when aboslute variables are placed in access bank memory
63 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
64 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
65 commented out with #if,
66 * (pic16_packRegisters): reintroduce the check for CAST because some
67 symbols are not correctly handled,
68 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
69 pCodeInstruction instead of pCode,
70 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
71 pCodeAsmDir definition,
72 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
73 directive, then the argument directive is emitted without the leading
74 tab, hack for inline labels which must be in the first column,
75 * (compareLabel,pic16_findNextInstruction),
76 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
77 * (insertBankSwitch): modified for the new pCodeAsmDir,
79 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
80 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
82 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
84 * (pushSide): commented out with #if,
85 * (assignResultValue): fixed some typos in saving
87 * (genPcall): FIXED and sync'ed with genCall,
88 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
89 * (genNearPointerGet): fixed to handle some more cases,
90 implementation scheme via table reads,
91 * (genConstPointerGet): modified to access code memory correct,
92 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
93 and improved to handle some cases
94 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
95 instead of "RETLW" for init data
96 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
97 not IN_DIRSPACE, work around to reduce bank switching when aboslute
98 variables are placed in access bank memory (<0x80 and >=0xf80),
99 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
100 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
101 TBLWT_POSTDEC,TBLWT_PREINC
102 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
103 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
105 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
106 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
107 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
108 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
110 2004-02-29 Borut Razem <borut.razem AT siol.net>
112 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
113 support/Util/findme.h, support/Util/system.h: enhance binary relative
114 search for lib and include by using findProgramPath()
116 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
119 * src/SDCCpeeph.c (pcDistance),
121 * src/mcs51/ralloc.h,
122 * src/mcs51/ralloc.c (mcs51_regWithIdx),
124 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
125 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
126 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
127 size calculation port specific, started basis for some register
129 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
130 missing push/pop of r0/r1. Optimized push/pops
131 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
132 * device/lib/_modsint.c (_modsint),
133 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
134 and stack version so regression tests pass
136 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
138 * src/Makefile.in (dep): include SLIBOBJS in dependency check
139 * src/SDCCast.c (decorateType): catch another small optimization
141 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
142 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
143 modified to finally use computeType() all over SDCC,
144 see Feature Request #877103
145 * src/SDCCval.h: cosmetic
146 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
147 valCompare(); regression tested in muldiv.c
148 * support/regression/tests/muldiv.c (testMod): mod sign follows
151 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
153 * src/SDCCast.c (decorateType): fixed bug #902362
154 * doc/INSTALL.txt: fixed install instructions for win32
156 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
158 * device/include/Makefile.in (install): fixed by replacing spaces
161 * doc/INSTALL.txt: updated for release
162 * doc/sdccman.lyx: added warning for --xstack being buggy
164 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
166 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
167 to eliminate build warnings.
168 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
170 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
171 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
173 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
174 removed -penable-stack, added comment for stack pragma, added
175 warning for not initializing the stack/frame registers, removed
176 comment at interrupts section
178 Stack is made permanent, there is no ability to disable stack usage.
179 * src/pic16/device.h,
180 * src/pic16/device.c: removed all references to USE_STACK macro,
181 * src/pic16/device.c (pic16_dump_section): when no elements in
182 rlist, free rlist before return,
183 * (pic16_dump_int_registers): NEW, internal registers are a new set
184 of general purpose registers reused by each function,
185 * (checkAddReg): returns 1 if registers is added to set,
186 * (pic16_groupRegistersInSection): when a registers is of type
187 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
188 * src/pic16/device.h: memRange and Assigned Memory are deleted,
189 SRCASECMP macro is moved here from device.c
190 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
191 PO_PCLATU, PO_PRODL, PO_PRODH,
192 * (pic16_pCodeOpType, genMinus,
193 changed compares to "a" register, with AOP_ACC,
194 * (pic16_genPlus): fixed some bugs and indented properly,
195 * (pic16_addSign): changed size to size+offset in the MOVWF
197 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
198 multiply 8-bit operand by literal, result is 8-bit,
199 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
200 multiply 2 8-bit operand, result is 8-bit,
201 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
203 * src/pic16/gen.c: changed accUse to contain WREG only,
204 * (pic16_emitcomment): renamed to pic16_emitpcomment,
205 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
206 true, do not use immediate addressing any more unless sym is a
207 pointer in codespace,
208 * (aopForRemat): do not use immediate addressing when symbol not in
209 codespace and when symbol's address is requested,
210 * (aopOp): for-loop in if(sym->accUse) is modified for the new
212 * (aopGet): added case for AOP_ACC and don't return "accumulator
213 bug" but WREG instead,
214 * (popGetTempReg): pushes contents of temporary register in stack,
215 * (popReleaseTempReg): pops contents of temporary register from
216 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
217 * (pic16_popGet): separated case AOP_ACC to return register WREG
218 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
219 or PO_IMMEDIATE and initializes their instance/offset appropriately,
220 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
221 the use of immediate pointers to certain cases only.
223 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
224 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
225 * (assignResultValue, genCall, genRet): modified to use the new
226 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
227 genPcall is still broken,
228 * (genFunction): added code to create 'A' type pBlocks when
229 interrupt functions are generated, code not extensively tested yet,
230 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
231 * (genEndFunction): modified so ISRs pop stored registers from stack,
232 * (genMultOneByte): cleanup,
233 * (AccRsh): added flag andmask, to and result with appropriate mask,
234 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
235 * (genDataPointerGet): fixed and reenabled its use,
236 * (genNearDataPointerGet): bugs fixed,
237 * (genDataPointerSet): bugs fixed,
238 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
239 pic16_DumpSymbol, pic16_DumpOp,
240 * src/pic16/genutils.h: function prototypes for the above functions,
241 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
243 * (pic16emitRegularMap): many many many improvements, but needs a
245 * src/pic16/main.c: enable_stack in pic16_options is removed,
246 * (_pic16_parseOptions): removed command line options -penable-stack,
247 * (_process_pragma): emit stack symbol only when stack pragma is
249 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
250 redirected to FSR0L/FSR0H pair,
251 * (pic16_get_op, pic16_get_op2): modifications and improvements,
252 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
253 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
255 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
256 * (dumpPicOptype): NEW,
257 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
258 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
259 with movff instruction,
260 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
261 added pic16_int_regs, some packRegsFor* functions are commented out,
262 because produce errors,
263 * src/pic16/NOTES: minor modifications
265 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
267 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
268 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
270 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
271 * as/mcs51/lkaomf51.c: fixed bug #895763
273 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
275 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
277 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
279 * doc/sdccman.lyx: added details about the HC08 storage classes and
280 interrupts, fixed the register usage info for z80 & gbz80
282 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
284 * doc/sdccman.lyx: added more pic16 port documentation
285 * device/include/pic16/: added header pic18fregs.h
287 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
289 * doc/sdccman.lyx: added Vangelis' contribution
291 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
293 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
294 extend to the next CALL or PCALL, not just to the next CALL.
296 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
298 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
300 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
302 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
303 bug #895752 and a better fix for bug #716790
305 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
307 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
309 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
311 * doc/sdccman.lyx: minor changes, minor changed
313 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
315 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
316 which can't handle SDCC_NEWONEBYTEOPS,
317 (geniCodeMultiply): removed conversion from mult to shift for pic14
320 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
323 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
324 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
325 thus fixing bug #895406
327 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
329 * device/lib/_modsint.c,
330 * device/lib/_modslong.c: sign follows divisor only
331 * src/hc08/gen.c (genMultOneByte): if result size is 1,
332 signs or signedness can be ignored
333 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
334 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
335 added optimization for IFX,
336 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
338 reenabled optimization for IFX, which was removed on 2004-01-11
339 * src/SDCCast.h: added return type IFX
340 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
341 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
342 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
343 SDCC_OLDONEBYTEOPS selects the old behaviour
344 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
345 changed again and commented promotion rule
346 * src/SDCCval.c (valDiv): promotion no longer necessary
347 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
348 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
350 * support/regression/tests/onebyte.c: added
352 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
354 * gen.c (genInline): reverted to old code for assemnling inline
355 code because of bug reported James Chadd
357 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
359 * ralloc.h: missing declarations from previous patch,
360 seems that patch for ralloc.h was never applied, fixed
362 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
363 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
367 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
368 indirect addressing. Marked FSR0 as deprecated
369 * gen.c (pointerCode): commented out, not needed now
370 (pic16_popGet2p): new MOVFF helper function
372 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
373 (shiftRLong): removed duplicate debugging info
375 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
377 * src/ds390/gen.c (genNearPointerGet),
378 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
379 optimization with bits, but not bitfields.
380 * src/ds390/ralloc.c (packRegisters),
381 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
383 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
385 * src/SDCCcse.c (algebraicOpts): copy operands before modification
387 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
390 * src/SDCCicode.c (operandFromSymbol),
391 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
392 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
393 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
394 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
395 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
396 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
398 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
399 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
400 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
401 * src/SDCCsymt.c (newSymbol),
402 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
405 * src/SDCCval.c (newiList): fixed bug #885705
407 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
409 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
410 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
412 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
414 * device/include/c8051f120.h,
415 * device/include/c8051f300.h,
416 * device/include/c8051f310.h: added/updated header files for Silicon
417 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
418 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
419 in new section Submitting patches
421 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
423 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
424 genFarPointerGet, genCodePointerGet, genGenPointerGet,
425 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
427 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
428 genFarPointerGet, genCodePointerGet, genGenPointerGet,
429 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
431 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
432 genFarPointerGet, genCodePointerGet, genGenPointerGet,
433 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
435 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
436 genFarPointerGet, genCodePointerGet, genGenPointerGet,
437 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
438 genGenPointerSet): fixed bug #892400
439 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
440 to eliminate build warnings.
441 * src/SDCCast.c (processParms),
442 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
444 * support/valdiag/valdiag.py: added GCC to the list of defines active
445 when compiling with gcc
447 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
449 * support/Util/SDCCerr.h,
450 * support/Util/SDCCerr.c,
451 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
452 with an incomplete type (fixed bug #883734)
453 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
455 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
457 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
459 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
461 * src/SDCCast.c (decorateType),
462 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
463 function pointer implementation
464 * support/regression/tests/funptrs.c: added tests to verify both forms
465 of function pointers work correctly. Added tests to verify parameters
466 are passed in the correct order.
468 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
470 * device.c (regCompare): registers are sorted by ascending
471 address and increasing size,
472 * main.c (_pic16_finaliseOptions): removed the declaration
473 of compiler macro MCU. Now a macro of the format pic18fxxxx
474 will be defined from the command line
476 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
477 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
479 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
480 PCOP_RLCF was overwritten!
481 * gen.c (genSkip): commented out calls to pic16_emitcode,
482 * (genCmpEQ): fixed "long" compares, only high word did get compared,
484 * (genRRC): added debugging info,
485 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
486 overwritten while shifting,
487 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
488 overwritten while shifting,
491 * (shiftLLeftOrResult),
492 * (shiftRLeftOrResult),
494 * (shiftLLong): Implemented with pic16_emitpcode
495 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
496 * (genLeftShift): Fixed bug, operand for shift by variable always
497 was "and"ed with 0x0f,
498 * (genLeftShiftLiteral),
500 * (genRightShiftLiteral): added debugging info,
501 * (genrshFour): added comment,
502 * (genRightShift): determined signedness from operand "left"
505 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
507 * src/SDCCicode.c (geniCodeParms),
508 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
509 function pointers, fixed function pointer bugs #861242 and #861896
511 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
513 * device/include/c8051f000.h,
514 * device/include/c8051f120.h,
515 * device/include/c8051f300.h: added header files for Silicon
516 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
518 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
520 * src/SDCCast.c (processParams): added new type flow and restructured
521 (gatherAutoInit): added new type flow
522 (addCast): cosmetic changes
523 (getLeftResultType): added new type flow for array indices, patch
524 provided by Stas, see FR #877103
525 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
526 array index patch by Stas
527 * src/SDCCast.h: added prototype getResultTypeFromType()
529 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
530 * src/pic/glue.c (pic14emitStaticSeg),
531 * src/pic16/glue.c (pic16emitStaticSeg),
532 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
533 for initialization of symbols
534 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
535 * support/Util/SDCCerr.h:
536 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
537 * .version: bumped version number to 2.3.8
538 * device/include/Makefile.in (install),
539 * doc/Makefile (install): changed to 'rm `find ...`' construct to
542 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
544 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
545 Slade Rich fixed an optimization bug
546 * src/pic/pcodepeep.c,
547 * src/pic/pcoderegs.c
548 * doc/Makefile (install): added test for directory
550 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
552 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
553 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
554 * src/pic/ralloc.c (getRegPtr, getRegGpr),
555 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
556 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
557 * as/mcs51/asexpr.c (term),
558 * as/hc08/asexpr.c (term): fixed bug #887146
560 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
562 * src/z80/gen.c (genMult): handle single byte result product
563 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
564 DUMMY_READ_VOLATILE (fixed bug #886367)
566 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
568 * support/regression/tests/libmullong.c: fixed logic, on little endian
569 hosts we ended without a mullong_wrapper()
571 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
573 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
574 virus/worm forged address usage.
576 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
578 Fixed promotion, it should be done on AST level:
579 * src/SDCCast.c (addCast): added promotion to int
580 (decorateType): updated call to upCast()
581 * src/SDCCicode.c (geniCodeLeftShift): removed call to
582 usualUnaryConversions()
584 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
586 * support/regression/tests/literalop.c (mulWrapper): Added a
587 wrapper to remove integer overflow warnings.
589 * support/regression/tests/float_trans.c: Made work on host.
591 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
594 * support/regression/generate-cases.py (main): Changed from inline
597 * doc/Makefile (install): Changed to depth first to get rid of
598 missing directory install warning.
600 * as/Makefile (install-doc): Made work on Mac.
602 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
604 * src/SDCCast.c: added an additional type flow in decorateType() of
605 opposite direction, see feature request #860006; it's enabled at runtime
606 by setting the environment variable SDCC_NEWTYPEFLOW
607 * src/SDCCast.h: changed prototype of decorateType()
608 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
609 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
610 'char' to 'int' can be omitted, if both operands are 'unsigned char';
611 see feature request #877103
612 * src/SDCCval.c: updated call of decorateType()
613 (valBitwise): fixed bug #882876
614 (valMinus): added promotion
615 (valLogicAndOr): result is unsigned
616 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
617 * src/SDCCsymt.c (computeType),
618 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
619 must not cause an unsigned operation
620 * src/pic/glue (pic14emitRegularMap),
621 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
623 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
625 * src/pic/pcode.c (PCodeID): commented out left over debug code
627 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
629 * support/valdiag/tests/overflow.c: added shift tests
637 * src/pic/pcodepeep.c,
638 * src/pic/pcoderegs.c,
640 * src/pic/ralloc.h: applied patch from Slade Rich;
641 added support for multiple code pages and multiple RAM banks on the
642 PIC 14 port. The ASM files now no longer simply assume all the
643 code / RAM are in the same page / bank. This means the linker can
644 safely allocate code/RAM of separate ASM files to different pages/banks.
645 * doc/sdccman.lyx: added Slade's tips
646 * src/mcs51/peeph.def: fixed bug #880768
648 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
650 * src/hc08/ralloc.c (rematStr): fixed bug #879282
651 * src/SDCCast.c (decorateType): fixed bug #880197
653 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
655 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
658 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
659 strtof is not part of C89 and isn't included with Mac OS X.
661 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
663 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
664 shiftL2Left2Result): fixed bug #879326
665 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
666 (genMultOneByte): fixed bug in signed vs unsigned multiplication
667 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
668 address fetch for clr instruction
669 * device/lib/hc08/_mulint.c: created optimized assembly version
670 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
672 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
674 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
675 proposed in FR #877103
677 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
679 * src/SDCCval.c (cheapestVal): added missing checks
680 * src/SDCCicode.c (usualBinaryConversions): fixed condition
681 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
683 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
685 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
688 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
690 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
691 loaded with the linker search paths (-L arguments) and the libraries
692 to be linked with the current source (-l arguments). Changes
693 currently will affect only the pic16 port.
694 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
695 include path the port specific paths and port specific libraries,
696 * gplink command now contains the $3 argument,
697 * src/pic16/device.h,
698 * src/pic16/device.c,: structure PIC_device is made public and
699 renamed to PIC16_device, the same for variable Pics which is renamed
700 to Pics16. Updated all references to them.
701 * src/pic16/glue.c (pic16glue): corrected bug with code
702 initialization which bypassed the variable initializations block.
704 * device/lib/pic16/Makefile.rules: removed --penable-stack from
705 COMPILE_FLAGS and added the --nostdinc option
707 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
709 * device/include/mc68hc908jb8.h: Register defs for another member
710 of the hc08 family. Contributed by Bjorn Bringert - thanks!
712 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
714 Documenting changes from previous commits.
715 * configure.in (version 1.56),
716 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
717 when generating output files to configure the pic16 library,
718 but now I've commented it out, since gputils aren't installed in the
719 SF compile farm, so library won't compile
721 * device/lib/Makefile.in (version 1.56): initially I've added in
722 target 'all' the prerequestive 'model-pic16' so it compiled the
723 pic16 library, but now I've commented it out for the same reasons
725 * added targets 'model-pic16' and 'objects-pic16' to compile the
727 * added target 'port-specific-objects-pic16' to handle the
728 generated libraries and copy them into the build/ directory
729 * added target 'clean-intermediate-pic16' to clean intermediate
730 files into pic16 directory
731 * in target 'installdirs' added line to create directory pic16 in
732 the installation path
734 * device/include/Makefile.in (version 1.11): in target 'install'
735 added lines to copy all header files to installation path,
736 * in target 'installdirs' added line create directory for pic16
737 headers in the installation path
739 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
741 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
744 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
747 * device/lib/configure.in,
748 * device/lib/configure: fixed for autoconf 2.57
750 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
752 * src/z80/main.c (_parseOptions): fixed the portmode= command line
753 option so that it actually works. Made it specific to the z80, since
754 the gbz80 doesn't have these kinds of I/O ports.
756 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
758 * device/include/z180.h,
759 * device/lib/_memcpy.c,
760 * device/lib/_memmove.c,
761 * device/lib/_mulint.c,
762 * device/lib/ser_ir.c,
763 * device/lib/ser_ir_cts_rts.c,
764 * device/lib/_strcmp.c,
765 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
766 * src/z80/main.c (_process_pragma): add support for pragmas bank and
767 portmode; added deprecation warning for bank= and protmode= forms.
768 Also, guard against buffer overflow.
769 * src/z80/gen.c (aopGet): generate better code for sfr banked read
771 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
773 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
774 changed interrupt vector table generation to only emit declared vectors.
775 * device/include/Makefile.in: added missing backslash
776 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
778 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
780 Mainly changes to support compilation of the device libraries
781 * src/pic16/device.c: stack is allocated via symbol and not
782 via literal number. The symbol is placed in the corresponding
783 position of the data ram
784 * (pic16_dump_section): relocatable and absolute uninitialized
785 data are now emitted in sorted order to reduce section naming,
786 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
787 weren't marked as being in the access bank,
789 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
791 Added portion of GNU PIC Library under the directory
792 device/include/pic16 and device/lib/pic16. These files
793 contain the declarations of SFRs for the PIC18Fxx2 devices.
794 The directory is initialized via configure from toplevel.
796 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
798 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
799 the spilllocations to be compared correctly
801 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
803 * src/SDCCast.c (decorateType): fixed bug introduced today
805 2004-01-12 Borut Razem <borut.razem AT siol.net>
807 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
808 doc/sdccman.lyx: upper case pragmas are deprecated
810 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
812 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
813 in simpler and even better code
815 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
817 * src/SDCCicode.c (operandOperation): fixed bug #874819
818 * src/SDCCast.c (decorateType): fixed
819 char foo (unsigned long ul) { return ul > 0; }
821 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
823 * doc/sdccman.lyx: Moved and added some sections, small changes
824 all over. Telling LaTeX to be less strict with word spacing
825 to better keep the right margin. Changed some notes about
826 maintainance of the ports in section 3.2.1 - is it OK like this?
828 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
831 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
832 convilong): modified to inform the pic16 port that builtin functions
835 PIC16 PORT specific changes:
836 * src/pic16/device.c pic16_dump_equates() added,
837 processor registers declared internally by the port are emitted in
838 the translation as equates,
839 * src/pic16/gen.c: inline code is passed unprocessed to the
841 * (pic16_popGetLit2): fnuction modified to take second operand as
842 pCodeOp pointer and not as literal,
843 * (popRegFromIdx): prefixed with pic16_,
844 * (pic16_popCombine2): modified to receive already allocated pCode
846 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
847 * (genFunction): initializes local stack frame and pushes on stack
848 all the registers used by this function,
849 * (genEndFunction): restores all registers from stack and restores
851 * src/pic16/glue.c (pic16emitRegularMap): various changes and
853 * (pic16glue): changed the program startup sequence,
854 * added new dbName code 'A' for functions placed in absolute section
855 * src/pic16/main.c: added function attribute _naked,
856 * added pragma 'code' to place a fnuction at an absolute address,
857 * added command line arguments --debug-ralloc and --pcode-verbose,
858 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
859 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
860 * (pic16_newpCodeOpLit2): modified to take the second operand as
862 * (pic16_printpBlock): modified to emit each function in a separate
864 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
865 UPPER for immediate operands,
866 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
868 * src/pic16/peeph.def: all peepholes with movff are commented out,
869 because there is a problem in the pcode peep optimizer,
870 * src/pic16/ralloc.c: the register allocator can now reuse local
871 function symbols for another function. This saves register usage.
872 * src/pic16/ralloc.h: added flag isLocal in structure regs,
874 Added file src/pic16/NOTES with information about program writing on
875 the current port version.
877 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
879 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
880 and peephole 252 (array access)
882 2004-01-09 Borut Razem <borut.razem AT siol.net>
884 * src/SDCCmain.c : fixed #872250: -l command line defined library
885 files are scanned before standard library files
887 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
889 * src/SDCCast.c (decorateType): fixed bug #874046
891 2004-01-09 Borut Razem <borut.razem AT siol.net>
893 * support/scripts/sdcc.nsi: remove previous installation
895 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
897 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
898 bytes for last interrupt vector (mcs51)
899 * sdcc.spec: fixed typo
901 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
903 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
904 gen51Code): more efficient parameter receive for --model-large
907 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
910 * src/z80/main.c: added missed needLinkerScript flags (more than
911 one port structure defined in these file)
912 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
915 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
917 * src/SDCCmain.c: removed various references to DEFAULT_PORT
918 * src/port.h: added flag needLinkerScript in port->linker
919 structure to inform whether to create a .lnk file or not,
927 * src/z80/main.c: changed appropriately to configure
928 needLinkerScript flag
930 * src/pic16/gen.c (genAddrOf): fixed bug #863624
931 * src/pic/glue.c: added variable udata_section_name to
932 override default uninitialized data segment definition for
933 devices only with SHAREBANK memory (reported from Erik Epetrich)
934 * (pic14emitOverlay): modified to emit a commented overlay segment
935 directive when no overlay data exist
936 * (picglue): modified to emit uninitialized data segment
937 according to udata_section_name
938 * src/pic/main.c (_pic14_parseOptions): added command line
939 options --udata-section-name=[name] to override default
940 udata definition name
941 * modified _linkCmd and _asmCmd to include compiler passed
942 arguments via -W option
943 * src/pic16/main.c: added $l in _asmCmd, changed extension for
944 object file from '.rel' to '.o' in port->linker structure,
945 changed size of fptr from 2 to 3 in port structure
947 2004-01-07 Borut Razem <borut.razem AT siol.net>
949 * support/scripts/sdcc.nsi: update PATH
950 * support/scripts/sdcc.ico: craeted
952 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
954 * device/include/Makefile.in: fix install
955 * doc/Makefile: fix install
957 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
959 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
961 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
962 how the function variable allocation summary is displayed; also
963 include information about variables allocated to the overlay
966 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
968 * as/mcs51/lkmain.c: Help about -Y option
969 * as/mcs51/lkarea.c: Fixed gcc warnings
971 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
973 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
975 * support/valdiag/tests/overflow.c: added
976 * src/SDCCast.c (decorateType),
977 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
980 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
982 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
985 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
987 A python script to validate compiler diagnostic messages. It can be
988 used to verify that sdcc complains about bad c source code and
989 gives a good location of the error.
990 * support/valdiag/Makefile,
991 * support/valdiag/valdiag.py,
992 * support/valdiag/tests/*
994 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
996 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
997 * src/SDCCsymt.c (newEnumType),
999 * support/Util/SDCCerr.c,
1000 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
1002 * support/regression/tests/enum.c: added test for enum values that
1003 require at least 2 bytes of storage.
1005 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
1007 * src/common.h: added ifndef/define/endif macros
1008 around the header file.
1009 Bug reported from Jesus Calvino-Fraga
1011 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
1013 * sdcc.spec: updated
1014 * device/include/Makefile.in: don't install CVS directories
1015 * device/lib/Makefile.in: added removal of CVS directories after install
1016 * doc/Makefile: fixed install, added local_icons
1017 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
1018 * src/mcs51/gen.c (genRightShift): fixed bug #870788
1019 * src/ds390/gen.c (genRightShift): fixed bug #870788
1020 * src/SDCCast.c (decorateType): fixed bug #870781
1022 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
1024 PIC16 port related changes:
1025 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
1026 added variable stackPos,
1028 * gen.c: genCall, assignResultValue: added support for
1029 pushing/retrieving function parameters to/from stack,
1030 genFunction,genEndFunction: setup stack frame for the
1032 genAddrOf: will be changed according to bug 863624
1034 * added files genutils.c and genutils.h which contain gen*
1035 debugged and optimised functions extracted from gen.c
1037 * glue.c: added variable 'externs' which holds extern symbols,
1038 pic16emitRegularMap: is modified to properly handle relocatable
1039 symbols under the new scheme,
1040 pic16createInterruptVect: is modified
1041 pic16printPublics: is modified to emit 'global' assembler directives,
1042 added pic16_printExterns to print extern symbols,
1043 pic16glue: initializes stack/frame pointer in the beginning of
1044 the assembly output. Temporary hack, will be corrected later,
1045 because gplink yet does not support stack and SDCC does not
1046 yet support a type of crt0.o object to create the final binary.
1048 * Removed many lines that contain 8051 legacy code.
1049 * The code is finally placed under a 'code' directive.
1050 * Added port specific options.
1052 * _process_pragma: simplified since now we do not need *special*
1053 include file to define SFR registers. But a separate header
1054 will be needed. This will be developed later.
1055 * _pic16_parseOptions: added, parses port specific options:
1056 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
1057 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
1058 --preplace-udata-with=
1060 * _pic16_setDefaultOptions: modified to initialize section names,
1061 but hack is temporarly out of order since it needs improvement.
1062 * _pic16_genAssemblerPreamble: configuration words are emitted by
1063 their address instead of their name. This part is incomplete and
1064 supports only the 18Fxx2 devices. Other devices will emit an error
1065 during assembly since they do not contain the same set of config
1067 * _pic16_genIVT: is modified,
1069 * pcode.c: added definitions for some hardware registers that are needed
1071 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
1072 All PCI entries are updated. Now LFSR is supported.
1073 * Removed pic16_pciTRIS is mentioned by mdubuc in source
1074 * added pic16_newpCodeOpLit2 to support instructions with
1075 two literal arguments
1076 * pic16_pCode2str: corrected code that emits assembler instructions
1077 with two literal operands and those that have an access bit modifier
1078 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
1079 this fixes a bug which caused some labels to be lost, when an
1080 assembler directive was added, i.e. banksel,
1081 * pic16_FixRegisterBanking: improved logic that causes the insertion
1083 * InlineFunction: functions that are called once, are not any more
1084 inlined. This can be a port option in the future,
1086 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
1088 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
1089 hold the corresponding uninitialized symbols,
1090 * pic16_allocProcessorRegister: registers have explicit marked the
1092 * pic16_allocInternalRegister: registers are explicit marked as
1094 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
1095 processing list, so bit registers were lost,
1098 * ralloc.h: added field 'accessBank' and original symbol operand
1099 in register definition,
1100 * removed the field isMapped from register definition,
1102 ** Several functions have been removed from various sources:
1103 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
1104 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
1105 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
1106 pic16_assignRelocatableRegisters
1108 ** others have been introduced:
1109 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
1110 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
1112 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
1114 * support/scripts/inc2h.pl: changed definition of BIT_AT
1115 to emit 'sbit at' instead of 'bit at'. This was a request.
1117 PIC16 port related preliminary changes:
1118 * gen.c: prefixed function popRegFromString with
1119 pic16_ and all references to it corrected
1120 * pcode.c: all pic16_pc_* hardware registers prefixed
1121 with underscore (_),
1122 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
1123 * ralloc.c: newReg(): when register is REG_SFR then
1124 set address to rIdx,
1125 pic16_allocProcessorRegister(): marks register wasUsed=0
1126 pic16_writeUsedRegs(): added a call to assign processor
1127 registers via pic16_assignFixedRegisters
1129 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1131 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
1132 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
1133 variables in unused register banks. Also the SSEG is placed
1134 wherever there is enough space for it, and IDATA can be anywhere
1135 in internal RAM. For now compile using -Wl-Y[stack_size].
1136 The mem file is different for this option as well, since it
1137 makes no sense of talking about DSEG lenght.
1139 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
1141 * src/SDCClrange.c: fixed bug 869095 that caused segfault
1142 in certain cases, e.g. when ROM assignment, patch provided
1143 from Albert den Haan.
1145 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1147 Many signedness and type propagation fixes:
1148 * src/SDCCicode.c: made geniCodeCast() static
1149 replaced SPEC_ by IS_ (cosmetic)
1150 (operandOperation): fixed div and mod operation
1151 (usualBinaryConversions): added support for promotion of char
1152 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
1153 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
1154 (geniCodeAdd): an array index will stay unsigned, even if promoted
1156 (geniCodeArray): ditto
1157 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
1158 * src/SDCCsymt.c (computeType): added more support for char;
1159 promotion of char is selectable by promoteCharToInt, fixed signedness
1161 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1162 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1163 * src/SDCCval (val*): replaced signedness calculation by
1165 rearranged if-branches (cosmetic)
1166 (valShift): added warning W_SHIFT_CHANGED
1167 (valCompare): fixed problem with different types
1168 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
1169 * support/regression/tests/literalop.c: added many cases
1170 * support/regression/tests/ast_constant_folding.c: changed finally to
1172 * .version: new year, new version: 2.3.7
1173 * src/SDCCmain.c (main): applied patch #866468
1174 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
1175 provided by Scott Bronson
1176 * doc/sdccman.lyx: updated documentation for sdcdb
1177 updated and added chapter tips
1179 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1181 * src/SDCCsymt.h: missing from yesterday's commits
1183 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1185 * src/SDCC.y (struct_or_union_specifier),
1186 * support/Util/SDCCerr.c,
1187 * support/Util/SDCCerr.h: verify that struct & union tags are used
1190 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1192 * src/SDCCglobl.h: missing from yesterday's commits
1194 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1196 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
1197 sft_attributes, struct_declaration, parameter_declaration,
1198 type_name, start_block, declaration_list),
1199 * src/SDCC.lex (check_type): support redefinition of typedef names
1201 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1203 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
1204 aligned xdata arrays. Erik helped me with the if clause.
1206 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1208 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
1211 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1214 * src/SDCCast.c (newAst_),
1216 * src/SDCCicode.c (ast2iCode, newiCode),
1218 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
1219 expr, statement, expression_statement, selection_statement,
1220 iteration_statement, expr_opt, jump_statement): foundation for tracking
1222 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
1225 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1227 * support/Util/SDCCerr.c,
1229 * src/SDCCast.c (createCase, createDefault, decorateType),
1230 * src/SDCClabel.c (labelUnreach),
1231 * src/SDCC.y (labeled_statement, jump_statement): More improvements
1233 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
1234 (with thanks to Stas Sergeev)
1235 * device/include/time.h,
1236 * device/lib/time.c (CheckTime): suppress unreachable code warning
1238 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1240 * src/SDCCast.c (createIvalCharPtr),
1241 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
1243 * support/regression/tests/nullstring.c: tests for these two bugs
1245 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1247 * support/Util/SDCCerr.h,
1248 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
1249 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
1250 about storage class and 'at' used inside struct or union
1251 * src/SDCCBBlock.c (iCodeFromeBBlock),
1252 * src/SDCCcse.c (ifxOptimize),
1253 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
1254 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
1255 printIval, emitStaticSeg, emitOverlay),
1256 * src/SDCClabel.c (deleteIfx),
1257 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
1258 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
1259 gatherAutoInit, processParms),
1260 * support/Util/SDCCerr.h,
1261 * support/Util/SDCCerr.c (werrorfl): Support for better error location
1262 reporting for post-parse errors.
1264 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1266 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
1267 implicit casts via union; they don't work on big endian systems
1268 (possible fix for bug #861138)
1270 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1272 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
1273 * src/mcs51/main.c: fixed the fix for bug #737001
1275 2003-12-15 Borut Razem <borut.razem AT siol.net>
1277 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
1279 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1281 * support/makebin/makebin.c: put output in binary mode
1283 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1285 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
1286 xdata and data memory on startup. Set the environment variable
1287 SDCC_NOGENRAMCLEAR to disable this.
1288 * src/mcs51/peephole.def,
1289 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
1290 (allows non-interrupt and interrupt code to safely compete for a resource
1291 without the non-interrupt code having to disable interrupts)
1293 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1295 * src/SDCCicode.c (geniCodeAdd),
1296 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
1297 with valFromType if type might be a pointer and host is big endian).
1298 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
1299 types, not just integer types.
1300 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
1301 multiply defined with mismatching "at" address.
1303 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1305 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
1306 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
1307 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
1308 with embedded nulls (fixed bug #753752)
1310 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1312 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
1313 Apparently this did not see much testing (endless loop)
1315 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1317 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
1319 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1321 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
1322 gracefully handle NULL memmap pointers
1324 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1326 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
1327 instead of deleting the iCode when an operand is volatile
1328 * src/z80/gen.c (genDummyRead),
1329 * src/mcs51/gen.c (genDummyRead),
1330 * src/ds390/gen.c (genDummyRead),
1331 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
1333 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
1334 * src/SDCC.y: fixed bug #850420
1336 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1338 Applied z80 i/o port patch from Peter Townson and fixed some operators
1339 to better handle operands in A register.
1340 * device/include/z180.h
1346 * src/z80/peeph-z80.def
1350 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1352 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
1354 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1356 * device/lib/hc08/_mullong.c: Removed extra #endif
1358 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1360 * sim/ucsim/hc08.src/inst.cc,
1361 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
1363 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
1364 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
1365 * device/include/stdarg.h: fixed varargs for hc08
1366 * device/lib/Makefile.in,
1367 * device/lib/hc08/Makefile,
1368 * device/lib/hc08/_mulint.c,
1369 * device/lib/hc08/_mullong.c: fixed some endian problems
1371 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1373 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
1374 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
1375 * device/lib/_gptrget.c,
1376 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
1378 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1380 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
1381 * src/SDCCast.c (astErrors): fixed bug #846007
1382 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
1384 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1386 * src/SDCCast.c (decorateType): disabled a transformation I added in
1387 revision 1.188 (access to fields of a structure at an absolute address);
1388 it breaks with bitfields, extern declarations, and gcse analysis.
1389 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
1390 could be assigned through a pointer, so don't complain.
1391 * src/SDCCast.c (astErrors),
1393 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
1395 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
1397 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
1398 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
1399 output of __config directives, since gpasm now supports them
1400 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
1401 pre-processor macro, i.e. -DMCU=p18f452
1402 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
1403 and modified to handle 'cast' icode similarly to '=' icode
1404 * src/pic16/device.h (typedef struct PIC_device): added field
1405 'extMIface' to indicate that chip has external memory interface
1406 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
1407 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
1410 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1412 * src/SDCC.y (pointer): fixed bug #846006
1413 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
1414 * src/SDCCast.c (decorateType): fixed bug #846009
1415 * src/ds390/peeph.def,
1416 * src/ds390/gen.c (genAnd, genOr),
1417 * src/mcs51/peeph.def,
1418 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
1420 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1422 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
1429 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
1433 * src/SDCCbitv.c: added function to free a bitvector
1435 * src/SDCClrange.c: added function to recompute the liveranges
1437 * src/ds390/ralloc.c,
1438 * src/hc08/ralloc.c,
1439 * src/mcs51/ralloc.c,
1441 * src/pic16/ralloc.c,
1442 * src/xa51/ralloc.c,
1443 * src/z80/ralloc.c: recompute the liveranges after register packing
1445 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
1447 * src/SDCCloop.c (newInduction): fixed bug #845630
1449 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1451 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
1452 inadvertantly left behind from my 2003-11-12 change
1454 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1456 Updated headers I neglected to commit yesterday.
1460 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1462 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
1463 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
1464 * src/SDCCopt.c (eBBlockFromiCode),
1465 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
1466 the creation of the key hash table from the sequencing so it can be used
1467 earlier (for some GCSE bug fixes still pending)
1469 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1471 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
1472 * support/regression/tests/addsub.c: testing genPlus shortcut
1474 2003-11-15 Borut Razem <borut.razem AT siol.net>
1476 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
1478 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1480 * src/SDCCcse.c (cseBBlock): fixed bug #527779
1481 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
1482 ordering is immaterial.
1483 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
1485 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1487 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
1488 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
1489 (SIGSEV) of bug #840381
1490 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
1491 unlink new file before rename if new and old filenames are the same)
1493 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1495 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
1496 uninitialized variables) for the mcs51. Set environment variable
1497 SDCC_GENRAMCLEAR to test.
1498 xdata initialization slightly shorter
1500 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1503 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
1504 #838241 & 780691 (basicly the same bug)
1505 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
1506 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
1508 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
1510 * src/SDCCmain.c (linkEdit): "fix" #834252
1512 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1514 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
1516 * src/SDCC.y: fixed bug #819403
1518 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1520 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
1521 the reentrant attribute.
1522 * src/hc08/gen.c (genPackBits): added missing stack readjustment
1523 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
1525 * src/SDCCast.c (decorateType): fixed bug with storage class not being
1526 updated during pointer dereference; f.e. ~(((char *)1)*) was being
1527 erroneously reduced to a literal.
1528 * src/hc08/ralloc.c (packRegisters, rematStr),
1529 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
1532 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1534 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
1535 * doc/sdccman.lyx: changed from 'article' to 'book'
1536 * doc/Makefile: readded test_suite_spec and cdbfileformat
1538 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
1540 * device/include/stdlib.h: include malloc.h to comply with ANSI
1541 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
1543 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1545 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
1546 * doc/clean.mk: also remove *.out files
1547 * doc/sdccman.lyx: some additions, larger top/bottom margins
1549 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1551 * src/SDCC.y: fixed bug #837365
1552 * support/regression/tests/bitopcse.c
1553 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
1554 a symbol (might be valop instead)
1555 * device/lib/Makefile.in: added errno.c to HC08SOURCES
1556 * device/lib/clean.mk: added hc08 to the cleaning list
1558 2003-11-04 Borut Razem <borut.razem AT siol.net>
1560 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
1562 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1563 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
1564 malloc is declared in standard stdlib.h
1566 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1568 * device/lib/hc08/Makefile: need to clean .rel not .o files
1569 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
1571 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1581 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
1582 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
1583 tests (which uses the port's oclsExpense function)
1589 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
1591 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1593 * src/SDCCcse.c (ifxOptimize),
1594 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
1595 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
1596 deleting the IFX iCode.
1597 * src/hc08/ralloc.c: reduced unneeded slocs
1598 * src/hc08/gen.c: fixed bug in asmopToBoolean
1600 2003-11-04 Borut Razem <borut.razem AT siol.net>
1602 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
1603 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1604 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
1605 transferred to configure
1607 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
1609 Use headers defined in the C[++] standards:
1610 * sim/ucsim/gui.src/serio.src/fileio.cc
1611 * sim/ucsim/gui.src/serio.src/frontend.cc
1612 * sim/ucsim/gui.src/serio.src/main.cc
1613 * sim/ucsim/gui.src/serio.src/posix_signal.cc
1614 * support/Util/NewAlloc.c
1620 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1622 * Added MSVC projects for hc08 assembler and linker:
1623 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
1624 /as/hc08/link_hc08.dsp
1626 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
1628 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
1630 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
1632 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
1634 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1636 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
1638 2003-10-31 Borut Razem <borut.razem AT siol.net>
1640 * support/cpp2/cpplib.h,
1641 support/cpp2/cpplib.c,
1642 support/cpp2/cpplex.c,
1643 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
1644 to switch _asm block preprocessing on / off. Default is
1645 #pragma preproc_asm +
1647 2003-10-31 Borut Razem <borut.razem AT siol.net>
1649 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
1650 when outputting comment blocks (when executed with -C option) and
1651 _asm (SDCPP specific) blocks
1653 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1655 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
1657 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
1659 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
1661 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
1663 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
1664 * src/SDCCast.c (decorateType): fixed bug #832664
1666 2003-10-31 Borut Razem <borut.razem AT siol.net>
1668 * support\cpp2\cpplex.c: fixed for SDCPP:
1669 comments(when executed with -C option) and _asm blocks
1670 were included even if they where in skipped #if block.
1671 Applied solution from GCC cpp 3.3.2
1673 2003-10-31 Borut Razem <borut.razem AT siol.net>
1675 * src/SDCC.lex: sdcc now understands both formats:
1676 '# <line_number> <file_name>' and
1677 '#line <line_number> <file_name>'
1678 * support/cpp2/cppmain.c: sdcpp now generates the standard
1679 '# <line_number> <file_name>' instead of former
1680 '#line <line_number> <file_name>'
1682 2003-10-30 Borut Razem <borut.razem AT siol.net>
1684 * support/cpp2/cpphash.h,
1685 * support/cpp2/cpplib.h
1686 * support/cpp2/cpplex.c,
1687 * support/cpp2/cppmain.c,
1688 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
1690 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1692 Fixed a number of problems revealed by bug #827883.
1693 * src/SDCCloop.c (loopInvariants): Spill location of the
1694 result operand should be recomputed if extracted from
1695 a loop. Also, don't extract assignments of an iTemp
1697 * src/SDCCast.c (isConformingBody): loop reversal should
1698 not occur if the control variable is involved with a
1699 relational operator.
1701 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1703 * .version: bumped to 2.3.6 to reflect the big improvements
1704 made by Erik and Klaus. Thanks!
1706 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
1708 Replaced the livrange code.
1709 * src/SDCClrange.c: added new LR code
1711 * src/SDCCBBlock.h: removed remainig parts from old LR code
1712 * src/ds390/ralloc.c,
1713 * src/ds390/gen.c: minor fixes to make it work with new code
1715 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1720 * src/hc08/ralloc.c: Fix various warnings related to the hc08
1721 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
1722 (tweaked fix for bug #818696)
1724 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1726 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
1728 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1731 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
1732 * src/mcs51/gen.c (gencjneshort),
1733 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
1734 more efficient (per Scott Bronson's suggestion)
1736 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1738 Extended the semantics of the critical keyword to include
1739 individual statements. See RFE #827755 and #799831
1744 * support/Util/SDCCerr.c
1745 * support/Util/SDCCerr.h
1750 2003-10-19 Borut Razem <borut.razem AT siol.net>
1752 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
1754 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1756 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
1758 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
1759 and predecrement operand is displayed
1761 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1763 * src/SDCCval.c (valMinus): fixed bug #826041
1765 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1767 Some hc08 related updates that I missed earlier
1768 * sim/ucsim/stypes.h
1769 * support/regression/ports/hc08/spec.mk
1771 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1773 New target "hc08" for the Motorola 68hc08 family of micros
1781 * sim/ucsim/hc08.src/*
1782 * sim/ucsim/configure.in
1783 * src/ucsim/configure
1784 * sim/ucsim/packages_in.mk
1787 * device/include/mc68hc908qy.h
1789 * device/lib/Makefile.in
1790 * support/regression/ports/hc08/*
1791 * support/regression/Makefile
1793 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1795 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
1797 * src/ds390/gen.c (genCast): fixed bug #821957
1799 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1801 * device/lib/logf.c: "fixed" overlay bug
1802 * support/regression/ports/host/spec.mk: added m library
1803 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
1804 * support/regression/tests/float_trans: added (for Eric)
1806 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
1808 * src/mcs51/gen.c (genCpl): fixed bug
1809 http://sf.net/mailarchive/message.php?msg_id=6263915
1811 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
1813 * src/SDCCast.c (decorateType): added extended constant folding
1814 * src/SDCCsymt.c (computeType): cleanup
1815 * src/SDCCval.c (valShift): minor optimization
1816 * support/regression/tests/ast_constant_folding.c: added
1818 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1820 * src/SDCCmain.c: removed some unintended changes
1822 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1824 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
1825 * src/z80/gen.c: fixed part of bug #817589
1826 * src/SDCCsymt.c (checkFunction): fixed bug #817895
1828 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
1830 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
1841 * src/ds390/ralloc.c
1843 * src/mcs51/ralloc.c
1845 * src/pic16/ralloc.c
1848 * src/z80/gen.c: removed unused label "release:"
1850 2003-10-06 Borut Razem <borut.razem AT siol.net>
1852 * src/SDCC.lex: removed definition of unused variables
1853 save_optimize and save_options
1855 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1857 * clean.mk: removed '=' in "-maxdepth=1"
1858 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
1859 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
1861 2003-10-06 Borut Razem <borut.razem AT siol.net>
1863 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
1864 my_unput() replaced by unput()
1866 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
1868 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
1869 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
1870 type-punned pointer will break strict-aliasing rules"
1871 Old LR behaviour is again default; Klaus' LR can be choosen by
1872 defining the environment variable LRKLAUS
1876 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
1877 * clean.mk: fixed removal of files in bin/CVS/
1878 * device/lib/clean.mk: fixed removal of directories small and large
1879 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
1881 * src/SDCCval.c: removed superflous test for pedantic
1883 2003-10-05 Borut Razem <borut.razem AT siol.net>
1885 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
1886 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
1887 message "unmatched #pragma SAVE and #pragma RESTORE"
1889 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1891 * doc/sdccman.lyx: various additions and updates (interrupts, inline
1892 assembly, critical functions, atomic, nojtbound)
1894 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
1896 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
1902 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1905 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1907 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1909 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1910 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
1911 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
1913 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1915 * src/z80/gen.c (genRet): fixed bug #524753
1916 * src/z80/gen.c (genCast): fixed internal error on cast from
1918 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
1919 fix for bug #477835 to the z80
1920 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
1921 for tracking iCodes in the peephole optimizer for z80
1923 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1925 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
1926 the other part of bug #814548
1927 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
1929 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
1931 * src/SDCCcse.c: fixed part of bug #814548
1933 2003-09-28 Borut Razem <borut.razem AT siol.net>
1935 * src/asm.c: rewrite of printILine() to use temporary file instead
1937 * src/xa51/main.c: commented out declaration of int rewinds
1939 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1941 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
1943 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1945 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
1946 * src/asm.c (printILine): Fixed bug #811015
1948 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1950 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
1953 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1955 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
1956 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
1957 to correctly handle general case of AOP_PAIRPTR
1958 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
1960 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1962 * src/mcs51/ralloc.c (fillGaps),
1963 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
1964 register positioning bug)
1966 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
1968 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
1970 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1972 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
1973 genCodePointerGet, genGenPointerGet, genFarPointerSet,
1974 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
1975 (ralloc doesn't intentionally do this now, but perhaps later)
1976 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
1977 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
1978 register positioning bugs (Fixed bug #762602 and #795325)
1979 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
1981 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
1982 lines that --i-code-in-asm generates
1984 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1986 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
1987 trying to fclose a FILE* that was already closed.
1989 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1991 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
1992 of const struct should be treated as if const themselves)
1994 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
1996 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
1998 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2000 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
2001 Unix (/n) and DOS (/r/n) line terminations.
2003 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2005 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
2008 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2010 * src/mcs51/gen.c (genFunction, genEndFunction),
2011 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
2012 and restore of EA so that stack offsets to parameters are
2013 correct when using both critical and reentrant/stack-auto.
2014 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
2015 size (can be triggered in error if sloc is shared between
2016 different sized objects)
2017 * device/include/float.h: fixed macros to explicitly use
2018 unsigned long where needed
2020 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
2022 Feature req. 799831: added code to allow nesting of critical functions
2023 * src/mcs51/gen.c (genFunction, genEndFunction)
2024 * src/ds390/gen.c (genFunction, genEndFunction)
2026 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2028 * src/SDCCsymt.c (sclsFromPtr),
2030 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
2031 support for standard C idiom of memory mapped variables; for
2032 example, *((xdata int*)0x1234) = 1 is now internally equivalent
2033 to xdata int at 0x1234 tempvar = 1.
2034 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
2035 provided by Akiya ISHIDA
2037 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
2039 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
2040 * src/SDCCval.c (constVal): added reduction from int to char
2041 * src/SDCCval.c (valMult, valDiv): fixed sign handling
2042 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
2043 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
2045 * support/regression/tests/shifts.c: fixed
2047 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2049 * src/z80/gen.c (genXor): Fixed bug #805445
2051 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2053 Fixed bug #621531 (const & volatile confusion in the type chain).
2054 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
2055 refer to the const or volatile state of the pointer itself.
2067 * src/pic16/ralloc.c
2068 * support/regression/tests/const.c
2070 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2072 When checking for duplicated modules, use absolute paths
2073 instead of relative paths. Files changed:
2078 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2080 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
2082 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2084 * device/include/string.h: added size_t typedef, changed
2085 prototypes to use size_t, eliminated separate reentrant and
2086 non-reentrant declarations, added _memmove declaration
2087 * device/lib/_memcpy.c: changed to use size_t instead of int,
2088 changed /4 to >>2 to avoid division library call
2089 * device/lib/_memcmp.c,
2090 * device/lib/_memset.c,
2091 * device/lib/_strncat.c,
2092 * device/lib/_strncpy.c,
2093 * device/lib/_strncmp.c: changed to use size_t instead of int
2094 * device/lib/_memmove.c: new file (fixed bug #772294)
2095 * device/lib/Makefile.in: added _memmove.c
2096 * device/lib/z80/asm_strings.s: fixed bug #772290
2097 * support/regression/tests/bitfields.c: attempt to fix host assertion
2098 failure on amd64-unknown-linux2.2
2100 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2102 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
2103 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
2104 * as/z80/asmain.c (main): fixed bug #801766
2106 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
2108 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
2111 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2113 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
2114 reported in bug #800609
2116 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
2118 * Top header beautifications in src/pic16 directory:
2119 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
2120 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
2121 pcoderegs.h, ralloc.c, ralloc.h
2122 * main.c: added top header and GPL license notice
2123 * pcode.c: fixed the if-conditional warning
2125 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
2127 * device/lib/_mullong.c: replaced int by short for gcc
2129 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2131 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
2132 and JUMPTABLE iCodes properly now (worked by accident before)
2133 * src/mcs51/gen.c (leftRightUseAcc),
2134 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
2135 iCode properly now. Use getSize instead of nRegs since a & b
2136 aren't part of the nRegs tally.
2138 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
2140 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
2141 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
2142 before instructions that use the _STATUS register
2144 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
2146 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
2147 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
2148 fetching of the pointer
2149 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
2150 copied from genNearPointerSet()
2151 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
2152 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
2153 If they pop r0/r1 they must be called in the opposite order than aopOp().
2154 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
2155 (resp. --stack-auto), prepared for --xstack
2157 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2159 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
2161 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
2163 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
2164 these ports have their own __sdcc_external_start()
2166 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
2168 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2169 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
2170 type for bits was changed. It resulted in bit variables becoming
2171 global, which is not permitted in PIC 14 assembly output.
2173 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2175 * doc/sdccman.lyx: various additions and updates. Rearranged sections
2177 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2179 Z80 and MCS51 linkers complaint if a public symbol is defined
2180 in more than one library module:
2184 * as/mcs51/Makefile.in
2186 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2188 A few small changes that speed up the peephole optimizer.
2192 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2194 Try to make the peephole optimizer smarter by maintaining
2195 an association between the assembly source code and the
2196 iCodes that originated them. Put this information to use
2197 with a new peephole rule condition "notVolatile" so that
2198 the rules can be aggressive yet still safe.
2203 * src/mcs51/peeph.def
2205 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2209 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
2210 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
2211 if the left or right operand symbols have the accuse flag set.
2213 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2215 Changed the type of the result of the ! (NOT) operator to char;
2216 previously it returned the same type as the source. This allows
2217 us to eliminate all the genFloatNot functions (all of its target
2218 implementations were very buggy) since !float can use the same
2221 * src/SDCCicode.c (ast2iCode): ! returns char
2222 * src/mcs51/gen.c (genNot, genNotFloat),
2223 * src/ds390/gen.c (genNot, genNotFloat),
2224 * src/z80/gen.c (genNot, genNotFloat),
2225 * src/pic/gen.c (genNot, genNotFloat),
2226 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
2228 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
2230 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2231 1. Interrupt would not compile properly. Ensure PCLATH register is saved
2232 during interrupts. Ensure WSAVE is located at a shared bank address.
2233 2. Fixed page selection in some places
2234 3. Fixed BTFSS/C to where necessary use registers directly and not simply
2235 the registers name strings.
2236 4. Fixed "signed / unsigned compare" compiler warnings.
2237 5. The PIC port manages its own allocation of the general purpose
2238 registers, but makes no attempt to reuse them. As a result when
2239 compiling it soon runs out of general purpose registers. Some
2240 additional code was added to the files pcode.c and device.c to walk
2241 through the function call tree and rename the registers so that they
2251 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
2252 genPlus() & genMinus() when the result is the same as left or right
2254 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2256 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
2258 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2260 Made bitfield a distinct type from bit so that bitfields
2261 convert as per ANSI C and bits retain their traditional
2262 boolean style behaviour. Implemented bitfield support in
2270 * src/ds390/gen.c: bit v bitfield split
2271 * src/z80/gen.c: New support for bitfields
2272 * support/regression/tests/bitfields.c: reenabled z80,
2275 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2277 Rules 246.x, 247.x relate to bitfields, the others speed up
2278 access to xdata mapped I/O devices.
2280 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
2282 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2284 Cleaned up genPackBits and genUnpackBits and added two helper
2285 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
2286 for literal assignments in genPackBits (thanks to Frieder for
2292 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2294 Fixed bug #748310 (pointer to function type mishandled when the
2295 function name is omitted). Also fixed a SIGSEGV when a function
2296 attribute (reentrant, etc) is used on a non-function or on a
2297 function but misplaced before the parameter list.
2299 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
2301 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
2302 * support/Util/SDCCerr.h,
2303 * support/Util/SDCCerr.c: Added func attr misuse error msg
2305 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2307 Fixed bug #787649 by anonymous
2308 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
2309 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
2311 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2313 Fixed numerous bitfield problems.
2315 * src/SDCC.y: More bitfield related error checking
2317 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
2318 * support/Util/SDCCerr.h,
2319 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
2320 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2321 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2322 * support/regression/tests/bitfields.c: tests added
2324 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2326 Made the constant following the "interrupt" keyword optional. If
2327 omitted, the function will not automatically be given an entry
2328 in the interrupt vector table (similar to #pragma NOIV, but
2329 less syntacticly kludgy). The interrupt number is also now
2330 range checked. Also fixed a bug in the high order bit example
2337 * support/Util/SDCCerr.c
2338 * support/Util/SDCCerr.h
2341 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2343 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
2344 * src/SDCCicode.c (operandOperation): rewritten some ops
2345 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
2346 * src/SDCCsymt.c (computeType): literals are handled the same way as any
2348 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
2349 be re-activated by defining REDUCE_LITERALS)
2350 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
2351 unsigned, but are signed by default
2352 * src/SDCCval.c (constVal): rearranged
2353 * src/SDCCval.c (valMod): preliminary fix
2354 * src/SDCCval.c (valCastLiteral): use TYPE_* types
2355 * support/regression/literalop.c: added, work in progress
2357 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2359 Generate warnings for useless declarations like "char data;"
2360 that don't do what new users expect.
2363 * support/Util/SDCCerr.h
2364 * support/Util/SDCCerr.c
2366 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
2368 * src/SDCCval.c (valMult): fix overflow detection of negative int
2370 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2372 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
2374 Changes to support big endian targets:
2387 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
2389 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
2390 * device/lib/time.c: fixed warning "integer overflow in expression"
2392 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
2394 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
2395 * src/SDCCval.c (constVal): changed default to signed; hex and octal
2396 constants are unsigned; added recognition of "u" flag for unsigned
2397 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
2398 * src/SDCCval.c (valDiv, valMod): fixed signdness
2399 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
2400 signedness of modulo, left and right shift
2401 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
2402 * support/Util/SDCCerr.h: added warning W_INT_OVL
2403 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
2404 * src/SDCCast.c (ast_print): improved output of constants
2406 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2408 Fixed some warnings when building with MSVC:
2421 * support\cpp2\cpplib.c
2425 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
2427 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
2429 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2431 * support\librarian\clean.mk: Do not remove Makefile.
2432 * support\librarian\Makefile: added.
2434 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2436 Added librarian to MSVC build:
2439 * support\librarian\librarian.dsp
2441 'configure' not needed for librarian, removed:
2442 * support\librarian\configure
2443 * support\librarian\configure.in
2444 * support\librarian\config_in.h
2445 * support\librarian\Makefile.in
2447 Hopefully these ones built the librarian and the rest of sdcc properly:
2449 * Makefile.common.in
2451 Messed up 'configure', so revert to previous version:
2455 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
2457 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
2458 there, while the mantissa of a double is "only" 53 bits wide.
2460 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2462 Adding sdcclib to the build. MSVC project coming soon.
2463 Files added/changed:
2465 * support\librarian\clean.mk
2466 * support\librarian\configure
2467 * support\librarian\configure.in
2468 * support\librarian\config_in.h
2469 * support\librarian\Makefile.bcc
2470 * support\librarian\Makefile.in
2471 * support\librarian\sdcclib.c
2474 * Makefile.common.in
2478 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2480 Linker now complaints if linked modules have conflicting options, for
2481 example, one compiled using --model-large and another one compiled with
2482 --model-small. The following files were modified:
2504 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2506 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
2507 as/mcs51/lklibr.c: Generate a warning when a library is not found.
2509 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
2511 * src/z80/mappings.i: fix _mul[us][int,long] entries
2513 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2515 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
2517 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2519 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
2520 * support/regression/tests/bitopcse.c: added
2528 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2530 added support for new library format to z80, gbz80 linkers:
2536 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2538 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
2539 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
2541 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
2543 added DUMMY_READ_VOLATILE:
2552 * src/SDCCcse.c (algebraicOpts): many improvements
2553 * src/SDCCcse.h: removed algebraicOpts()
2554 * src/SDCCicode.c (picDummyRead): added
2556 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2558 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
2559 "Insufficient space in data memory".
2561 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2563 * src/mcs51/gen.c: fixed bug #771358
2564 * src/z80/gen.c: fixed bug #759087
2566 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
2568 * src/pic16/glue.c: minor cleanup by Vangelis
2570 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2572 * device/include/regc515c.h: fixed #758477
2573 * device/lib/_gptrget.c: saving some cycles in generic pointer get
2574 * device/lib/_gptrput.c: saved a few bytes
2575 * my tab spacing is 8, yours too?)
2576 * device/lib/_ser.c: process RX bytes earlier than TX bytes
2577 * device/lib/serial.c: process RX bytes earlier than TX bytes
2578 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
2580 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2582 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
2584 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2586 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
2588 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
2590 * device/lib/Makefile.in: bad fix, reverted to 1.43
2592 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
2594 * device/lib/Makefile.in: added missing z80 object files
2596 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
2598 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
2599 pic16 progress by Vangelis:
2614 * pic16/pcodepeep.c:
2617 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2619 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
2621 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2623 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
2624 added gbz80 build to MSVC project.
2625 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
2626 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
2627 from 8051 stuff and setup so it links using a .lnk file.
2629 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2631 * support/librarian/sdcclib.c: sdcc librarian.
2632 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
2635 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2637 * as/mcs51/lkmain.c: properly handle extensions in function afile.
2639 2003-07-02 Borut Razem <borut.razem AT siol.net>
2641 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
2642 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
2643 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
2644 src/xa51/main.c, src/z80/main.c:
2645 virtualization of glue() function: each port has it's own glue function,
2646 which is accessed by do_glue function pointer in PORT.general structure
2648 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
2650 * DS800C400 fun, improved ROM interface and tinibios.
2652 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
2654 * More support for DS80C400. Now includes beginning of interface to ROM.
2656 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
2658 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
2660 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2662 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
2664 2003-06-19 Borut Razem <borut.razem AT siol.net>
2666 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
2668 2003-06-19 Borut Razem <borut.razem AT siol.net>
2670 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
2671 fixed Z80 port - crt0.o: cannot open.
2673 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
2675 * support/Util/MySystem.c (merge_command): revert bad fix
2677 2003-06-18 Borut Razem <borut.razem AT siol.net>
2679 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
2681 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2683 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2684 option --use-stdout sends errors to stdout instead of stderr.
2686 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
2688 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
2690 2003-06-15 Borut Razem <borut.razem AT siol.net>
2692 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
2693 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
2694 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
2695 fixed width array of pointers replaced with sets;
2696 multiple include and lib paths ared transferred to preprocessor and linker
2697 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
2698 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
2699 fixed width array of pointers
2700 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
2701 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
2702 fixupPath(), getPathDifference()
2703 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
2704 fixed width array of pointers
2706 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
2708 * src/pic16/ralloc.c: fix warnings
2709 * src/pic16/pcode.c: fix warning
2711 2003-06-10 Scott Dattalo <scott AT dattalo.com>
2713 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
2714 know all the details, but essentially this set of changes enable
2715 the pic16 port to generate movff instructions and generate assembler
2720 * src/pic16/pcode.c:
2721 * src/pic16/device.c:
2723 * src/pic16/pcode.h:
2724 * src/pic16/pcoderegs.c:
2725 * src/pic16/ralloc.c:
2726 * src/pic16/ralloc.h:
2728 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2730 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2731 added option --vc, so sdcc errors and warnings are compatible with
2732 Microsoft Visual Studio.
2734 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2736 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
2737 device/lib/libfloat.lib: added atof function.
2739 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2741 * doc/sdccman.lyx: updated to Lyx 1.3
2742 * doc/cdbfileformat.lyx: updated to Lyx 1.3
2743 * doc/test_suite_spec.lyx: updated to Lyx 1.3
2744 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
2746 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
2748 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
2750 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2752 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
2753 additions to the "related tools/documentation" section
2755 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
2757 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
2759 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
2761 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
2762 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
2764 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
2766 * doc/sdccman.lyx: fix double dash and other minor things
2767 * doc/Makefile: fix double dash
2769 2003-05-28 Karl Bongers(patches from Martin Helmling)
2770 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
2771 condition and ignore commands.
2773 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2775 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
2776 is in parts still quite out of date, I did changes as far as I felt makes sense
2777 for a non-native english speaker.
2778 Please feel free to add to the manual or to correct my changes.
2779 * doc/Makefile: undid touching the date of intermediate tex files.
2781 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2783 * doc/sdccman.lyx: Manual has an index now
2785 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
2787 Finalize muluint/mulsint and mululong/mulslong merging:
2788 * device/lib/_mulint.c
2789 * device/lib/_mullong.c
2790 * device/lib/gbz80/mul.s
2791 * device/lib/gbz80/stubs.s
2792 * device/lib/z80/mul.s
2793 * device/lib/z80/stubs.s
2794 * src/SDCCsymt.c (initCSupport)
2796 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2798 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
2799 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
2800 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
2801 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
2804 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2806 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
2807 the regression tests I'm not brave enough to enable 245.b, 245.c
2808 * doc/sdccman.lyx: added latex preamble for hyperref package.
2809 Using pdflatex this will give you a hyperlinked pdf file with
2810 bookmarks. (prepend '%' before /usepackage if this breaks something)
2812 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2814 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
2816 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
2818 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
2820 2003-05-21 <johan AT balder>
2822 * src/SDCCglue.c (printIval): fixed bug #739934
2824 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2826 Applied patch from bug 737905 (renamed yylineo to mylineno):
2833 * src/pic16/pcode.c: Cleaned warnings
2834 * src/pic16/pcodeflow.c: Cleaned warnings
2835 * src/pic16/pcoderegs.c: Cleaned warnings
2837 2003-05-19 Scott Dattalo <scott AT dattalo.com>
2839 * src/pic16/pcode.c: Cleaned warnings
2840 * src/pic16/pcodepeep.c: Cleaned warnings
2841 * src/pic16/ralloc.c: Cleaned warnings
2843 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2845 * doc/sdccman.lyx: fixed bug 739745
2846 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
2848 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
2850 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
2851 it can be defined with CFLAGS when running configure
2852 * src/SDCCmain.c: fixed compiling + linking with object files
2854 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
2856 * configure.in: configure for pic16 port,
2857 added --disable-pic16-port
2858 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
2859 * src/SDCCmain.c: linkOptions is changed to set *,
2860 added if/endif conditional macros to remove options help
2861 messages from optionsTable when a port is not configured, added
2862 support for the PIc16 port in the ports table, when executing
2863 the compiler with no port specified on command line, a default
2864 port is selected with the new macro DEFAULT_PORT which is
2865 defined in port.h, in setDefaultOptions() linkOptions is removed
2866 from initialization assignment, since now it is a set,
2867 parseCmdLine uses setParseWithComma for linkOptions, in
2868 linkEdit() linkOptions are accessed with new function indexSet()
2869 which returns the i'th item of a set variable. See SDCCset.c, in
2870 linkEdit() when calling buildCmdLine(), added linkOptions as
2871 last argument. Now users can pass arguments to gplink via the
2872 -Wl option, main() uses pic16glue() to glue up pic16 programs
2873 * src/SDCCpeeph.c: various changes to support pic16
2874 * src/SDCCset.c: added function void *indexSet(set *, int) to
2875 return the i'th item of the set
2876 * src/SDCCset.h: added function prototype for indexSet()
2877 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
2878 * src/clean.mk: added pic16 in CLEANALLPORTS variable
2879 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
2880 added macro DEFAULT_PORT
2881 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
2882 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
2884 * src/pic16/glue.c: commented out some error producing lines
2885 * src/pic16/main.c: __config directives are commented out to stop
2886 gpasm complaining and test the linkage with gplink, _linkCmd and
2887 _asmCmd changed to be more gplink and gpasm friendly
2888 * src/pic16/peeph.def: peep rule 3 is commented out, since it
2889 produced an error when parsed, peep rule 12 is added to utilize
2890 movff, but it is commented out since the pCode does not support
2891 yet a command with 2 address arguments
2893 2003-05-18 <johan AT balder>
2895 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2896 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2897 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
2899 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
2900 Added feature to script commands from file.
2902 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
2904 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
2905 * src/SDCCutil.c: include ctype.h for win32
2907 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
2909 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
2911 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
2913 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
2914 Fixed so you can set breakpoints prior to run, run does not stop
2915 on entry now. Add tbreak. Other enhancements and fixes for use
2918 2003-05-12 Borut Razem <borut.razem AT siol.net>
2920 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
2922 2003-05-11 Borut Razem <borut.razem AT siol.net>
2924 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
2925 the path of bin directory, so that PATH is the only env. variable, which has to be set
2926 in case of standard installation.
2927 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
2928 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
2929 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
2931 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2933 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
2934 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
2935 temp files are in the port dir; clean the gen/test directory when
2936 generating new test.c
2937 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
2938 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
2939 * support/regression/tests/zeropad.c: added
2941 2003-05-09 <johan AT balder>
2943 * src/SDCCglue.c: fixed bug #597940
2945 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
2947 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2948 cache sfr, optimize next,step, fix off by one sourceline,
2949 support ddd list function.
2950 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
2952 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2954 * support/regression/HTMLgen.py: added compare_s2f()
2955 * support/regression/Makefile: redo 1.27
2956 * support/regression/generate-cases.py: redo 1.5
2958 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
2960 * support/regression/tests/float.c: workaround 33 bit hex constant
2961 * support/regression/tests/simplefloat.c: fix division for host
2963 2003-04-29 Scott Dattalo <scott AT dattalo.com>
2965 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
2966 that tame's the PIC's over-aggressive optimizer.
2968 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2970 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
2973 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
2975 Initial support for DS80C400. "Hello world" runs on TINIm400
2978 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
2980 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2981 * Some notes on ddd usage added in debugger/README
2982 Martin Helmling adding more features and fixes for ddd GUI debugger.
2983 Code added for nexti, stepi, up, down, and other adjustments.
2985 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
2987 * src/pic/pCodepeep.c non-wildcard asmops are now handled
2988 * src/pic/peeph.def Added two rules to optimize carry manipulation
2989 * src/pic/* removed debug printfs
2991 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
2993 * debugger/mcs51/cmd.c: added header newalloc.h
2995 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
2997 * as/Makefile: new EXEEXT
2998 * as/z80/Makefile: remove trailing slash of BUILDIR
2999 * as/z80/clean.mk: new EXEEXT
3000 * Makefile.common.in: add to CFLAGS (and others), don't replace it
3001 * support/cpp2/Makefile.in: new EXEEXT
3002 * src/pic/glue.c (pic14emitRegularMap): fixed warning
3004 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3006 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
3007 EXEEXT was introduced to fix all related problems with targets
3008 "clean", "install" and "uninstall"; a couple of further flaws
3009 especially with "clean" have been fixed too
3010 * as/mcs51/Makefile.in
3015 * debugger/mcs51/Makefile.in
3016 * debugger/mcs51/clean.mk
3018 * link/z80/Makefile.in
3021 * packihx/Makefile.in
3023 * sim/ucsim/Makefile
3024 * sim/ucsim/clean.mk
3025 * sim/ucsim/avr.src/Makefile.in
3026 * sim/ucsim/avr.src/clean.mk
3027 * sim/ucsim/s51.src/Makefile.in
3028 * sim/ucsim/s51.src/clean.mk
3029 * sim/ucsim/xa.src/Makefile.in
3030 * sim/ucsim/xa.src/clean.mk
3031 * sim/ucsim/z80.src/Makefile.in
3032 * sim/ucsim/z80.src/clean.mk
3033 * sim/ucsim/main_in.mk
3034 * sim/ucsim/packages_in.mk
3035 * sim/ucsim/gui.src/Makefile.in
3036 * sim/ucsim/gui.src/serio.src/Makefile.in
3037 * sim/ucsim/gui.src/serio.src/clean.mk
3040 * support/cpp2/Makefile.in
3041 * support/cpp2/clean.mk
3042 * support/makebin/Makefile
3043 * support/makebin/clean.mk
3044 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
3045 * doc/sdccman.lyx: --program-suffix no longer needed
3047 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
3049 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
3050 Martin Helmling added support for ddd GUI debugger.
3051 Code added to display assembly, set variables, and other commands
3052 to interface to ddd.
3054 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
3056 * as/Makefile: fix target clean
3057 * as/clean.mk: fix target clean
3058 * as/z80/clean.mk: fix target clean
3060 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
3062 * Makefile.common.in: added AT EXEEXT AT
3063 * configure.in: removed all mingw32 stuff
3064 * configure: rebuilt from configure.in
3065 * doc/sdccman.lyx: updated section "installation"
3066 * support/scripts/sdcc_mingw32: adapted to configure
3067 * support/scripts/sdcc_cygwin_mingw32: added
3069 2003-04-22 Scott Dattalo <scott AT dattalo.com>
3071 * src/pic Added object file support for the PIC port
3072 * src/pic Applied patch from Craig Franklin (this started the object file support)
3073 * src/regression Updated the PIC regression tests for object files
3075 2003-04-20 Borut Razem <borut.razem AT siol.net>
3077 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
3078 lklex.c: In function `getfid':
3079 lklex.c:203: warning: array subscript has type `char'
3080 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
3081 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
3082 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
3083 stack handling macros
3085 2003-04-19 Borut Razem <borut.razem AT siol.net>
3087 * "handling space characters in file path" task:
3088 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
3089 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
3090 * support/Util/MySystem.h: make it self-sufficient
3091 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
3092 src/z80/main.c, sdcc/as/mcs51/lklex.c:
3093 handling space characters in file path
3094 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
3095 (it will be used by assemblers, which have their own includes, e.g. gpasm)
3096 * support/Util/MySystem.c: handling space characters in executable's path
3098 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
3100 * as/z80/Makefile: fix permanent rebuild of z80
3101 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
3102 * support/regression/tests/bitfields.c: added Johan's bitfields.c
3104 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
3106 * src/SDCCopt.c: add special case optimization to replace modulo by
3107 a power of two with a bitwise AND.
3109 2003-04-18 <johan AT balder>
3111 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
3113 2003-04-17 <johan AT balder>
3115 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
3116 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
3118 2003-04-13 Borut Razem <borut.razem AT siol.net>
3120 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
3121 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
3122 fixed mingw problem in adl_NORMALIZE_PATH
3124 2003-04-12 Borut Razem <borut.razem AT siol.net>
3126 * fixed "#pragma SAVE/RESTORE can not be nested":
3127 * src/SDCC.lex: reworked pragma handling functions
3128 * sdcc/src/SDCCglobl.h: reworked stack handling macros
3129 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
3131 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3133 * src/SDCCutil.c (pathEquivalent): defined but not used
3134 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
3135 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
3136 * configure: rebuilt from configure.in
3137 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3138 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3139 * device/include/Makefile.in: replace sdcc_datadir
3140 * device/lib/Makefile.in: replace sdcc_datadir
3141 * Makefile.common.in: add LDFLAGS from configure
3142 * packihx/Makefile.in: use LDFLAGS
3143 * src/Makefile.in: use LDFLAGS
3144 * support/cpp2/Makefile.in: add LDFLAGS from configure
3145 * support/makebin/Makefile: use LDFLAGS
3146 * .version: bumped version number to 2.3.5
3148 2003-04-12 Borut Razem <borut.razem AT siol.net>
3150 * completed "different paths" task:
3151 * src/SDCCmacro.c: fixed bug in handling quotes
3152 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
3153 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
3155 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3157 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
3159 2003-04-11 kevin Vigor <kevin AT vigor.nu>
3161 * ds390/gen.c ds390/peeph.def: fix bug 706781
3163 2003-04-11 Borut Razem <borut.razem AT siol.net>
3165 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
3167 2003-04-10 Scott Dattalo <scott AT dattalo.com>
3169 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
3170 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
3171 set - this bit used to not be set...).
3172 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
3173 bad code in PIC Port
3174 * src/regression/and2.c added to test bug 609268
3175 * src/regression/Makefile added and2.c to regression test
3178 2003-04-08 <johan AT CP255758-A>
3180 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
3181 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
3182 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
3184 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
3186 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
3188 * support/cpp2/Makefile.in: fix bug #487815
3189 * configure: rebuilt from configure.in
3190 * Makefile.common.in: docdir changed, new path suffixes
3191 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3192 * sdcc_vc_in.h: reflect changes from sdccconf.h
3193 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
3194 * src/SDCCutil.h: remove BINDIR hack
3195 * doc/sdccman.lyx: update new path hierarchy
3197 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3199 * src/SDCCpeeph.c: added okToRemoveSLOC test
3201 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3203 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
3205 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3207 * src/SDCCpeeph.c: added labelIsReturnOnly test
3208 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
3210 2003-04-05 <johan AT balder>
3212 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
3213 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
3214 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
3215 * src/SDCCast.c: fixed a warning
3216 * src/SDCCast.h: fixed a warning
3217 * src/SDCCicode.c (operandFromAst): fixed a warning
3219 2003-04-04 <johan AT balder>
3221 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
3222 * src/SDCCast.c (decorateType): fixed bug #715076
3223 * src/SDCC.y: fixed bug #702907
3225 2003-04-03 <johan AT balder>
3227 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
3228 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
3229 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
3230 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
3231 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
3233 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
3235 * _decdptr.c: fix return values
3236 * _gptrget.c: fix return values
3237 * _gptrgetc.c: fix return values
3238 * _gptrput.c: fix return values
3239 * _mulint.c: fix return values
3240 * as/z80/Makefile: fix 'make -j' problem
3242 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
3244 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
3245 * configure.in: big cleanup, updated to autoconf 2.5x
3246 * configure: rebuilt from configure.in
3247 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3248 * sdcc_vc_in.h: reflect changes from sdccconf.h
3249 * doc/Makefile: fixed a flaw in "make install"
3251 2003-04-02 <johan AT balder>
3253 * src/ds390/gen.c (genCmp): no comments
3254 * src/mcs51/gen.c (genCmp): no comments
3255 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
3256 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
3258 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
3260 * support/regression/generate-cases.py: place generated file in given sub directory
3261 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
3262 * support/regression/Makefile: improvements for 'make -j';
3263 side effect: it's simpler and faster now
3265 2003-03-31 Borut Razem <borut.razem AT siol.net>
3267 * src/z80/main.c: link-{port} and as-{port} defined without path
3268 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
3270 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
3272 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
3274 2003-03-30 Borut Razem <borut.razem AT siol.net>
3276 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
3277 changed type of list parameter to set
3278 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
3279 * src/port.h: changed type of do_assemble() parameter to set
3280 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
3281 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
3282 definition of "cppoutfilename" macro with NULL value in preProcess()
3283 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
3284 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
3285 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
3286 replaced with set *binPathSet
3287 * shash_add() deallocates the item, if allready exsists, before adding the new one
3288 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
3290 2003-03-30 Scott Dattalo <scott AT dattalo.com>
3292 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
3293 a nested for loop bug in the PIC port
3294 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
3297 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
3299 * support/Util/dbuf.h: remove C++ stuff to make it portable
3301 2003-03-28 Borut Razem <borut.razem AT siol.net>
3303 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
3304 literal strings in stringLiteral()
3305 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
3306 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
3309 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
3311 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
3313 2003-03-26 <johan AT balder>
3315 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
3316 * src/ds390/gen.c (saveRegisters): catched symbol abuse
3317 * src/SDCCast.c (decorateType): fixed " -v < 3"
3319 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3321 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
3322 Added Lenny Story's debug infrastructure changes:
3323 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
3324 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
3325 * src/cdbFile.c: added
3326 * src/SDCCdebug.c: added
3327 * src/SDCCdebug.h: added
3328 * src/SDCCast.c (createFunction)
3329 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
3330 * src/SDCCmain.c (parseCmdLine, main)
3331 * src/SDCCmem.c (redoStackOffsets)
3332 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
3335 * src/avr/gen.c (genAVRCode)
3336 * src/ds390/gen.c (gen390Code)
3337 * src/mcs51/gen.c (gen51Code)
3338 * src/pic/gen.c (genpic14Code)
3339 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
3340 * src/xa51/gen.c (genXA51Code)
3341 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
3343 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3345 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
3346 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
3348 2003-03-22 <johan AT balder>
3350 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
3352 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
3354 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
3355 * doc/cdbfileformat.lyx: added, written by Lenny Story
3356 * doc/Makefile: added cdbfileformat.lyx
3357 * doc/clean.mk: added cdbfileformat.lyx
3359 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
3361 * src/mcs51/peeph.def: fix bug #705773
3363 2003-03-20 <johan AT balder>
3365 An sfr/sbit can have an "at #" AND an initializer
3366 * src/SDCCsymt.c (checkSClass):
3367 * src/SDCCmem.c (allocGlobal):
3368 * src/SDCCmem.c (allocLocal):
3369 * src/SDCCast.c (createBlock):
3371 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
3373 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
3375 2003-03-16 <johan AT balder>
3377 Undid the hackup of const and volatile, the problem is much bigger
3379 * src/SDCCast.c:1.171
3380 * src/SDCCglue.c:1.138
3381 * src/SDCCicode.c:1.146
3382 * src/SDCCsymt.c:1.150
3383 * src/SDCCval.c:1.65
3385 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
3387 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
3388 * src/ds390/gen.c (genAddrOf): fixed bug #704087
3390 2003-03-13 <johan AT balder>
3392 Hackup const and volatile modifiers in type chains a bit:
3394 * src/SDCCast.c:1.169
3395 * src/SDCCglue.c:1.136
3396 * src/SDCCicode.c:1.143
3397 * src/SDCCsymt.c1.146
3398 * src/SDCCsymt.h1.59
3399 * src/SDCCval.c:1.63
3401 2003-03-12 <johan AT balder>
3403 * src/SDCCBBlock.h: more LRH debugging junk
3404 * src/SDCCcflow.h: more LRH debugging junk
3405 * src/SDCCloop.c: more LRH debugging junk
3406 * src/SDCC.y (struct_declaration): fixed bug #697590
3407 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
3408 * src/ds390/gen.c (aopForRemat): fixed bug #700031
3409 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
3411 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3412 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
3413 test function names must now match exactly).
3414 * src/SDCCcse.c: added special case in findCheaperOp to allow
3415 extending a short integer. Makes less awful code for bug 700121 test case.
3417 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3419 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
3420 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
3422 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3424 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
3425 actually called (operandsNotEqual() was called for all
3426 operandsNotEqualX tests).
3428 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3430 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
3431 with shorter literals. Fixes bug 700121.
3433 2003-03-11 <johan AT balder>
3435 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
3437 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
3439 * src/SDCCloop.c (mergeRegions): an evil beast is dead
3440 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
3442 2003-03-10 Borut Razem <borut.razem AT siol.net>
3444 * src/SDCCmain.c: pipe preprocessor's output
3445 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3446 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3447 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3448 which closes all pipes in pipeSet set
3449 * src/SDCCset.c: free deleted item in function deleteSetItem()
3450 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3451 moved from z80 to src subproject
3452 * .version: increased version number to 2.3.4
3454 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
3456 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
3457 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
3458 * support/regression/ports/xa51/spec.mk: fix typo
3460 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
3462 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
3464 2003-03-09 Borut Razem <borut.razem AT siol.net>
3466 * src/SDCCmain.c: pipe preprocessor's output
3467 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3468 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3469 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3470 which closes all pipes in pipeSet set
3471 * src/SDCCset.c: free deleted item in function deleteSetItem()
3472 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3473 moved from z80 to src subproject
3475 2003-03-09 Borut Razem <borut.razem AT siol.net>
3477 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
3478 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
3479 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
3480 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
3481 * src/SDCCglobl.h: unification of WIN32 native definitions
3483 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3485 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
3487 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3489 * src/configure.in: check for endianess (even while cross-compiling)
3490 * src/configure: check for endianess (even while cross-compiling)
3491 * src/configure_in.h: check for endianess (even while cross-compiling)
3492 * src/avr/gen.c: remove old endianess stuff
3493 * src/mcs51/gen.c: remove old endianess stuff
3494 * src/ds390/gen.c: remove old endianess stuff
3495 * src/pic/gen.c: remove old endianess stuff
3496 * src/pic/genarith.c: remove old endianess stuff
3497 * src/pic/glue.c: fix endianess check
3498 * src/pic16/gen.c: remove old endianess stuff
3499 * src/pic16/genarith.c: remove old endianess stuff
3500 * src/pic16/glue.c: fix endianess check
3501 * src/xa51/gen.c: remove old endianess stuff
3502 * src/z80/gen.c: fix endianess check
3503 * src/SDCCglue.c: fix endianess check
3504 * src/ds390/peeph.def: fix bug 700036
3506 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3508 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
3509 * src/configure: find appropriate data-types on host for SDCC's int and long
3510 * src/configure.in: find appropriate data-types on host for SDCC's int and long
3511 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
3512 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
3514 2003-03-07 <johan AT balder>
3517 some minor cleanups before the big shot
3518 OP_DEFS and OP_USES now use Kevin's protection
3519 new option --nolabelopt
3530 * src/ds390/ralloc.c:
3531 * src/mcs51/ralloc.c:
3533 * src/xa51/ralloc.c:
3536 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
3538 * src/pic/pcode.c (get_op): fix 64 bit warnings
3539 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
3540 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
3541 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
3542 * support/regression/tests/malloc.c: fix 64 bit warnings
3544 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
3546 * src/mcs51/gen.c (genMinus): fixed bug 696436
3548 2003-03-02 Borut Razem <borut.razem AT siol.net>
3550 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
3552 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
3554 * configure.in: test for mkstemp
3555 * sdccconf_in.h: add HAVE_MKSTEMP
3557 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
3559 * device/include/ctype.h: removed warning while using --stack-auto
3560 * device/include/malloc.h: removed warning while using --stack-auto
3561 * device/include/string.h: removed warning while using --stack-auto
3563 2003-02-23 Borut Razem <borut.razem AT siol.net>
3565 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
3566 because NDEBUG is defined (see man assert)
3567 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
3569 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3571 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
3572 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
3574 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3576 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
3577 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
3579 2003-02-18 <johan AT balder>
3581 * as/mcs51/asmain.c (asmbl): module can start with a digit
3582 * as/z80/asmain.c (asmbl): module can start with a digit
3584 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
3586 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
3587 * src/asm.c: fix pipe() for Mingw32
3589 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
3591 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
3592 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
3593 make -V work again; --c1mode reads now from stdin
3594 * doc/sdccman.lyx: added --c1mode
3595 * support/Util/SDCCerr.c: new messages for c1 mode
3596 * support/Util/SDCCerr.h: new messages for c1 mode
3597 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
3599 2003-02-15 <johan AT balder>
3601 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
3603 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
3605 * doc/sdccman.lyx: Environment variables, -o and other minor things
3607 2003-02-14 <johan AT balder>
3609 * src/xa51/main.c: before anyone really tries to use it :)
3611 * Install doc's in share/sdcc/doc
3612 * removed some obsolete files
3613 * Do a proper make distclean and uninstall
3614 M Makefile.common.in
3617 M device/include/Makefile.in
3618 M device/lib/Makefile.in
3621 M sim/ucsim/doc/Makefile.in
3624 R src/xa51/peeph.rul
3625 M support/cpp2/Makefile.in
3626 M support/makebin/Makefile
3629 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
3631 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
3633 2003-02-10 Borut Razem <borut.razem AT siol.net>
3635 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
3636 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
3637 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
3638 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
3639 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
3640 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
3641 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
3642 src/z80/Makefile.bcc: Borland Makefile cleanup
3643 * as/z80/Makefile.bcc: Added Borland Makefile
3644 * support/cpp2/borland.h: Removed
3646 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
3648 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
3649 * src/SDCC.lex: new pragma NOIV
3650 * src/SDCCglobl.h: new pragma NOIV
3651 * src/SDCCmem.c: new pragma NOIV
3653 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3655 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
3657 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3659 * src/SDCCmain.c: signal handling is switched off by --debug
3660 * doc/Makefile: small fix for install; use clean.mk again
3661 * doc/clean.mk: clean *.pdf and *.html too
3663 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
3665 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
3666 * device/lib/printfl.c: fix a ds390 bug by making it portable
3667 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
3668 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
3669 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
3670 * debugger/mcs51/cmd.c: converted multi-line string literals
3671 * sim/ucsim/globals.cc: converted multi-line string literals
3672 * src/SDCCmain.c: introduced signal handler to remove temp files
3673 * doc/Makefile: small tweaks, implement clean
3674 * doc: removed generated files
3676 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3678 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
3679 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
3680 Address Record is not correctly generated for DS390."
3682 2003-02-02 Borut Razem <borut.razem AT siol.net>
3684 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
3685 * as/mcs51/asm.h: fixed compilation with Borland C
3686 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
3687 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
3688 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
3689 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
3690 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
3691 src/z80/Makefile.bcc: delete $(LIB) only if exist
3692 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
3694 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
3696 * device/include/malloc.h: introduced NULL
3697 * device/include/string.h: introduced NULL
3698 * device/include/stdlib.h: introduced NULL
3699 * device/lib/_memcpy.c: removed NULL
3700 * device/lib/_strcat.c: removed NULL
3701 * device/lib/_strchr.c: removed NULL
3702 * device/lib/_strcmp.c: removed NULL
3703 * device/lib/_strcpy.c: removed NULL
3704 * device/lib/_strcspn.c: removed NULL
3705 * device/lib/_strlen.c: removed NULL
3706 * device/lib/_strncat.c: removed NULL
3707 * device/lib/_strncmp.c: removed NULL
3708 * device/lib/_strncpy.c: removed NULL
3709 * device/lib/_strpbrk.c: removed NULL
3710 * device/lib/_strrchr.c: removed NULL
3711 * device/lib/_strspn.c: removed NULL
3712 * device/lib/_strstr.c: removed NULL
3713 * device/lib/_strtok.c: removed NULL
3714 * device/lib/malloc.c: removed NULL, include own header
3716 2003-02-02 <johan AT balder>
3718 * 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
3719 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
3720 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
3721 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
3722 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
3723 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
3725 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3727 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
3730 2003-02-01 <johan AT balder>
3732 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
3734 2003-01-31 <johan AT CP255758-A>
3736 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
3738 2003-01-30 <johan AT balder>
3740 * src/SDCCBBlock.c: automatic bug detection
3741 * src/SDCCicode.c: automatic bug detection
3743 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3745 * src/SDCCglobl.h: now --xram-size 0 works
3746 * src/SDCCmain.c: now --xram-size 0 works
3748 2003-01-29 <johan AT balder>
3750 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
3752 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3754 * as/mcs51/aslink.h: Added options --xram-size and --code-size
3755 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
3756 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
3757 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
3758 * src/SDCCglobl.h: Added options --xram-size and --code-size
3759 * src/SDCCmain.c: Added options --xram-size and --code-size
3761 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
3763 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
3764 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
3766 2003-01-27 <johan AT balder>
3768 * src/SDCC.y: fixed bug #613764
3770 2003-01-26 <johan AT balder>
3772 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
3773 * src/SDCCsymt.h: fixed bug #673374
3774 * src/SDCCglue.c: fixed bug #661910
3775 * src/SDCCast.c: fixed bug #458099 and 673374
3777 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
3779 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
3780 * as/mcs51/strcmpi.h: added
3781 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
3782 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
3783 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
3784 * as/mcs51/assym.c: strcmpi -> as_strcmpi
3785 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
3786 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
3787 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
3788 * as/mcs51/Makefile.aslink: new module strcmpi
3789 * as/mcs51/Makefile.asx8051: new module strcmpi
3790 * as/mcs51/Makefil.bcc: new module strcmpi
3791 * as/mcs51/Makefile.in: new module strcmpi
3792 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
3794 2003-01-26 <johan AT balder>
3796 * src/SDCCglue.c: reverted back to 1.124
3797 * src/SDCCast.c: reverted back to 1.156
3798 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
3800 2003-01-25 <johan AT balder>
3802 * src/SDCCglue.c: A better fix for bug #661910
3803 * src/SDCCast.c: A better fix for bug #661910
3804 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
3806 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3808 * src/Makefile.in: remove spawn.o
3809 * src/SDCCmain.c: remove spawn.h
3810 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
3811 * src/spawn.c: removed
3812 * src/spawn.h: removed
3813 * support/regression/ports/ds390/spec.mk: link with -r
3815 2003-01-24 <johan AT CP255758-A>
3817 * src/ds390/gen.c (aopOp): fixed bug #667458
3818 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
3819 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
3820 (createIvalCharPtr): an ival doesn't always have a storage class anymore
3822 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3824 * src/mcs51/peeph.def: better assembler identation by Frieder
3825 * src/mcs51/gen.c: better assembler identation by Frieder
3827 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
3829 * as/z80/string.h: removed for gcc 3.2
3830 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
3831 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
3833 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3835 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
3836 * src/SDCCpeeph.c (replaceRule): fix bug #663503
3837 * support/regression/Makefile: separate temp files for ports
3838 * support/regression/generate-cases.py: separate temp files for ports
3839 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3840 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3842 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3844 * moved tinitalk to device/examples/ds390
3846 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
3848 * as/mcs51/lkmem.c: rflag is for DS390
3849 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
3850 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
3851 (linkEdit): move mem- and map-files the same way as ihx-files
3852 * src/z80/main.c (_setDefaultOptions): removed --generic
3853 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
3854 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
3855 * src/pic/glue.c (picglue): --c1mode works again
3856 * src/pic16/glue.c (pic16glue): --c1mode works again
3857 * src/asm.c (printCLine): fix #660034
3859 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
3861 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
3862 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
3863 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
3864 * as/mcs51/lkmem (summary): better fix for sp problem
3865 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
3866 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
3867 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
3868 remove --stack-after-data
3870 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
3872 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
3873 * src/SDCCutil.c (join): ugly bug: missing '\0'
3874 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
3876 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3878 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
3880 * src/pic/main.c (_asmCmd): gpasm supports -o
3881 * src/z80/main.c: more general macros
3882 * device/lib/Makefile.in: remove intermediate files
3884 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3886 * .version: Bumped version number to 2.3.3
3887 * src/SDCCBBlock.c: new option -o
3888 * src/SDCCglobl.h: new option -o
3889 * src/SDCCglue.c: new option -o
3890 * src/SDCCmain.c: new option -o
3891 * src/asm.c: new option -o
3892 * src/ds390/main.c: new option -o
3893 * src/pic/glue.c: new option -o
3894 * src/pic/pcode.c: new option -o
3895 * src/pic/ralloc.c: new option -o
3896 * src/pic16/glue.c: new option -o
3897 * src/pic16/pcode.c: new option -o
3898 * src/pic16/ralloc.c: new option -o
3899 * src/z80/main.c: new option -o
3900 * device/lib/Makefile.in: use -o
3901 * support/regression/ports/ds390/spec.mk: use -o
3902 * support/regression/ports/gbz80/spec.mk: use -o
3903 * support/regression/ports/mcs51/spec.mk: use -o
3904 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
3905 * support/regression/ports/z80/spec.mk: use -o
3906 * support/regression/ports/ucz80/spec.mk: use -o
3907 * support/regression/ports/xa51/spec.mk: use -o
3908 * support/regression/fwk/lib/timeout.c: fix usage string
3910 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
3911 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
3913 2003-01-07 <johan AT balder>
3915 * src/SDCCast.c (decorateType): fixed bug #600035
3917 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
3918 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
3919 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
3920 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
3921 * src/pic/pcode.c: outcommented unused variable to remove warnings
3922 * src/pic/ralloc.c: outcommented unused variable to remove warnings
3924 2003-01-06 <karl AT turbobit.com>
3925 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
3928 2003-01-06 <johan AT balder>
3930 * src/SDCCicode.c: fixed array add
3932 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
3933 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
3934 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
3936 2003-01-04 <johan AT balder>
3938 * src/SDCCval.c (getNelements): fixed the initialized array of structures
3940 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3941 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
3943 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3944 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
3945 * support/regression/tests/bug-524697.c: fit mem usage into 8032
3947 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3948 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
3950 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
3951 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
3953 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3954 * src/mcs51/main.c: removed {bindir}{sep} from aslink
3956 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3958 * in \sdcc\as\mcs51\ changed these files in order to create an
3959 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
3960 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
3961 following files to include the previous two files: aslink.dsp,
3962 Makefile.aslink, Makefile.bcc, and Makefile.in.
3964 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
3965 .adb instead of .cdb
3967 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3969 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
3970 value from option --iram-size.
3972 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3974 * \sdcc\as\mcs51\lklist.c: added boundary check before using
3977 2002-09-18 <wiml AT hhhh.org>
3979 * SDCClrange.h: exposed setFromRange() and setToRange()
3980 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
3981 packRegsForAccUse() (bug 542397)
3982 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
3983 multiple times and emitting the fetch operations more than once
3984 added aopGetUsesAcc() function to allow binary operators to
3985 fetch their operands in the correct order; made genMinus() emit
3986 compact code for X = LITERAL - Y
3988 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3989 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
3990 sprintf() in line 1267.
3992 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3993 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
3996 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3997 Changes to aslink (All the changes are marked with 'JCF'):
3999 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
4002 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
4003 area BSEG. Also moves, if possible, the DATA area down into the internal
4004 ram so more space is available.
4006 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
4009 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
4010 not bytes. Function summary() which creates a memory usage summary
4011 file with extension .mem. Reports of overlaping stack and small stack
4012 size. If the space for the stack is less than 16 bytes aslink trows a
4015 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
4016 the 8051. Option 'y' for memory summary output file.
4018 Changes to sdcc (All the changes are marked with 'JCF'):
4020 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
4022 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
4023 overlaying area for it (uses RegBankUsed[4]).
4025 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
4026 bank zero as used by default. By default aslink locates the stack
4027 (equivalent to --stack-after-data). Pass option 'y' to aslink for
4028 the creation of the .mem file. Delegates the allocation of data area
4029 to aslink (it is not longer 0x30 by default). If --stack-loc passes
4030 the begining of the stack area to aslink.
4032 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
4033 glue() in SDCCglue.c creates an area for it.
4035 2002-09-03 Borut Razem <borut.razem AT siol.net>
4036 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
4037 sdcc/src/pic/glue.c:
4038 introduced atexit() handler for teporay files removal in case of
4039 errors, assertions, ...
4041 2002-08-29 Borut Razem <borut.razem AT siol.net>
4042 * sdcc/support/cpp2/auto-host_vc_in.h:
4043 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
4044 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
4045 Maybe there is a similar problem with BORLANDC? It should be checked!
4047 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
4048 corrected improper use of assert: the assignment to clr variable was done inside the assert.
4049 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
4050 was not executed, and the compiler (cl) launched a warning:
4051 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
4053 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
4054 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
4056 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
4057 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
4059 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
4060 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
4061 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
4062 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
4063 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
4064 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
4065 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
4066 - added Release configuration in VS projects
4067 - review of compiler an linker options
4068 - VC .exe files are generated in bin_vc directory, not to interfere
4069 with binaries generated from other projects (cygwin, mingw, bcc ...)
4071 * sdcc/src/yacc.dsp: added
4073 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
4074 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
4075 and insert the version number definitions from .version
4077 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
4079 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
4080 added - genarate auto-host.h using auto-host_vc_in.h as template
4083 removed from CVS, generated automatically
4085 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
4086 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
4088 2002-08-11 Borut Razem <borut.razem AT siol.net>
4089 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
4091 2002-08-10 Borut Razem <borut.razem AT siol.net>
4092 * src/SDCCmain.c (main):
4093 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
4094 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
4095 The consequence was that some temporary files were not removed.
4098 unification of code in functions tempfilename() and tempfile():
4099 function tempnam() is defined in Visual Studio 6.0 and .NET
4101 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
4103 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
4104 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
4105 - removed compiler command line option /WX: Treats all warnings as errors
4106 - update a list of source files, included into the project
4108 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
4109 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
4110 changed project type to Generic Project so that can be correcly converted to VS.NET project
4112 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
4114 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
4116 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
4118 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
4119 added return 0 statements after assert() to make compiler happy
4121 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
4122 added newline in the def file to keep MSC compiler satisfied
4124 * sdcc/src/z80/gen.c:
4125 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
4126 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
4127 - solved MSC error in function aopDump()
4129 * sdcc_vc.h: define PREFIX as "\\sdcc"
4131 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
4132 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
4134 2002-06-22 Scott Dattalo <scott AT dattalo.com>
4135 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
4136 - Rewrote the register banking algorithm.
4137 - Added pCode live-range analysis to registers (for now, only non-used and
4138 singly-used registers optimized away)
4140 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
4142 * 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.
4144 2002-05-10 Scott Dattalo <scott AT dattalo.com>
4145 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
4147 2002-04-22 Michael Hope <michaelh AT vroom>
4149 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
4151 * configure.in (DD_COPT): Added include support required for gbdk.
4153 * .version: Bumped version number just to increase it.
4155 * src/SDCCmain.c: Added -nostdinc to the default options.
4157 2002-04-15 Michael Hope <michaelh AT vroom>
4159 * device/lib/z80/printf.c (sprintf): Added.
4161 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
4163 * src/z80/peeph.def: Added transpose redundent load rule.
4165 * src/z80/main.c: Added force callee saves for jaune.
4167 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
4169 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
4171 2002-03-28 Johan Knol <johan AT balder>
4173 * src/SDCCval.c: fixed bug #532436
4175 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4177 Added "char *Processor" field to the port structure.
4180 Added -p option. Allows port dependent processor to be specified.
4183 Initialized the new field char *Processor field to NULL in all ports
4186 Compiler generated registers for interrupt context saving
4187 were not getting allocated.
4189 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
4192 Fixed left shift. Will promote the left side of a left shift
4193 if a) left shifting more than size of operand or b) when assigned
4194 to something size > size of left side
4196 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4198 tons of changes. Register allocation has been
4199 rewritten. Added customization for the various PICs. Flow
4200 analysis is restructured. ...
4206 Added. device.c is a PIC port hack to accomodate variations
4209 2002-03-13 Michael Hope <michaelh AT vroom>
4211 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
4213 2002-03-04 johanknol <johanknol AT manik>
4215 * /src/SDCCval.c: fixed
4217 const unsigned char arr[][2] = { { 0, 1 } };
4218 t18.c:1: error: Initializer element is not constant
4220 2002-03-04 bela <bela AT manik>
4222 * /device/include/mcs51reg.h:
4223 ds89c420 register definition update
4225 2002-03-03 <johan AT FRIJA>
4227 * support/Util/SDCCerr.c: did something, but don't no why anymore
4229 * support/regression/tests/bug-524691.c: made it a little less shy
4231 * src/SDCCast.c (decorateType): fixed bug #524697
4233 * src/SDCCast.c: made some lineno improvements
4235 * src/SDCCval.c (getNelements): changed warning to error
4237 * src/SDCCglue.c (printIvalArray): changed warning to error
4239 * src/SDCCicode.c: fixed a warning for mingw
4241 * src/SDCCast.c (decorateType): fixed the << promotion for ops
4243 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
4245 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
4247 * src/ds390/peeph.def:
4248 Added some more peephole rules
4250 * src/ds390/gen.c: Various fixes & enhancements
4252 * src/SDCClrange.c, src/SDCClrange.h:
4253 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
4255 * src/ds390/ralloc.c:
4256 various fixes & enhancements (ds390) specific
4258 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
4259 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
4262 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
4264 2002-03-02 <johan AT FRIJA>
4266 * src/SDCCast.c (decorateType): fixed bug #524708
4268 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
4270 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
4272 2002-03-01 Michael Hope <michaelh AT vroom>
4274 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
4276 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
4278 2002-03-01 <johan AT FRIJA>
4280 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
4282 * src/SDCCast.c (decorateType): fixed bug #524209
4284 * src/SDCCval.c (valNot): fixed bug #524195
4286 2002-02-26 <johan AT balder>
4288 * src/xa51/gen.c: fixed a warning
4290 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
4292 * src/SDCCast.c (decorateType): fixed bug #522534
4294 2002-02-23 <johan AT balder>
4296 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
4298 2002-02-22 <johan AT balder>
4300 * src/SDCCast.c: fixed bug #514865
4302 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
4304 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
4306 * sdcc/src/SDCCloop.c:
4307 Previous fix was not good. basic blocks that have "break" or "return" are
4308 not really partof a loop , but live ranges used in these blocks should
4309 be live thru the entire loop, so set partOfLoop but don't add them to
4312 2002-02-21 <johan AT FRIJA>
4314 * src/SDCCcse.c: fixed bug #514308
4316 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
4319 Fixed BUG #519583. If a conditional block ended in a return/break
4320 statement inside a loop, it was not being considered part of the loop.
4322 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
4324 2002-02-10 Karl Bongers <karl AT turbobit.com>
4327 Fixed up SDCDB debugger somewhat. Updated debugger/README
4328 with lots of comments and notes.
4330 * device/examples/test2.c:
4331 Fix bug, "red" variable not being initialized(compiler complained).
4333 * device/examples/Makefile, examples/test3.c:
4334 Add Makefile in device/examples folder, compiles test3.c
4335 for use as a multiple module SDCDB test case.
4337 * sim/ucsim/cmd.src/cmdset.cc:
4338 Took out debug printfs in ucsim "next" command.
4341 Karl and Johan start ucsim XA support. Most dissassembly working,
4342 about 75% emulation done(plenty of work remaining).
4344 * sim/ucsim/z80.src:
4345 Add Z80 support to ucsim, add test-ucz80 regression test,
4346 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
4347 Notice z80 compiler fails on examples/test3.c/crc code.
4349 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
4351 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
4352 Added support for --parms-in-bank1
4354 * src/ds390/peeph.def:
4355 added a few more peephole optimzations
4358 1) added __builtin_inp & __builtin_outp used to read in data of given length
4359 from a memory mapped port
4360 2) added __builtin_memcmp
4361 3) added __builtin_swapw swap bytes of a short
4363 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
4364 1) handle multiple send & receives from register bank1
4365 2) ralloc can now allocate DPTR1 to some liveRanges
4367 * src/SDCCsymt.c, src/SDCCsymt.h:
4368 changes to handle multiple sends & receives
4371 added some pointer arithmetic optimization
4374 added some pointer arithmetic optimizations but not stable yet so not
4375 called from anywhere (will get this working shortly)
4377 * src/SDCCopt.c: fixed for multiple sends & receives
4380 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
4381 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
4382 set preprocessor defines (depending on options)
4384 * src/SDCCicode.c, src/SDCCicode.h:
4385 changes made to handle multiple sends & receives
4388 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
4390 * src/SDCCcse.c, src/SDCCcse.h:
4391 added function findbackward def (to be used in upcoming optimization)
4393 * src/SDCCcflow.c, src/SDCCcflow.h:
4394 added function returnAtEnd - to determine if a basic block terminates with
4397 * src/SDCCast.c, src/SDCCast.h:
4398 added option parms-in-bank1
4400 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
4401 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
4402 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
4403 adjusted for --parms-in-bank1 option
4405 * device/include/string.h:
4406 donot redefine "reentrant" keyword
4408 * device/include/ds80c390.h: Added some more SFRs
4410 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4412 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
4414 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4416 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
4418 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4420 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
4422 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
4424 * Added --xram-movc option
4426 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4428 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
4430 2002-01-11 Johan Knol
4432 * Added math lib of Jesus Calvino-Fraga
4434 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
4436 * src/SDCCmain.c (processFile): fix processing of ../../src.c
4437 * support/regression/Makefile: new target test-mcs51-stack-auto
4438 * support/regression/ports/mcs51-stack-auto/spec.mk: added
4440 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4442 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
4444 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4446 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
4448 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4450 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
4452 * src/SDCCglue.h: add definition for printIvalChar()
4454 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4456 * src/SDCCast.c: fix #498138 by Johan
4458 * src/SDCCglue.c: fix #498138 by Johan
4460 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4462 * support/regression/Makefile: fix clean
4464 * support/regression/ports/ds390/support.c: fix transmission of last character
4466 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
4468 * /sdcc/src/ds390/gen.c:
4469 a) improved computing address of stack variable
4470 b) took out some #if 0 code
4471 c) improved parmBytes adjustment
4472 d) improved genPlusIncr & genMinusIncr
4473 e) genCmp could generate bad code (when left assigned to DPTR)
4474 f) Fixed bug in hasInc
4476 * /sdcc/src/ds390/ralloc.c:
4477 a) packRegsForSupport could mess up live information (Fixed)
4478 b) packRegsDPTRuse could be incorrect for left & right shift
4480 * /sdcc/src/mcs51/ralloc.c:
4481 packRegsForSupport could mess up the live information (Fixed)
4483 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
4485 * /sdcc/src/SDCCast.c:
4486 can reverse a loop even if function call is present as long
4487 as the loop control variable is local & is not passed as parameter
4489 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4491 * /sdcc/ChangeLog: *** empty log message ***
4493 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
4494 More builtin function additions for TININative
4496 * /sdcc/src/ds390/ralloc.c:
4497 Had broken the regression testsuite
4499 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
4501 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
4502 Added funcattr hasStackParms will be set for reentrant functions when there
4503 are paramteres on the stack, this helps in minimizing frame pointer generation
4504 typeFromStr can handle function pointers now
4506 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
4507 *** empty log message ***
4509 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4511 * /src/ds390/gen.c, /src/ds390/main.c:
4512 More builtin function additions for TININative
4514 * /src/ds390/ralloc.c:
4515 Had broken the regression testsuite
4517 * /src/SDCCast.c: Fixed a bug in dumptree
4519 * /src/SDCCsymt.c, /src/SDCCsymt.h:
4520 Added funcattr hasStackParms will be set for reentrant functions when there
4521 are paramteres on the stack, this helps in minimizing frame pointer generation
4522 typeFromStr can handle function pointers now
4524 * /doc/builtins.txt, /doc/TININative.txt:
4525 *** empty log message ***
4528 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4530 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
4531 ALPHA version for -mTININative
4533 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
4534 updated to reflect changes in the port structure
4537 added function do_assemble (similar to do_link) if non-null this function
4538 will be called to do assembly (-mTININative) requires a multi command
4540 added function genAssemblerEnd will be called to generate assembler Epilogue
4543 added _JavaNative to debug info printing
4545 * /src/SDCCmain.c: added option --tini-libid
4546 added port->do_assemble function (-mTININative) has a multi command assemble
4548 * /src/SDCCglue.c: Disabled "constExpr" check
4549 added port->genAssemblerEnd function
4551 * /src/SDCCglobl.h: Added option --tini-libid value
4554 tookout optimizeCompare from the header (has no external references)
4556 * /src/SDCCast.c: made one more function "static"
4558 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
4560 * src/z80/mappings.i: Added z80asm support.
4562 * src/z80/main.c: Added z80asm support on --asm=z80asm
4564 * src/z80/gen.c: Fixed asm portability issues.
4566 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
4568 * src/SDCCglue.c (printExterns): Added global/extern split.
4570 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
4572 * support/regression/Makefile: added test for mcs51 model large
4574 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
4576 * support/regression/ports/gbz80/spec.mk: added -mgbz80
4578 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
4580 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
4582 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
4584 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
4586 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
4588 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
4590 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
4592 * support/regression/tests/simplefloat.c: Port to mcs51.
4594 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
4595 * support/regression/tests/bug-485362.c: Added.
4597 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
4599 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
4601 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
4603 * src/z80/gen.c (aopDump): Added a dump function.
4605 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
4606 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
4608 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
4610 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
4612 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
4614 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
4616 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
4618 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
4620 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
4622 * support/regression/ports/ds390/support.c: Use tinibios.
4624 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
4626 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
4628 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
4629 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
4631 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
4633 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
4635 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
4637 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
4639 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
4640 (packRegsForIYUse): Created and optimised.
4642 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4644 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
4645 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4647 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
4649 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
4651 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
4653 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4655 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
4657 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
4659 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4661 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
4663 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
4665 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
4667 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4669 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
4670 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
4671 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
4673 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
4675 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
4676 (genNotFloat): Added.
4677 (genUminusFloat): Added.
4679 * device/lib/z80/Makefile: Added floating pt stubs.
4681 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
4683 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
4685 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
4687 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4689 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
4691 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
4693 * sdcc/support/regression/Makefile: Add port ds390.
4695 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
4697 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
4699 * sdcc/support/regression/ports/ds390/spec.mk: Added.
4701 * sdcc/support/regression/ports/ds390/support.c: Added.
4703 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
4705 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
4707 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
4709 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4711 * device/include/malloc.h: Added z80 and gbz80 support.
4713 * device/lib/gbz80/heap.s: Added.
4715 * device/lib/z80/heap.s: Added.
4717 * device/lib/malloc.c: Added z80 and gbz80 support.
4719 * support/regression/tests/malloc.c (testMalloc): Added.
4721 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
4723 * support/regression/tests/bug-478094.c: Added.
4725 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
4727 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
4729 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
4731 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
4733 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
4735 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
4737 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
4739 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4741 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
4743 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
4745 * support/regression/tests/bug-477927.c: Added.
4747 * src/z80/peeph.def: Added minor rules.
4749 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
4751 * src/z80/peeph.def: Added jump optimisation modification.
4753 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
4755 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
4757 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
4759 * support/regression/tests/funptrs.c: Added.
4761 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
4763 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
4765 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
4767 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
4769 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
4771 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
4772 (movLeft2ResultLong): Created.
4774 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
4775 (joinPushes): Added. Joins two char pushes into a word push.
4777 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
4779 * support/cpp2/Makefile.in (install): Added creation of dest dir.
4781 * support/makebin/Makefile (install): Added creation of dest dir.
4783 2001-10-24 Karl Bongers <karl AT turbobit.com>
4785 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
4787 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
4789 * src/z80/ralloc.c: Turned off faulty pack for one use.
4791 * src/z80/peeph-gbz80.def: Removed redundent restart options.
4793 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
4795 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
4797 * support/regression/Makefile: Improved clean
4799 * support/regression/ports/gbz80/spec.mk: Added clean
4801 * support/regression/ports/host/spec.mk: Added clean
4803 * support/regression/ports/z80/spec.mk: Added clean
4805 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
4807 * support/regression/ports/mcs51/timeout.c: little improvements
4809 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
4811 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
4813 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
4815 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
4817 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
4819 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
4821 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
4823 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
4824 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
4826 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
4828 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
4830 * src/mcs51/main.c (_linkCmd): Added bin path to command.
4832 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
4834 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
4836 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
4838 * support/regression/tests/longor.c: Added.
4840 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
4842 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
4844 * as/mcs51/aslink.h: define PATH_MAX
4846 * as/mcs51/asm.h: define PATH_MAX
4848 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
4850 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
4852 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
4854 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
4856 * src/SDCCglobl.h: define PATH_MAX
4858 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
4860 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
4862 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
4864 * src/z80/gen.c (gencjneshort): Fixed
4866 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
4868 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
4870 * support/regression/tests/bug-469671.c: Added.
4872 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
4874 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
4876 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
4878 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
4880 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
4882 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
4884 * src/device/lib/_mulint.c : removed hint: nooverlay bug
4886 * src/device/lib/_mullong.c : removed hint: nooverlay bug
4888 * src/device/lib/_divuint.c : removed hint: nooverlay bug
4890 * src/device/lib/_divulong.c: removed hint: nooverlay bug
4892 * src/device/lib/_moduint.c : removed hint: nooverlay bug
4894 * src/device/lib/_modulong.c: removed hint: nooverlay bug
4896 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
4898 * 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.
4900 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
4902 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
4904 2001-10-07 <johan AT FRIJA>
4906 * device/lib/gets.c (gets): fixed the return value.
4908 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
4909 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
4911 * 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.
4913 * 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.
4915 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
4917 * src/pic/gen.c: Removed Safe_strdup.
4919 * configure.in: Added option to enable libgc support.
4921 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
4922 (bitVectUnion): Optimised.
4923 (bitVectIntersect): Optimised.
4924 (bitVectBitsInCommon): Optimised.
4925 (bitVectCplAnd): Optimised.
4927 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
4929 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4931 * src/SDCCmain.c: distinguish between assembler debug and plain options
4933 * src/avr/main.c: remove standard assembler options
4935 * src/ds390/main.c: remove standard assembler options
4937 * src/mcs51/main.c: remove standard assembler options
4939 * src/port.h: removed "PENDING" comment
4941 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4943 * src/device/lib/_mulint.c : new, with assember functions
4945 * src/device/lib/_mullong.c : new, with assember functions
4947 * src/device/lib/_divuint.c : with assember functions
4949 * src/device/lib/_divsint.c : with assember functions
4951 * src/device/lib/_divulong.c: with assember functions
4953 * src/device/lib/_divslong.c: with assember functions
4955 * src/device/lib/_moduint.c : with assember functions
4957 * src/device/lib/_modsint.c : with assember functions
4959 * src/device/lib/_modulong.c: with assember functions
4961 * src/device/lib/_modslong.c: with assember functions
4963 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
4965 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
4967 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
4968 replaced _mululong.c and _mulslong.c by _mullong.c
4970 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4972 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
4974 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4976 * src/SDCCglue.c: test, if win32api is available for MINGW
4978 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4980 * src/SDCCsymt.c: no more _modifier in printTypeChain()
4981 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
4982 * support/regression/ports/gbz80/spec.mk: removed GENERIC
4983 * support/regression/ports/host/spec.mk: removed GENERIC
4984 * support/regression/ports/mcs51/spec.mk: removed GENERIC
4985 * support/regression/ports/z80/spec.mk: removed GENERIC
4987 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
4989 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
4991 * support/regression/tests/bug-467035.c: Created.
4993 2001-10-01 <johan AT FRIJA>
4995 * src/SDCC.y: fixed bug #466586 part 1
4997 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
4999 * SDCCicode.c: z80 has no generic pointers
5000 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
5002 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
5004 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
5006 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
5008 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
5010 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
5012 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
5014 * configure.in: Fixed up so that ucsim is only configured once.
5016 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
5018 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
5019 (getPathDifference): As above.
5021 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
5023 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
5025 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
5026 * .version: Updated to 2.3.1
5028 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
5029 Added copyright header.
5031 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
5032 (assemble): Added support for macro based assembler commands.
5033 (linkEdit): Added support for macro based linker commands.
5034 (preProcess): Changed the pre-processor to use macros.
5035 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
5036 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
5038 * device/lib/z80/crt0.s: Added module name for debugging.
5040 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
5042 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
5044 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
5046 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
5048 * src/Makefile.in: Added SDCCmacro and SDCCutil
5050 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
5052 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
5054 2001-09-16 <johan AT FRIJA>
5056 * 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.
5058 2001-09-15 <johan AT FRIJA>
5060 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
5061 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
5063 2001-09-11 <johan AT FRIJA>
5065 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
5067 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
5069 * support/regression/tests/bug-460444.c: Added test case.
5071 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
5072 (genCast): Added justification for all of the asserts.
5074 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
5076 * support/regression/support.c: _xdata replaced by xdata
5078 * support/regression/spec.mk: removed _generic
5080 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
5082 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
5084 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
5085 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
5087 * src/z80/peeph.def: Added a rule to optimise shift then compare.
5089 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
5091 * support/regression/tests/bug-460010.c: Added test case.
5093 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
5095 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
5097 * support/regression/Makefile: inter-port-clean adjusted for mcs51
5099 * support/regression/testfwk.c: removed workaround for bug #436344
5101 * support/regression/tests/bp.c: use less memory with mcs51
5103 * support/regression/tests/bug-441448.c: use less memory
5105 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
5107 * support/regression/collate-results.py: typo
5109 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
5111 * support/regression/tests/fetchoverlap.c: Added new test case.
5113 * support/regression/tests/bp.c: Added new test case.
5115 * support/regression/tests/bug-448984.c: Added new test case.
5117 * support/regression/tests/pow2shifts.c: Added new test case.
5119 * src/z80/gen.c: Turned off the noise it normally generates for the release.
5120 (genlshTwo): Fixed right shift for count > 8.
5122 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
5124 2001-09-08 <johan AT FRIJA>
5126 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
5128 2001-09-07 <johan AT FRIJA>
5130 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
5132 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
5134 2001-09-06 <johan AT FRIJA>
5136 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
5137 * bernhard noted me at this: "() equals to (void)" (1.38)
5139 2001-09-05 <johan AT FRIJA>
5141 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
5143 2001-09-04 <johan AT FRIJA>
5145 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
5148 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
5150 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
5152 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
5154 * link/z80/aslink.h: Fixed path for PATH_MAX
5156 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
5158 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
5160 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
5162 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
5164 * 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.
5166 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
5168 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
5169 (genCmp): Fixed up genCmp for the GB with longs.
5171 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
5173 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
5175 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
5177 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
5179 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
5181 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
5183 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
5185 * 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.
5187 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
5189 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
5191 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
5193 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
5195 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5197 * sim/ucsim/configure: little improvement of Cygwin-detection
5198 * sim/ucsim/configure.in: little improvement of Cygwin-detection
5199 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
5200 * support/regression/tests/bug-221100.c: small changes for mcs51
5201 * support/regression/tests/bug-221168.c: small changes for mcs51
5202 * support/regression/tests/bug-227710.c: small changes for mcs51
5203 * support/regression/tests/staticinit.c: small changes for mcs51
5204 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
5205 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
5206 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601