1 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4 * src/SDCCpeeph.c (pcDistance),
7 * src/mcs51/ralloc.c (mcs51_regWithIdx),
9 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12 size calculation port specific, started basis for some register
14 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
15 missing push/pop of r0/r1. Optimized push/pops
16 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
17 * device/lib/_modsint.c (_modsint),
18 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
19 and stack version so regression tests pass
21 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
23 * src/Makefile.in (dep): include SLIBOBJS in dependency check
24 * src/SDCCast.c (decorateType): catch another small optimization
26 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
27 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
28 modified to finally use computeType() all over SDCC,
29 see Feature Request #877103
30 * src/SDCCval.h: cosmetic
31 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
32 valCompare(); regression tested in muldiv.c
33 * support/regression/tests/muldiv.c (testMod): mod sign follows
36 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
38 * src/SDCCast.c (decorateType): fixed bug #902362
39 * doc/INSTALL.txt: fixed install instructions for win32
41 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
43 * device/include/Makefile.in (install): fixed by replacing spaces
46 * doc/INSTALL.txt: updated for release
47 * doc/sdccman.lyx: added warning for --xstack being buggy
49 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
51 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
52 to eliminate build warnings.
53 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
55 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
56 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
58 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
59 removed -penable-stack, added comment for stack pragma, added
60 warning for not initializing the stack/frame registers, removed
61 comment at interrupts section
63 Stack is made permanent, there is no ability to disable stack usage.
65 * src/pic16/device.c: removed all references to USE_STACK macro,
66 * src/pic16/device.c (pic16_dump_section): when no elements in
67 rlist, free rlist before return,
68 * (pic16_dump_int_registers): NEW, internal registers are a new set
69 of general purpose registers reused by each function,
70 * (checkAddReg): returns 1 if registers is added to set,
71 * (pic16_groupRegistersInSection): when a registers is of type
72 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
73 * src/pic16/device.h: memRange and Assigned Memory are deleted,
74 SRCASECMP macro is moved here from device.c
75 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
76 PO_PCLATU, PO_PRODL, PO_PRODH,
77 * (pic16_pCodeOpType, genMinus,
78 changed compares to "a" register, with AOP_ACC,
79 * (pic16_genPlus): fixed some bugs and indented properly,
80 * (pic16_addSign): changed size to size+offset in the MOVWF
82 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
83 multiply 8-bit operand by literal, result is 8-bit,
84 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
85 multiply 2 8-bit operand, result is 8-bit,
86 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
88 * src/pic16/gen.c: changed accUse to contain WREG only,
89 * (pic16_emitcomment): renamed to pic16_emitpcomment,
90 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
91 true, do not use immediate addressing any more unless sym is a
93 * (aopForRemat): do not use immediate addressing when symbol not in
94 codespace and when symbol's address is requested,
95 * (aopOp): for-loop in if(sym->accUse) is modified for the new
97 * (aopGet): added case for AOP_ACC and don't return "accumulator
98 bug" but WREG instead,
99 * (popGetTempReg): pushes contents of temporary register in stack,
100 * (popReleaseTempReg): pops contents of temporary register from
101 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
102 * (pic16_popGet): separated case AOP_ACC to return register WREG
103 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
104 or PO_IMMEDIATE and initializes their instance/offset appropriately,
105 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
106 the use of immediate pointers to certain cases only.
108 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
109 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
110 * (assignResultValue, genCall, genRet): modified to use the new
111 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
112 genPcall is still broken,
113 * (genFunction): added code to create 'A' type pBlocks when
114 interrupt functions are generated, code not extensively tested yet,
115 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
116 * (genEndFunction): modified so ISRs pop stored registers from stack,
117 * (genMultOneByte): cleanup,
118 * (AccRsh): added flag andmask, to and result with appropriate mask,
119 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
120 * (genDataPointerGet): fixed and reenabled its use,
121 * (genNearDataPointerGet): bugs fixed,
122 * (genDataPointerSet): bugs fixed,
123 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
124 pic16_DumpSymbol, pic16_DumpOp,
125 * src/pic16/genutils.h: function prototypes for the above functions,
126 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
128 * (pic16emitRegularMap): many many many improvements, but needs a
130 * src/pic16/main.c: enable_stack in pic16_options is removed,
131 * (_pic16_parseOptions): removed command line options -penable-stack,
132 * (_process_pragma): emit stack symbol only when stack pragma is
134 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
135 redirected to FSR0L/FSR0H pair,
136 * (pic16_get_op, pic16_get_op2): modifications and improvements,
137 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
138 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
140 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
141 * (dumpPicOptype): NEW,
142 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
143 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
144 with movff instruction,
145 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
146 added pic16_int_regs, some packRegsFor* functions are commented out,
147 because produce errors,
148 * src/pic16/NOTES: minor modifications
150 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
152 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
153 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
155 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
156 * as/mcs51/lkaomf51.c: fixed bug #895763
158 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
160 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
162 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
164 * doc/sdccman.lyx: added details about the HC08 storage classes and
165 interrupts, fixed the register usage info for z80 & gbz80
167 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
169 * doc/sdccman.lyx: added more pic16 port documentation
170 * device/include/pic16/: added header pic18fregs.h
172 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
174 * doc/sdccman.lyx: added Vangelis' contribution
176 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
178 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
179 extend to the next CALL or PCALL, not just to the next CALL.
181 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
183 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
185 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
187 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
188 bug #895752 and a better fix for bug #716790
190 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
192 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
194 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
196 * doc/sdccman.lyx: minor changes, minor changed
198 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
200 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
201 which can't handle SDCC_NEWONEBYTEOPS,
202 (geniCodeMultiply): removed conversion from mult to shift for pic14
205 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
208 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
209 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
210 thus fixing bug #895406
212 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
214 * device/lib/_modsint.c,
215 * device/lib/_modslong.c: sign follows divisor only
216 * src/hc08/gen.c (genMultOneByte): if result size is 1,
217 signs or signedness can be ignored
218 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
219 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
220 added optimization for IFX,
221 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
223 reenabled optimization for IFX, which was removed on 2004-01-11
224 * src/SDCCast.h: added return type IFX
225 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
226 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
227 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
228 SDCC_OLDONEBYTEOPS selects the old behaviour
229 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
230 changed again and commented promotion rule
231 * src/SDCCval.c (valDiv): promotion no longer necessary
232 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
233 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
235 * support/regression/tests/onebyte.c: added
237 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
239 * gen.c (genInline): reverted to old code for assemnling inline
240 code because of bug reported James Chadd
242 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
244 * ralloc.h: missing declarations from previous patch,
245 seems that patch for ralloc.h was never applied, fixed
247 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
248 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
252 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
253 indirect addressing. Marked FSR0 as deprecated
254 * gen.c (pointerCode): commented out, not needed now
255 (pic16_popGet2p): new MOVFF helper function
257 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
258 (shiftRLong): removed duplicate debugging info
260 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
262 * src/ds390/gen.c (genNearPointerGet),
263 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
264 optimization with bits, but not bitfields.
265 * src/ds390/ralloc.c (packRegisters),
266 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
268 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
270 * src/SDCCcse.c (algebraicOpts): copy operands before modification
272 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
275 * src/SDCCicode.c (operandFromSymbol),
276 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
277 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
278 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
279 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
280 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
281 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
283 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
284 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
285 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
286 * src/SDCCsymt.c (newSymbol),
287 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
290 * src/SDCCval.c (newiList): fixed bug #885705
292 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
294 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
295 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
297 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
299 * device/include/c8051f120.h,
300 * device/include/c8051f300.h,
301 * device/include/c8051f310.h: added/updated header files for Silicon
302 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
303 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
304 in new section Submitting patches
306 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
308 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
309 genFarPointerGet, genCodePointerGet, genGenPointerGet,
310 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
312 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
313 genFarPointerGet, genCodePointerGet, genGenPointerGet,
314 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
316 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
317 genFarPointerGet, genCodePointerGet, genGenPointerGet,
318 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
320 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
321 genFarPointerGet, genCodePointerGet, genGenPointerGet,
322 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
323 genGenPointerSet): fixed bug #892400
324 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
325 to eliminate build warnings.
326 * src/SDCCast.c (processParms),
327 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
329 * support/valdiag/valdiag.py: added GCC to the list of defines active
330 when compiling with gcc
332 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
334 * support/Util/SDCCerr.h,
335 * support/Util/SDCCerr.c,
336 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
337 with an incomplete type (fixed bug #883734)
338 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
340 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
342 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
344 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
346 * src/SDCCast.c (decorateType),
347 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
348 function pointer implementation
349 * support/regression/tests/funptrs.c: added tests to verify both forms
350 of function pointers work correctly. Added tests to verify parameters
351 are passed in the correct order.
353 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
355 * device.c (regCompare): registers are sorted by ascending
356 address and increasing size,
357 * main.c (_pic16_finaliseOptions): removed the declaration
358 of compiler macro MCU. Now a macro of the format pic18fxxxx
359 will be defined from the command line
361 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
362 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
364 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
365 PCOP_RLCF was overwritten!
366 * gen.c (genSkip): commented out calls to pic16_emitcode,
367 * (genCmpEQ): fixed "long" compares, only high word did get compared,
369 * (genRRC): added debugging info,
370 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
371 overwritten while shifting,
372 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
373 overwritten while shifting,
376 * (shiftLLeftOrResult),
377 * (shiftRLeftOrResult),
379 * (shiftLLong): Implemented with pic16_emitpcode
380 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
381 * (genLeftShift): Fixed bug, operand for shift by variable always
382 was "and"ed with 0x0f,
383 * (genLeftShiftLiteral),
385 * (genRightShiftLiteral): added debugging info,
386 * (genrshFour): added comment,
387 * (genRightShift): determined signedness from operand "left"
390 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
392 * src/SDCCicode.c (geniCodeParms),
393 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
394 function pointers, fixed function pointer bugs #861242 and #861896
396 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
398 * device/include/c8051f000.h,
399 * device/include/c8051f120.h,
400 * device/include/c8051f300.h: added header files for Silicon
401 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
403 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
405 * src/SDCCast.c (processParams): added new type flow and restructured
406 (gatherAutoInit): added new type flow
407 (addCast): cosmetic changes
408 (getLeftResultType): added new type flow for array indices, patch
409 provided by Stas, see FR #877103
410 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
411 array index patch by Stas
412 * src/SDCCast.h: added prototype getResultTypeFromType()
414 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
415 * src/pic/glue.c (pic14emitStaticSeg),
416 * src/pic16/glue.c (pic16emitStaticSeg),
417 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
418 for initialization of symbols
419 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
420 * support/Util/SDCCerr.h:
421 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
422 * .version: bumped version number to 2.3.8
423 * device/include/Makefile.in (install),
424 * doc/Makefile (install): changed to 'rm `find ...`' construct to
427 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
429 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
430 Slade Rich fixed an optimization bug
431 * src/pic/pcodepeep.c,
432 * src/pic/pcoderegs.c
433 * doc/Makefile (install): added test for directory
435 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
437 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
438 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
439 * src/pic/ralloc.c (getRegPtr, getRegGpr),
440 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
441 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
442 * as/mcs51/asexpr.c (term),
443 * as/hc08/asexpr.c (term): fixed bug #887146
445 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
447 * src/z80/gen.c (genMult): handle single byte result product
448 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
449 DUMMY_READ_VOLATILE (fixed bug #886367)
451 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
453 * support/regression/tests/libmullong.c: fixed logic, on little endian
454 hosts we ended without a mullong_wrapper()
456 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
458 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
459 virus/worm forged address usage.
461 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
463 Fixed promotion, it should be done on AST level:
464 * src/SDCCast.c (addCast): added promotion to int
465 (decorateType): updated call to upCast()
466 * src/SDCCicode.c (geniCodeLeftShift): removed call to
467 usualUnaryConversions()
469 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
471 * support/regression/tests/literalop.c (mulWrapper): Added a
472 wrapper to remove integer overflow warnings.
474 * support/regression/tests/float_trans.c: Made work on host.
476 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
479 * support/regression/generate-cases.py (main): Changed from inline
482 * doc/Makefile (install): Changed to depth first to get rid of
483 missing directory install warning.
485 * as/Makefile (install-doc): Made work on Mac.
487 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
489 * src/SDCCast.c: added an additional type flow in decorateType() of
490 opposite direction, see feature request #860006; it's enabled at runtime
491 by setting the environment variable SDCC_NEWTYPEFLOW
492 * src/SDCCast.h: changed prototype of decorateType()
493 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
494 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
495 'char' to 'int' can be omitted, if both operands are 'unsigned char';
496 see feature request #877103
497 * src/SDCCval.c: updated call of decorateType()
498 (valBitwise): fixed bug #882876
499 (valMinus): added promotion
500 (valLogicAndOr): result is unsigned
501 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
502 * src/SDCCsymt.c (computeType),
503 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
504 must not cause an unsigned operation
505 * src/pic/glue (pic14emitRegularMap),
506 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
508 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
510 * src/pic/pcode.c (PCodeID): commented out left over debug code
512 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
514 * support/valdiag/tests/overflow.c: added shift tests
522 * src/pic/pcodepeep.c,
523 * src/pic/pcoderegs.c,
525 * src/pic/ralloc.h: applied patch from Slade Rich;
526 added support for multiple code pages and multiple RAM banks on the
527 PIC 14 port. The ASM files now no longer simply assume all the
528 code / RAM are in the same page / bank. This means the linker can
529 safely allocate code/RAM of separate ASM files to different pages/banks.
530 * doc/sdccman.lyx: added Slade's tips
531 * src/mcs51/peeph.def: fixed bug #880768
533 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
535 * src/hc08/ralloc.c (rematStr): fixed bug #879282
536 * src/SDCCast.c (decorateType): fixed bug #880197
538 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
540 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
543 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
544 strtof is not part of C89 and isn't included with Mac OS X.
546 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
548 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
549 shiftL2Left2Result): fixed bug #879326
550 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
551 (genMultOneByte): fixed bug in signed vs unsigned multiplication
552 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
553 address fetch for clr instruction
554 * device/lib/hc08/_mulint.c: created optimized assembly version
555 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
557 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
559 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
560 proposed in FR #877103
562 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
564 * src/SDCCval.c (cheapestVal): added missing checks
565 * src/SDCCicode.c (usualBinaryConversions): fixed condition
566 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
568 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
570 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
573 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
575 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
576 loaded with the linker search paths (-L arguments) and the libraries
577 to be linked with the current source (-l arguments). Changes
578 currently will affect only the pic16 port.
579 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
580 include path the port specific paths and port specific libraries,
581 * gplink command now contains the $3 argument,
582 * src/pic16/device.h,
583 * src/pic16/device.c,: structure PIC_device is made public and
584 renamed to PIC16_device, the same for variable Pics which is renamed
585 to Pics16. Updated all references to them.
586 * src/pic16/glue.c (pic16glue): corrected bug with code
587 initialization which bypassed the variable initializations block.
589 * device/lib/pic16/Makefile.rules: removed --penable-stack from
590 COMPILE_FLAGS and added the --nostdinc option
592 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
594 * device/include/mc68hc908jb8.h: Register defs for another member
595 of the hc08 family. Contributed by Bjorn Bringert - thanks!
597 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
599 Documenting changes from previous commits.
600 * configure.in (version 1.56),
601 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
602 when generating output files to configure the pic16 library,
603 but now I've commented it out, since gputils aren't installed in the
604 SF compile farm, so library won't compile
606 * device/lib/Makefile.in (version 1.56): initially I've added in
607 target 'all' the prerequestive 'model-pic16' so it compiled the
608 pic16 library, but now I've commented it out for the same reasons
610 * added targets 'model-pic16' and 'objects-pic16' to compile the
612 * added target 'port-specific-objects-pic16' to handle the
613 generated libraries and copy them into the build/ directory
614 * added target 'clean-intermediate-pic16' to clean intermediate
615 files into pic16 directory
616 * in target 'installdirs' added line to create directory pic16 in
617 the installation path
619 * device/include/Makefile.in (version 1.11): in target 'install'
620 added lines to copy all header files to installation path,
621 * in target 'installdirs' added line create directory for pic16
622 headers in the installation path
624 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
626 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
629 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
632 * device/lib/configure.in,
633 * device/lib/configure: fixed for autoconf 2.57
635 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
637 * src/z80/main.c (_parseOptions): fixed the portmode= command line
638 option so that it actually works. Made it specific to the z80, since
639 the gbz80 doesn't have these kinds of I/O ports.
641 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
643 * device/include/z180.h,
644 * device/lib/_memcpy.c,
645 * device/lib/_memmove.c,
646 * device/lib/_mulint.c,
647 * device/lib/ser_ir.c,
648 * device/lib/ser_ir_cts_rts.c,
649 * device/lib/_strcmp.c,
650 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
651 * src/z80/main.c (_process_pragma): add support for pragmas bank and
652 portmode; added deprecation warning for bank= and protmode= forms.
653 Also, guard against buffer overflow.
654 * src/z80/gen.c (aopGet): generate better code for sfr banked read
656 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
658 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
659 changed interrupt vector table generation to only emit declared vectors.
660 * device/include/Makefile.in: added missing backslash
661 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
663 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
665 Mainly changes to support compilation of the device libraries
666 * src/pic16/device.c: stack is allocated via symbol and not
667 via literal number. The symbol is placed in the corresponding
668 position of the data ram
669 * (pic16_dump_section): relocatable and absolute uninitialized
670 data are now emitted in sorted order to reduce section naming,
671 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
672 weren't marked as being in the access bank,
674 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
676 Added portion of GNU PIC Library under the directory
677 device/include/pic16 and device/lib/pic16. These files
678 contain the declarations of SFRs for the PIC18Fxx2 devices.
679 The directory is initialized via configure from toplevel.
681 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
683 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
684 the spilllocations to be compared correctly
686 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
688 * src/SDCCast.c (decorateType): fixed bug introduced today
690 2004-01-12 Borut Razem <borut.razem AT siol.net>
692 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
693 doc/sdccman.lyx: upper case pragmas are deprecated
695 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
697 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
698 in simpler and even better code
700 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
702 * src/SDCCicode.c (operandOperation): fixed bug #874819
703 * src/SDCCast.c (decorateType): fixed
704 char foo (unsigned long ul) { return ul > 0; }
706 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
708 * doc/sdccman.lyx: Moved and added some sections, small changes
709 all over. Telling LaTeX to be less strict with word spacing
710 to better keep the right margin. Changed some notes about
711 maintainance of the ports in section 3.2.1 - is it OK like this?
713 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
716 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
717 convilong): modified to inform the pic16 port that builtin functions
720 PIC16 PORT specific changes:
721 * src/pic16/device.c pic16_dump_equates() added,
722 processor registers declared internally by the port are emitted in
723 the translation as equates,
724 * src/pic16/gen.c: inline code is passed unprocessed to the
726 * (pic16_popGetLit2): fnuction modified to take second operand as
727 pCodeOp pointer and not as literal,
728 * (popRegFromIdx): prefixed with pic16_,
729 * (pic16_popCombine2): modified to receive already allocated pCode
731 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
732 * (genFunction): initializes local stack frame and pushes on stack
733 all the registers used by this function,
734 * (genEndFunction): restores all registers from stack and restores
736 * src/pic16/glue.c (pic16emitRegularMap): various changes and
738 * (pic16glue): changed the program startup sequence,
739 * added new dbName code 'A' for functions placed in absolute section
740 * src/pic16/main.c: added function attribute _naked,
741 * added pragma 'code' to place a fnuction at an absolute address,
742 * added command line arguments --debug-ralloc and --pcode-verbose,
743 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
744 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
745 * (pic16_newpCodeOpLit2): modified to take the second operand as
747 * (pic16_printpBlock): modified to emit each function in a separate
749 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
750 UPPER for immediate operands,
751 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
753 * src/pic16/peeph.def: all peepholes with movff are commented out,
754 because there is a problem in the pcode peep optimizer,
755 * src/pic16/ralloc.c: the register allocator can now reuse local
756 function symbols for another function. This saves register usage.
757 * src/pic16/ralloc.h: added flag isLocal in structure regs,
759 Added file src/pic16/NOTES with information about program writing on
760 the current port version.
762 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
764 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
765 and peephole 252 (array access)
767 2004-01-09 Borut Razem <borut.razem AT siol.net>
769 * src/SDCCmain.c : fixed #872250: -l command line defined library
770 files are scanned before standard library files
772 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
774 * src/SDCCast.c (decorateType): fixed bug #874046
776 2004-01-09 Borut Razem <borut.razem AT siol.net>
778 * support/scripts/sdcc.nsi: remove previous installation
780 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
782 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
783 bytes for last interrupt vector (mcs51)
784 * sdcc.spec: fixed typo
786 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
788 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
789 gen51Code): more efficient parameter receive for --model-large
792 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
795 * src/z80/main.c: added missed needLinkerScript flags (more than
796 one port structure defined in these file)
797 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
800 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
802 * src/SDCCmain.c: removed various references to DEFAULT_PORT
803 * src/port.h: added flag needLinkerScript in port->linker
804 structure to inform whether to create a .lnk file or not,
812 * src/z80/main.c: changed appropriately to configure
813 needLinkerScript flag
815 * src/pic16/gen.c (genAddrOf): fixed bug #863624
816 * src/pic/glue.c: added variable udata_section_name to
817 override default uninitialized data segment definition for
818 devices only with SHAREBANK memory (reported from Erik Epetrich)
819 * (pic14emitOverlay): modified to emit a commented overlay segment
820 directive when no overlay data exist
821 * (picglue): modified to emit uninitialized data segment
822 according to udata_section_name
823 * src/pic/main.c (_pic14_parseOptions): added command line
824 options --udata-section-name=[name] to override default
825 udata definition name
826 * modified _linkCmd and _asmCmd to include compiler passed
827 arguments via -W option
828 * src/pic16/main.c: added $l in _asmCmd, changed extension for
829 object file from '.rel' to '.o' in port->linker structure,
830 changed size of fptr from 2 to 3 in port structure
832 2004-01-07 Borut Razem <borut.razem AT siol.net>
834 * support/scripts/sdcc.nsi: update PATH
835 * support/scripts/sdcc.ico: craeted
837 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
839 * device/include/Makefile.in: fix install
840 * doc/Makefile: fix install
842 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
844 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
846 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
847 how the function variable allocation summary is displayed; also
848 include information about variables allocated to the overlay
851 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
853 * as/mcs51/lkmain.c: Help about -Y option
854 * as/mcs51/lkarea.c: Fixed gcc warnings
856 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
858 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
860 * support/valdiag/tests/overflow.c: added
861 * src/SDCCast.c (decorateType),
862 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
865 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
867 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
870 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
872 A python script to validate compiler diagnostic messages. It can be
873 used to verify that sdcc complains about bad c source code and
874 gives a good location of the error.
875 * support/valdiag/Makefile,
876 * support/valdiag/valdiag.py,
877 * support/valdiag/tests/*
879 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
881 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
882 * src/SDCCsymt.c (newEnumType),
884 * support/Util/SDCCerr.c,
885 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
887 * support/regression/tests/enum.c: added test for enum values that
888 require at least 2 bytes of storage.
890 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
892 * src/common.h: added ifndef/define/endif macros
893 around the header file.
894 Bug reported from Jesus Calvino-Fraga
896 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
899 * device/include/Makefile.in: don't install CVS directories
900 * device/lib/Makefile.in: added removal of CVS directories after install
901 * doc/Makefile: fixed install, added local_icons
902 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
903 * src/mcs51/gen.c (genRightShift): fixed bug #870788
904 * src/ds390/gen.c (genRightShift): fixed bug #870788
905 * src/SDCCast.c (decorateType): fixed bug #870781
907 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
909 PIC16 port related changes:
910 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
911 added variable stackPos,
913 * gen.c: genCall, assignResultValue: added support for
914 pushing/retrieving function parameters to/from stack,
915 genFunction,genEndFunction: setup stack frame for the
917 genAddrOf: will be changed according to bug 863624
919 * added files genutils.c and genutils.h which contain gen*
920 debugged and optimised functions extracted from gen.c
922 * glue.c: added variable 'externs' which holds extern symbols,
923 pic16emitRegularMap: is modified to properly handle relocatable
924 symbols under the new scheme,
925 pic16createInterruptVect: is modified
926 pic16printPublics: is modified to emit 'global' assembler directives,
927 added pic16_printExterns to print extern symbols,
928 pic16glue: initializes stack/frame pointer in the beginning of
929 the assembly output. Temporary hack, will be corrected later,
930 because gplink yet does not support stack and SDCC does not
931 yet support a type of crt0.o object to create the final binary.
933 * Removed many lines that contain 8051 legacy code.
934 * The code is finally placed under a 'code' directive.
935 * Added port specific options.
937 * _process_pragma: simplified since now we do not need *special*
938 include file to define SFR registers. But a separate header
939 will be needed. This will be developed later.
940 * _pic16_parseOptions: added, parses port specific options:
941 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
942 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
943 --preplace-udata-with=
945 * _pic16_setDefaultOptions: modified to initialize section names,
946 but hack is temporarly out of order since it needs improvement.
947 * _pic16_genAssemblerPreamble: configuration words are emitted by
948 their address instead of their name. This part is incomplete and
949 supports only the 18Fxx2 devices. Other devices will emit an error
950 during assembly since they do not contain the same set of config
952 * _pic16_genIVT: is modified,
954 * pcode.c: added definitions for some hardware registers that are needed
956 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
957 All PCI entries are updated. Now LFSR is supported.
958 * Removed pic16_pciTRIS is mentioned by mdubuc in source
959 * added pic16_newpCodeOpLit2 to support instructions with
960 two literal arguments
961 * pic16_pCode2str: corrected code that emits assembler instructions
962 with two literal operands and those that have an access bit modifier
963 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
964 this fixes a bug which caused some labels to be lost, when an
965 assembler directive was added, i.e. banksel,
966 * pic16_FixRegisterBanking: improved logic that causes the insertion
968 * InlineFunction: functions that are called once, are not any more
969 inlined. This can be a port option in the future,
971 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
973 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
974 hold the corresponding uninitialized symbols,
975 * pic16_allocProcessorRegister: registers have explicit marked the
977 * pic16_allocInternalRegister: registers are explicit marked as
979 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
980 processing list, so bit registers were lost,
983 * ralloc.h: added field 'accessBank' and original symbol operand
984 in register definition,
985 * removed the field isMapped from register definition,
987 ** Several functions have been removed from various sources:
988 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
989 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
990 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
991 pic16_assignRelocatableRegisters
993 ** others have been introduced:
994 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
995 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
997 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
999 * support/scripts/inc2h.pl: changed definition of BIT_AT
1000 to emit 'sbit at' instead of 'bit at'. This was a request.
1002 PIC16 port related preliminary changes:
1003 * gen.c: prefixed function popRegFromString with
1004 pic16_ and all references to it corrected
1005 * pcode.c: all pic16_pc_* hardware registers prefixed
1006 with underscore (_),
1007 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
1008 * ralloc.c: newReg(): when register is REG_SFR then
1009 set address to rIdx,
1010 pic16_allocProcessorRegister(): marks register wasUsed=0
1011 pic16_writeUsedRegs(): added a call to assign processor
1012 registers via pic16_assignFixedRegisters
1014 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1016 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
1017 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
1018 variables in unused register banks. Also the SSEG is placed
1019 wherever there is enough space for it, and IDATA can be anywhere
1020 in internal RAM. For now compile using -Wl-Y[stack_size].
1021 The mem file is different for this option as well, since it
1022 makes no sense of talking about DSEG lenght.
1024 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
1026 * src/SDCClrange.c: fixed bug 869095 that caused segfault
1027 in certain cases, e.g. when ROM assignment, patch provided
1028 from Albert den Haan.
1030 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1032 Many signedness and type propagation fixes:
1033 * src/SDCCicode.c: made geniCodeCast() static
1034 replaced SPEC_ by IS_ (cosmetic)
1035 (operandOperation): fixed div and mod operation
1036 (usualBinaryConversions): added support for promotion of char
1037 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
1038 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
1039 (geniCodeAdd): an array index will stay unsigned, even if promoted
1041 (geniCodeArray): ditto
1042 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
1043 * src/SDCCsymt.c (computeType): added more support for char;
1044 promotion of char is selectable by promoteCharToInt, fixed signedness
1046 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1047 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1048 * src/SDCCval (val*): replaced signedness calculation by
1050 rearranged if-branches (cosmetic)
1051 (valShift): added warning W_SHIFT_CHANGED
1052 (valCompare): fixed problem with different types
1053 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
1054 * support/regression/tests/literalop.c: added many cases
1055 * support/regression/tests/ast_constant_folding.c: changed finally to
1057 * .version: new year, new version: 2.3.7
1058 * src/SDCCmain.c (main): applied patch #866468
1059 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
1060 provided by Scott Bronson
1061 * doc/sdccman.lyx: updated documentation for sdcdb
1062 updated and added chapter tips
1064 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1066 * src/SDCCsymt.h: missing from yesterday's commits
1068 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1070 * src/SDCC.y (struct_or_union_specifier),
1071 * support/Util/SDCCerr.c,
1072 * support/Util/SDCCerr.h: verify that struct & union tags are used
1075 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1077 * src/SDCCglobl.h: missing from yesterday's commits
1079 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1081 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
1082 sft_attributes, struct_declaration, parameter_declaration,
1083 type_name, start_block, declaration_list),
1084 * src/SDCC.lex (check_type): support redefinition of typedef names
1086 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1088 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
1089 aligned xdata arrays. Erik helped me with the if clause.
1091 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1093 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
1096 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1099 * src/SDCCast.c (newAst_),
1101 * src/SDCCicode.c (ast2iCode, newiCode),
1103 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
1104 expr, statement, expression_statement, selection_statement,
1105 iteration_statement, expr_opt, jump_statement): foundation for tracking
1107 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
1110 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1112 * support/Util/SDCCerr.c,
1114 * src/SDCCast.c (createCase, createDefault, decorateType),
1115 * src/SDCClabel.c (labelUnreach),
1116 * src/SDCC.y (labeled_statement, jump_statement): More improvements
1118 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
1119 (with thanks to Stas Sergeev)
1120 * device/include/time.h,
1121 * device/lib/time.c (CheckTime): suppress unreachable code warning
1123 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1125 * src/SDCCast.c (createIvalCharPtr),
1126 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
1128 * support/regression/tests/nullstring.c: tests for these two bugs
1130 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1132 * support/Util/SDCCerr.h,
1133 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
1134 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
1135 about storage class and 'at' used inside struct or union
1136 * src/SDCCBBlock.c (iCodeFromeBBlock),
1137 * src/SDCCcse.c (ifxOptimize),
1138 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
1139 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
1140 printIval, emitStaticSeg, emitOverlay),
1141 * src/SDCClabel.c (deleteIfx),
1142 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
1143 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
1144 gatherAutoInit, processParms),
1145 * support/Util/SDCCerr.h,
1146 * support/Util/SDCCerr.c (werrorfl): Support for better error location
1147 reporting for post-parse errors.
1149 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1151 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
1152 implicit casts via union; they don't work on big endian systems
1153 (possible fix for bug #861138)
1155 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1157 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
1158 * src/mcs51/main.c: fixed the fix for bug #737001
1160 2003-12-15 Borut Razem <borut.razem AT siol.net>
1162 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
1164 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1166 * support/makebin/makebin.c: put output in binary mode
1168 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1170 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
1171 xdata and data memory on startup. Set the environment variable
1172 SDCC_NOGENRAMCLEAR to disable this.
1173 * src/mcs51/peephole.def,
1174 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
1175 (allows non-interrupt and interrupt code to safely compete for a resource
1176 without the non-interrupt code having to disable interrupts)
1178 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1180 * src/SDCCicode.c (geniCodeAdd),
1181 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
1182 with valFromType if type might be a pointer and host is big endian).
1183 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
1184 types, not just integer types.
1185 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
1186 multiply defined with mismatching "at" address.
1188 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1190 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
1191 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
1192 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
1193 with embedded nulls (fixed bug #753752)
1195 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1197 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
1198 Apparently this did not see much testing (endless loop)
1200 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1202 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
1204 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1206 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
1207 gracefully handle NULL memmap pointers
1209 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1211 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
1212 instead of deleting the iCode when an operand is volatile
1213 * src/z80/gen.c (genDummyRead),
1214 * src/mcs51/gen.c (genDummyRead),
1215 * src/ds390/gen.c (genDummyRead),
1216 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
1218 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
1219 * src/SDCC.y: fixed bug #850420
1221 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1223 Applied z80 i/o port patch from Peter Townson and fixed some operators
1224 to better handle operands in A register.
1225 * device/include/z180.h
1231 * src/z80/peeph-z80.def
1235 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1237 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
1239 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1241 * device/lib/hc08/_mullong.c: Removed extra #endif
1243 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1245 * sim/ucsim/hc08.src/inst.cc,
1246 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
1248 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
1249 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
1250 * device/include/stdarg.h: fixed varargs for hc08
1251 * device/lib/Makefile.in,
1252 * device/lib/hc08/Makefile,
1253 * device/lib/hc08/_mulint.c,
1254 * device/lib/hc08/_mullong.c: fixed some endian problems
1256 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1258 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
1259 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
1260 * device/lib/_gptrget.c,
1261 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
1263 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1265 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
1266 * src/SDCCast.c (astErrors): fixed bug #846007
1267 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
1269 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1271 * src/SDCCast.c (decorateType): disabled a transformation I added in
1272 revision 1.188 (access to fields of a structure at an absolute address);
1273 it breaks with bitfields, extern declarations, and gcse analysis.
1274 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
1275 could be assigned through a pointer, so don't complain.
1276 * src/SDCCast.c (astErrors),
1278 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
1280 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
1282 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
1283 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
1284 output of __config directives, since gpasm now supports them
1285 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
1286 pre-processor macro, i.e. -DMCU=p18f452
1287 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
1288 and modified to handle 'cast' icode similarly to '=' icode
1289 * src/pic16/device.h (typedef struct PIC_device): added field
1290 'extMIface' to indicate that chip has external memory interface
1291 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
1292 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
1295 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1297 * src/SDCC.y (pointer): fixed bug #846006
1298 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
1299 * src/SDCCast.c (decorateType): fixed bug #846009
1300 * src/ds390/peeph.def,
1301 * src/ds390/gen.c (genAnd, genOr),
1302 * src/mcs51/peeph.def,
1303 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
1305 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1307 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
1314 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
1318 * src/SDCCbitv.c: added function to free a bitvector
1320 * src/SDCClrange.c: added function to recompute the liveranges
1322 * src/ds390/ralloc.c,
1323 * src/hc08/ralloc.c,
1324 * src/mcs51/ralloc.c,
1326 * src/pic16/ralloc.c,
1327 * src/xa51/ralloc.c,
1328 * src/z80/ralloc.c: recompute the liveranges after register packing
1330 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
1332 * src/SDCCloop.c (newInduction): fixed bug #845630
1334 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1336 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
1337 inadvertantly left behind from my 2003-11-12 change
1339 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1341 Updated headers I neglected to commit yesterday.
1345 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1347 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
1348 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
1349 * src/SDCCopt.c (eBBlockFromiCode),
1350 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
1351 the creation of the key hash table from the sequencing so it can be used
1352 earlier (for some GCSE bug fixes still pending)
1354 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1356 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
1357 * support/regression/tests/addsub.c: testing genPlus shortcut
1359 2003-11-15 Borut Razem <borut.razem AT siol.net>
1361 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
1363 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1365 * src/SDCCcse.c (cseBBlock): fixed bug #527779
1366 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
1367 ordering is immaterial.
1368 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
1370 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1372 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
1373 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
1374 (SIGSEV) of bug #840381
1375 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
1376 unlink new file before rename if new and old filenames are the same)
1378 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1380 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
1381 uninitialized variables) for the mcs51. Set environment variable
1382 SDCC_GENRAMCLEAR to test.
1383 xdata initialization slightly shorter
1385 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1388 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
1389 #838241 & 780691 (basicly the same bug)
1390 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
1391 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
1393 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
1395 * src/SDCCmain.c (linkEdit): "fix" #834252
1397 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1399 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
1401 * src/SDCC.y: fixed bug #819403
1403 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1405 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
1406 the reentrant attribute.
1407 * src/hc08/gen.c (genPackBits): added missing stack readjustment
1408 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
1410 * src/SDCCast.c (decorateType): fixed bug with storage class not being
1411 updated during pointer dereference; f.e. ~(((char *)1)*) was being
1412 erroneously reduced to a literal.
1413 * src/hc08/ralloc.c (packRegisters, rematStr),
1414 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
1417 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1419 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
1420 * doc/sdccman.lyx: changed from 'article' to 'book'
1421 * doc/Makefile: readded test_suite_spec and cdbfileformat
1423 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
1425 * device/include/stdlib.h: include malloc.h to comply with ANSI
1426 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
1428 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1430 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
1431 * doc/clean.mk: also remove *.out files
1432 * doc/sdccman.lyx: some additions, larger top/bottom margins
1434 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1436 * src/SDCC.y: fixed bug #837365
1437 * support/regression/tests/bitopcse.c
1438 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
1439 a symbol (might be valop instead)
1440 * device/lib/Makefile.in: added errno.c to HC08SOURCES
1441 * device/lib/clean.mk: added hc08 to the cleaning list
1443 2003-11-04 Borut Razem <borut.razem AT siol.net>
1445 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
1447 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1448 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
1449 malloc is declared in standard stdlib.h
1451 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1453 * device/lib/hc08/Makefile: need to clean .rel not .o files
1454 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
1456 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1466 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
1467 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
1468 tests (which uses the port's oclsExpense function)
1474 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
1476 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1478 * src/SDCCcse.c (ifxOptimize),
1479 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
1480 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
1481 deleting the IFX iCode.
1482 * src/hc08/ralloc.c: reduced unneeded slocs
1483 * src/hc08/gen.c: fixed bug in asmopToBoolean
1485 2003-11-04 Borut Razem <borut.razem AT siol.net>
1487 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
1488 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1489 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
1490 transferred to configure
1492 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
1494 Use headers defined in the C[++] standards:
1495 * sim/ucsim/gui.src/serio.src/fileio.cc
1496 * sim/ucsim/gui.src/serio.src/frontend.cc
1497 * sim/ucsim/gui.src/serio.src/main.cc
1498 * sim/ucsim/gui.src/serio.src/posix_signal.cc
1499 * support/Util/NewAlloc.c
1505 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1507 * Added MSVC projects for hc08 assembler and linker:
1508 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
1509 /as/hc08/link_hc08.dsp
1511 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
1513 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
1515 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
1517 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
1519 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1521 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
1523 2003-10-31 Borut Razem <borut.razem AT siol.net>
1525 * support/cpp2/cpplib.h,
1526 support/cpp2/cpplib.c,
1527 support/cpp2/cpplex.c,
1528 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
1529 to switch _asm block preprocessing on / off. Default is
1530 #pragma preproc_asm +
1532 2003-10-31 Borut Razem <borut.razem AT siol.net>
1534 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
1535 when outputting comment blocks (when executed with -C option) and
1536 _asm (SDCPP specific) blocks
1538 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1540 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
1542 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
1544 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
1546 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
1548 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
1549 * src/SDCCast.c (decorateType): fixed bug #832664
1551 2003-10-31 Borut Razem <borut.razem AT siol.net>
1553 * support\cpp2\cpplex.c: fixed for SDCPP:
1554 comments(when executed with -C option) and _asm blocks
1555 were included even if they where in skipped #if block.
1556 Applied solution from GCC cpp 3.3.2
1558 2003-10-31 Borut Razem <borut.razem AT siol.net>
1560 * src/SDCC.lex: sdcc now understands both formats:
1561 '# <line_number> <file_name>' and
1562 '#line <line_number> <file_name>'
1563 * support/cpp2/cppmain.c: sdcpp now generates the standard
1564 '# <line_number> <file_name>' instead of former
1565 '#line <line_number> <file_name>'
1567 2003-10-30 Borut Razem <borut.razem AT siol.net>
1569 * support/cpp2/cpphash.h,
1570 * support/cpp2/cpplib.h
1571 * support/cpp2/cpplex.c,
1572 * support/cpp2/cppmain.c,
1573 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
1575 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1577 Fixed a number of problems revealed by bug #827883.
1578 * src/SDCCloop.c (loopInvariants): Spill location of the
1579 result operand should be recomputed if extracted from
1580 a loop. Also, don't extract assignments of an iTemp
1582 * src/SDCCast.c (isConformingBody): loop reversal should
1583 not occur if the control variable is involved with a
1584 relational operator.
1586 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1588 * .version: bumped to 2.3.6 to reflect the big improvements
1589 made by Erik and Klaus. Thanks!
1591 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
1593 Replaced the livrange code.
1594 * src/SDCClrange.c: added new LR code
1596 * src/SDCCBBlock.h: removed remainig parts from old LR code
1597 * src/ds390/ralloc.c,
1598 * src/ds390/gen.c: minor fixes to make it work with new code
1600 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1605 * src/hc08/ralloc.c: Fix various warnings related to the hc08
1606 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
1607 (tweaked fix for bug #818696)
1609 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1611 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
1613 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1616 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
1617 * src/mcs51/gen.c (gencjneshort),
1618 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
1619 more efficient (per Scott Bronson's suggestion)
1621 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1623 Extended the semantics of the critical keyword to include
1624 individual statements. See RFE #827755 and #799831
1629 * support/Util/SDCCerr.c
1630 * support/Util/SDCCerr.h
1635 2003-10-19 Borut Razem <borut.razem AT siol.net>
1637 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
1639 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1641 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
1643 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
1644 and predecrement operand is displayed
1646 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1648 * src/SDCCval.c (valMinus): fixed bug #826041
1650 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1652 Some hc08 related updates that I missed earlier
1653 * sim/ucsim/stypes.h
1654 * support/regression/ports/hc08/spec.mk
1656 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1658 New target "hc08" for the Motorola 68hc08 family of micros
1666 * sim/ucsim/hc08.src/*
1667 * sim/ucsim/configure.in
1668 * src/ucsim/configure
1669 * sim/ucsim/packages_in.mk
1672 * device/include/mc68hc908qy.h
1674 * device/lib/Makefile.in
1675 * support/regression/ports/hc08/*
1676 * support/regression/Makefile
1678 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1680 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
1682 * src/ds390/gen.c (genCast): fixed bug #821957
1684 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1686 * device/lib/logf.c: "fixed" overlay bug
1687 * support/regression/ports/host/spec.mk: added m library
1688 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
1689 * support/regression/tests/float_trans: added (for Eric)
1691 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
1693 * src/mcs51/gen.c (genCpl): fixed bug
1694 http://sf.net/mailarchive/message.php?msg_id=6263915
1696 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
1698 * src/SDCCast.c (decorateType): added extended constant folding
1699 * src/SDCCsymt.c (computeType): cleanup
1700 * src/SDCCval.c (valShift): minor optimization
1701 * support/regression/tests/ast_constant_folding.c: added
1703 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1705 * src/SDCCmain.c: removed some unintended changes
1707 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1709 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
1710 * src/z80/gen.c: fixed part of bug #817589
1711 * src/SDCCsymt.c (checkFunction): fixed bug #817895
1713 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
1715 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
1726 * src/ds390/ralloc.c
1728 * src/mcs51/ralloc.c
1730 * src/pic16/ralloc.c
1733 * src/z80/gen.c: removed unused label "release:"
1735 2003-10-06 Borut Razem <borut.razem AT siol.net>
1737 * src/SDCC.lex: removed definition of unused variables
1738 save_optimize and save_options
1740 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1742 * clean.mk: removed '=' in "-maxdepth=1"
1743 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
1744 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
1746 2003-10-06 Borut Razem <borut.razem AT siol.net>
1748 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
1749 my_unput() replaced by unput()
1751 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
1753 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
1754 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
1755 type-punned pointer will break strict-aliasing rules"
1756 Old LR behaviour is again default; Klaus' LR can be choosen by
1757 defining the environment variable LRKLAUS
1761 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
1762 * clean.mk: fixed removal of files in bin/CVS/
1763 * device/lib/clean.mk: fixed removal of directories small and large
1764 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
1766 * src/SDCCval.c: removed superflous test for pedantic
1768 2003-10-05 Borut Razem <borut.razem AT siol.net>
1770 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
1771 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
1772 message "unmatched #pragma SAVE and #pragma RESTORE"
1774 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1776 * doc/sdccman.lyx: various additions and updates (interrupts, inline
1777 assembly, critical functions, atomic, nojtbound)
1779 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
1781 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
1787 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1790 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1792 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1794 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1795 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
1796 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
1798 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1800 * src/z80/gen.c (genRet): fixed bug #524753
1801 * src/z80/gen.c (genCast): fixed internal error on cast from
1803 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
1804 fix for bug #477835 to the z80
1805 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
1806 for tracking iCodes in the peephole optimizer for z80
1808 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1810 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
1811 the other part of bug #814548
1812 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
1814 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
1816 * src/SDCCcse.c: fixed part of bug #814548
1818 2003-09-28 Borut Razem <borut.razem AT siol.net>
1820 * src/asm.c: rewrite of printILine() to use temporary file instead
1822 * src/xa51/main.c: commented out declaration of int rewinds
1824 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1826 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
1828 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1830 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
1831 * src/asm.c (printILine): Fixed bug #811015
1833 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1835 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
1838 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1840 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
1841 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
1842 to correctly handle general case of AOP_PAIRPTR
1843 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
1845 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1847 * src/mcs51/ralloc.c (fillGaps),
1848 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
1849 register positioning bug)
1851 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
1853 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
1855 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1857 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
1858 genCodePointerGet, genGenPointerGet, genFarPointerSet,
1859 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
1860 (ralloc doesn't intentionally do this now, but perhaps later)
1861 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
1862 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
1863 register positioning bugs (Fixed bug #762602 and #795325)
1864 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
1866 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
1867 lines that --i-code-in-asm generates
1869 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1871 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
1872 trying to fclose a FILE* that was already closed.
1874 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1876 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
1877 of const struct should be treated as if const themselves)
1879 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
1881 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
1883 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1885 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
1886 Unix (/n) and DOS (/r/n) line terminations.
1888 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1890 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
1893 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1895 * src/mcs51/gen.c (genFunction, genEndFunction),
1896 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
1897 and restore of EA so that stack offsets to parameters are
1898 correct when using both critical and reentrant/stack-auto.
1899 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
1900 size (can be triggered in error if sloc is shared between
1901 different sized objects)
1902 * device/include/float.h: fixed macros to explicitly use
1903 unsigned long where needed
1905 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
1907 Feature req. 799831: added code to allow nesting of critical functions
1908 * src/mcs51/gen.c (genFunction, genEndFunction)
1909 * src/ds390/gen.c (genFunction, genEndFunction)
1911 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1913 * src/SDCCsymt.c (sclsFromPtr),
1915 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
1916 support for standard C idiom of memory mapped variables; for
1917 example, *((xdata int*)0x1234) = 1 is now internally equivalent
1918 to xdata int at 0x1234 tempvar = 1.
1919 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
1920 provided by Akiya ISHIDA
1922 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
1924 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
1925 * src/SDCCval.c (constVal): added reduction from int to char
1926 * src/SDCCval.c (valMult, valDiv): fixed sign handling
1927 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
1928 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
1930 * support/regression/tests/shifts.c: fixed
1932 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1934 * src/z80/gen.c (genXor): Fixed bug #805445
1936 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1938 Fixed bug #621531 (const & volatile confusion in the type chain).
1939 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
1940 refer to the const or volatile state of the pointer itself.
1952 * src/pic16/ralloc.c
1953 * support/regression/tests/const.c
1955 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1957 When checking for duplicated modules, use absolute paths
1958 instead of relative paths. Files changed:
1963 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1965 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
1967 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1969 * device/include/string.h: added size_t typedef, changed
1970 prototypes to use size_t, eliminated separate reentrant and
1971 non-reentrant declarations, added _memmove declaration
1972 * device/lib/_memcpy.c: changed to use size_t instead of int,
1973 changed /4 to >>2 to avoid division library call
1974 * device/lib/_memcmp.c,
1975 * device/lib/_memset.c,
1976 * device/lib/_strncat.c,
1977 * device/lib/_strncpy.c,
1978 * device/lib/_strncmp.c: changed to use size_t instead of int
1979 * device/lib/_memmove.c: new file (fixed bug #772294)
1980 * device/lib/Makefile.in: added _memmove.c
1981 * device/lib/z80/asm_strings.s: fixed bug #772290
1982 * support/regression/tests/bitfields.c: attempt to fix host assertion
1983 failure on amd64-unknown-linux2.2
1985 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1987 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
1988 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
1989 * as/z80/asmain.c (main): fixed bug #801766
1991 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
1993 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
1996 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1998 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
1999 reported in bug #800609
2001 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
2003 * Top header beautifications in src/pic16 directory:
2004 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
2005 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
2006 pcoderegs.h, ralloc.c, ralloc.h
2007 * main.c: added top header and GPL license notice
2008 * pcode.c: fixed the if-conditional warning
2010 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
2012 * device/lib/_mullong.c: replaced int by short for gcc
2014 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2016 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
2017 and JUMPTABLE iCodes properly now (worked by accident before)
2018 * src/mcs51/gen.c (leftRightUseAcc),
2019 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
2020 iCode properly now. Use getSize instead of nRegs since a & b
2021 aren't part of the nRegs tally.
2023 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
2025 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
2026 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
2027 before instructions that use the _STATUS register
2029 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
2031 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
2032 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
2033 fetching of the pointer
2034 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
2035 copied from genNearPointerSet()
2036 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
2037 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
2038 If they pop r0/r1 they must be called in the opposite order than aopOp().
2039 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
2040 (resp. --stack-auto), prepared for --xstack
2042 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2044 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
2046 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
2048 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
2049 these ports have their own __sdcc_external_start()
2051 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
2053 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2054 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
2055 type for bits was changed. It resulted in bit variables becoming
2056 global, which is not permitted in PIC 14 assembly output.
2058 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2060 * doc/sdccman.lyx: various additions and updates. Rearranged sections
2062 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2064 Z80 and MCS51 linkers complaint if a public symbol is defined
2065 in more than one library module:
2069 * as/mcs51/Makefile.in
2071 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2073 A few small changes that speed up the peephole optimizer.
2077 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2079 Try to make the peephole optimizer smarter by maintaining
2080 an association between the assembly source code and the
2081 iCodes that originated them. Put this information to use
2082 with a new peephole rule condition "notVolatile" so that
2083 the rules can be aggressive yet still safe.
2088 * src/mcs51/peeph.def
2090 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2094 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
2095 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
2096 if the left or right operand symbols have the accuse flag set.
2098 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2100 Changed the type of the result of the ! (NOT) operator to char;
2101 previously it returned the same type as the source. This allows
2102 us to eliminate all the genFloatNot functions (all of its target
2103 implementations were very buggy) since !float can use the same
2106 * src/SDCCicode.c (ast2iCode): ! returns char
2107 * src/mcs51/gen.c (genNot, genNotFloat),
2108 * src/ds390/gen.c (genNot, genNotFloat),
2109 * src/z80/gen.c (genNot, genNotFloat),
2110 * src/pic/gen.c (genNot, genNotFloat),
2111 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
2113 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
2115 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2116 1. Interrupt would not compile properly. Ensure PCLATH register is saved
2117 during interrupts. Ensure WSAVE is located at a shared bank address.
2118 2. Fixed page selection in some places
2119 3. Fixed BTFSS/C to where necessary use registers directly and not simply
2120 the registers name strings.
2121 4. Fixed "signed / unsigned compare" compiler warnings.
2122 5. The PIC port manages its own allocation of the general purpose
2123 registers, but makes no attempt to reuse them. As a result when
2124 compiling it soon runs out of general purpose registers. Some
2125 additional code was added to the files pcode.c and device.c to walk
2126 through the function call tree and rename the registers so that they
2136 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
2137 genPlus() & genMinus() when the result is the same as left or right
2139 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2141 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
2143 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2145 Made bitfield a distinct type from bit so that bitfields
2146 convert as per ANSI C and bits retain their traditional
2147 boolean style behaviour. Implemented bitfield support in
2155 * src/ds390/gen.c: bit v bitfield split
2156 * src/z80/gen.c: New support for bitfields
2157 * support/regression/tests/bitfields.c: reenabled z80,
2160 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2162 Rules 246.x, 247.x relate to bitfields, the others speed up
2163 access to xdata mapped I/O devices.
2165 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
2167 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2169 Cleaned up genPackBits and genUnpackBits and added two helper
2170 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
2171 for literal assignments in genPackBits (thanks to Frieder for
2177 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2179 Fixed bug #748310 (pointer to function type mishandled when the
2180 function name is omitted). Also fixed a SIGSEGV when a function
2181 attribute (reentrant, etc) is used on a non-function or on a
2182 function but misplaced before the parameter list.
2184 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
2186 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
2187 * support/Util/SDCCerr.h,
2188 * support/Util/SDCCerr.c: Added func attr misuse error msg
2190 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2192 Fixed bug #787649 by anonymous
2193 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
2194 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
2196 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2198 Fixed numerous bitfield problems.
2200 * src/SDCC.y: More bitfield related error checking
2202 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
2203 * support/Util/SDCCerr.h,
2204 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
2205 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2206 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2207 * support/regression/tests/bitfields.c: tests added
2209 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2211 Made the constant following the "interrupt" keyword optional. If
2212 omitted, the function will not automatically be given an entry
2213 in the interrupt vector table (similar to #pragma NOIV, but
2214 less syntacticly kludgy). The interrupt number is also now
2215 range checked. Also fixed a bug in the high order bit example
2222 * support/Util/SDCCerr.c
2223 * support/Util/SDCCerr.h
2226 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2228 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
2229 * src/SDCCicode.c (operandOperation): rewritten some ops
2230 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
2231 * src/SDCCsymt.c (computeType): literals are handled the same way as any
2233 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
2234 be re-activated by defining REDUCE_LITERALS)
2235 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
2236 unsigned, but are signed by default
2237 * src/SDCCval.c (constVal): rearranged
2238 * src/SDCCval.c (valMod): preliminary fix
2239 * src/SDCCval.c (valCastLiteral): use TYPE_* types
2240 * support/regression/literalop.c: added, work in progress
2242 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2244 Generate warnings for useless declarations like "char data;"
2245 that don't do what new users expect.
2248 * support/Util/SDCCerr.h
2249 * support/Util/SDCCerr.c
2251 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
2253 * src/SDCCval.c (valMult): fix overflow detection of negative int
2255 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2257 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
2259 Changes to support big endian targets:
2272 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
2274 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
2275 * device/lib/time.c: fixed warning "integer overflow in expression"
2277 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
2279 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
2280 * src/SDCCval.c (constVal): changed default to signed; hex and octal
2281 constants are unsigned; added recognition of "u" flag for unsigned
2282 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
2283 * src/SDCCval.c (valDiv, valMod): fixed signdness
2284 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
2285 signedness of modulo, left and right shift
2286 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
2287 * support/Util/SDCCerr.h: added warning W_INT_OVL
2288 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
2289 * src/SDCCast.c (ast_print): improved output of constants
2291 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2293 Fixed some warnings when building with MSVC:
2306 * support\cpp2\cpplib.c
2310 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
2312 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
2314 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2316 * support\librarian\clean.mk: Do not remove Makefile.
2317 * support\librarian\Makefile: added.
2319 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2321 Added librarian to MSVC build:
2324 * support\librarian\librarian.dsp
2326 'configure' not needed for librarian, removed:
2327 * support\librarian\configure
2328 * support\librarian\configure.in
2329 * support\librarian\config_in.h
2330 * support\librarian\Makefile.in
2332 Hopefully these ones built the librarian and the rest of sdcc properly:
2334 * Makefile.common.in
2336 Messed up 'configure', so revert to previous version:
2340 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
2342 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
2343 there, while the mantissa of a double is "only" 53 bits wide.
2345 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2347 Adding sdcclib to the build. MSVC project coming soon.
2348 Files added/changed:
2350 * support\librarian\clean.mk
2351 * support\librarian\configure
2352 * support\librarian\configure.in
2353 * support\librarian\config_in.h
2354 * support\librarian\Makefile.bcc
2355 * support\librarian\Makefile.in
2356 * support\librarian\sdcclib.c
2359 * Makefile.common.in
2363 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2365 Linker now complaints if linked modules have conflicting options, for
2366 example, one compiled using --model-large and another one compiled with
2367 --model-small. The following files were modified:
2389 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2391 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
2392 as/mcs51/lklibr.c: Generate a warning when a library is not found.
2394 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
2396 * src/z80/mappings.i: fix _mul[us][int,long] entries
2398 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2400 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
2402 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2404 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
2405 * support/regression/tests/bitopcse.c: added
2413 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2415 added support for new library format to z80, gbz80 linkers:
2421 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2423 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
2424 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
2426 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
2428 added DUMMY_READ_VOLATILE:
2437 * src/SDCCcse.c (algebraicOpts): many improvements
2438 * src/SDCCcse.h: removed algebraicOpts()
2439 * src/SDCCicode.c (picDummyRead): added
2441 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2443 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
2444 "Insufficient space in data memory".
2446 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2448 * src/mcs51/gen.c: fixed bug #771358
2449 * src/z80/gen.c: fixed bug #759087
2451 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
2453 * src/pic16/glue.c: minor cleanup by Vangelis
2455 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2457 * device/include/regc515c.h: fixed #758477
2458 * device/lib/_gptrget.c: saving some cycles in generic pointer get
2459 * device/lib/_gptrput.c: saved a few bytes
2460 * my tab spacing is 8, yours too?)
2461 * device/lib/_ser.c: process RX bytes earlier than TX bytes
2462 * device/lib/serial.c: process RX bytes earlier than TX bytes
2463 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
2465 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2467 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
2469 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2471 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
2473 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
2475 * device/lib/Makefile.in: bad fix, reverted to 1.43
2477 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
2479 * device/lib/Makefile.in: added missing z80 object files
2481 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
2483 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
2484 pic16 progress by Vangelis:
2499 * pic16/pcodepeep.c:
2502 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2504 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
2506 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2508 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
2509 added gbz80 build to MSVC project.
2510 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
2511 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
2512 from 8051 stuff and setup so it links using a .lnk file.
2514 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2516 * support/librarian/sdcclib.c: sdcc librarian.
2517 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
2520 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2522 * as/mcs51/lkmain.c: properly handle extensions in function afile.
2524 2003-07-02 Borut Razem <borut.razem AT siol.net>
2526 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
2527 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
2528 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
2529 src/xa51/main.c, src/z80/main.c:
2530 virtualization of glue() function: each port has it's own glue function,
2531 which is accessed by do_glue function pointer in PORT.general structure
2533 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
2535 * DS800C400 fun, improved ROM interface and tinibios.
2537 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
2539 * More support for DS80C400. Now includes beginning of interface to ROM.
2541 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
2543 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
2545 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2547 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
2549 2003-06-19 Borut Razem <borut.razem AT siol.net>
2551 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
2553 2003-06-19 Borut Razem <borut.razem AT siol.net>
2555 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
2556 fixed Z80 port - crt0.o: cannot open.
2558 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
2560 * support/Util/MySystem.c (merge_command): revert bad fix
2562 2003-06-18 Borut Razem <borut.razem AT siol.net>
2564 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
2566 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2568 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2569 option --use-stdout sends errors to stdout instead of stderr.
2571 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
2573 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
2575 2003-06-15 Borut Razem <borut.razem AT siol.net>
2577 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
2578 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
2579 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
2580 fixed width array of pointers replaced with sets;
2581 multiple include and lib paths ared transferred to preprocessor and linker
2582 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
2583 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
2584 fixed width array of pointers
2585 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
2586 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
2587 fixupPath(), getPathDifference()
2588 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
2589 fixed width array of pointers
2591 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
2593 * src/pic16/ralloc.c: fix warnings
2594 * src/pic16/pcode.c: fix warning
2596 2003-06-10 Scott Dattalo <scott AT dattalo.com>
2598 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
2599 know all the details, but essentially this set of changes enable
2600 the pic16 port to generate movff instructions and generate assembler
2605 * src/pic16/pcode.c:
2606 * src/pic16/device.c:
2608 * src/pic16/pcode.h:
2609 * src/pic16/pcoderegs.c:
2610 * src/pic16/ralloc.c:
2611 * src/pic16/ralloc.h:
2613 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2615 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2616 added option --vc, so sdcc errors and warnings are compatible with
2617 Microsoft Visual Studio.
2619 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2621 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
2622 device/lib/libfloat.lib: added atof function.
2624 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2626 * doc/sdccman.lyx: updated to Lyx 1.3
2627 * doc/cdbfileformat.lyx: updated to Lyx 1.3
2628 * doc/test_suite_spec.lyx: updated to Lyx 1.3
2629 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
2631 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
2633 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
2635 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2637 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
2638 additions to the "related tools/documentation" section
2640 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
2642 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
2644 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
2646 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
2647 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
2649 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
2651 * doc/sdccman.lyx: fix double dash and other minor things
2652 * doc/Makefile: fix double dash
2654 2003-05-28 Karl Bongers(patches from Martin Helmling)
2655 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
2656 condition and ignore commands.
2658 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2660 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
2661 is in parts still quite out of date, I did changes as far as I felt makes sense
2662 for a non-native english speaker.
2663 Please feel free to add to the manual or to correct my changes.
2664 * doc/Makefile: undid touching the date of intermediate tex files.
2666 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2668 * doc/sdccman.lyx: Manual has an index now
2670 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
2672 Finalize muluint/mulsint and mululong/mulslong merging:
2673 * device/lib/_mulint.c
2674 * device/lib/_mullong.c
2675 * device/lib/gbz80/mul.s
2676 * device/lib/gbz80/stubs.s
2677 * device/lib/z80/mul.s
2678 * device/lib/z80/stubs.s
2679 * src/SDCCsymt.c (initCSupport)
2681 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2683 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
2684 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
2685 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
2686 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
2689 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2691 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
2692 the regression tests I'm not brave enough to enable 245.b, 245.c
2693 * doc/sdccman.lyx: added latex preamble for hyperref package.
2694 Using pdflatex this will give you a hyperlinked pdf file with
2695 bookmarks. (prepend '%' before /usepackage if this breaks something)
2697 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2699 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
2701 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
2703 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
2705 2003-05-21 <johan AT balder>
2707 * src/SDCCglue.c (printIval): fixed bug #739934
2709 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2711 Applied patch from bug 737905 (renamed yylineo to mylineno):
2718 * src/pic16/pcode.c: Cleaned warnings
2719 * src/pic16/pcodeflow.c: Cleaned warnings
2720 * src/pic16/pcoderegs.c: Cleaned warnings
2722 2003-05-19 Scott Dattalo <scott AT dattalo.com>
2724 * src/pic16/pcode.c: Cleaned warnings
2725 * src/pic16/pcodepeep.c: Cleaned warnings
2726 * src/pic16/ralloc.c: Cleaned warnings
2728 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2730 * doc/sdccman.lyx: fixed bug 739745
2731 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
2733 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
2735 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
2736 it can be defined with CFLAGS when running configure
2737 * src/SDCCmain.c: fixed compiling + linking with object files
2739 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
2741 * configure.in: configure for pic16 port,
2742 added --disable-pic16-port
2743 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
2744 * src/SDCCmain.c: linkOptions is changed to set *,
2745 added if/endif conditional macros to remove options help
2746 messages from optionsTable when a port is not configured, added
2747 support for the PIc16 port in the ports table, when executing
2748 the compiler with no port specified on command line, a default
2749 port is selected with the new macro DEFAULT_PORT which is
2750 defined in port.h, in setDefaultOptions() linkOptions is removed
2751 from initialization assignment, since now it is a set,
2752 parseCmdLine uses setParseWithComma for linkOptions, in
2753 linkEdit() linkOptions are accessed with new function indexSet()
2754 which returns the i'th item of a set variable. See SDCCset.c, in
2755 linkEdit() when calling buildCmdLine(), added linkOptions as
2756 last argument. Now users can pass arguments to gplink via the
2757 -Wl option, main() uses pic16glue() to glue up pic16 programs
2758 * src/SDCCpeeph.c: various changes to support pic16
2759 * src/SDCCset.c: added function void *indexSet(set *, int) to
2760 return the i'th item of the set
2761 * src/SDCCset.h: added function prototype for indexSet()
2762 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
2763 * src/clean.mk: added pic16 in CLEANALLPORTS variable
2764 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
2765 added macro DEFAULT_PORT
2766 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
2767 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
2769 * src/pic16/glue.c: commented out some error producing lines
2770 * src/pic16/main.c: __config directives are commented out to stop
2771 gpasm complaining and test the linkage with gplink, _linkCmd and
2772 _asmCmd changed to be more gplink and gpasm friendly
2773 * src/pic16/peeph.def: peep rule 3 is commented out, since it
2774 produced an error when parsed, peep rule 12 is added to utilize
2775 movff, but it is commented out since the pCode does not support
2776 yet a command with 2 address arguments
2778 2003-05-18 <johan AT balder>
2780 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2781 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2782 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
2784 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
2785 Added feature to script commands from file.
2787 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
2789 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
2790 * src/SDCCutil.c: include ctype.h for win32
2792 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
2794 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
2796 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
2798 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
2799 Fixed so you can set breakpoints prior to run, run does not stop
2800 on entry now. Add tbreak. Other enhancements and fixes for use
2803 2003-05-12 Borut Razem <borut.razem AT siol.net>
2805 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
2807 2003-05-11 Borut Razem <borut.razem AT siol.net>
2809 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
2810 the path of bin directory, so that PATH is the only env. variable, which has to be set
2811 in case of standard installation.
2812 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
2813 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
2814 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
2816 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2818 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
2819 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
2820 temp files are in the port dir; clean the gen/test directory when
2821 generating new test.c
2822 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
2823 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
2824 * support/regression/tests/zeropad.c: added
2826 2003-05-09 <johan AT balder>
2828 * src/SDCCglue.c: fixed bug #597940
2830 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
2832 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2833 cache sfr, optimize next,step, fix off by one sourceline,
2834 support ddd list function.
2835 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
2837 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2839 * support/regression/HTMLgen.py: added compare_s2f()
2840 * support/regression/Makefile: redo 1.27
2841 * support/regression/generate-cases.py: redo 1.5
2843 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
2845 * support/regression/tests/float.c: workaround 33 bit hex constant
2846 * support/regression/tests/simplefloat.c: fix division for host
2848 2003-04-29 Scott Dattalo <scott AT dattalo.com>
2850 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
2851 that tame's the PIC's over-aggressive optimizer.
2853 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2855 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
2858 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
2860 Initial support for DS80C400. "Hello world" runs on TINIm400
2863 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
2865 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2866 * Some notes on ddd usage added in debugger/README
2867 Martin Helmling adding more features and fixes for ddd GUI debugger.
2868 Code added for nexti, stepi, up, down, and other adjustments.
2870 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
2872 * src/pic/pCodepeep.c non-wildcard asmops are now handled
2873 * src/pic/peeph.def Added two rules to optimize carry manipulation
2874 * src/pic/* removed debug printfs
2876 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
2878 * debugger/mcs51/cmd.c: added header newalloc.h
2880 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
2882 * as/Makefile: new EXEEXT
2883 * as/z80/Makefile: remove trailing slash of BUILDIR
2884 * as/z80/clean.mk: new EXEEXT
2885 * Makefile.common.in: add to CFLAGS (and others), don't replace it
2886 * support/cpp2/Makefile.in: new EXEEXT
2887 * src/pic/glue.c (pic14emitRegularMap): fixed warning
2889 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
2891 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
2892 EXEEXT was introduced to fix all related problems with targets
2893 "clean", "install" and "uninstall"; a couple of further flaws
2894 especially with "clean" have been fixed too
2895 * as/mcs51/Makefile.in
2900 * debugger/mcs51/Makefile.in
2901 * debugger/mcs51/clean.mk
2903 * link/z80/Makefile.in
2906 * packihx/Makefile.in
2908 * sim/ucsim/Makefile
2909 * sim/ucsim/clean.mk
2910 * sim/ucsim/avr.src/Makefile.in
2911 * sim/ucsim/avr.src/clean.mk
2912 * sim/ucsim/s51.src/Makefile.in
2913 * sim/ucsim/s51.src/clean.mk
2914 * sim/ucsim/xa.src/Makefile.in
2915 * sim/ucsim/xa.src/clean.mk
2916 * sim/ucsim/z80.src/Makefile.in
2917 * sim/ucsim/z80.src/clean.mk
2918 * sim/ucsim/main_in.mk
2919 * sim/ucsim/packages_in.mk
2920 * sim/ucsim/gui.src/Makefile.in
2921 * sim/ucsim/gui.src/serio.src/Makefile.in
2922 * sim/ucsim/gui.src/serio.src/clean.mk
2925 * support/cpp2/Makefile.in
2926 * support/cpp2/clean.mk
2927 * support/makebin/Makefile
2928 * support/makebin/clean.mk
2929 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
2930 * doc/sdccman.lyx: --program-suffix no longer needed
2932 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
2934 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
2935 Martin Helmling added support for ddd GUI debugger.
2936 Code added to display assembly, set variables, and other commands
2937 to interface to ddd.
2939 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
2941 * as/Makefile: fix target clean
2942 * as/clean.mk: fix target clean
2943 * as/z80/clean.mk: fix target clean
2945 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
2947 * Makefile.common.in: added AT EXEEXT AT
2948 * configure.in: removed all mingw32 stuff
2949 * configure: rebuilt from configure.in
2950 * doc/sdccman.lyx: updated section "installation"
2951 * support/scripts/sdcc_mingw32: adapted to configure
2952 * support/scripts/sdcc_cygwin_mingw32: added
2954 2003-04-22 Scott Dattalo <scott AT dattalo.com>
2956 * src/pic Added object file support for the PIC port
2957 * src/pic Applied patch from Craig Franklin (this started the object file support)
2958 * src/regression Updated the PIC regression tests for object files
2960 2003-04-20 Borut Razem <borut.razem AT siol.net>
2962 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
2963 lklex.c: In function `getfid':
2964 lklex.c:203: warning: array subscript has type `char'
2965 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
2966 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
2967 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
2968 stack handling macros
2970 2003-04-19 Borut Razem <borut.razem AT siol.net>
2972 * "handling space characters in file path" task:
2973 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
2974 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
2975 * support/Util/MySystem.h: make it self-sufficient
2976 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
2977 src/z80/main.c, sdcc/as/mcs51/lklex.c:
2978 handling space characters in file path
2979 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
2980 (it will be used by assemblers, which have their own includes, e.g. gpasm)
2981 * support/Util/MySystem.c: handling space characters in executable's path
2983 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
2985 * as/z80/Makefile: fix permanent rebuild of z80
2986 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
2987 * support/regression/tests/bitfields.c: added Johan's bitfields.c
2989 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
2991 * src/SDCCopt.c: add special case optimization to replace modulo by
2992 a power of two with a bitwise AND.
2994 2003-04-18 <johan AT balder>
2996 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
2998 2003-04-17 <johan AT balder>
3000 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
3001 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
3003 2003-04-13 Borut Razem <borut.razem AT siol.net>
3005 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
3006 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
3007 fixed mingw problem in adl_NORMALIZE_PATH
3009 2003-04-12 Borut Razem <borut.razem AT siol.net>
3011 * fixed "#pragma SAVE/RESTORE can not be nested":
3012 * src/SDCC.lex: reworked pragma handling functions
3013 * sdcc/src/SDCCglobl.h: reworked stack handling macros
3014 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
3016 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3018 * src/SDCCutil.c (pathEquivalent): defined but not used
3019 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
3020 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
3021 * configure: rebuilt from configure.in
3022 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3023 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3024 * device/include/Makefile.in: replace sdcc_datadir
3025 * device/lib/Makefile.in: replace sdcc_datadir
3026 * Makefile.common.in: add LDFLAGS from configure
3027 * packihx/Makefile.in: use LDFLAGS
3028 * src/Makefile.in: use LDFLAGS
3029 * support/cpp2/Makefile.in: add LDFLAGS from configure
3030 * support/makebin/Makefile: use LDFLAGS
3031 * .version: bumped version number to 2.3.5
3033 2003-04-12 Borut Razem <borut.razem AT siol.net>
3035 * completed "different paths" task:
3036 * src/SDCCmacro.c: fixed bug in handling quotes
3037 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
3038 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
3040 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3042 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
3044 2003-04-11 kevin Vigor <kevin AT vigor.nu>
3046 * ds390/gen.c ds390/peeph.def: fix bug 706781
3048 2003-04-11 Borut Razem <borut.razem AT siol.net>
3050 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
3052 2003-04-10 Scott Dattalo <scott AT dattalo.com>
3054 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
3055 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
3056 set - this bit used to not be set...).
3057 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
3058 bad code in PIC Port
3059 * src/regression/and2.c added to test bug 609268
3060 * src/regression/Makefile added and2.c to regression test
3063 2003-04-08 <johan AT CP255758-A>
3065 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
3066 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
3067 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
3069 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
3071 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
3073 * support/cpp2/Makefile.in: fix bug #487815
3074 * configure: rebuilt from configure.in
3075 * Makefile.common.in: docdir changed, new path suffixes
3076 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3077 * sdcc_vc_in.h: reflect changes from sdccconf.h
3078 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
3079 * src/SDCCutil.h: remove BINDIR hack
3080 * doc/sdccman.lyx: update new path hierarchy
3082 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3084 * src/SDCCpeeph.c: added okToRemoveSLOC test
3086 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3088 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
3090 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3092 * src/SDCCpeeph.c: added labelIsReturnOnly test
3093 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
3095 2003-04-05 <johan AT balder>
3097 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
3098 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
3099 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
3100 * src/SDCCast.c: fixed a warning
3101 * src/SDCCast.h: fixed a warning
3102 * src/SDCCicode.c (operandFromAst): fixed a warning
3104 2003-04-04 <johan AT balder>
3106 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
3107 * src/SDCCast.c (decorateType): fixed bug #715076
3108 * src/SDCC.y: fixed bug #702907
3110 2003-04-03 <johan AT balder>
3112 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
3113 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
3114 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
3115 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
3116 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
3118 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
3120 * _decdptr.c: fix return values
3121 * _gptrget.c: fix return values
3122 * _gptrgetc.c: fix return values
3123 * _gptrput.c: fix return values
3124 * _mulint.c: fix return values
3125 * as/z80/Makefile: fix 'make -j' problem
3127 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
3129 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
3130 * configure.in: big cleanup, updated to autoconf 2.5x
3131 * configure: rebuilt from configure.in
3132 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3133 * sdcc_vc_in.h: reflect changes from sdccconf.h
3134 * doc/Makefile: fixed a flaw in "make install"
3136 2003-04-02 <johan AT balder>
3138 * src/ds390/gen.c (genCmp): no comments
3139 * src/mcs51/gen.c (genCmp): no comments
3140 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
3141 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
3143 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
3145 * support/regression/generate-cases.py: place generated file in given sub directory
3146 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
3147 * support/regression/Makefile: improvements for 'make -j';
3148 side effect: it's simpler and faster now
3150 2003-03-31 Borut Razem <borut.razem AT siol.net>
3152 * src/z80/main.c: link-{port} and as-{port} defined without path
3153 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
3155 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
3157 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
3159 2003-03-30 Borut Razem <borut.razem AT siol.net>
3161 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
3162 changed type of list parameter to set
3163 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
3164 * src/port.h: changed type of do_assemble() parameter to set
3165 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
3166 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
3167 definition of "cppoutfilename" macro with NULL value in preProcess()
3168 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
3169 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
3170 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
3171 replaced with set *binPathSet
3172 * shash_add() deallocates the item, if allready exsists, before adding the new one
3173 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
3175 2003-03-30 Scott Dattalo <scott AT dattalo.com>
3177 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
3178 a nested for loop bug in the PIC port
3179 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
3182 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
3184 * support/Util/dbuf.h: remove C++ stuff to make it portable
3186 2003-03-28 Borut Razem <borut.razem AT siol.net>
3188 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
3189 literal strings in stringLiteral()
3190 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
3191 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
3194 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
3196 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
3198 2003-03-26 <johan AT balder>
3200 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
3201 * src/ds390/gen.c (saveRegisters): catched symbol abuse
3202 * src/SDCCast.c (decorateType): fixed " -v < 3"
3204 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3206 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
3207 Added Lenny Story's debug infrastructure changes:
3208 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
3209 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
3210 * src/cdbFile.c: added
3211 * src/SDCCdebug.c: added
3212 * src/SDCCdebug.h: added
3213 * src/SDCCast.c (createFunction)
3214 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
3215 * src/SDCCmain.c (parseCmdLine, main)
3216 * src/SDCCmem.c (redoStackOffsets)
3217 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
3220 * src/avr/gen.c (genAVRCode)
3221 * src/ds390/gen.c (gen390Code)
3222 * src/mcs51/gen.c (gen51Code)
3223 * src/pic/gen.c (genpic14Code)
3224 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
3225 * src/xa51/gen.c (genXA51Code)
3226 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
3228 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3230 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
3231 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
3233 2003-03-22 <johan AT balder>
3235 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
3237 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
3239 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
3240 * doc/cdbfileformat.lyx: added, written by Lenny Story
3241 * doc/Makefile: added cdbfileformat.lyx
3242 * doc/clean.mk: added cdbfileformat.lyx
3244 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
3246 * src/mcs51/peeph.def: fix bug #705773
3248 2003-03-20 <johan AT balder>
3250 An sfr/sbit can have an "at #" AND an initializer
3251 * src/SDCCsymt.c (checkSClass):
3252 * src/SDCCmem.c (allocGlobal):
3253 * src/SDCCmem.c (allocLocal):
3254 * src/SDCCast.c (createBlock):
3256 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
3258 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
3260 2003-03-16 <johan AT balder>
3262 Undid the hackup of const and volatile, the problem is much bigger
3264 * src/SDCCast.c:1.171
3265 * src/SDCCglue.c:1.138
3266 * src/SDCCicode.c:1.146
3267 * src/SDCCsymt.c:1.150
3268 * src/SDCCval.c:1.65
3270 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
3272 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
3273 * src/ds390/gen.c (genAddrOf): fixed bug #704087
3275 2003-03-13 <johan AT balder>
3277 Hackup const and volatile modifiers in type chains a bit:
3279 * src/SDCCast.c:1.169
3280 * src/SDCCglue.c:1.136
3281 * src/SDCCicode.c:1.143
3282 * src/SDCCsymt.c1.146
3283 * src/SDCCsymt.h1.59
3284 * src/SDCCval.c:1.63
3286 2003-03-12 <johan AT balder>
3288 * src/SDCCBBlock.h: more LRH debugging junk
3289 * src/SDCCcflow.h: more LRH debugging junk
3290 * src/SDCCloop.c: more LRH debugging junk
3291 * src/SDCC.y (struct_declaration): fixed bug #697590
3292 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
3293 * src/ds390/gen.c (aopForRemat): fixed bug #700031
3294 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
3296 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3297 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
3298 test function names must now match exactly).
3299 * src/SDCCcse.c: added special case in findCheaperOp to allow
3300 extending a short integer. Makes less awful code for bug 700121 test case.
3302 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3304 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
3305 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
3307 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3309 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
3310 actually called (operandsNotEqual() was called for all
3311 operandsNotEqualX tests).
3313 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3315 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
3316 with shorter literals. Fixes bug 700121.
3318 2003-03-11 <johan AT balder>
3320 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
3322 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
3324 * src/SDCCloop.c (mergeRegions): an evil beast is dead
3325 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
3327 2003-03-10 Borut Razem <borut.razem AT siol.net>
3329 * src/SDCCmain.c: pipe preprocessor's output
3330 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3331 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3332 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3333 which closes all pipes in pipeSet set
3334 * src/SDCCset.c: free deleted item in function deleteSetItem()
3335 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3336 moved from z80 to src subproject
3337 * .version: increased version number to 2.3.4
3339 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
3341 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
3342 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
3343 * support/regression/ports/xa51/spec.mk: fix typo
3345 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
3347 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
3349 2003-03-09 Borut Razem <borut.razem AT siol.net>
3351 * src/SDCCmain.c: pipe preprocessor's output
3352 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3353 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3354 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3355 which closes all pipes in pipeSet set
3356 * src/SDCCset.c: free deleted item in function deleteSetItem()
3357 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3358 moved from z80 to src subproject
3360 2003-03-09 Borut Razem <borut.razem AT siol.net>
3362 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
3363 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
3364 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
3365 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
3366 * src/SDCCglobl.h: unification of WIN32 native definitions
3368 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3370 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
3372 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3374 * src/configure.in: check for endianess (even while cross-compiling)
3375 * src/configure: check for endianess (even while cross-compiling)
3376 * src/configure_in.h: check for endianess (even while cross-compiling)
3377 * src/avr/gen.c: remove old endianess stuff
3378 * src/mcs51/gen.c: remove old endianess stuff
3379 * src/ds390/gen.c: remove old endianess stuff
3380 * src/pic/gen.c: remove old endianess stuff
3381 * src/pic/genarith.c: remove old endianess stuff
3382 * src/pic/glue.c: fix endianess check
3383 * src/pic16/gen.c: remove old endianess stuff
3384 * src/pic16/genarith.c: remove old endianess stuff
3385 * src/pic16/glue.c: fix endianess check
3386 * src/xa51/gen.c: remove old endianess stuff
3387 * src/z80/gen.c: fix endianess check
3388 * src/SDCCglue.c: fix endianess check
3389 * src/ds390/peeph.def: fix bug 700036
3391 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3393 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
3394 * src/configure: find appropriate data-types on host for SDCC's int and long
3395 * src/configure.in: find appropriate data-types on host for SDCC's int and long
3396 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
3397 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
3399 2003-03-07 <johan AT balder>
3402 some minor cleanups before the big shot
3403 OP_DEFS and OP_USES now use Kevin's protection
3404 new option --nolabelopt
3415 * src/ds390/ralloc.c:
3416 * src/mcs51/ralloc.c:
3418 * src/xa51/ralloc.c:
3421 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
3423 * src/pic/pcode.c (get_op): fix 64 bit warnings
3424 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
3425 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
3426 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
3427 * support/regression/tests/malloc.c: fix 64 bit warnings
3429 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
3431 * src/mcs51/gen.c (genMinus): fixed bug 696436
3433 2003-03-02 Borut Razem <borut.razem AT siol.net>
3435 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
3437 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
3439 * configure.in: test for mkstemp
3440 * sdccconf_in.h: add HAVE_MKSTEMP
3442 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
3444 * device/include/ctype.h: removed warning while using --stack-auto
3445 * device/include/malloc.h: removed warning while using --stack-auto
3446 * device/include/string.h: removed warning while using --stack-auto
3448 2003-02-23 Borut Razem <borut.razem AT siol.net>
3450 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
3451 because NDEBUG is defined (see man assert)
3452 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
3454 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3456 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
3457 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
3459 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3461 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
3462 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
3464 2003-02-18 <johan AT balder>
3466 * as/mcs51/asmain.c (asmbl): module can start with a digit
3467 * as/z80/asmain.c (asmbl): module can start with a digit
3469 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
3471 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
3472 * src/asm.c: fix pipe() for Mingw32
3474 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
3476 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
3477 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
3478 make -V work again; --c1mode reads now from stdin
3479 * doc/sdccman.lyx: added --c1mode
3480 * support/Util/SDCCerr.c: new messages for c1 mode
3481 * support/Util/SDCCerr.h: new messages for c1 mode
3482 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
3484 2003-02-15 <johan AT balder>
3486 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
3488 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
3490 * doc/sdccman.lyx: Environment variables, -o and other minor things
3492 2003-02-14 <johan AT balder>
3494 * src/xa51/main.c: before anyone really tries to use it :)
3496 * Install doc's in share/sdcc/doc
3497 * removed some obsolete files
3498 * Do a proper make distclean and uninstall
3499 M Makefile.common.in
3502 M device/include/Makefile.in
3503 M device/lib/Makefile.in
3506 M sim/ucsim/doc/Makefile.in
3509 R src/xa51/peeph.rul
3510 M support/cpp2/Makefile.in
3511 M support/makebin/Makefile
3514 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
3516 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
3518 2003-02-10 Borut Razem <borut.razem AT siol.net>
3520 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
3521 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
3522 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
3523 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
3524 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
3525 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
3526 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
3527 src/z80/Makefile.bcc: Borland Makefile cleanup
3528 * as/z80/Makefile.bcc: Added Borland Makefile
3529 * support/cpp2/borland.h: Removed
3531 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
3533 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
3534 * src/SDCC.lex: new pragma NOIV
3535 * src/SDCCglobl.h: new pragma NOIV
3536 * src/SDCCmem.c: new pragma NOIV
3538 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3540 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
3542 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3544 * src/SDCCmain.c: signal handling is switched off by --debug
3545 * doc/Makefile: small fix for install; use clean.mk again
3546 * doc/clean.mk: clean *.pdf and *.html too
3548 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
3550 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
3551 * device/lib/printfl.c: fix a ds390 bug by making it portable
3552 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
3553 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
3554 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
3555 * debugger/mcs51/cmd.c: converted multi-line string literals
3556 * sim/ucsim/globals.cc: converted multi-line string literals
3557 * src/SDCCmain.c: introduced signal handler to remove temp files
3558 * doc/Makefile: small tweaks, implement clean
3559 * doc: removed generated files
3561 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3563 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
3564 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
3565 Address Record is not correctly generated for DS390."
3567 2003-02-02 Borut Razem <borut.razem AT siol.net>
3569 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
3570 * as/mcs51/asm.h: fixed compilation with Borland C
3571 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
3572 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
3573 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
3574 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
3575 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
3576 src/z80/Makefile.bcc: delete $(LIB) only if exist
3577 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
3579 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
3581 * device/include/malloc.h: introduced NULL
3582 * device/include/string.h: introduced NULL
3583 * device/include/stdlib.h: introduced NULL
3584 * device/lib/_memcpy.c: removed NULL
3585 * device/lib/_strcat.c: removed NULL
3586 * device/lib/_strchr.c: removed NULL
3587 * device/lib/_strcmp.c: removed NULL
3588 * device/lib/_strcpy.c: removed NULL
3589 * device/lib/_strcspn.c: removed NULL
3590 * device/lib/_strlen.c: removed NULL
3591 * device/lib/_strncat.c: removed NULL
3592 * device/lib/_strncmp.c: removed NULL
3593 * device/lib/_strncpy.c: removed NULL
3594 * device/lib/_strpbrk.c: removed NULL
3595 * device/lib/_strrchr.c: removed NULL
3596 * device/lib/_strspn.c: removed NULL
3597 * device/lib/_strstr.c: removed NULL
3598 * device/lib/_strtok.c: removed NULL
3599 * device/lib/malloc.c: removed NULL, include own header
3601 2003-02-02 <johan AT balder>
3603 * 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
3604 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
3605 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
3606 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
3607 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
3608 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
3610 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3612 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
3615 2003-02-01 <johan AT balder>
3617 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
3619 2003-01-31 <johan AT CP255758-A>
3621 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
3623 2003-01-30 <johan AT balder>
3625 * src/SDCCBBlock.c: automatic bug detection
3626 * src/SDCCicode.c: automatic bug detection
3628 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3630 * src/SDCCglobl.h: now --xram-size 0 works
3631 * src/SDCCmain.c: now --xram-size 0 works
3633 2003-01-29 <johan AT balder>
3635 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
3637 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3639 * as/mcs51/aslink.h: Added options --xram-size and --code-size
3640 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
3641 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
3642 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
3643 * src/SDCCglobl.h: Added options --xram-size and --code-size
3644 * src/SDCCmain.c: Added options --xram-size and --code-size
3646 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
3648 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
3649 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
3651 2003-01-27 <johan AT balder>
3653 * src/SDCC.y: fixed bug #613764
3655 2003-01-26 <johan AT balder>
3657 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
3658 * src/SDCCsymt.h: fixed bug #673374
3659 * src/SDCCglue.c: fixed bug #661910
3660 * src/SDCCast.c: fixed bug #458099 and 673374
3662 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
3664 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
3665 * as/mcs51/strcmpi.h: added
3666 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
3667 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
3668 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
3669 * as/mcs51/assym.c: strcmpi -> as_strcmpi
3670 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
3671 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
3672 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
3673 * as/mcs51/Makefile.aslink: new module strcmpi
3674 * as/mcs51/Makefile.asx8051: new module strcmpi
3675 * as/mcs51/Makefil.bcc: new module strcmpi
3676 * as/mcs51/Makefile.in: new module strcmpi
3677 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
3679 2003-01-26 <johan AT balder>
3681 * src/SDCCglue.c: reverted back to 1.124
3682 * src/SDCCast.c: reverted back to 1.156
3683 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
3685 2003-01-25 <johan AT balder>
3687 * src/SDCCglue.c: A better fix for bug #661910
3688 * src/SDCCast.c: A better fix for bug #661910
3689 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
3691 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3693 * src/Makefile.in: remove spawn.o
3694 * src/SDCCmain.c: remove spawn.h
3695 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
3696 * src/spawn.c: removed
3697 * src/spawn.h: removed
3698 * support/regression/ports/ds390/spec.mk: link with -r
3700 2003-01-24 <johan AT CP255758-A>
3702 * src/ds390/gen.c (aopOp): fixed bug #667458
3703 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
3704 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
3705 (createIvalCharPtr): an ival doesn't always have a storage class anymore
3707 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3709 * src/mcs51/peeph.def: better assembler identation by Frieder
3710 * src/mcs51/gen.c: better assembler identation by Frieder
3712 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
3714 * as/z80/string.h: removed for gcc 3.2
3715 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
3716 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
3718 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3720 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
3721 * src/SDCCpeeph.c (replaceRule): fix bug #663503
3722 * support/regression/Makefile: separate temp files for ports
3723 * support/regression/generate-cases.py: separate temp files for ports
3724 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3725 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3727 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3729 * moved tinitalk to device/examples/ds390
3731 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
3733 * as/mcs51/lkmem.c: rflag is for DS390
3734 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
3735 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
3736 (linkEdit): move mem- and map-files the same way as ihx-files
3737 * src/z80/main.c (_setDefaultOptions): removed --generic
3738 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
3739 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
3740 * src/pic/glue.c (picglue): --c1mode works again
3741 * src/pic16/glue.c (pic16glue): --c1mode works again
3742 * src/asm.c (printCLine): fix #660034
3744 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
3746 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
3747 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
3748 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
3749 * as/mcs51/lkmem (summary): better fix for sp problem
3750 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
3751 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
3752 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
3753 remove --stack-after-data
3755 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
3757 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
3758 * src/SDCCutil.c (join): ugly bug: missing '\0'
3759 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
3761 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3763 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
3765 * src/pic/main.c (_asmCmd): gpasm supports -o
3766 * src/z80/main.c: more general macros
3767 * device/lib/Makefile.in: remove intermediate files
3769 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3771 * .version: Bumped version number to 2.3.3
3772 * src/SDCCBBlock.c: new option -o
3773 * src/SDCCglobl.h: new option -o
3774 * src/SDCCglue.c: new option -o
3775 * src/SDCCmain.c: new option -o
3776 * src/asm.c: new option -o
3777 * src/ds390/main.c: new option -o
3778 * src/pic/glue.c: new option -o
3779 * src/pic/pcode.c: new option -o
3780 * src/pic/ralloc.c: new option -o
3781 * src/pic16/glue.c: new option -o
3782 * src/pic16/pcode.c: new option -o
3783 * src/pic16/ralloc.c: new option -o
3784 * src/z80/main.c: new option -o
3785 * device/lib/Makefile.in: use -o
3786 * support/regression/ports/ds390/spec.mk: use -o
3787 * support/regression/ports/gbz80/spec.mk: use -o
3788 * support/regression/ports/mcs51/spec.mk: use -o
3789 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
3790 * support/regression/ports/z80/spec.mk: use -o
3791 * support/regression/ports/ucz80/spec.mk: use -o
3792 * support/regression/ports/xa51/spec.mk: use -o
3793 * support/regression/fwk/lib/timeout.c: fix usage string
3795 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
3796 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
3798 2003-01-07 <johan AT balder>
3800 * src/SDCCast.c (decorateType): fixed bug #600035
3802 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
3803 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
3804 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
3805 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
3806 * src/pic/pcode.c: outcommented unused variable to remove warnings
3807 * src/pic/ralloc.c: outcommented unused variable to remove warnings
3809 2003-01-06 <karl AT turbobit.com>
3810 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
3813 2003-01-06 <johan AT balder>
3815 * src/SDCCicode.c: fixed array add
3817 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
3818 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
3819 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
3821 2003-01-04 <johan AT balder>
3823 * src/SDCCval.c (getNelements): fixed the initialized array of structures
3825 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3826 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
3828 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3829 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
3830 * support/regression/tests/bug-524697.c: fit mem usage into 8032
3832 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3833 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
3835 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
3836 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
3838 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3839 * src/mcs51/main.c: removed {bindir}{sep} from aslink
3841 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3843 * in \sdcc\as\mcs51\ changed these files in order to create an
3844 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
3845 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
3846 following files to include the previous two files: aslink.dsp,
3847 Makefile.aslink, Makefile.bcc, and Makefile.in.
3849 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
3850 .adb instead of .cdb
3852 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3854 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
3855 value from option --iram-size.
3857 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3859 * \sdcc\as\mcs51\lklist.c: added boundary check before using
3862 2002-09-18 <wiml AT hhhh.org>
3864 * SDCClrange.h: exposed setFromRange() and setToRange()
3865 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
3866 packRegsForAccUse() (bug 542397)
3867 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
3868 multiple times and emitting the fetch operations more than once
3869 added aopGetUsesAcc() function to allow binary operators to
3870 fetch their operands in the correct order; made genMinus() emit
3871 compact code for X = LITERAL - Y
3873 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3874 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
3875 sprintf() in line 1267.
3877 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3878 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
3881 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3882 Changes to aslink (All the changes are marked with 'JCF'):
3884 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
3887 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
3888 area BSEG. Also moves, if possible, the DATA area down into the internal
3889 ram so more space is available.
3891 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
3894 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
3895 not bytes. Function summary() which creates a memory usage summary
3896 file with extension .mem. Reports of overlaping stack and small stack
3897 size. If the space for the stack is less than 16 bytes aslink trows a
3900 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
3901 the 8051. Option 'y' for memory summary output file.
3903 Changes to sdcc (All the changes are marked with 'JCF'):
3905 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
3907 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
3908 overlaying area for it (uses RegBankUsed[4]).
3910 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
3911 bank zero as used by default. By default aslink locates the stack
3912 (equivalent to --stack-after-data). Pass option 'y' to aslink for
3913 the creation of the .mem file. Delegates the allocation of data area
3914 to aslink (it is not longer 0x30 by default). If --stack-loc passes
3915 the begining of the stack area to aslink.
3917 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
3918 glue() in SDCCglue.c creates an area for it.
3920 2002-09-03 Borut Razem <borut.razem AT siol.net>
3921 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
3922 sdcc/src/pic/glue.c:
3923 introduced atexit() handler for teporay files removal in case of
3924 errors, assertions, ...
3926 2002-08-29 Borut Razem <borut.razem AT siol.net>
3927 * sdcc/support/cpp2/auto-host_vc_in.h:
3928 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
3929 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
3930 Maybe there is a similar problem with BORLANDC? It should be checked!
3932 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
3933 corrected improper use of assert: the assignment to clr variable was done inside the assert.
3934 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
3935 was not executed, and the compiler (cl) launched a warning:
3936 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
3938 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
3939 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
3941 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
3942 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
3944 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3945 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
3946 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
3947 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3948 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
3949 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
3950 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
3951 - added Release configuration in VS projects
3952 - review of compiler an linker options
3953 - VC .exe files are generated in bin_vc directory, not to interfere
3954 with binaries generated from other projects (cygwin, mingw, bcc ...)
3956 * sdcc/src/yacc.dsp: added
3958 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
3959 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
3960 and insert the version number definitions from .version
3962 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
3964 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
3965 added - genarate auto-host.h using auto-host_vc_in.h as template
3968 removed from CVS, generated automatically
3970 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
3971 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
3973 2002-08-11 Borut Razem <borut.razem AT siol.net>
3974 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
3976 2002-08-10 Borut Razem <borut.razem AT siol.net>
3977 * src/SDCCmain.c (main):
3978 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
3979 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
3980 The consequence was that some temporary files were not removed.
3983 unification of code in functions tempfilename() and tempfile():
3984 function tempnam() is defined in Visual Studio 6.0 and .NET
3986 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
3988 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3989 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
3990 - removed compiler command line option /WX: Treats all warnings as errors
3991 - update a list of source files, included into the project
3993 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3994 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
3995 changed project type to Generic Project so that can be correcly converted to VS.NET project
3997 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
3999 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
4001 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
4003 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
4004 added return 0 statements after assert() to make compiler happy
4006 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
4007 added newline in the def file to keep MSC compiler satisfied
4009 * sdcc/src/z80/gen.c:
4010 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
4011 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
4012 - solved MSC error in function aopDump()
4014 * sdcc_vc.h: define PREFIX as "\\sdcc"
4016 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
4017 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
4019 2002-06-22 Scott Dattalo <scott AT dattalo.com>
4020 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
4021 - Rewrote the register banking algorithm.
4022 - Added pCode live-range analysis to registers (for now, only non-used and
4023 singly-used registers optimized away)
4025 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
4027 * 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.
4029 2002-05-10 Scott Dattalo <scott AT dattalo.com>
4030 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
4032 2002-04-22 Michael Hope <michaelh AT vroom>
4034 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
4036 * configure.in (DD_COPT): Added include support required for gbdk.
4038 * .version: Bumped version number just to increase it.
4040 * src/SDCCmain.c: Added -nostdinc to the default options.
4042 2002-04-15 Michael Hope <michaelh AT vroom>
4044 * device/lib/z80/printf.c (sprintf): Added.
4046 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
4048 * src/z80/peeph.def: Added transpose redundent load rule.
4050 * src/z80/main.c: Added force callee saves for jaune.
4052 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
4054 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
4056 2002-03-28 Johan Knol <johan AT balder>
4058 * src/SDCCval.c: fixed bug #532436
4060 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4062 Added "char *Processor" field to the port structure.
4065 Added -p option. Allows port dependent processor to be specified.
4068 Initialized the new field char *Processor field to NULL in all ports
4071 Compiler generated registers for interrupt context saving
4072 were not getting allocated.
4074 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
4077 Fixed left shift. Will promote the left side of a left shift
4078 if a) left shifting more than size of operand or b) when assigned
4079 to something size > size of left side
4081 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4083 tons of changes. Register allocation has been
4084 rewritten. Added customization for the various PICs. Flow
4085 analysis is restructured. ...
4091 Added. device.c is a PIC port hack to accomodate variations
4094 2002-03-13 Michael Hope <michaelh AT vroom>
4096 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
4098 2002-03-04 johanknol <johanknol AT manik>
4100 * /src/SDCCval.c: fixed
4102 const unsigned char arr[][2] = { { 0, 1 } };
4103 t18.c:1: error: Initializer element is not constant
4105 2002-03-04 bela <bela AT manik>
4107 * /device/include/mcs51reg.h:
4108 ds89c420 register definition update
4110 2002-03-03 <johan AT FRIJA>
4112 * support/Util/SDCCerr.c: did something, but don't no why anymore
4114 * support/regression/tests/bug-524691.c: made it a little less shy
4116 * src/SDCCast.c (decorateType): fixed bug #524697
4118 * src/SDCCast.c: made some lineno improvements
4120 * src/SDCCval.c (getNelements): changed warning to error
4122 * src/SDCCglue.c (printIvalArray): changed warning to error
4124 * src/SDCCicode.c: fixed a warning for mingw
4126 * src/SDCCast.c (decorateType): fixed the << promotion for ops
4128 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
4130 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
4132 * src/ds390/peeph.def:
4133 Added some more peephole rules
4135 * src/ds390/gen.c: Various fixes & enhancements
4137 * src/SDCClrange.c, src/SDCClrange.h:
4138 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
4140 * src/ds390/ralloc.c:
4141 various fixes & enhancements (ds390) specific
4143 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
4144 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
4147 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
4149 2002-03-02 <johan AT FRIJA>
4151 * src/SDCCast.c (decorateType): fixed bug #524708
4153 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
4155 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
4157 2002-03-01 Michael Hope <michaelh AT vroom>
4159 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
4161 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
4163 2002-03-01 <johan AT FRIJA>
4165 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
4167 * src/SDCCast.c (decorateType): fixed bug #524209
4169 * src/SDCCval.c (valNot): fixed bug #524195
4171 2002-02-26 <johan AT balder>
4173 * src/xa51/gen.c: fixed a warning
4175 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
4177 * src/SDCCast.c (decorateType): fixed bug #522534
4179 2002-02-23 <johan AT balder>
4181 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
4183 2002-02-22 <johan AT balder>
4185 * src/SDCCast.c: fixed bug #514865
4187 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
4189 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
4191 * sdcc/src/SDCCloop.c:
4192 Previous fix was not good. basic blocks that have "break" or "return" are
4193 not really partof a loop , but live ranges used in these blocks should
4194 be live thru the entire loop, so set partOfLoop but don't add them to
4197 2002-02-21 <johan AT FRIJA>
4199 * src/SDCCcse.c: fixed bug #514308
4201 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
4204 Fixed BUG #519583. If a conditional block ended in a return/break
4205 statement inside a loop, it was not being considered part of the loop.
4207 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
4209 2002-02-10 Karl Bongers <karl AT turbobit.com>
4212 Fixed up SDCDB debugger somewhat. Updated debugger/README
4213 with lots of comments and notes.
4215 * device/examples/test2.c:
4216 Fix bug, "red" variable not being initialized(compiler complained).
4218 * device/examples/Makefile, examples/test3.c:
4219 Add Makefile in device/examples folder, compiles test3.c
4220 for use as a multiple module SDCDB test case.
4222 * sim/ucsim/cmd.src/cmdset.cc:
4223 Took out debug printfs in ucsim "next" command.
4226 Karl and Johan start ucsim XA support. Most dissassembly working,
4227 about 75% emulation done(plenty of work remaining).
4229 * sim/ucsim/z80.src:
4230 Add Z80 support to ucsim, add test-ucz80 regression test,
4231 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
4232 Notice z80 compiler fails on examples/test3.c/crc code.
4234 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
4236 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
4237 Added support for --parms-in-bank1
4239 * src/ds390/peeph.def:
4240 added a few more peephole optimzations
4243 1) added __builtin_inp & __builtin_outp used to read in data of given length
4244 from a memory mapped port
4245 2) added __builtin_memcmp
4246 3) added __builtin_swapw swap bytes of a short
4248 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
4249 1) handle multiple send & receives from register bank1
4250 2) ralloc can now allocate DPTR1 to some liveRanges
4252 * src/SDCCsymt.c, src/SDCCsymt.h:
4253 changes to handle multiple sends & receives
4256 added some pointer arithmetic optimization
4259 added some pointer arithmetic optimizations but not stable yet so not
4260 called from anywhere (will get this working shortly)
4262 * src/SDCCopt.c: fixed for multiple sends & receives
4265 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
4266 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
4267 set preprocessor defines (depending on options)
4269 * src/SDCCicode.c, src/SDCCicode.h:
4270 changes made to handle multiple sends & receives
4273 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
4275 * src/SDCCcse.c, src/SDCCcse.h:
4276 added function findbackward def (to be used in upcoming optimization)
4278 * src/SDCCcflow.c, src/SDCCcflow.h:
4279 added function returnAtEnd - to determine if a basic block terminates with
4282 * src/SDCCast.c, src/SDCCast.h:
4283 added option parms-in-bank1
4285 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
4286 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
4287 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
4288 adjusted for --parms-in-bank1 option
4290 * device/include/string.h:
4291 donot redefine "reentrant" keyword
4293 * device/include/ds80c390.h: Added some more SFRs
4295 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4297 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
4299 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4301 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
4303 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4305 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
4307 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
4309 * Added --xram-movc option
4311 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4313 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
4315 2002-01-11 Johan Knol
4317 * Added math lib of Jesus Calvino-Fraga
4319 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
4321 * src/SDCCmain.c (processFile): fix processing of ../../src.c
4322 * support/regression/Makefile: new target test-mcs51-stack-auto
4323 * support/regression/ports/mcs51-stack-auto/spec.mk: added
4325 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4327 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
4329 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4331 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
4333 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4335 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
4337 * src/SDCCglue.h: add definition for printIvalChar()
4339 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4341 * src/SDCCast.c: fix #498138 by Johan
4343 * src/SDCCglue.c: fix #498138 by Johan
4345 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4347 * support/regression/Makefile: fix clean
4349 * support/regression/ports/ds390/support.c: fix transmission of last character
4351 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
4353 * /sdcc/src/ds390/gen.c:
4354 a) improved computing address of stack variable
4355 b) took out some #if 0 code
4356 c) improved parmBytes adjustment
4357 d) improved genPlusIncr & genMinusIncr
4358 e) genCmp could generate bad code (when left assigned to DPTR)
4359 f) Fixed bug in hasInc
4361 * /sdcc/src/ds390/ralloc.c:
4362 a) packRegsForSupport could mess up live information (Fixed)
4363 b) packRegsDPTRuse could be incorrect for left & right shift
4365 * /sdcc/src/mcs51/ralloc.c:
4366 packRegsForSupport could mess up the live information (Fixed)
4368 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
4370 * /sdcc/src/SDCCast.c:
4371 can reverse a loop even if function call is present as long
4372 as the loop control variable is local & is not passed as parameter
4374 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4376 * /sdcc/ChangeLog: *** empty log message ***
4378 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
4379 More builtin function additions for TININative
4381 * /sdcc/src/ds390/ralloc.c:
4382 Had broken the regression testsuite
4384 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
4386 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
4387 Added funcattr hasStackParms will be set for reentrant functions when there
4388 are paramteres on the stack, this helps in minimizing frame pointer generation
4389 typeFromStr can handle function pointers now
4391 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
4392 *** empty log message ***
4394 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4396 * /src/ds390/gen.c, /src/ds390/main.c:
4397 More builtin function additions for TININative
4399 * /src/ds390/ralloc.c:
4400 Had broken the regression testsuite
4402 * /src/SDCCast.c: Fixed a bug in dumptree
4404 * /src/SDCCsymt.c, /src/SDCCsymt.h:
4405 Added funcattr hasStackParms will be set for reentrant functions when there
4406 are paramteres on the stack, this helps in minimizing frame pointer generation
4407 typeFromStr can handle function pointers now
4409 * /doc/builtins.txt, /doc/TININative.txt:
4410 *** empty log message ***
4413 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4415 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
4416 ALPHA version for -mTININative
4418 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
4419 updated to reflect changes in the port structure
4422 added function do_assemble (similar to do_link) if non-null this function
4423 will be called to do assembly (-mTININative) requires a multi command
4425 added function genAssemblerEnd will be called to generate assembler Epilogue
4428 added _JavaNative to debug info printing
4430 * /src/SDCCmain.c: added option --tini-libid
4431 added port->do_assemble function (-mTININative) has a multi command assemble
4433 * /src/SDCCglue.c: Disabled "constExpr" check
4434 added port->genAssemblerEnd function
4436 * /src/SDCCglobl.h: Added option --tini-libid value
4439 tookout optimizeCompare from the header (has no external references)
4441 * /src/SDCCast.c: made one more function "static"
4443 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
4445 * src/z80/mappings.i: Added z80asm support.
4447 * src/z80/main.c: Added z80asm support on --asm=z80asm
4449 * src/z80/gen.c: Fixed asm portability issues.
4451 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
4453 * src/SDCCglue.c (printExterns): Added global/extern split.
4455 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
4457 * support/regression/Makefile: added test for mcs51 model large
4459 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
4461 * support/regression/ports/gbz80/spec.mk: added -mgbz80
4463 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
4465 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
4467 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
4469 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
4471 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
4473 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
4475 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
4477 * support/regression/tests/simplefloat.c: Port to mcs51.
4479 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
4480 * support/regression/tests/bug-485362.c: Added.
4482 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
4484 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
4486 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
4488 * src/z80/gen.c (aopDump): Added a dump function.
4490 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
4491 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
4493 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
4495 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
4497 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
4499 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
4501 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
4503 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
4505 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
4507 * support/regression/ports/ds390/support.c: Use tinibios.
4509 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
4511 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
4513 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
4514 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
4516 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
4518 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
4520 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
4522 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
4524 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
4525 (packRegsForIYUse): Created and optimised.
4527 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4529 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
4530 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4532 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
4534 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
4536 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
4538 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4540 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
4542 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
4544 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4546 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
4548 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
4550 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
4552 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4554 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
4555 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
4556 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
4558 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
4560 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
4561 (genNotFloat): Added.
4562 (genUminusFloat): Added.
4564 * device/lib/z80/Makefile: Added floating pt stubs.
4566 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
4568 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
4570 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
4572 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4574 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
4576 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
4578 * sdcc/support/regression/Makefile: Add port ds390.
4580 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
4582 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
4584 * sdcc/support/regression/ports/ds390/spec.mk: Added.
4586 * sdcc/support/regression/ports/ds390/support.c: Added.
4588 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
4590 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
4592 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
4594 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4596 * device/include/malloc.h: Added z80 and gbz80 support.
4598 * device/lib/gbz80/heap.s: Added.
4600 * device/lib/z80/heap.s: Added.
4602 * device/lib/malloc.c: Added z80 and gbz80 support.
4604 * support/regression/tests/malloc.c (testMalloc): Added.
4606 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
4608 * support/regression/tests/bug-478094.c: Added.
4610 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
4612 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
4614 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
4616 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
4618 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
4620 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
4622 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
4624 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4626 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
4628 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
4630 * support/regression/tests/bug-477927.c: Added.
4632 * src/z80/peeph.def: Added minor rules.
4634 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
4636 * src/z80/peeph.def: Added jump optimisation modification.
4638 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
4640 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
4642 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
4644 * support/regression/tests/funptrs.c: Added.
4646 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
4648 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
4650 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
4652 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
4654 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
4656 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
4657 (movLeft2ResultLong): Created.
4659 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
4660 (joinPushes): Added. Joins two char pushes into a word push.
4662 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
4664 * support/cpp2/Makefile.in (install): Added creation of dest dir.
4666 * support/makebin/Makefile (install): Added creation of dest dir.
4668 2001-10-24 Karl Bongers <karl AT turbobit.com>
4670 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
4672 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
4674 * src/z80/ralloc.c: Turned off faulty pack for one use.
4676 * src/z80/peeph-gbz80.def: Removed redundent restart options.
4678 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
4680 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
4682 * support/regression/Makefile: Improved clean
4684 * support/regression/ports/gbz80/spec.mk: Added clean
4686 * support/regression/ports/host/spec.mk: Added clean
4688 * support/regression/ports/z80/spec.mk: Added clean
4690 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
4692 * support/regression/ports/mcs51/timeout.c: little improvements
4694 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
4696 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
4698 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
4700 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
4702 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
4704 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
4706 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
4708 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
4709 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
4711 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
4713 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
4715 * src/mcs51/main.c (_linkCmd): Added bin path to command.
4717 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
4719 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
4721 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
4723 * support/regression/tests/longor.c: Added.
4725 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
4727 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
4729 * as/mcs51/aslink.h: define PATH_MAX
4731 * as/mcs51/asm.h: define PATH_MAX
4733 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
4735 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
4737 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
4739 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
4741 * src/SDCCglobl.h: define PATH_MAX
4743 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
4745 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
4747 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
4749 * src/z80/gen.c (gencjneshort): Fixed
4751 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
4753 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
4755 * support/regression/tests/bug-469671.c: Added.
4757 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
4759 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
4761 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
4763 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
4765 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
4767 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
4769 * src/device/lib/_mulint.c : removed hint: nooverlay bug
4771 * src/device/lib/_mullong.c : removed hint: nooverlay bug
4773 * src/device/lib/_divuint.c : removed hint: nooverlay bug
4775 * src/device/lib/_divulong.c: removed hint: nooverlay bug
4777 * src/device/lib/_moduint.c : removed hint: nooverlay bug
4779 * src/device/lib/_modulong.c: removed hint: nooverlay bug
4781 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
4783 * 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.
4785 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
4787 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
4789 2001-10-07 <johan AT FRIJA>
4791 * device/lib/gets.c (gets): fixed the return value.
4793 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
4794 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
4796 * 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.
4798 * 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.
4800 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
4802 * src/pic/gen.c: Removed Safe_strdup.
4804 * configure.in: Added option to enable libgc support.
4806 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
4807 (bitVectUnion): Optimised.
4808 (bitVectIntersect): Optimised.
4809 (bitVectBitsInCommon): Optimised.
4810 (bitVectCplAnd): Optimised.
4812 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
4814 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4816 * src/SDCCmain.c: distinguish between assembler debug and plain options
4818 * src/avr/main.c: remove standard assembler options
4820 * src/ds390/main.c: remove standard assembler options
4822 * src/mcs51/main.c: remove standard assembler options
4824 * src/port.h: removed "PENDING" comment
4826 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4828 * src/device/lib/_mulint.c : new, with assember functions
4830 * src/device/lib/_mullong.c : new, with assember functions
4832 * src/device/lib/_divuint.c : with assember functions
4834 * src/device/lib/_divsint.c : with assember functions
4836 * src/device/lib/_divulong.c: with assember functions
4838 * src/device/lib/_divslong.c: with assember functions
4840 * src/device/lib/_moduint.c : with assember functions
4842 * src/device/lib/_modsint.c : with assember functions
4844 * src/device/lib/_modulong.c: with assember functions
4846 * src/device/lib/_modslong.c: with assember functions
4848 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
4850 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
4852 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
4853 replaced _mululong.c and _mulslong.c by _mullong.c
4855 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4857 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
4859 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4861 * src/SDCCglue.c: test, if win32api is available for MINGW
4863 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4865 * src/SDCCsymt.c: no more _modifier in printTypeChain()
4866 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
4867 * support/regression/ports/gbz80/spec.mk: removed GENERIC
4868 * support/regression/ports/host/spec.mk: removed GENERIC
4869 * support/regression/ports/mcs51/spec.mk: removed GENERIC
4870 * support/regression/ports/z80/spec.mk: removed GENERIC
4872 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
4874 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
4876 * support/regression/tests/bug-467035.c: Created.
4878 2001-10-01 <johan AT FRIJA>
4880 * src/SDCC.y: fixed bug #466586 part 1
4882 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
4884 * SDCCicode.c: z80 has no generic pointers
4885 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
4887 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
4889 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
4891 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
4893 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
4895 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
4897 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
4899 * configure.in: Fixed up so that ucsim is only configured once.
4901 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
4903 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
4904 (getPathDifference): As above.
4906 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
4908 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
4910 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
4911 * .version: Updated to 2.3.1
4913 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
4914 Added copyright header.
4916 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
4917 (assemble): Added support for macro based assembler commands.
4918 (linkEdit): Added support for macro based linker commands.
4919 (preProcess): Changed the pre-processor to use macros.
4920 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
4921 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
4923 * device/lib/z80/crt0.s: Added module name for debugging.
4925 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
4927 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4929 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
4931 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
4933 * src/Makefile.in: Added SDCCmacro and SDCCutil
4935 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
4937 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4939 2001-09-16 <johan AT FRIJA>
4941 * 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.
4943 2001-09-15 <johan AT FRIJA>
4945 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
4946 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
4948 2001-09-11 <johan AT FRIJA>
4950 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
4952 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
4954 * support/regression/tests/bug-460444.c: Added test case.
4956 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
4957 (genCast): Added justification for all of the asserts.
4959 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
4961 * support/regression/support.c: _xdata replaced by xdata
4963 * support/regression/spec.mk: removed _generic
4965 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
4967 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
4969 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
4970 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
4972 * src/z80/peeph.def: Added a rule to optimise shift then compare.
4974 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
4976 * support/regression/tests/bug-460010.c: Added test case.
4978 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
4980 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
4982 * support/regression/Makefile: inter-port-clean adjusted for mcs51
4984 * support/regression/testfwk.c: removed workaround for bug #436344
4986 * support/regression/tests/bp.c: use less memory with mcs51
4988 * support/regression/tests/bug-441448.c: use less memory
4990 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
4992 * support/regression/collate-results.py: typo
4994 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
4996 * support/regression/tests/fetchoverlap.c: Added new test case.
4998 * support/regression/tests/bp.c: Added new test case.
5000 * support/regression/tests/bug-448984.c: Added new test case.
5002 * support/regression/tests/pow2shifts.c: Added new test case.
5004 * src/z80/gen.c: Turned off the noise it normally generates for the release.
5005 (genlshTwo): Fixed right shift for count > 8.
5007 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
5009 2001-09-08 <johan AT FRIJA>
5011 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
5013 2001-09-07 <johan AT FRIJA>
5015 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
5017 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
5019 2001-09-06 <johan AT FRIJA>
5021 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
5022 * bernhard noted me at this: "() equals to (void)" (1.38)
5024 2001-09-05 <johan AT FRIJA>
5026 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
5028 2001-09-04 <johan AT FRIJA>
5030 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
5033 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
5035 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
5037 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
5039 * link/z80/aslink.h: Fixed path for PATH_MAX
5041 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
5043 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
5045 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
5047 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
5049 * 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.
5051 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
5053 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
5054 (genCmp): Fixed up genCmp for the GB with longs.
5056 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
5058 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
5060 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
5062 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
5064 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
5066 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
5068 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
5070 * 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.
5072 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
5074 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
5076 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
5078 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
5080 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5082 * sim/ucsim/configure: little improvement of Cygwin-detection
5083 * sim/ucsim/configure.in: little improvement of Cygwin-detection
5084 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
5085 * support/regression/tests/bug-221100.c: small changes for mcs51
5086 * support/regression/tests/bug-221168.c: small changes for mcs51
5087 * support/regression/tests/bug-227710.c: small changes for mcs51
5088 * support/regression/tests/staticinit.c: small changes for mcs51
5089 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
5090 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
5091 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601