1 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
3 * src/Makefile.in (dep): include SLIBOBJS in dependency check
4 * src/SDCCast.c (decorateType): catch another small optimization
6 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
7 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
8 modified to finally use computeType() all over SDCC,
9 see Feature Request #877103
10 * src/SDCCval.h: cosmetic
11 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12 valCompare(); regression tested in muldiv.c
13 * support/regression/tests/muldiv.c (testMod): mod sign follows
16 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
18 * src/SDCCast.c (decorateType): fixed bug #902362
19 * doc/INSTALL.txt: fixed install instructions for win32
21 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
23 * device/include/Makefile.in (install): fixed by replacing spaces
26 * doc/INSTALL.txt: updated for release
27 * doc/sdccman.lyx: added warning for --xstack being buggy
29 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
31 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
32 to eliminate build warnings.
33 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
35 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
36 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
38 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
39 removed -penable-stack, added comment for stack pragma, added
40 warning for not initializing the stack/frame registers, removed
41 comment at interrupts section
43 Stack is made permanent, there is no ability to disable stack usage.
45 * src/pic16/device.c: removed all references to USE_STACK macro,
46 * src/pic16/device.c (pic16_dump_section): when no elements in
47 rlist, free rlist before return,
48 * (pic16_dump_int_registers): NEW, internal registers are a new set
49 of general purpose registers reused by each function,
50 * (checkAddReg): returns 1 if registers is added to set,
51 * (pic16_groupRegistersInSection): when a registers is of type
52 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
53 * src/pic16/device.h: memRange and Assigned Memory are deleted,
54 SRCASECMP macro is moved here from device.c
55 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
56 PO_PCLATU, PO_PRODL, PO_PRODH,
57 * (pic16_pCodeOpType, genMinus,
58 changed compares to "a" register, with AOP_ACC,
59 * (pic16_genPlus): fixed some bugs and indented properly,
60 * (pic16_addSign): changed size to size+offset in the MOVWF
62 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
63 multiply 8-bit operand by literal, result is 8-bit,
64 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
65 multiply 2 8-bit operand, result is 8-bit,
66 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
68 * src/pic16/gen.c: changed accUse to contain WREG only,
69 * (pic16_emitcomment): renamed to pic16_emitpcomment,
70 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
71 true, do not use immediate addressing any more unless sym is a
73 * (aopForRemat): do not use immediate addressing when symbol not in
74 codespace and when symbol's address is requested,
75 * (aopOp): for-loop in if(sym->accUse) is modified for the new
77 * (aopGet): added case for AOP_ACC and don't return "accumulator
78 bug" but WREG instead,
79 * (popGetTempReg): pushes contents of temporary register in stack,
80 * (popReleaseTempReg): pops contents of temporary register from
81 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
82 * (pic16_popGet): separated case AOP_ACC to return register WREG
83 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
84 or PO_IMMEDIATE and initializes their instance/offset appropriately,
85 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
86 the use of immediate pointers to certain cases only.
88 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
89 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
90 * (assignResultValue, genCall, genRet): modified to use the new
91 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
92 genPcall is still broken,
93 * (genFunction): added code to create 'A' type pBlocks when
94 interrupt functions are generated, code not extensively tested yet,
95 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
96 * (genEndFunction): modified so ISRs pop stored registers from stack,
97 * (genMultOneByte): cleanup,
98 * (AccRsh): added flag andmask, to and result with appropriate mask,
99 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
100 * (genDataPointerGet): fixed and reenabled its use,
101 * (genNearDataPointerGet): bugs fixed,
102 * (genDataPointerSet): bugs fixed,
103 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
104 pic16_DumpSymbol, pic16_DumpOp,
105 * src/pic16/genutils.h: function prototypes for the above functions,
106 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
108 * (pic16emitRegularMap): many many many improvements, but needs a
110 * src/pic16/main.c: enable_stack in pic16_options is removed,
111 * (_pic16_parseOptions): removed command line options -penable-stack,
112 * (_process_pragma): emit stack symbol only when stack pragma is
114 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
115 redirected to FSR0L/FSR0H pair,
116 * (pic16_get_op, pic16_get_op2): modifications and improvements,
117 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
118 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
120 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
121 * (dumpPicOptype): NEW,
122 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
123 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
124 with movff instruction,
125 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
126 added pic16_int_regs, some packRegsFor* functions are commented out,
127 because produce errors,
128 * src/pic16/NOTES: minor modifications
130 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
132 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
133 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
135 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
136 * as/mcs51/lkaomf51.c: fixed bug #895763
138 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
140 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
142 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
144 * doc/sdccman.lyx: added details about the HC08 storage classes and
145 interrupts, fixed the register usage info for z80 & gbz80
147 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
149 * doc/sdccman.lyx: added more pic16 port documentation
150 * device/include/pic16/: added header pic18fregs.h
152 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
154 * doc/sdccman.lyx: added Vangelis' contribution
156 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
158 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
159 extend to the next CALL or PCALL, not just to the next CALL.
161 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
163 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
165 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
167 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
168 bug #895752 and a better fix for bug #716790
170 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
172 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
174 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
176 * doc/sdccman.lyx: minor changes, minor changed
178 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
180 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
181 which can't handle SDCC_NEWONEBYTEOPS,
182 (geniCodeMultiply): removed conversion from mult to shift for pic14
185 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
188 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
189 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
190 thus fixing bug #895406
192 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
194 * device/lib/_modsint.c,
195 * device/lib/_modslong.c: sign follows divisor only
196 * src/hc08/gen.c (genMultOneByte): if result size is 1,
197 signs or signedness can be ignored
198 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
199 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
200 added optimization for IFX,
201 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
203 reenabled optimization for IFX, which was removed on 2004-01-11
204 * src/SDCCast.h: added return type IFX
205 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
206 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
207 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
208 SDCC_OLDONEBYTEOPS selects the old behaviour
209 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
210 changed again and commented promotion rule
211 * src/SDCCval.c (valDiv): promotion no longer necessary
212 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
213 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
215 * support/regression/tests/onebyte.c: added
217 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
219 * gen.c (genInline): reverted to old code for assemnling inline
220 code because of bug reported James Chadd
222 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
224 * ralloc.h: missing declarations from previous patch,
225 seems that patch for ralloc.h was never applied, fixed
227 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
228 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
232 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
233 indirect addressing. Marked FSR0 as deprecated
234 * gen.c (pointerCode): commented out, not needed now
235 (pic16_popGet2p): new MOVFF helper function
237 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
238 (shiftRLong): removed duplicate debugging info
240 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
242 * src/ds390/gen.c (genNearPointerGet),
243 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
244 optimization with bits, but not bitfields.
245 * src/ds390/ralloc.c (packRegisters),
246 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
248 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
250 * src/SDCCcse.c (algebraicOpts): copy operands before modification
252 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
255 * src/SDCCicode.c (operandFromSymbol),
256 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
257 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
258 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
259 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
260 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
261 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
263 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
264 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
265 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
266 * src/SDCCsymt.c (newSymbol),
267 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
270 * src/SDCCval.c (newiList): fixed bug #885705
272 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
274 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
275 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
277 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
279 * device/include/c8051f120.h,
280 * device/include/c8051f300.h,
281 * device/include/c8051f310.h: added/updated header files for Silicon
282 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
283 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
284 in new section Submitting patches
286 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
288 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
289 genFarPointerGet, genCodePointerGet, genGenPointerGet,
290 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
292 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
293 genFarPointerGet, genCodePointerGet, genGenPointerGet,
294 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
296 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
297 genFarPointerGet, genCodePointerGet, genGenPointerGet,
298 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
300 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
301 genFarPointerGet, genCodePointerGet, genGenPointerGet,
302 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
303 genGenPointerSet): fixed bug #892400
304 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
305 to eliminate build warnings.
306 * src/SDCCast.c (processParms),
307 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
309 * support/valdiag/valdiag.py: added GCC to the list of defines active
310 when compiling with gcc
312 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
314 * support/Util/SDCCerr.h,
315 * support/Util/SDCCerr.c,
316 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
317 with an incomplete type (fixed bug #883734)
318 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
320 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
322 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
324 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
326 * src/SDCCast.c (decorateType),
327 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
328 function pointer implementation
329 * support/regression/tests/funptrs.c: added tests to verify both forms
330 of function pointers work correctly. Added tests to verify parameters
331 are passed in the correct order.
333 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
335 * device.c (regCompare): registers are sorted by ascending
336 address and increasing size,
337 * main.c (_pic16_finaliseOptions): removed the declaration
338 of compiler macro MCU. Now a macro of the format pic18fxxxx
339 will be defined from the command line
341 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
342 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
344 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
345 PCOP_RLCF was overwritten!
346 * gen.c (genSkip): commented out calls to pic16_emitcode,
347 * (genCmpEQ): fixed "long" compares, only high word did get compared,
349 * (genRRC): added debugging info,
350 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
351 overwritten while shifting,
352 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
353 overwritten while shifting,
356 * (shiftLLeftOrResult),
357 * (shiftRLeftOrResult),
359 * (shiftLLong): Implemented with pic16_emitpcode
360 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
361 * (genLeftShift): Fixed bug, operand for shift by variable always
362 was "and"ed with 0x0f,
363 * (genLeftShiftLiteral),
365 * (genRightShiftLiteral): added debugging info,
366 * (genrshFour): added comment,
367 * (genRightShift): determined signedness from operand "left"
370 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
372 * src/SDCCicode.c (geniCodeParms),
373 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
374 function pointers, fixed function pointer bugs #861242 and #861896
376 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
378 * device/include/c8051f000.h,
379 * device/include/c8051f120.h,
380 * device/include/c8051f300.h: added header files for Silicon
381 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
383 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
385 * src/SDCCast.c (processParams): added new type flow and restructured
386 (gatherAutoInit): added new type flow
387 (addCast): cosmetic changes
388 (getLeftResultType): added new type flow for array indices, patch
389 provided by Stas, see FR #877103
390 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
391 array index patch by Stas
392 * src/SDCCast.h: added prototype getResultTypeFromType()
394 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
395 * src/pic/glue.c (pic14emitStaticSeg),
396 * src/pic16/glue.c (pic16emitStaticSeg),
397 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
398 for initialization of symbols
399 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
400 * support/Util/SDCCerr.h:
401 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
402 * .version: bumped version number to 2.3.8
403 * device/include/Makefile.in (install),
404 * doc/Makefile (install): changed to 'rm `find ...`' construct to
407 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
409 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
410 Slade Rich fixed an optimization bug
411 * src/pic/pcodepeep.c,
412 * src/pic/pcoderegs.c
413 * doc/Makefile (install): added test for directory
415 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
417 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
418 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
419 * src/pic/ralloc.c (getRegPtr, getRegGpr),
420 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
421 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
422 * as/mcs51/asexpr.c (term),
423 * as/hc08/asexpr.c (term): fixed bug #887146
425 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
427 * src/z80/gen.c (genMult): handle single byte result product
428 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
429 DUMMY_READ_VOLATILE (fixed bug #886367)
431 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
433 * support/regression/tests/libmullong.c: fixed logic, on little endian
434 hosts we ended without a mullong_wrapper()
436 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
438 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
439 virus/worm forged address usage.
441 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
443 Fixed promotion, it should be done on AST level:
444 * src/SDCCast.c (addCast): added promotion to int
445 (decorateType): updated call to upCast()
446 * src/SDCCicode.c (geniCodeLeftShift): removed call to
447 usualUnaryConversions()
449 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
451 * support/regression/tests/literalop.c (mulWrapper): Added a
452 wrapper to remove integer overflow warnings.
454 * support/regression/tests/float_trans.c: Made work on host.
456 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
459 * support/regression/generate-cases.py (main): Changed from inline
462 * doc/Makefile (install): Changed to depth first to get rid of
463 missing directory install warning.
465 * as/Makefile (install-doc): Made work on Mac.
467 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
469 * src/SDCCast.c: added an additional type flow in decorateType() of
470 opposite direction, see feature request #860006; it's enabled at runtime
471 by setting the environment variable SDCC_NEWTYPEFLOW
472 * src/SDCCast.h: changed prototype of decorateType()
473 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
474 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
475 'char' to 'int' can be omitted, if both operands are 'unsigned char';
476 see feature request #877103
477 * src/SDCCval.c: updated call of decorateType()
478 (valBitwise): fixed bug #882876
479 (valMinus): added promotion
480 (valLogicAndOr): result is unsigned
481 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
482 * src/SDCCsymt.c (computeType),
483 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
484 must not cause an unsigned operation
485 * src/pic/glue (pic14emitRegularMap),
486 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
488 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
490 * src/pic/pcode.c (PCodeID): commented out left over debug code
492 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
494 * support/valdiag/tests/overflow.c: added shift tests
502 * src/pic/pcodepeep.c,
503 * src/pic/pcoderegs.c,
505 * src/pic/ralloc.h: applied patch from Slade Rich;
506 added support for multiple code pages and multiple RAM banks on the
507 PIC 14 port. The ASM files now no longer simply assume all the
508 code / RAM are in the same page / bank. This means the linker can
509 safely allocate code/RAM of separate ASM files to different pages/banks.
510 * doc/sdccman.lyx: added Slade's tips
511 * src/mcs51/peeph.def: fixed bug #880768
513 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
515 * src/hc08/ralloc.c (rematStr): fixed bug #879282
516 * src/SDCCast.c (decorateType): fixed bug #880197
518 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
520 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
523 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
524 strtof is not part of C89 and isn't included with Mac OS X.
526 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
528 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
529 shiftL2Left2Result): fixed bug #879326
530 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
531 (genMultOneByte): fixed bug in signed vs unsigned multiplication
532 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
533 address fetch for clr instruction
534 * device/lib/hc08/_mulint.c: created optimized assembly version
535 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
537 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
539 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
540 proposed in FR #877103
542 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
544 * src/SDCCval.c (cheapestVal): added missing checks
545 * src/SDCCicode.c (usualBinaryConversions): fixed condition
546 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
548 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
550 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
553 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
555 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
556 loaded with the linker search paths (-L arguments) and the libraries
557 to be linked with the current source (-l arguments). Changes
558 currently will affect only the pic16 port.
559 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
560 include path the port specific paths and port specific libraries,
561 * gplink command now contains the $3 argument,
562 * src/pic16/device.h,
563 * src/pic16/device.c,: structure PIC_device is made public and
564 renamed to PIC16_device, the same for variable Pics which is renamed
565 to Pics16. Updated all references to them.
566 * src/pic16/glue.c (pic16glue): corrected bug with code
567 initialization which bypassed the variable initializations block.
569 * device/lib/pic16/Makefile.rules: removed --penable-stack from
570 COMPILE_FLAGS and added the --nostdinc option
572 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
574 * device/include/mc68hc908jb8.h: Register defs for another member
575 of the hc08 family. Contributed by Bjorn Bringert - thanks!
577 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
579 Documenting changes from previous commits.
580 * configure.in (version 1.56),
581 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
582 when generating output files to configure the pic16 library,
583 but now I've commented it out, since gputils aren't installed in the
584 SF compile farm, so library won't compile
586 * device/lib/Makefile.in (version 1.56): initially I've added in
587 target 'all' the prerequestive 'model-pic16' so it compiled the
588 pic16 library, but now I've commented it out for the same reasons
590 * added targets 'model-pic16' and 'objects-pic16' to compile the
592 * added target 'port-specific-objects-pic16' to handle the
593 generated libraries and copy them into the build/ directory
594 * added target 'clean-intermediate-pic16' to clean intermediate
595 files into pic16 directory
596 * in target 'installdirs' added line to create directory pic16 in
597 the installation path
599 * device/include/Makefile.in (version 1.11): in target 'install'
600 added lines to copy all header files to installation path,
601 * in target 'installdirs' added line create directory for pic16
602 headers in the installation path
604 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
606 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
609 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
612 * device/lib/configure.in,
613 * device/lib/configure: fixed for autoconf 2.57
615 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
617 * src/z80/main.c (_parseOptions): fixed the portmode= command line
618 option so that it actually works. Made it specific to the z80, since
619 the gbz80 doesn't have these kinds of I/O ports.
621 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
623 * device/include/z180.h,
624 * device/lib/_memcpy.c,
625 * device/lib/_memmove.c,
626 * device/lib/_mulint.c,
627 * device/lib/ser_ir.c,
628 * device/lib/ser_ir_cts_rts.c,
629 * device/lib/_strcmp.c,
630 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
631 * src/z80/main.c (_process_pragma): add support for pragmas bank and
632 portmode; added deprecation warning for bank= and protmode= forms.
633 Also, guard against buffer overflow.
634 * src/z80/gen.c (aopGet): generate better code for sfr banked read
636 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
638 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
639 changed interrupt vector table generation to only emit declared vectors.
640 * device/include/Makefile.in: added missing backslash
641 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
643 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
645 Mainly changes to support compilation of the device libraries
646 * src/pic16/device.c: stack is allocated via symbol and not
647 via literal number. The symbol is placed in the corresponding
648 position of the data ram
649 * (pic16_dump_section): relocatable and absolute uninitialized
650 data are now emitted in sorted order to reduce section naming,
651 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
652 weren't marked as being in the access bank,
654 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
656 Added portion of GNU PIC Library under the directory
657 device/include/pic16 and device/lib/pic16. These files
658 contain the declarations of SFRs for the PIC18Fxx2 devices.
659 The directory is initialized via configure from toplevel.
661 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
663 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
664 the spilllocations to be compared correctly
666 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
668 * src/SDCCast.c (decorateType): fixed bug introduced today
670 2004-01-12 Borut Razem <borut.razem AT siol.net>
672 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
673 doc/sdccman.lyx: upper case pragmas are deprecated
675 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
677 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
678 in simpler and even better code
680 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
682 * src/SDCCicode.c (operandOperation): fixed bug #874819
683 * src/SDCCast.c (decorateType): fixed
684 char foo (unsigned long ul) { return ul > 0; }
686 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
688 * doc/sdccman.lyx: Moved and added some sections, small changes
689 all over. Telling LaTeX to be less strict with word spacing
690 to better keep the right margin. Changed some notes about
691 maintainance of the ports in section 3.2.1 - is it OK like this?
693 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
696 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
697 convilong): modified to inform the pic16 port that builtin functions
700 PIC16 PORT specific changes:
701 * src/pic16/device.c pic16_dump_equates() added,
702 processor registers declared internally by the port are emitted in
703 the translation as equates,
704 * src/pic16/gen.c: inline code is passed unprocessed to the
706 * (pic16_popGetLit2): fnuction modified to take second operand as
707 pCodeOp pointer and not as literal,
708 * (popRegFromIdx): prefixed with pic16_,
709 * (pic16_popCombine2): modified to receive already allocated pCode
711 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
712 * (genFunction): initializes local stack frame and pushes on stack
713 all the registers used by this function,
714 * (genEndFunction): restores all registers from stack and restores
716 * src/pic16/glue.c (pic16emitRegularMap): various changes and
718 * (pic16glue): changed the program startup sequence,
719 * added new dbName code 'A' for functions placed in absolute section
720 * src/pic16/main.c: added function attribute _naked,
721 * added pragma 'code' to place a fnuction at an absolute address,
722 * added command line arguments --debug-ralloc and --pcode-verbose,
723 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
724 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
725 * (pic16_newpCodeOpLit2): modified to take the second operand as
727 * (pic16_printpBlock): modified to emit each function in a separate
729 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
730 UPPER for immediate operands,
731 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
733 * src/pic16/peeph.def: all peepholes with movff are commented out,
734 because there is a problem in the pcode peep optimizer,
735 * src/pic16/ralloc.c: the register allocator can now reuse local
736 function symbols for another function. This saves register usage.
737 * src/pic16/ralloc.h: added flag isLocal in structure regs,
739 Added file src/pic16/NOTES with information about program writing on
740 the current port version.
742 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
744 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
745 and peephole 252 (array access)
747 2004-01-09 Borut Razem <borut.razem AT siol.net>
749 * src/SDCCmain.c : fixed #872250: -l command line defined library
750 files are scanned before standard library files
752 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
754 * src/SDCCast.c (decorateType): fixed bug #874046
756 2004-01-09 Borut Razem <borut.razem AT siol.net>
758 * support/scripts/sdcc.nsi: remove previous installation
760 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
762 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
763 bytes for last interrupt vector (mcs51)
764 * sdcc.spec: fixed typo
766 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
768 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
769 gen51Code): more efficient parameter receive for --model-large
772 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
775 * src/z80/main.c: added missed needLinkerScript flags (more than
776 one port structure defined in these file)
777 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
780 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
782 * src/SDCCmain.c: removed various references to DEFAULT_PORT
783 * src/port.h: added flag needLinkerScript in port->linker
784 structure to inform whether to create a .lnk file or not,
792 * src/z80/main.c: changed appropriately to configure
793 needLinkerScript flag
795 * src/pic16/gen.c (genAddrOf): fixed bug #863624
796 * src/pic/glue.c: added variable udata_section_name to
797 override default uninitialized data segment definition for
798 devices only with SHAREBANK memory (reported from Erik Epetrich)
799 * (pic14emitOverlay): modified to emit a commented overlay segment
800 directive when no overlay data exist
801 * (picglue): modified to emit uninitialized data segment
802 according to udata_section_name
803 * src/pic/main.c (_pic14_parseOptions): added command line
804 options --udata-section-name=[name] to override default
805 udata definition name
806 * modified _linkCmd and _asmCmd to include compiler passed
807 arguments via -W option
808 * src/pic16/main.c: added $l in _asmCmd, changed extension for
809 object file from '.rel' to '.o' in port->linker structure,
810 changed size of fptr from 2 to 3 in port structure
812 2004-01-07 Borut Razem <borut.razem AT siol.net>
814 * support/scripts/sdcc.nsi: update PATH
815 * support/scripts/sdcc.ico: craeted
817 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
819 * device/include/Makefile.in: fix install
820 * doc/Makefile: fix install
822 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
824 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
826 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
827 how the function variable allocation summary is displayed; also
828 include information about variables allocated to the overlay
831 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
833 * as/mcs51/lkmain.c: Help about -Y option
834 * as/mcs51/lkarea.c: Fixed gcc warnings
836 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
838 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
840 * support/valdiag/tests/overflow.c: added
841 * src/SDCCast.c (decorateType),
842 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
845 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
847 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
850 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
852 A python script to validate compiler diagnostic messages. It can be
853 used to verify that sdcc complains about bad c source code and
854 gives a good location of the error.
855 * support/valdiag/Makefile,
856 * support/valdiag/valdiag.py,
857 * support/valdiag/tests/*
859 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
861 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
862 * src/SDCCsymt.c (newEnumType),
864 * support/Util/SDCCerr.c,
865 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
867 * support/regression/tests/enum.c: added test for enum values that
868 require at least 2 bytes of storage.
870 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
872 * src/common.h: added ifndef/define/endif macros
873 around the header file.
874 Bug reported from Jesus Calvino-Fraga
876 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
879 * device/include/Makefile.in: don't install CVS directories
880 * device/lib/Makefile.in: added removal of CVS directories after install
881 * doc/Makefile: fixed install, added local_icons
882 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
883 * src/mcs51/gen.c (genRightShift): fixed bug #870788
884 * src/ds390/gen.c (genRightShift): fixed bug #870788
885 * src/SDCCast.c (decorateType): fixed bug #870781
887 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
889 PIC16 port related changes:
890 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
891 added variable stackPos,
893 * gen.c: genCall, assignResultValue: added support for
894 pushing/retrieving function parameters to/from stack,
895 genFunction,genEndFunction: setup stack frame for the
897 genAddrOf: will be changed according to bug 863624
899 * added files genutils.c and genutils.h which contain gen*
900 debugged and optimised functions extracted from gen.c
902 * glue.c: added variable 'externs' which holds extern symbols,
903 pic16emitRegularMap: is modified to properly handle relocatable
904 symbols under the new scheme,
905 pic16createInterruptVect: is modified
906 pic16printPublics: is modified to emit 'global' assembler directives,
907 added pic16_printExterns to print extern symbols,
908 pic16glue: initializes stack/frame pointer in the beginning of
909 the assembly output. Temporary hack, will be corrected later,
910 because gplink yet does not support stack and SDCC does not
911 yet support a type of crt0.o object to create the final binary.
913 * Removed many lines that contain 8051 legacy code.
914 * The code is finally placed under a 'code' directive.
915 * Added port specific options.
917 * _process_pragma: simplified since now we do not need *special*
918 include file to define SFR registers. But a separate header
919 will be needed. This will be developed later.
920 * _pic16_parseOptions: added, parses port specific options:
921 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
922 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
923 --preplace-udata-with=
925 * _pic16_setDefaultOptions: modified to initialize section names,
926 but hack is temporarly out of order since it needs improvement.
927 * _pic16_genAssemblerPreamble: configuration words are emitted by
928 their address instead of their name. This part is incomplete and
929 supports only the 18Fxx2 devices. Other devices will emit an error
930 during assembly since they do not contain the same set of config
932 * _pic16_genIVT: is modified,
934 * pcode.c: added definitions for some hardware registers that are needed
936 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
937 All PCI entries are updated. Now LFSR is supported.
938 * Removed pic16_pciTRIS is mentioned by mdubuc in source
939 * added pic16_newpCodeOpLit2 to support instructions with
940 two literal arguments
941 * pic16_pCode2str: corrected code that emits assembler instructions
942 with two literal operands and those that have an access bit modifier
943 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
944 this fixes a bug which caused some labels to be lost, when an
945 assembler directive was added, i.e. banksel,
946 * pic16_FixRegisterBanking: improved logic that causes the insertion
948 * InlineFunction: functions that are called once, are not any more
949 inlined. This can be a port option in the future,
951 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
953 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
954 hold the corresponding uninitialized symbols,
955 * pic16_allocProcessorRegister: registers have explicit marked the
957 * pic16_allocInternalRegister: registers are explicit marked as
959 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
960 processing list, so bit registers were lost,
963 * ralloc.h: added field 'accessBank' and original symbol operand
964 in register definition,
965 * removed the field isMapped from register definition,
967 ** Several functions have been removed from various sources:
968 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
969 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
970 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
971 pic16_assignRelocatableRegisters
973 ** others have been introduced:
974 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
975 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
977 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
979 * support/scripts/inc2h.pl: changed definition of BIT_AT
980 to emit 'sbit at' instead of 'bit at'. This was a request.
982 PIC16 port related preliminary changes:
983 * gen.c: prefixed function popRegFromString with
984 pic16_ and all references to it corrected
985 * pcode.c: all pic16_pc_* hardware registers prefixed
987 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
988 * ralloc.c: newReg(): when register is REG_SFR then
990 pic16_allocProcessorRegister(): marks register wasUsed=0
991 pic16_writeUsedRegs(): added a call to assign processor
992 registers via pic16_assignFixedRegisters
994 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
996 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
997 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
998 variables in unused register banks. Also the SSEG is placed
999 wherever there is enough space for it, and IDATA can be anywhere
1000 in internal RAM. For now compile using -Wl-Y[stack_size].
1001 The mem file is different for this option as well, since it
1002 makes no sense of talking about DSEG lenght.
1004 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
1006 * src/SDCClrange.c: fixed bug 869095 that caused segfault
1007 in certain cases, e.g. when ROM assignment, patch provided
1008 from Albert den Haan.
1010 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1012 Many signedness and type propagation fixes:
1013 * src/SDCCicode.c: made geniCodeCast() static
1014 replaced SPEC_ by IS_ (cosmetic)
1015 (operandOperation): fixed div and mod operation
1016 (usualBinaryConversions): added support for promotion of char
1017 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
1018 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
1019 (geniCodeAdd): an array index will stay unsigned, even if promoted
1021 (geniCodeArray): ditto
1022 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
1023 * src/SDCCsymt.c (computeType): added more support for char;
1024 promotion of char is selectable by promoteCharToInt, fixed signedness
1026 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1027 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1028 * src/SDCCval (val*): replaced signedness calculation by
1030 rearranged if-branches (cosmetic)
1031 (valShift): added warning W_SHIFT_CHANGED
1032 (valCompare): fixed problem with different types
1033 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
1034 * support/regression/tests/literalop.c: added many cases
1035 * support/regression/tests/ast_constant_folding.c: changed finally to
1037 * .version: new year, new version: 2.3.7
1038 * src/SDCCmain.c (main): applied patch #866468
1039 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
1040 provided by Scott Bronson
1041 * doc/sdccman.lyx: updated documentation for sdcdb
1042 updated and added chapter tips
1044 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1046 * src/SDCCsymt.h: missing from yesterday's commits
1048 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1050 * src/SDCC.y (struct_or_union_specifier),
1051 * support/Util/SDCCerr.c,
1052 * support/Util/SDCCerr.h: verify that struct & union tags are used
1055 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1057 * src/SDCCglobl.h: missing from yesterday's commits
1059 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1061 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
1062 sft_attributes, struct_declaration, parameter_declaration,
1063 type_name, start_block, declaration_list),
1064 * src/SDCC.lex (check_type): support redefinition of typedef names
1066 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1068 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
1069 aligned xdata arrays. Erik helped me with the if clause.
1071 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1073 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
1076 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1079 * src/SDCCast.c (newAst_),
1081 * src/SDCCicode.c (ast2iCode, newiCode),
1083 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
1084 expr, statement, expression_statement, selection_statement,
1085 iteration_statement, expr_opt, jump_statement): foundation for tracking
1087 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
1090 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1092 * support/Util/SDCCerr.c,
1094 * src/SDCCast.c (createCase, createDefault, decorateType),
1095 * src/SDCClabel.c (labelUnreach),
1096 * src/SDCC.y (labeled_statement, jump_statement): More improvements
1098 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
1099 (with thanks to Stas Sergeev)
1100 * device/include/time.h,
1101 * device/lib/time.c (CheckTime): suppress unreachable code warning
1103 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1105 * src/SDCCast.c (createIvalCharPtr),
1106 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
1108 * support/regression/tests/nullstring.c: tests for these two bugs
1110 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1112 * support/Util/SDCCerr.h,
1113 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
1114 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
1115 about storage class and 'at' used inside struct or union
1116 * src/SDCCBBlock.c (iCodeFromeBBlock),
1117 * src/SDCCcse.c (ifxOptimize),
1118 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
1119 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
1120 printIval, emitStaticSeg, emitOverlay),
1121 * src/SDCClabel.c (deleteIfx),
1122 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
1123 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
1124 gatherAutoInit, processParms),
1125 * support/Util/SDCCerr.h,
1126 * support/Util/SDCCerr.c (werrorfl): Support for better error location
1127 reporting for post-parse errors.
1129 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1131 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
1132 implicit casts via union; they don't work on big endian systems
1133 (possible fix for bug #861138)
1135 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1137 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
1138 * src/mcs51/main.c: fixed the fix for bug #737001
1140 2003-12-15 Borut Razem <borut.razem AT siol.net>
1142 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
1144 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1146 * support/makebin/makebin.c: put output in binary mode
1148 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1150 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
1151 xdata and data memory on startup. Set the environment variable
1152 SDCC_NOGENRAMCLEAR to disable this.
1153 * src/mcs51/peephole.def,
1154 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
1155 (allows non-interrupt and interrupt code to safely compete for a resource
1156 without the non-interrupt code having to disable interrupts)
1158 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1160 * src/SDCCicode.c (geniCodeAdd),
1161 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
1162 with valFromType if type might be a pointer and host is big endian).
1163 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
1164 types, not just integer types.
1165 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
1166 multiply defined with mismatching "at" address.
1168 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1170 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
1171 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
1172 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
1173 with embedded nulls (fixed bug #753752)
1175 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1177 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
1178 Apparently this did not see much testing (endless loop)
1180 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1182 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
1184 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1186 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
1187 gracefully handle NULL memmap pointers
1189 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1191 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
1192 instead of deleting the iCode when an operand is volatile
1193 * src/z80/gen.c (genDummyRead),
1194 * src/mcs51/gen.c (genDummyRead),
1195 * src/ds390/gen.c (genDummyRead),
1196 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
1198 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
1199 * src/SDCC.y: fixed bug #850420
1201 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1203 Applied z80 i/o port patch from Peter Townson and fixed some operators
1204 to better handle operands in A register.
1205 * device/include/z180.h
1211 * src/z80/peeph-z80.def
1215 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1217 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
1219 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1221 * device/lib/hc08/_mullong.c: Removed extra #endif
1223 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1225 * sim/ucsim/hc08.src/inst.cc,
1226 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
1228 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
1229 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
1230 * device/include/stdarg.h: fixed varargs for hc08
1231 * device/lib/Makefile.in,
1232 * device/lib/hc08/Makefile,
1233 * device/lib/hc08/_mulint.c,
1234 * device/lib/hc08/_mullong.c: fixed some endian problems
1236 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1238 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
1239 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
1240 * device/lib/_gptrget.c,
1241 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
1243 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1245 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
1246 * src/SDCCast.c (astErrors): fixed bug #846007
1247 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
1249 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1251 * src/SDCCast.c (decorateType): disabled a transformation I added in
1252 revision 1.188 (access to fields of a structure at an absolute address);
1253 it breaks with bitfields, extern declarations, and gcse analysis.
1254 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
1255 could be assigned through a pointer, so don't complain.
1256 * src/SDCCast.c (astErrors),
1258 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
1260 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
1262 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
1263 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
1264 output of __config directives, since gpasm now supports them
1265 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
1266 pre-processor macro, i.e. -DMCU=p18f452
1267 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
1268 and modified to handle 'cast' icode similarly to '=' icode
1269 * src/pic16/device.h (typedef struct PIC_device): added field
1270 'extMIface' to indicate that chip has external memory interface
1271 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
1272 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
1275 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1277 * src/SDCC.y (pointer): fixed bug #846006
1278 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
1279 * src/SDCCast.c (decorateType): fixed bug #846009
1280 * src/ds390/peeph.def,
1281 * src/ds390/gen.c (genAnd, genOr),
1282 * src/mcs51/peeph.def,
1283 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
1285 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1287 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
1294 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
1298 * src/SDCCbitv.c: added function to free a bitvector
1300 * src/SDCClrange.c: added function to recompute the liveranges
1302 * src/ds390/ralloc.c,
1303 * src/hc08/ralloc.c,
1304 * src/mcs51/ralloc.c,
1306 * src/pic16/ralloc.c,
1307 * src/xa51/ralloc.c,
1308 * src/z80/ralloc.c: recompute the liveranges after register packing
1310 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
1312 * src/SDCCloop.c (newInduction): fixed bug #845630
1314 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1316 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
1317 inadvertantly left behind from my 2003-11-12 change
1319 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1321 Updated headers I neglected to commit yesterday.
1325 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1327 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
1328 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
1329 * src/SDCCopt.c (eBBlockFromiCode),
1330 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
1331 the creation of the key hash table from the sequencing so it can be used
1332 earlier (for some GCSE bug fixes still pending)
1334 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1336 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
1337 * support/regression/tests/addsub.c: testing genPlus shortcut
1339 2003-11-15 Borut Razem <borut.razem AT siol.net>
1341 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
1343 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1345 * src/SDCCcse.c (cseBBlock): fixed bug #527779
1346 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
1347 ordering is immaterial.
1348 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
1350 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1352 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
1353 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
1354 (SIGSEV) of bug #840381
1355 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
1356 unlink new file before rename if new and old filenames are the same)
1358 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1360 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
1361 uninitialized variables) for the mcs51. Set environment variable
1362 SDCC_GENRAMCLEAR to test.
1363 xdata initialization slightly shorter
1365 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1368 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
1369 #838241 & 780691 (basicly the same bug)
1370 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
1371 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
1373 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
1375 * src/SDCCmain.c (linkEdit): "fix" #834252
1377 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1379 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
1381 * src/SDCC.y: fixed bug #819403
1383 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1385 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
1386 the reentrant attribute.
1387 * src/hc08/gen.c (genPackBits): added missing stack readjustment
1388 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
1390 * src/SDCCast.c (decorateType): fixed bug with storage class not being
1391 updated during pointer dereference; f.e. ~(((char *)1)*) was being
1392 erroneously reduced to a literal.
1393 * src/hc08/ralloc.c (packRegisters, rematStr),
1394 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
1397 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1399 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
1400 * doc/sdccman.lyx: changed from 'article' to 'book'
1401 * doc/Makefile: readded test_suite_spec and cdbfileformat
1403 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
1405 * device/include/stdlib.h: include malloc.h to comply with ANSI
1406 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
1408 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1410 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
1411 * doc/clean.mk: also remove *.out files
1412 * doc/sdccman.lyx: some additions, larger top/bottom margins
1414 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1416 * src/SDCC.y: fixed bug #837365
1417 * support/regression/tests/bitopcse.c
1418 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
1419 a symbol (might be valop instead)
1420 * device/lib/Makefile.in: added errno.c to HC08SOURCES
1421 * device/lib/clean.mk: added hc08 to the cleaning list
1423 2003-11-04 Borut Razem <borut.razem AT siol.net>
1425 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
1427 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1428 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
1429 malloc is declared in standard stdlib.h
1431 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1433 * device/lib/hc08/Makefile: need to clean .rel not .o files
1434 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
1436 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1446 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
1447 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
1448 tests (which uses the port's oclsExpense function)
1454 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
1456 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1458 * src/SDCCcse.c (ifxOptimize),
1459 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
1460 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
1461 deleting the IFX iCode.
1462 * src/hc08/ralloc.c: reduced unneeded slocs
1463 * src/hc08/gen.c: fixed bug in asmopToBoolean
1465 2003-11-04 Borut Razem <borut.razem AT siol.net>
1467 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
1468 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1469 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
1470 transferred to configure
1472 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
1474 Use headers defined in the C[++] standards:
1475 * sim/ucsim/gui.src/serio.src/fileio.cc
1476 * sim/ucsim/gui.src/serio.src/frontend.cc
1477 * sim/ucsim/gui.src/serio.src/main.cc
1478 * sim/ucsim/gui.src/serio.src/posix_signal.cc
1479 * support/Util/NewAlloc.c
1485 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1487 * Added MSVC projects for hc08 assembler and linker:
1488 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
1489 /as/hc08/link_hc08.dsp
1491 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
1493 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
1495 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
1497 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
1499 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1501 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
1503 2003-10-31 Borut Razem <borut.razem AT siol.net>
1505 * support/cpp2/cpplib.h,
1506 support/cpp2/cpplib.c,
1507 support/cpp2/cpplex.c,
1508 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
1509 to switch _asm block preprocessing on / off. Default is
1510 #pragma preproc_asm +
1512 2003-10-31 Borut Razem <borut.razem AT siol.net>
1514 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
1515 when outputting comment blocks (when executed with -C option) and
1516 _asm (SDCPP specific) blocks
1518 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1520 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
1522 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
1524 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
1526 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
1528 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
1529 * src/SDCCast.c (decorateType): fixed bug #832664
1531 2003-10-31 Borut Razem <borut.razem AT siol.net>
1533 * support\cpp2\cpplex.c: fixed for SDCPP:
1534 comments(when executed with -C option) and _asm blocks
1535 were included even if they where in skipped #if block.
1536 Applied solution from GCC cpp 3.3.2
1538 2003-10-31 Borut Razem <borut.razem AT siol.net>
1540 * src/SDCC.lex: sdcc now understands both formats:
1541 '# <line_number> <file_name>' and
1542 '#line <line_number> <file_name>'
1543 * support/cpp2/cppmain.c: sdcpp now generates the standard
1544 '# <line_number> <file_name>' instead of former
1545 '#line <line_number> <file_name>'
1547 2003-10-30 Borut Razem <borut.razem AT siol.net>
1549 * support/cpp2/cpphash.h,
1550 * support/cpp2/cpplib.h
1551 * support/cpp2/cpplex.c,
1552 * support/cpp2/cppmain.c,
1553 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
1555 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1557 Fixed a number of problems revealed by bug #827883.
1558 * src/SDCCloop.c (loopInvariants): Spill location of the
1559 result operand should be recomputed if extracted from
1560 a loop. Also, don't extract assignments of an iTemp
1562 * src/SDCCast.c (isConformingBody): loop reversal should
1563 not occur if the control variable is involved with a
1564 relational operator.
1566 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1568 * .version: bumped to 2.3.6 to reflect the big improvements
1569 made by Erik and Klaus. Thanks!
1571 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
1573 Replaced the livrange code.
1574 * src/SDCClrange.c: added new LR code
1576 * src/SDCCBBlock.h: removed remainig parts from old LR code
1577 * src/ds390/ralloc.c,
1578 * src/ds390/gen.c: minor fixes to make it work with new code
1580 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1585 * src/hc08/ralloc.c: Fix various warnings related to the hc08
1586 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
1587 (tweaked fix for bug #818696)
1589 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1591 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
1593 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1596 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
1597 * src/mcs51/gen.c (gencjneshort),
1598 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
1599 more efficient (per Scott Bronson's suggestion)
1601 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1603 Extended the semantics of the critical keyword to include
1604 individual statements. See RFE #827755 and #799831
1609 * support/Util/SDCCerr.c
1610 * support/Util/SDCCerr.h
1615 2003-10-19 Borut Razem <borut.razem AT siol.net>
1617 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
1619 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1621 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
1623 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
1624 and predecrement operand is displayed
1626 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1628 * src/SDCCval.c (valMinus): fixed bug #826041
1630 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1632 Some hc08 related updates that I missed earlier
1633 * sim/ucsim/stypes.h
1634 * support/regression/ports/hc08/spec.mk
1636 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1638 New target "hc08" for the Motorola 68hc08 family of micros
1646 * sim/ucsim/hc08.src/*
1647 * sim/ucsim/configure.in
1648 * src/ucsim/configure
1649 * sim/ucsim/packages_in.mk
1652 * device/include/mc68hc908qy.h
1654 * device/lib/Makefile.in
1655 * support/regression/ports/hc08/*
1656 * support/regression/Makefile
1658 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1660 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
1662 * src/ds390/gen.c (genCast): fixed bug #821957
1664 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1666 * device/lib/logf.c: "fixed" overlay bug
1667 * support/regression/ports/host/spec.mk: added m library
1668 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
1669 * support/regression/tests/float_trans: added (for Eric)
1671 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
1673 * src/mcs51/gen.c (genCpl): fixed bug
1674 http://sf.net/mailarchive/message.php?msg_id=6263915
1676 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
1678 * src/SDCCast.c (decorateType): added extended constant folding
1679 * src/SDCCsymt.c (computeType): cleanup
1680 * src/SDCCval.c (valShift): minor optimization
1681 * support/regression/tests/ast_constant_folding.c: added
1683 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1685 * src/SDCCmain.c: removed some unintended changes
1687 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1689 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
1690 * src/z80/gen.c: fixed part of bug #817589
1691 * src/SDCCsymt.c (checkFunction): fixed bug #817895
1693 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
1695 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
1706 * src/ds390/ralloc.c
1708 * src/mcs51/ralloc.c
1710 * src/pic16/ralloc.c
1713 * src/z80/gen.c: removed unused label "release:"
1715 2003-10-06 Borut Razem <borut.razem AT siol.net>
1717 * src/SDCC.lex: removed definition of unused variables
1718 save_optimize and save_options
1720 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1722 * clean.mk: removed '=' in "-maxdepth=1"
1723 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
1724 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
1726 2003-10-06 Borut Razem <borut.razem AT siol.net>
1728 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
1729 my_unput() replaced by unput()
1731 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
1733 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
1734 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
1735 type-punned pointer will break strict-aliasing rules"
1736 Old LR behaviour is again default; Klaus' LR can be choosen by
1737 defining the environment variable LRKLAUS
1741 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
1742 * clean.mk: fixed removal of files in bin/CVS/
1743 * device/lib/clean.mk: fixed removal of directories small and large
1744 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
1746 * src/SDCCval.c: removed superflous test for pedantic
1748 2003-10-05 Borut Razem <borut.razem AT siol.net>
1750 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
1751 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
1752 message "unmatched #pragma SAVE and #pragma RESTORE"
1754 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1756 * doc/sdccman.lyx: various additions and updates (interrupts, inline
1757 assembly, critical functions, atomic, nojtbound)
1759 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
1761 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
1767 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1770 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1772 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1774 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1775 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
1776 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
1778 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1780 * src/z80/gen.c (genRet): fixed bug #524753
1781 * src/z80/gen.c (genCast): fixed internal error on cast from
1783 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
1784 fix for bug #477835 to the z80
1785 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
1786 for tracking iCodes in the peephole optimizer for z80
1788 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1790 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
1791 the other part of bug #814548
1792 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
1794 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
1796 * src/SDCCcse.c: fixed part of bug #814548
1798 2003-09-28 Borut Razem <borut.razem AT siol.net>
1800 * src/asm.c: rewrite of printILine() to use temporary file instead
1802 * src/xa51/main.c: commented out declaration of int rewinds
1804 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1806 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
1808 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1810 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
1811 * src/asm.c (printILine): Fixed bug #811015
1813 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1815 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
1818 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1820 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
1821 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
1822 to correctly handle general case of AOP_PAIRPTR
1823 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
1825 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1827 * src/mcs51/ralloc.c (fillGaps),
1828 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
1829 register positioning bug)
1831 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
1833 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
1835 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1837 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
1838 genCodePointerGet, genGenPointerGet, genFarPointerSet,
1839 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
1840 (ralloc doesn't intentionally do this now, but perhaps later)
1841 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
1842 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
1843 register positioning bugs (Fixed bug #762602 and #795325)
1844 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
1846 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
1847 lines that --i-code-in-asm generates
1849 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1851 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
1852 trying to fclose a FILE* that was already closed.
1854 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1856 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
1857 of const struct should be treated as if const themselves)
1859 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
1861 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
1863 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1865 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
1866 Unix (/n) and DOS (/r/n) line terminations.
1868 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1870 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
1873 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1875 * src/mcs51/gen.c (genFunction, genEndFunction),
1876 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
1877 and restore of EA so that stack offsets to parameters are
1878 correct when using both critical and reentrant/stack-auto.
1879 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
1880 size (can be triggered in error if sloc is shared between
1881 different sized objects)
1882 * device/include/float.h: fixed macros to explicitly use
1883 unsigned long where needed
1885 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
1887 Feature req. 799831: added code to allow nesting of critical functions
1888 * src/mcs51/gen.c (genFunction, genEndFunction)
1889 * src/ds390/gen.c (genFunction, genEndFunction)
1891 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1893 * src/SDCCsymt.c (sclsFromPtr),
1895 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
1896 support for standard C idiom of memory mapped variables; for
1897 example, *((xdata int*)0x1234) = 1 is now internally equivalent
1898 to xdata int at 0x1234 tempvar = 1.
1899 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
1900 provided by Akiya ISHIDA
1902 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
1904 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
1905 * src/SDCCval.c (constVal): added reduction from int to char
1906 * src/SDCCval.c (valMult, valDiv): fixed sign handling
1907 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
1908 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
1910 * support/regression/tests/shifts.c: fixed
1912 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1914 * src/z80/gen.c (genXor): Fixed bug #805445
1916 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1918 Fixed bug #621531 (const & volatile confusion in the type chain).
1919 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
1920 refer to the const or volatile state of the pointer itself.
1932 * src/pic16/ralloc.c
1933 * support/regression/tests/const.c
1935 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1937 When checking for duplicated modules, use absolute paths
1938 instead of relative paths. Files changed:
1943 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1945 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
1947 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1949 * device/include/string.h: added size_t typedef, changed
1950 prototypes to use size_t, eliminated separate reentrant and
1951 non-reentrant declarations, added _memmove declaration
1952 * device/lib/_memcpy.c: changed to use size_t instead of int,
1953 changed /4 to >>2 to avoid division library call
1954 * device/lib/_memcmp.c,
1955 * device/lib/_memset.c,
1956 * device/lib/_strncat.c,
1957 * device/lib/_strncpy.c,
1958 * device/lib/_strncmp.c: changed to use size_t instead of int
1959 * device/lib/_memmove.c: new file (fixed bug #772294)
1960 * device/lib/Makefile.in: added _memmove.c
1961 * device/lib/z80/asm_strings.s: fixed bug #772290
1962 * support/regression/tests/bitfields.c: attempt to fix host assertion
1963 failure on amd64-unknown-linux2.2
1965 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1967 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
1968 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
1969 * as/z80/asmain.c (main): fixed bug #801766
1971 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
1973 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
1976 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1978 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
1979 reported in bug #800609
1981 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
1983 * Top header beautifications in src/pic16 directory:
1984 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
1985 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
1986 pcoderegs.h, ralloc.c, ralloc.h
1987 * main.c: added top header and GPL license notice
1988 * pcode.c: fixed the if-conditional warning
1990 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
1992 * device/lib/_mullong.c: replaced int by short for gcc
1994 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1996 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
1997 and JUMPTABLE iCodes properly now (worked by accident before)
1998 * src/mcs51/gen.c (leftRightUseAcc),
1999 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
2000 iCode properly now. Use getSize instead of nRegs since a & b
2001 aren't part of the nRegs tally.
2003 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
2005 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
2006 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
2007 before instructions that use the _STATUS register
2009 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
2011 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
2012 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
2013 fetching of the pointer
2014 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
2015 copied from genNearPointerSet()
2016 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
2017 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
2018 If they pop r0/r1 they must be called in the opposite order than aopOp().
2019 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
2020 (resp. --stack-auto), prepared for --xstack
2022 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2024 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
2026 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
2028 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
2029 these ports have their own __sdcc_external_start()
2031 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
2033 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2034 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
2035 type for bits was changed. It resulted in bit variables becoming
2036 global, which is not permitted in PIC 14 assembly output.
2038 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2040 * doc/sdccman.lyx: various additions and updates. Rearranged sections
2042 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2044 Z80 and MCS51 linkers complaint if a public symbol is defined
2045 in more than one library module:
2049 * as/mcs51/Makefile.in
2051 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2053 A few small changes that speed up the peephole optimizer.
2057 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2059 Try to make the peephole optimizer smarter by maintaining
2060 an association between the assembly source code and the
2061 iCodes that originated them. Put this information to use
2062 with a new peephole rule condition "notVolatile" so that
2063 the rules can be aggressive yet still safe.
2068 * src/mcs51/peeph.def
2070 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2074 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
2075 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
2076 if the left or right operand symbols have the accuse flag set.
2078 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2080 Changed the type of the result of the ! (NOT) operator to char;
2081 previously it returned the same type as the source. This allows
2082 us to eliminate all the genFloatNot functions (all of its target
2083 implementations were very buggy) since !float can use the same
2086 * src/SDCCicode.c (ast2iCode): ! returns char
2087 * src/mcs51/gen.c (genNot, genNotFloat),
2088 * src/ds390/gen.c (genNot, genNotFloat),
2089 * src/z80/gen.c (genNot, genNotFloat),
2090 * src/pic/gen.c (genNot, genNotFloat),
2091 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
2093 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
2095 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2096 1. Interrupt would not compile properly. Ensure PCLATH register is saved
2097 during interrupts. Ensure WSAVE is located at a shared bank address.
2098 2. Fixed page selection in some places
2099 3. Fixed BTFSS/C to where necessary use registers directly and not simply
2100 the registers name strings.
2101 4. Fixed "signed / unsigned compare" compiler warnings.
2102 5. The PIC port manages its own allocation of the general purpose
2103 registers, but makes no attempt to reuse them. As a result when
2104 compiling it soon runs out of general purpose registers. Some
2105 additional code was added to the files pcode.c and device.c to walk
2106 through the function call tree and rename the registers so that they
2116 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
2117 genPlus() & genMinus() when the result is the same as left or right
2119 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2121 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
2123 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2125 Made bitfield a distinct type from bit so that bitfields
2126 convert as per ANSI C and bits retain their traditional
2127 boolean style behaviour. Implemented bitfield support in
2135 * src/ds390/gen.c: bit v bitfield split
2136 * src/z80/gen.c: New support for bitfields
2137 * support/regression/tests/bitfields.c: reenabled z80,
2140 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2142 Rules 246.x, 247.x relate to bitfields, the others speed up
2143 access to xdata mapped I/O devices.
2145 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
2147 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2149 Cleaned up genPackBits and genUnpackBits and added two helper
2150 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
2151 for literal assignments in genPackBits (thanks to Frieder for
2157 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2159 Fixed bug #748310 (pointer to function type mishandled when the
2160 function name is omitted). Also fixed a SIGSEGV when a function
2161 attribute (reentrant, etc) is used on a non-function or on a
2162 function but misplaced before the parameter list.
2164 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
2166 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
2167 * support/Util/SDCCerr.h,
2168 * support/Util/SDCCerr.c: Added func attr misuse error msg
2170 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2172 Fixed bug #787649 by anonymous
2173 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
2174 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
2176 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2178 Fixed numerous bitfield problems.
2180 * src/SDCC.y: More bitfield related error checking
2182 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
2183 * support/Util/SDCCerr.h,
2184 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
2185 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2186 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2187 * support/regression/tests/bitfields.c: tests added
2189 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2191 Made the constant following the "interrupt" keyword optional. If
2192 omitted, the function will not automatically be given an entry
2193 in the interrupt vector table (similar to #pragma NOIV, but
2194 less syntacticly kludgy). The interrupt number is also now
2195 range checked. Also fixed a bug in the high order bit example
2202 * support/Util/SDCCerr.c
2203 * support/Util/SDCCerr.h
2206 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2208 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
2209 * src/SDCCicode.c (operandOperation): rewritten some ops
2210 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
2211 * src/SDCCsymt.c (computeType): literals are handled the same way as any
2213 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
2214 be re-activated by defining REDUCE_LITERALS)
2215 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
2216 unsigned, but are signed by default
2217 * src/SDCCval.c (constVal): rearranged
2218 * src/SDCCval.c (valMod): preliminary fix
2219 * src/SDCCval.c (valCastLiteral): use TYPE_* types
2220 * support/regression/literalop.c: added, work in progress
2222 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2224 Generate warnings for useless declarations like "char data;"
2225 that don't do what new users expect.
2228 * support/Util/SDCCerr.h
2229 * support/Util/SDCCerr.c
2231 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
2233 * src/SDCCval.c (valMult): fix overflow detection of negative int
2235 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2237 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
2239 Changes to support big endian targets:
2252 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
2254 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
2255 * device/lib/time.c: fixed warning "integer overflow in expression"
2257 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
2259 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
2260 * src/SDCCval.c (constVal): changed default to signed; hex and octal
2261 constants are unsigned; added recognition of "u" flag for unsigned
2262 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
2263 * src/SDCCval.c (valDiv, valMod): fixed signdness
2264 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
2265 signedness of modulo, left and right shift
2266 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
2267 * support/Util/SDCCerr.h: added warning W_INT_OVL
2268 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
2269 * src/SDCCast.c (ast_print): improved output of constants
2271 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2273 Fixed some warnings when building with MSVC:
2286 * support\cpp2\cpplib.c
2290 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
2292 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
2294 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2296 * support\librarian\clean.mk: Do not remove Makefile.
2297 * support\librarian\Makefile: added.
2299 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2301 Added librarian to MSVC build:
2304 * support\librarian\librarian.dsp
2306 'configure' not needed for librarian, removed:
2307 * support\librarian\configure
2308 * support\librarian\configure.in
2309 * support\librarian\config_in.h
2310 * support\librarian\Makefile.in
2312 Hopefully these ones built the librarian and the rest of sdcc properly:
2314 * Makefile.common.in
2316 Messed up 'configure', so revert to previous version:
2320 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
2322 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
2323 there, while the mantissa of a double is "only" 53 bits wide.
2325 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2327 Adding sdcclib to the build. MSVC project coming soon.
2328 Files added/changed:
2330 * support\librarian\clean.mk
2331 * support\librarian\configure
2332 * support\librarian\configure.in
2333 * support\librarian\config_in.h
2334 * support\librarian\Makefile.bcc
2335 * support\librarian\Makefile.in
2336 * support\librarian\sdcclib.c
2339 * Makefile.common.in
2343 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2345 Linker now complaints if linked modules have conflicting options, for
2346 example, one compiled using --model-large and another one compiled with
2347 --model-small. The following files were modified:
2369 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2371 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
2372 as/mcs51/lklibr.c: Generate a warning when a library is not found.
2374 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
2376 * src/z80/mappings.i: fix _mul[us][int,long] entries
2378 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2380 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
2382 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2384 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
2385 * support/regression/tests/bitopcse.c: added
2393 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2395 added support for new library format to z80, gbz80 linkers:
2401 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2403 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
2404 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
2406 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
2408 added DUMMY_READ_VOLATILE:
2417 * src/SDCCcse.c (algebraicOpts): many improvements
2418 * src/SDCCcse.h: removed algebraicOpts()
2419 * src/SDCCicode.c (picDummyRead): added
2421 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2423 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
2424 "Insufficient space in data memory".
2426 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2428 * src/mcs51/gen.c: fixed bug #771358
2429 * src/z80/gen.c: fixed bug #759087
2431 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
2433 * src/pic16/glue.c: minor cleanup by Vangelis
2435 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2437 * device/include/regc515c.h: fixed #758477
2438 * device/lib/_gptrget.c: saving some cycles in generic pointer get
2439 * device/lib/_gptrput.c: saved a few bytes
2440 * my tab spacing is 8, yours too?)
2441 * device/lib/_ser.c: process RX bytes earlier than TX bytes
2442 * device/lib/serial.c: process RX bytes earlier than TX bytes
2443 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
2445 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2447 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
2449 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2451 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
2453 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
2455 * device/lib/Makefile.in: bad fix, reverted to 1.43
2457 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
2459 * device/lib/Makefile.in: added missing z80 object files
2461 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
2463 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
2464 pic16 progress by Vangelis:
2479 * pic16/pcodepeep.c:
2482 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2484 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
2486 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2488 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
2489 added gbz80 build to MSVC project.
2490 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
2491 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
2492 from 8051 stuff and setup so it links using a .lnk file.
2494 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2496 * support/librarian/sdcclib.c: sdcc librarian.
2497 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
2500 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2502 * as/mcs51/lkmain.c: properly handle extensions in function afile.
2504 2003-07-02 Borut Razem <borut.razem AT siol.net>
2506 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
2507 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
2508 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
2509 src/xa51/main.c, src/z80/main.c:
2510 virtualization of glue() function: each port has it's own glue function,
2511 which is accessed by do_glue function pointer in PORT.general structure
2513 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
2515 * DS800C400 fun, improved ROM interface and tinibios.
2517 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
2519 * More support for DS80C400. Now includes beginning of interface to ROM.
2521 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
2523 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
2525 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2527 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
2529 2003-06-19 Borut Razem <borut.razem AT siol.net>
2531 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
2533 2003-06-19 Borut Razem <borut.razem AT siol.net>
2535 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
2536 fixed Z80 port - crt0.o: cannot open.
2538 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
2540 * support/Util/MySystem.c (merge_command): revert bad fix
2542 2003-06-18 Borut Razem <borut.razem AT siol.net>
2544 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
2546 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2548 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2549 option --use-stdout sends errors to stdout instead of stderr.
2551 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
2553 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
2555 2003-06-15 Borut Razem <borut.razem AT siol.net>
2557 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
2558 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
2559 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
2560 fixed width array of pointers replaced with sets;
2561 multiple include and lib paths ared transferred to preprocessor and linker
2562 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
2563 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
2564 fixed width array of pointers
2565 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
2566 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
2567 fixupPath(), getPathDifference()
2568 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
2569 fixed width array of pointers
2571 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
2573 * src/pic16/ralloc.c: fix warnings
2574 * src/pic16/pcode.c: fix warning
2576 2003-06-10 Scott Dattalo <scott AT dattalo.com>
2578 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
2579 know all the details, but essentially this set of changes enable
2580 the pic16 port to generate movff instructions and generate assembler
2585 * src/pic16/pcode.c:
2586 * src/pic16/device.c:
2588 * src/pic16/pcode.h:
2589 * src/pic16/pcoderegs.c:
2590 * src/pic16/ralloc.c:
2591 * src/pic16/ralloc.h:
2593 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2595 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2596 added option --vc, so sdcc errors and warnings are compatible with
2597 Microsoft Visual Studio.
2599 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2601 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
2602 device/lib/libfloat.lib: added atof function.
2604 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2606 * doc/sdccman.lyx: updated to Lyx 1.3
2607 * doc/cdbfileformat.lyx: updated to Lyx 1.3
2608 * doc/test_suite_spec.lyx: updated to Lyx 1.3
2609 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
2611 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
2613 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
2615 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2617 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
2618 additions to the "related tools/documentation" section
2620 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
2622 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
2624 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
2626 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
2627 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
2629 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
2631 * doc/sdccman.lyx: fix double dash and other minor things
2632 * doc/Makefile: fix double dash
2634 2003-05-28 Karl Bongers(patches from Martin Helmling)
2635 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
2636 condition and ignore commands.
2638 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2640 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
2641 is in parts still quite out of date, I did changes as far as I felt makes sense
2642 for a non-native english speaker.
2643 Please feel free to add to the manual or to correct my changes.
2644 * doc/Makefile: undid touching the date of intermediate tex files.
2646 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2648 * doc/sdccman.lyx: Manual has an index now
2650 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
2652 Finalize muluint/mulsint and mululong/mulslong merging:
2653 * device/lib/_mulint.c
2654 * device/lib/_mullong.c
2655 * device/lib/gbz80/mul.s
2656 * device/lib/gbz80/stubs.s
2657 * device/lib/z80/mul.s
2658 * device/lib/z80/stubs.s
2659 * src/SDCCsymt.c (initCSupport)
2661 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2663 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
2664 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
2665 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
2666 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
2669 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2671 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
2672 the regression tests I'm not brave enough to enable 245.b, 245.c
2673 * doc/sdccman.lyx: added latex preamble for hyperref package.
2674 Using pdflatex this will give you a hyperlinked pdf file with
2675 bookmarks. (prepend '%' before /usepackage if this breaks something)
2677 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2679 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
2681 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
2683 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
2685 2003-05-21 <johan AT balder>
2687 * src/SDCCglue.c (printIval): fixed bug #739934
2689 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2691 Applied patch from bug 737905 (renamed yylineo to mylineno):
2698 * src/pic16/pcode.c: Cleaned warnings
2699 * src/pic16/pcodeflow.c: Cleaned warnings
2700 * src/pic16/pcoderegs.c: Cleaned warnings
2702 2003-05-19 Scott Dattalo <scott AT dattalo.com>
2704 * src/pic16/pcode.c: Cleaned warnings
2705 * src/pic16/pcodepeep.c: Cleaned warnings
2706 * src/pic16/ralloc.c: Cleaned warnings
2708 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2710 * doc/sdccman.lyx: fixed bug 739745
2711 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
2713 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
2715 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
2716 it can be defined with CFLAGS when running configure
2717 * src/SDCCmain.c: fixed compiling + linking with object files
2719 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
2721 * configure.in: configure for pic16 port,
2722 added --disable-pic16-port
2723 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
2724 * src/SDCCmain.c: linkOptions is changed to set *,
2725 added if/endif conditional macros to remove options help
2726 messages from optionsTable when a port is not configured, added
2727 support for the PIc16 port in the ports table, when executing
2728 the compiler with no port specified on command line, a default
2729 port is selected with the new macro DEFAULT_PORT which is
2730 defined in port.h, in setDefaultOptions() linkOptions is removed
2731 from initialization assignment, since now it is a set,
2732 parseCmdLine uses setParseWithComma for linkOptions, in
2733 linkEdit() linkOptions are accessed with new function indexSet()
2734 which returns the i'th item of a set variable. See SDCCset.c, in
2735 linkEdit() when calling buildCmdLine(), added linkOptions as
2736 last argument. Now users can pass arguments to gplink via the
2737 -Wl option, main() uses pic16glue() to glue up pic16 programs
2738 * src/SDCCpeeph.c: various changes to support pic16
2739 * src/SDCCset.c: added function void *indexSet(set *, int) to
2740 return the i'th item of the set
2741 * src/SDCCset.h: added function prototype for indexSet()
2742 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
2743 * src/clean.mk: added pic16 in CLEANALLPORTS variable
2744 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
2745 added macro DEFAULT_PORT
2746 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
2747 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
2749 * src/pic16/glue.c: commented out some error producing lines
2750 * src/pic16/main.c: __config directives are commented out to stop
2751 gpasm complaining and test the linkage with gplink, _linkCmd and
2752 _asmCmd changed to be more gplink and gpasm friendly
2753 * src/pic16/peeph.def: peep rule 3 is commented out, since it
2754 produced an error when parsed, peep rule 12 is added to utilize
2755 movff, but it is commented out since the pCode does not support
2756 yet a command with 2 address arguments
2758 2003-05-18 <johan AT balder>
2760 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2761 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2762 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
2764 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
2765 Added feature to script commands from file.
2767 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
2769 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
2770 * src/SDCCutil.c: include ctype.h for win32
2772 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
2774 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
2776 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
2778 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
2779 Fixed so you can set breakpoints prior to run, run does not stop
2780 on entry now. Add tbreak. Other enhancements and fixes for use
2783 2003-05-12 Borut Razem <borut.razem AT siol.net>
2785 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
2787 2003-05-11 Borut Razem <borut.razem AT siol.net>
2789 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
2790 the path of bin directory, so that PATH is the only env. variable, which has to be set
2791 in case of standard installation.
2792 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
2793 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
2794 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
2796 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2798 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
2799 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
2800 temp files are in the port dir; clean the gen/test directory when
2801 generating new test.c
2802 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
2803 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
2804 * support/regression/tests/zeropad.c: added
2806 2003-05-09 <johan AT balder>
2808 * src/SDCCglue.c: fixed bug #597940
2810 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
2812 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2813 cache sfr, optimize next,step, fix off by one sourceline,
2814 support ddd list function.
2815 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
2817 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2819 * support/regression/HTMLgen.py: added compare_s2f()
2820 * support/regression/Makefile: redo 1.27
2821 * support/regression/generate-cases.py: redo 1.5
2823 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
2825 * support/regression/tests/float.c: workaround 33 bit hex constant
2826 * support/regression/tests/simplefloat.c: fix division for host
2828 2003-04-29 Scott Dattalo <scott AT dattalo.com>
2830 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
2831 that tame's the PIC's over-aggressive optimizer.
2833 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2835 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
2838 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
2840 Initial support for DS80C400. "Hello world" runs on TINIm400
2843 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
2845 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2846 * Some notes on ddd usage added in debugger/README
2847 Martin Helmling adding more features and fixes for ddd GUI debugger.
2848 Code added for nexti, stepi, up, down, and other adjustments.
2850 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
2852 * src/pic/pCodepeep.c non-wildcard asmops are now handled
2853 * src/pic/peeph.def Added two rules to optimize carry manipulation
2854 * src/pic/* removed debug printfs
2856 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
2858 * debugger/mcs51/cmd.c: added header newalloc.h
2860 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
2862 * as/Makefile: new EXEEXT
2863 * as/z80/Makefile: remove trailing slash of BUILDIR
2864 * as/z80/clean.mk: new EXEEXT
2865 * Makefile.common.in: add to CFLAGS (and others), don't replace it
2866 * support/cpp2/Makefile.in: new EXEEXT
2867 * src/pic/glue.c (pic14emitRegularMap): fixed warning
2869 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
2871 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
2872 EXEEXT was introduced to fix all related problems with targets
2873 "clean", "install" and "uninstall"; a couple of further flaws
2874 especially with "clean" have been fixed too
2875 * as/mcs51/Makefile.in
2880 * debugger/mcs51/Makefile.in
2881 * debugger/mcs51/clean.mk
2883 * link/z80/Makefile.in
2886 * packihx/Makefile.in
2888 * sim/ucsim/Makefile
2889 * sim/ucsim/clean.mk
2890 * sim/ucsim/avr.src/Makefile.in
2891 * sim/ucsim/avr.src/clean.mk
2892 * sim/ucsim/s51.src/Makefile.in
2893 * sim/ucsim/s51.src/clean.mk
2894 * sim/ucsim/xa.src/Makefile.in
2895 * sim/ucsim/xa.src/clean.mk
2896 * sim/ucsim/z80.src/Makefile.in
2897 * sim/ucsim/z80.src/clean.mk
2898 * sim/ucsim/main_in.mk
2899 * sim/ucsim/packages_in.mk
2900 * sim/ucsim/gui.src/Makefile.in
2901 * sim/ucsim/gui.src/serio.src/Makefile.in
2902 * sim/ucsim/gui.src/serio.src/clean.mk
2905 * support/cpp2/Makefile.in
2906 * support/cpp2/clean.mk
2907 * support/makebin/Makefile
2908 * support/makebin/clean.mk
2909 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
2910 * doc/sdccman.lyx: --program-suffix no longer needed
2912 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
2914 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
2915 Martin Helmling added support for ddd GUI debugger.
2916 Code added to display assembly, set variables, and other commands
2917 to interface to ddd.
2919 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
2921 * as/Makefile: fix target clean
2922 * as/clean.mk: fix target clean
2923 * as/z80/clean.mk: fix target clean
2925 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
2927 * Makefile.common.in: added AT EXEEXT AT
2928 * configure.in: removed all mingw32 stuff
2929 * configure: rebuilt from configure.in
2930 * doc/sdccman.lyx: updated section "installation"
2931 * support/scripts/sdcc_mingw32: adapted to configure
2932 * support/scripts/sdcc_cygwin_mingw32: added
2934 2003-04-22 Scott Dattalo <scott AT dattalo.com>
2936 * src/pic Added object file support for the PIC port
2937 * src/pic Applied patch from Craig Franklin (this started the object file support)
2938 * src/regression Updated the PIC regression tests for object files
2940 2003-04-20 Borut Razem <borut.razem AT siol.net>
2942 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
2943 lklex.c: In function `getfid':
2944 lklex.c:203: warning: array subscript has type `char'
2945 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
2946 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
2947 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
2948 stack handling macros
2950 2003-04-19 Borut Razem <borut.razem AT siol.net>
2952 * "handling space characters in file path" task:
2953 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
2954 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
2955 * support/Util/MySystem.h: make it self-sufficient
2956 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
2957 src/z80/main.c, sdcc/as/mcs51/lklex.c:
2958 handling space characters in file path
2959 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
2960 (it will be used by assemblers, which have their own includes, e.g. gpasm)
2961 * support/Util/MySystem.c: handling space characters in executable's path
2963 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
2965 * as/z80/Makefile: fix permanent rebuild of z80
2966 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
2967 * support/regression/tests/bitfields.c: added Johan's bitfields.c
2969 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
2971 * src/SDCCopt.c: add special case optimization to replace modulo by
2972 a power of two with a bitwise AND.
2974 2003-04-18 <johan AT balder>
2976 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
2978 2003-04-17 <johan AT balder>
2980 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
2981 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
2983 2003-04-13 Borut Razem <borut.razem AT siol.net>
2985 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
2986 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
2987 fixed mingw problem in adl_NORMALIZE_PATH
2989 2003-04-12 Borut Razem <borut.razem AT siol.net>
2991 * fixed "#pragma SAVE/RESTORE can not be nested":
2992 * src/SDCC.lex: reworked pragma handling functions
2993 * sdcc/src/SDCCglobl.h: reworked stack handling macros
2994 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
2996 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
2998 * src/SDCCutil.c (pathEquivalent): defined but not used
2999 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
3000 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
3001 * configure: rebuilt from configure.in
3002 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3003 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3004 * device/include/Makefile.in: replace sdcc_datadir
3005 * device/lib/Makefile.in: replace sdcc_datadir
3006 * Makefile.common.in: add LDFLAGS from configure
3007 * packihx/Makefile.in: use LDFLAGS
3008 * src/Makefile.in: use LDFLAGS
3009 * support/cpp2/Makefile.in: add LDFLAGS from configure
3010 * support/makebin/Makefile: use LDFLAGS
3011 * .version: bumped version number to 2.3.5
3013 2003-04-12 Borut Razem <borut.razem AT siol.net>
3015 * completed "different paths" task:
3016 * src/SDCCmacro.c: fixed bug in handling quotes
3017 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
3018 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
3020 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3022 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
3024 2003-04-11 kevin Vigor <kevin AT vigor.nu>
3026 * ds390/gen.c ds390/peeph.def: fix bug 706781
3028 2003-04-11 Borut Razem <borut.razem AT siol.net>
3030 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
3032 2003-04-10 Scott Dattalo <scott AT dattalo.com>
3034 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
3035 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
3036 set - this bit used to not be set...).
3037 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
3038 bad code in PIC Port
3039 * src/regression/and2.c added to test bug 609268
3040 * src/regression/Makefile added and2.c to regression test
3043 2003-04-08 <johan AT CP255758-A>
3045 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
3046 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
3047 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
3049 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
3051 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
3053 * support/cpp2/Makefile.in: fix bug #487815
3054 * configure: rebuilt from configure.in
3055 * Makefile.common.in: docdir changed, new path suffixes
3056 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3057 * sdcc_vc_in.h: reflect changes from sdccconf.h
3058 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
3059 * src/SDCCutil.h: remove BINDIR hack
3060 * doc/sdccman.lyx: update new path hierarchy
3062 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3064 * src/SDCCpeeph.c: added okToRemoveSLOC test
3066 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3068 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
3070 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3072 * src/SDCCpeeph.c: added labelIsReturnOnly test
3073 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
3075 2003-04-05 <johan AT balder>
3077 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
3078 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
3079 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
3080 * src/SDCCast.c: fixed a warning
3081 * src/SDCCast.h: fixed a warning
3082 * src/SDCCicode.c (operandFromAst): fixed a warning
3084 2003-04-04 <johan AT balder>
3086 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
3087 * src/SDCCast.c (decorateType): fixed bug #715076
3088 * src/SDCC.y: fixed bug #702907
3090 2003-04-03 <johan AT balder>
3092 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
3093 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
3094 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
3095 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
3096 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
3098 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
3100 * _decdptr.c: fix return values
3101 * _gptrget.c: fix return values
3102 * _gptrgetc.c: fix return values
3103 * _gptrput.c: fix return values
3104 * _mulint.c: fix return values
3105 * as/z80/Makefile: fix 'make -j' problem
3107 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
3109 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
3110 * configure.in: big cleanup, updated to autoconf 2.5x
3111 * configure: rebuilt from configure.in
3112 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3113 * sdcc_vc_in.h: reflect changes from sdccconf.h
3114 * doc/Makefile: fixed a flaw in "make install"
3116 2003-04-02 <johan AT balder>
3118 * src/ds390/gen.c (genCmp): no comments
3119 * src/mcs51/gen.c (genCmp): no comments
3120 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
3121 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
3123 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
3125 * support/regression/generate-cases.py: place generated file in given sub directory
3126 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
3127 * support/regression/Makefile: improvements for 'make -j';
3128 side effect: it's simpler and faster now
3130 2003-03-31 Borut Razem <borut.razem AT siol.net>
3132 * src/z80/main.c: link-{port} and as-{port} defined without path
3133 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
3135 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
3137 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
3139 2003-03-30 Borut Razem <borut.razem AT siol.net>
3141 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
3142 changed type of list parameter to set
3143 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
3144 * src/port.h: changed type of do_assemble() parameter to set
3145 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
3146 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
3147 definition of "cppoutfilename" macro with NULL value in preProcess()
3148 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
3149 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
3150 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
3151 replaced with set *binPathSet
3152 * shash_add() deallocates the item, if allready exsists, before adding the new one
3153 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
3155 2003-03-30 Scott Dattalo <scott AT dattalo.com>
3157 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
3158 a nested for loop bug in the PIC port
3159 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
3162 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
3164 * support/Util/dbuf.h: remove C++ stuff to make it portable
3166 2003-03-28 Borut Razem <borut.razem AT siol.net>
3168 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
3169 literal strings in stringLiteral()
3170 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
3171 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
3174 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
3176 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
3178 2003-03-26 <johan AT balder>
3180 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
3181 * src/ds390/gen.c (saveRegisters): catched symbol abuse
3182 * src/SDCCast.c (decorateType): fixed " -v < 3"
3184 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3186 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
3187 Added Lenny Story's debug infrastructure changes:
3188 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
3189 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
3190 * src/cdbFile.c: added
3191 * src/SDCCdebug.c: added
3192 * src/SDCCdebug.h: added
3193 * src/SDCCast.c (createFunction)
3194 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
3195 * src/SDCCmain.c (parseCmdLine, main)
3196 * src/SDCCmem.c (redoStackOffsets)
3197 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
3200 * src/avr/gen.c (genAVRCode)
3201 * src/ds390/gen.c (gen390Code)
3202 * src/mcs51/gen.c (gen51Code)
3203 * src/pic/gen.c (genpic14Code)
3204 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
3205 * src/xa51/gen.c (genXA51Code)
3206 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
3208 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3210 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
3211 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
3213 2003-03-22 <johan AT balder>
3215 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
3217 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
3219 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
3220 * doc/cdbfileformat.lyx: added, written by Lenny Story
3221 * doc/Makefile: added cdbfileformat.lyx
3222 * doc/clean.mk: added cdbfileformat.lyx
3224 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
3226 * src/mcs51/peeph.def: fix bug #705773
3228 2003-03-20 <johan AT balder>
3230 An sfr/sbit can have an "at #" AND an initializer
3231 * src/SDCCsymt.c (checkSClass):
3232 * src/SDCCmem.c (allocGlobal):
3233 * src/SDCCmem.c (allocLocal):
3234 * src/SDCCast.c (createBlock):
3236 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
3238 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
3240 2003-03-16 <johan AT balder>
3242 Undid the hackup of const and volatile, the problem is much bigger
3244 * src/SDCCast.c:1.171
3245 * src/SDCCglue.c:1.138
3246 * src/SDCCicode.c:1.146
3247 * src/SDCCsymt.c:1.150
3248 * src/SDCCval.c:1.65
3250 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
3252 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
3253 * src/ds390/gen.c (genAddrOf): fixed bug #704087
3255 2003-03-13 <johan AT balder>
3257 Hackup const and volatile modifiers in type chains a bit:
3259 * src/SDCCast.c:1.169
3260 * src/SDCCglue.c:1.136
3261 * src/SDCCicode.c:1.143
3262 * src/SDCCsymt.c1.146
3263 * src/SDCCsymt.h1.59
3264 * src/SDCCval.c:1.63
3266 2003-03-12 <johan AT balder>
3268 * src/SDCCBBlock.h: more LRH debugging junk
3269 * src/SDCCcflow.h: more LRH debugging junk
3270 * src/SDCCloop.c: more LRH debugging junk
3271 * src/SDCC.y (struct_declaration): fixed bug #697590
3272 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
3273 * src/ds390/gen.c (aopForRemat): fixed bug #700031
3274 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
3276 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3277 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
3278 test function names must now match exactly).
3279 * src/SDCCcse.c: added special case in findCheaperOp to allow
3280 extending a short integer. Makes less awful code for bug 700121 test case.
3282 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3284 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
3285 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
3287 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3289 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
3290 actually called (operandsNotEqual() was called for all
3291 operandsNotEqualX tests).
3293 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3295 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
3296 with shorter literals. Fixes bug 700121.
3298 2003-03-11 <johan AT balder>
3300 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
3302 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
3304 * src/SDCCloop.c (mergeRegions): an evil beast is dead
3305 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
3307 2003-03-10 Borut Razem <borut.razem AT siol.net>
3309 * src/SDCCmain.c: pipe preprocessor's output
3310 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3311 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3312 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3313 which closes all pipes in pipeSet set
3314 * src/SDCCset.c: free deleted item in function deleteSetItem()
3315 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3316 moved from z80 to src subproject
3317 * .version: increased version number to 2.3.4
3319 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
3321 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
3322 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
3323 * support/regression/ports/xa51/spec.mk: fix typo
3325 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
3327 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
3329 2003-03-09 Borut Razem <borut.razem AT siol.net>
3331 * src/SDCCmain.c: pipe preprocessor's output
3332 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3333 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3334 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3335 which closes all pipes in pipeSet set
3336 * src/SDCCset.c: free deleted item in function deleteSetItem()
3337 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3338 moved from z80 to src subproject
3340 2003-03-09 Borut Razem <borut.razem AT siol.net>
3342 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
3343 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
3344 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
3345 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
3346 * src/SDCCglobl.h: unification of WIN32 native definitions
3348 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3350 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
3352 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3354 * src/configure.in: check for endianess (even while cross-compiling)
3355 * src/configure: check for endianess (even while cross-compiling)
3356 * src/configure_in.h: check for endianess (even while cross-compiling)
3357 * src/avr/gen.c: remove old endianess stuff
3358 * src/mcs51/gen.c: remove old endianess stuff
3359 * src/ds390/gen.c: remove old endianess stuff
3360 * src/pic/gen.c: remove old endianess stuff
3361 * src/pic/genarith.c: remove old endianess stuff
3362 * src/pic/glue.c: fix endianess check
3363 * src/pic16/gen.c: remove old endianess stuff
3364 * src/pic16/genarith.c: remove old endianess stuff
3365 * src/pic16/glue.c: fix endianess check
3366 * src/xa51/gen.c: remove old endianess stuff
3367 * src/z80/gen.c: fix endianess check
3368 * src/SDCCglue.c: fix endianess check
3369 * src/ds390/peeph.def: fix bug 700036
3371 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3373 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
3374 * src/configure: find appropriate data-types on host for SDCC's int and long
3375 * src/configure.in: find appropriate data-types on host for SDCC's int and long
3376 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
3377 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
3379 2003-03-07 <johan AT balder>
3382 some minor cleanups before the big shot
3383 OP_DEFS and OP_USES now use Kevin's protection
3384 new option --nolabelopt
3395 * src/ds390/ralloc.c:
3396 * src/mcs51/ralloc.c:
3398 * src/xa51/ralloc.c:
3401 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
3403 * src/pic/pcode.c (get_op): fix 64 bit warnings
3404 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
3405 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
3406 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
3407 * support/regression/tests/malloc.c: fix 64 bit warnings
3409 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
3411 * src/mcs51/gen.c (genMinus): fixed bug 696436
3413 2003-03-02 Borut Razem <borut.razem AT siol.net>
3415 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
3417 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
3419 * configure.in: test for mkstemp
3420 * sdccconf_in.h: add HAVE_MKSTEMP
3422 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
3424 * device/include/ctype.h: removed warning while using --stack-auto
3425 * device/include/malloc.h: removed warning while using --stack-auto
3426 * device/include/string.h: removed warning while using --stack-auto
3428 2003-02-23 Borut Razem <borut.razem AT siol.net>
3430 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
3431 because NDEBUG is defined (see man assert)
3432 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
3434 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3436 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
3437 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
3439 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3441 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
3442 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
3444 2003-02-18 <johan AT balder>
3446 * as/mcs51/asmain.c (asmbl): module can start with a digit
3447 * as/z80/asmain.c (asmbl): module can start with a digit
3449 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
3451 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
3452 * src/asm.c: fix pipe() for Mingw32
3454 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
3456 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
3457 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
3458 make -V work again; --c1mode reads now from stdin
3459 * doc/sdccman.lyx: added --c1mode
3460 * support/Util/SDCCerr.c: new messages for c1 mode
3461 * support/Util/SDCCerr.h: new messages for c1 mode
3462 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
3464 2003-02-15 <johan AT balder>
3466 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
3468 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
3470 * doc/sdccman.lyx: Environment variables, -o and other minor things
3472 2003-02-14 <johan AT balder>
3474 * src/xa51/main.c: before anyone really tries to use it :)
3476 * Install doc's in share/sdcc/doc
3477 * removed some obsolete files
3478 * Do a proper make distclean and uninstall
3479 M Makefile.common.in
3482 M device/include/Makefile.in
3483 M device/lib/Makefile.in
3486 M sim/ucsim/doc/Makefile.in
3489 R src/xa51/peeph.rul
3490 M support/cpp2/Makefile.in
3491 M support/makebin/Makefile
3494 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
3496 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
3498 2003-02-10 Borut Razem <borut.razem AT siol.net>
3500 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
3501 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
3502 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
3503 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
3504 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
3505 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
3506 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
3507 src/z80/Makefile.bcc: Borland Makefile cleanup
3508 * as/z80/Makefile.bcc: Added Borland Makefile
3509 * support/cpp2/borland.h: Removed
3511 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
3513 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
3514 * src/SDCC.lex: new pragma NOIV
3515 * src/SDCCglobl.h: new pragma NOIV
3516 * src/SDCCmem.c: new pragma NOIV
3518 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3520 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
3522 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3524 * src/SDCCmain.c: signal handling is switched off by --debug
3525 * doc/Makefile: small fix for install; use clean.mk again
3526 * doc/clean.mk: clean *.pdf and *.html too
3528 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
3530 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
3531 * device/lib/printfl.c: fix a ds390 bug by making it portable
3532 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
3533 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
3534 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
3535 * debugger/mcs51/cmd.c: converted multi-line string literals
3536 * sim/ucsim/globals.cc: converted multi-line string literals
3537 * src/SDCCmain.c: introduced signal handler to remove temp files
3538 * doc/Makefile: small tweaks, implement clean
3539 * doc: removed generated files
3541 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3543 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
3544 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
3545 Address Record is not correctly generated for DS390."
3547 2003-02-02 Borut Razem <borut.razem AT siol.net>
3549 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
3550 * as/mcs51/asm.h: fixed compilation with Borland C
3551 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
3552 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
3553 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
3554 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
3555 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
3556 src/z80/Makefile.bcc: delete $(LIB) only if exist
3557 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
3559 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
3561 * device/include/malloc.h: introduced NULL
3562 * device/include/string.h: introduced NULL
3563 * device/include/stdlib.h: introduced NULL
3564 * device/lib/_memcpy.c: removed NULL
3565 * device/lib/_strcat.c: removed NULL
3566 * device/lib/_strchr.c: removed NULL
3567 * device/lib/_strcmp.c: removed NULL
3568 * device/lib/_strcpy.c: removed NULL
3569 * device/lib/_strcspn.c: removed NULL
3570 * device/lib/_strlen.c: removed NULL
3571 * device/lib/_strncat.c: removed NULL
3572 * device/lib/_strncmp.c: removed NULL
3573 * device/lib/_strncpy.c: removed NULL
3574 * device/lib/_strpbrk.c: removed NULL
3575 * device/lib/_strrchr.c: removed NULL
3576 * device/lib/_strspn.c: removed NULL
3577 * device/lib/_strstr.c: removed NULL
3578 * device/lib/_strtok.c: removed NULL
3579 * device/lib/malloc.c: removed NULL, include own header
3581 2003-02-02 <johan AT balder>
3583 * 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
3584 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
3585 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
3586 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
3587 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
3588 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
3590 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3592 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
3595 2003-02-01 <johan AT balder>
3597 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
3599 2003-01-31 <johan AT CP255758-A>
3601 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
3603 2003-01-30 <johan AT balder>
3605 * src/SDCCBBlock.c: automatic bug detection
3606 * src/SDCCicode.c: automatic bug detection
3608 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3610 * src/SDCCglobl.h: now --xram-size 0 works
3611 * src/SDCCmain.c: now --xram-size 0 works
3613 2003-01-29 <johan AT balder>
3615 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
3617 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3619 * as/mcs51/aslink.h: Added options --xram-size and --code-size
3620 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
3621 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
3622 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
3623 * src/SDCCglobl.h: Added options --xram-size and --code-size
3624 * src/SDCCmain.c: Added options --xram-size and --code-size
3626 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
3628 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
3629 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
3631 2003-01-27 <johan AT balder>
3633 * src/SDCC.y: fixed bug #613764
3635 2003-01-26 <johan AT balder>
3637 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
3638 * src/SDCCsymt.h: fixed bug #673374
3639 * src/SDCCglue.c: fixed bug #661910
3640 * src/SDCCast.c: fixed bug #458099 and 673374
3642 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
3644 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
3645 * as/mcs51/strcmpi.h: added
3646 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
3647 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
3648 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
3649 * as/mcs51/assym.c: strcmpi -> as_strcmpi
3650 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
3651 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
3652 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
3653 * as/mcs51/Makefile.aslink: new module strcmpi
3654 * as/mcs51/Makefile.asx8051: new module strcmpi
3655 * as/mcs51/Makefil.bcc: new module strcmpi
3656 * as/mcs51/Makefile.in: new module strcmpi
3657 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
3659 2003-01-26 <johan AT balder>
3661 * src/SDCCglue.c: reverted back to 1.124
3662 * src/SDCCast.c: reverted back to 1.156
3663 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
3665 2003-01-25 <johan AT balder>
3667 * src/SDCCglue.c: A better fix for bug #661910
3668 * src/SDCCast.c: A better fix for bug #661910
3669 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
3671 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3673 * src/Makefile.in: remove spawn.o
3674 * src/SDCCmain.c: remove spawn.h
3675 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
3676 * src/spawn.c: removed
3677 * src/spawn.h: removed
3678 * support/regression/ports/ds390/spec.mk: link with -r
3680 2003-01-24 <johan AT CP255758-A>
3682 * src/ds390/gen.c (aopOp): fixed bug #667458
3683 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
3684 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
3685 (createIvalCharPtr): an ival doesn't always have a storage class anymore
3687 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3689 * src/mcs51/peeph.def: better assembler identation by Frieder
3690 * src/mcs51/gen.c: better assembler identation by Frieder
3692 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
3694 * as/z80/string.h: removed for gcc 3.2
3695 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
3696 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
3698 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3700 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
3701 * src/SDCCpeeph.c (replaceRule): fix bug #663503
3702 * support/regression/Makefile: separate temp files for ports
3703 * support/regression/generate-cases.py: separate temp files for ports
3704 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3705 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3707 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3709 * moved tinitalk to device/examples/ds390
3711 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
3713 * as/mcs51/lkmem.c: rflag is for DS390
3714 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
3715 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
3716 (linkEdit): move mem- and map-files the same way as ihx-files
3717 * src/z80/main.c (_setDefaultOptions): removed --generic
3718 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
3719 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
3720 * src/pic/glue.c (picglue): --c1mode works again
3721 * src/pic16/glue.c (pic16glue): --c1mode works again
3722 * src/asm.c (printCLine): fix #660034
3724 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
3726 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
3727 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
3728 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
3729 * as/mcs51/lkmem (summary): better fix for sp problem
3730 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
3731 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
3732 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
3733 remove --stack-after-data
3735 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
3737 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
3738 * src/SDCCutil.c (join): ugly bug: missing '\0'
3739 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
3741 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3743 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
3745 * src/pic/main.c (_asmCmd): gpasm supports -o
3746 * src/z80/main.c: more general macros
3747 * device/lib/Makefile.in: remove intermediate files
3749 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3751 * .version: Bumped version number to 2.3.3
3752 * src/SDCCBBlock.c: new option -o
3753 * src/SDCCglobl.h: new option -o
3754 * src/SDCCglue.c: new option -o
3755 * src/SDCCmain.c: new option -o
3756 * src/asm.c: new option -o
3757 * src/ds390/main.c: new option -o
3758 * src/pic/glue.c: new option -o
3759 * src/pic/pcode.c: new option -o
3760 * src/pic/ralloc.c: new option -o
3761 * src/pic16/glue.c: new option -o
3762 * src/pic16/pcode.c: new option -o
3763 * src/pic16/ralloc.c: new option -o
3764 * src/z80/main.c: new option -o
3765 * device/lib/Makefile.in: use -o
3766 * support/regression/ports/ds390/spec.mk: use -o
3767 * support/regression/ports/gbz80/spec.mk: use -o
3768 * support/regression/ports/mcs51/spec.mk: use -o
3769 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
3770 * support/regression/ports/z80/spec.mk: use -o
3771 * support/regression/ports/ucz80/spec.mk: use -o
3772 * support/regression/ports/xa51/spec.mk: use -o
3773 * support/regression/fwk/lib/timeout.c: fix usage string
3775 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
3776 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
3778 2003-01-07 <johan AT balder>
3780 * src/SDCCast.c (decorateType): fixed bug #600035
3782 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
3783 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
3784 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
3785 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
3786 * src/pic/pcode.c: outcommented unused variable to remove warnings
3787 * src/pic/ralloc.c: outcommented unused variable to remove warnings
3789 2003-01-06 <karl AT turbobit.com>
3790 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
3793 2003-01-06 <johan AT balder>
3795 * src/SDCCicode.c: fixed array add
3797 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
3798 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
3799 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
3801 2003-01-04 <johan AT balder>
3803 * src/SDCCval.c (getNelements): fixed the initialized array of structures
3805 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3806 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
3808 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3809 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
3810 * support/regression/tests/bug-524697.c: fit mem usage into 8032
3812 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3813 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
3815 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
3816 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
3818 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3819 * src/mcs51/main.c: removed {bindir}{sep} from aslink
3821 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3823 * in \sdcc\as\mcs51\ changed these files in order to create an
3824 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
3825 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
3826 following files to include the previous two files: aslink.dsp,
3827 Makefile.aslink, Makefile.bcc, and Makefile.in.
3829 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
3830 .adb instead of .cdb
3832 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3834 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
3835 value from option --iram-size.
3837 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3839 * \sdcc\as\mcs51\lklist.c: added boundary check before using
3842 2002-09-18 <wiml AT hhhh.org>
3844 * SDCClrange.h: exposed setFromRange() and setToRange()
3845 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
3846 packRegsForAccUse() (bug 542397)
3847 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
3848 multiple times and emitting the fetch operations more than once
3849 added aopGetUsesAcc() function to allow binary operators to
3850 fetch their operands in the correct order; made genMinus() emit
3851 compact code for X = LITERAL - Y
3853 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3854 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
3855 sprintf() in line 1267.
3857 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3858 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
3861 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3862 Changes to aslink (All the changes are marked with 'JCF'):
3864 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
3867 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
3868 area BSEG. Also moves, if possible, the DATA area down into the internal
3869 ram so more space is available.
3871 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
3874 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
3875 not bytes. Function summary() which creates a memory usage summary
3876 file with extension .mem. Reports of overlaping stack and small stack
3877 size. If the space for the stack is less than 16 bytes aslink trows a
3880 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
3881 the 8051. Option 'y' for memory summary output file.
3883 Changes to sdcc (All the changes are marked with 'JCF'):
3885 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
3887 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
3888 overlaying area for it (uses RegBankUsed[4]).
3890 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
3891 bank zero as used by default. By default aslink locates the stack
3892 (equivalent to --stack-after-data). Pass option 'y' to aslink for
3893 the creation of the .mem file. Delegates the allocation of data area
3894 to aslink (it is not longer 0x30 by default). If --stack-loc passes
3895 the begining of the stack area to aslink.
3897 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
3898 glue() in SDCCglue.c creates an area for it.
3900 2002-09-03 Borut Razem <borut.razem AT siol.net>
3901 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
3902 sdcc/src/pic/glue.c:
3903 introduced atexit() handler for teporay files removal in case of
3904 errors, assertions, ...
3906 2002-08-29 Borut Razem <borut.razem AT siol.net>
3907 * sdcc/support/cpp2/auto-host_vc_in.h:
3908 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
3909 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
3910 Maybe there is a similar problem with BORLANDC? It should be checked!
3912 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
3913 corrected improper use of assert: the assignment to clr variable was done inside the assert.
3914 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
3915 was not executed, and the compiler (cl) launched a warning:
3916 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
3918 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
3919 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
3921 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
3922 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
3924 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3925 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
3926 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
3927 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3928 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
3929 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
3930 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
3931 - added Release configuration in VS projects
3932 - review of compiler an linker options
3933 - VC .exe files are generated in bin_vc directory, not to interfere
3934 with binaries generated from other projects (cygwin, mingw, bcc ...)
3936 * sdcc/src/yacc.dsp: added
3938 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
3939 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
3940 and insert the version number definitions from .version
3942 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
3944 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
3945 added - genarate auto-host.h using auto-host_vc_in.h as template
3948 removed from CVS, generated automatically
3950 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
3951 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
3953 2002-08-11 Borut Razem <borut.razem AT siol.net>
3954 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
3956 2002-08-10 Borut Razem <borut.razem AT siol.net>
3957 * src/SDCCmain.c (main):
3958 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
3959 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
3960 The consequence was that some temporary files were not removed.
3963 unification of code in functions tempfilename() and tempfile():
3964 function tempnam() is defined in Visual Studio 6.0 and .NET
3966 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
3968 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3969 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
3970 - removed compiler command line option /WX: Treats all warnings as errors
3971 - update a list of source files, included into the project
3973 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3974 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
3975 changed project type to Generic Project so that can be correcly converted to VS.NET project
3977 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
3979 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
3981 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
3983 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
3984 added return 0 statements after assert() to make compiler happy
3986 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
3987 added newline in the def file to keep MSC compiler satisfied
3989 * sdcc/src/z80/gen.c:
3990 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
3991 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
3992 - solved MSC error in function aopDump()
3994 * sdcc_vc.h: define PREFIX as "\\sdcc"
3996 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
3997 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
3999 2002-06-22 Scott Dattalo <scott AT dattalo.com>
4000 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
4001 - Rewrote the register banking algorithm.
4002 - Added pCode live-range analysis to registers (for now, only non-used and
4003 singly-used registers optimized away)
4005 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
4007 * 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.
4009 2002-05-10 Scott Dattalo <scott AT dattalo.com>
4010 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
4012 2002-04-22 Michael Hope <michaelh AT vroom>
4014 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
4016 * configure.in (DD_COPT): Added include support required for gbdk.
4018 * .version: Bumped version number just to increase it.
4020 * src/SDCCmain.c: Added -nostdinc to the default options.
4022 2002-04-15 Michael Hope <michaelh AT vroom>
4024 * device/lib/z80/printf.c (sprintf): Added.
4026 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
4028 * src/z80/peeph.def: Added transpose redundent load rule.
4030 * src/z80/main.c: Added force callee saves for jaune.
4032 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
4034 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
4036 2002-03-28 Johan Knol <johan AT balder>
4038 * src/SDCCval.c: fixed bug #532436
4040 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4042 Added "char *Processor" field to the port structure.
4045 Added -p option. Allows port dependent processor to be specified.
4048 Initialized the new field char *Processor field to NULL in all ports
4051 Compiler generated registers for interrupt context saving
4052 were not getting allocated.
4054 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
4057 Fixed left shift. Will promote the left side of a left shift
4058 if a) left shifting more than size of operand or b) when assigned
4059 to something size > size of left side
4061 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4063 tons of changes. Register allocation has been
4064 rewritten. Added customization for the various PICs. Flow
4065 analysis is restructured. ...
4071 Added. device.c is a PIC port hack to accomodate variations
4074 2002-03-13 Michael Hope <michaelh AT vroom>
4076 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
4078 2002-03-04 johanknol <johanknol AT manik>
4080 * /src/SDCCval.c: fixed
4082 const unsigned char arr[][2] = { { 0, 1 } };
4083 t18.c:1: error: Initializer element is not constant
4085 2002-03-04 bela <bela AT manik>
4087 * /device/include/mcs51reg.h:
4088 ds89c420 register definition update
4090 2002-03-03 <johan AT FRIJA>
4092 * support/Util/SDCCerr.c: did something, but don't no why anymore
4094 * support/regression/tests/bug-524691.c: made it a little less shy
4096 * src/SDCCast.c (decorateType): fixed bug #524697
4098 * src/SDCCast.c: made some lineno improvements
4100 * src/SDCCval.c (getNelements): changed warning to error
4102 * src/SDCCglue.c (printIvalArray): changed warning to error
4104 * src/SDCCicode.c: fixed a warning for mingw
4106 * src/SDCCast.c (decorateType): fixed the << promotion for ops
4108 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
4110 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
4112 * src/ds390/peeph.def:
4113 Added some more peephole rules
4115 * src/ds390/gen.c: Various fixes & enhancements
4117 * src/SDCClrange.c, src/SDCClrange.h:
4118 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
4120 * src/ds390/ralloc.c:
4121 various fixes & enhancements (ds390) specific
4123 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
4124 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
4127 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
4129 2002-03-02 <johan AT FRIJA>
4131 * src/SDCCast.c (decorateType): fixed bug #524708
4133 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
4135 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
4137 2002-03-01 Michael Hope <michaelh AT vroom>
4139 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
4141 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
4143 2002-03-01 <johan AT FRIJA>
4145 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
4147 * src/SDCCast.c (decorateType): fixed bug #524209
4149 * src/SDCCval.c (valNot): fixed bug #524195
4151 2002-02-26 <johan AT balder>
4153 * src/xa51/gen.c: fixed a warning
4155 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
4157 * src/SDCCast.c (decorateType): fixed bug #522534
4159 2002-02-23 <johan AT balder>
4161 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
4163 2002-02-22 <johan AT balder>
4165 * src/SDCCast.c: fixed bug #514865
4167 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
4169 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
4171 * sdcc/src/SDCCloop.c:
4172 Previous fix was not good. basic blocks that have "break" or "return" are
4173 not really partof a loop , but live ranges used in these blocks should
4174 be live thru the entire loop, so set partOfLoop but don't add them to
4177 2002-02-21 <johan AT FRIJA>
4179 * src/SDCCcse.c: fixed bug #514308
4181 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
4184 Fixed BUG #519583. If a conditional block ended in a return/break
4185 statement inside a loop, it was not being considered part of the loop.
4187 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
4189 2002-02-10 Karl Bongers <karl AT turbobit.com>
4192 Fixed up SDCDB debugger somewhat. Updated debugger/README
4193 with lots of comments and notes.
4195 * device/examples/test2.c:
4196 Fix bug, "red" variable not being initialized(compiler complained).
4198 * device/examples/Makefile, examples/test3.c:
4199 Add Makefile in device/examples folder, compiles test3.c
4200 for use as a multiple module SDCDB test case.
4202 * sim/ucsim/cmd.src/cmdset.cc:
4203 Took out debug printfs in ucsim "next" command.
4206 Karl and Johan start ucsim XA support. Most dissassembly working,
4207 about 75% emulation done(plenty of work remaining).
4209 * sim/ucsim/z80.src:
4210 Add Z80 support to ucsim, add test-ucz80 regression test,
4211 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
4212 Notice z80 compiler fails on examples/test3.c/crc code.
4214 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
4216 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
4217 Added support for --parms-in-bank1
4219 * src/ds390/peeph.def:
4220 added a few more peephole optimzations
4223 1) added __builtin_inp & __builtin_outp used to read in data of given length
4224 from a memory mapped port
4225 2) added __builtin_memcmp
4226 3) added __builtin_swapw swap bytes of a short
4228 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
4229 1) handle multiple send & receives from register bank1
4230 2) ralloc can now allocate DPTR1 to some liveRanges
4232 * src/SDCCsymt.c, src/SDCCsymt.h:
4233 changes to handle multiple sends & receives
4236 added some pointer arithmetic optimization
4239 added some pointer arithmetic optimizations but not stable yet so not
4240 called from anywhere (will get this working shortly)
4242 * src/SDCCopt.c: fixed for multiple sends & receives
4245 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
4246 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
4247 set preprocessor defines (depending on options)
4249 * src/SDCCicode.c, src/SDCCicode.h:
4250 changes made to handle multiple sends & receives
4253 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
4255 * src/SDCCcse.c, src/SDCCcse.h:
4256 added function findbackward def (to be used in upcoming optimization)
4258 * src/SDCCcflow.c, src/SDCCcflow.h:
4259 added function returnAtEnd - to determine if a basic block terminates with
4262 * src/SDCCast.c, src/SDCCast.h:
4263 added option parms-in-bank1
4265 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
4266 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
4267 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
4268 adjusted for --parms-in-bank1 option
4270 * device/include/string.h:
4271 donot redefine "reentrant" keyword
4273 * device/include/ds80c390.h: Added some more SFRs
4275 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4277 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
4279 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4281 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
4283 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4285 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
4287 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
4289 * Added --xram-movc option
4291 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4293 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
4295 2002-01-11 Johan Knol
4297 * Added math lib of Jesus Calvino-Fraga
4299 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
4301 * src/SDCCmain.c (processFile): fix processing of ../../src.c
4302 * support/regression/Makefile: new target test-mcs51-stack-auto
4303 * support/regression/ports/mcs51-stack-auto/spec.mk: added
4305 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4307 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
4309 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4311 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
4313 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4315 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
4317 * src/SDCCglue.h: add definition for printIvalChar()
4319 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4321 * src/SDCCast.c: fix #498138 by Johan
4323 * src/SDCCglue.c: fix #498138 by Johan
4325 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4327 * support/regression/Makefile: fix clean
4329 * support/regression/ports/ds390/support.c: fix transmission of last character
4331 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
4333 * /sdcc/src/ds390/gen.c:
4334 a) improved computing address of stack variable
4335 b) took out some #if 0 code
4336 c) improved parmBytes adjustment
4337 d) improved genPlusIncr & genMinusIncr
4338 e) genCmp could generate bad code (when left assigned to DPTR)
4339 f) Fixed bug in hasInc
4341 * /sdcc/src/ds390/ralloc.c:
4342 a) packRegsForSupport could mess up live information (Fixed)
4343 b) packRegsDPTRuse could be incorrect for left & right shift
4345 * /sdcc/src/mcs51/ralloc.c:
4346 packRegsForSupport could mess up the live information (Fixed)
4348 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
4350 * /sdcc/src/SDCCast.c:
4351 can reverse a loop even if function call is present as long
4352 as the loop control variable is local & is not passed as parameter
4354 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4356 * /sdcc/ChangeLog: *** empty log message ***
4358 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
4359 More builtin function additions for TININative
4361 * /sdcc/src/ds390/ralloc.c:
4362 Had broken the regression testsuite
4364 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
4366 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
4367 Added funcattr hasStackParms will be set for reentrant functions when there
4368 are paramteres on the stack, this helps in minimizing frame pointer generation
4369 typeFromStr can handle function pointers now
4371 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
4372 *** empty log message ***
4374 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4376 * /src/ds390/gen.c, /src/ds390/main.c:
4377 More builtin function additions for TININative
4379 * /src/ds390/ralloc.c:
4380 Had broken the regression testsuite
4382 * /src/SDCCast.c: Fixed a bug in dumptree
4384 * /src/SDCCsymt.c, /src/SDCCsymt.h:
4385 Added funcattr hasStackParms will be set for reentrant functions when there
4386 are paramteres on the stack, this helps in minimizing frame pointer generation
4387 typeFromStr can handle function pointers now
4389 * /doc/builtins.txt, /doc/TININative.txt:
4390 *** empty log message ***
4393 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4395 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
4396 ALPHA version for -mTININative
4398 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
4399 updated to reflect changes in the port structure
4402 added function do_assemble (similar to do_link) if non-null this function
4403 will be called to do assembly (-mTININative) requires a multi command
4405 added function genAssemblerEnd will be called to generate assembler Epilogue
4408 added _JavaNative to debug info printing
4410 * /src/SDCCmain.c: added option --tini-libid
4411 added port->do_assemble function (-mTININative) has a multi command assemble
4413 * /src/SDCCglue.c: Disabled "constExpr" check
4414 added port->genAssemblerEnd function
4416 * /src/SDCCglobl.h: Added option --tini-libid value
4419 tookout optimizeCompare from the header (has no external references)
4421 * /src/SDCCast.c: made one more function "static"
4423 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
4425 * src/z80/mappings.i: Added z80asm support.
4427 * src/z80/main.c: Added z80asm support on --asm=z80asm
4429 * src/z80/gen.c: Fixed asm portability issues.
4431 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
4433 * src/SDCCglue.c (printExterns): Added global/extern split.
4435 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
4437 * support/regression/Makefile: added test for mcs51 model large
4439 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
4441 * support/regression/ports/gbz80/spec.mk: added -mgbz80
4443 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
4445 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
4447 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
4449 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
4451 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
4453 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
4455 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
4457 * support/regression/tests/simplefloat.c: Port to mcs51.
4459 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
4460 * support/regression/tests/bug-485362.c: Added.
4462 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
4464 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
4466 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
4468 * src/z80/gen.c (aopDump): Added a dump function.
4470 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
4471 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
4473 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
4475 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
4477 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
4479 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
4481 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
4483 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
4485 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
4487 * support/regression/ports/ds390/support.c: Use tinibios.
4489 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
4491 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
4493 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
4494 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
4496 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
4498 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
4500 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
4502 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
4504 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
4505 (packRegsForIYUse): Created and optimised.
4507 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4509 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
4510 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4512 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
4514 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
4516 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
4518 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4520 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
4522 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
4524 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4526 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
4528 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
4530 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
4532 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4534 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
4535 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
4536 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
4538 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
4540 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
4541 (genNotFloat): Added.
4542 (genUminusFloat): Added.
4544 * device/lib/z80/Makefile: Added floating pt stubs.
4546 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
4548 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
4550 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
4552 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4554 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
4556 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
4558 * sdcc/support/regression/Makefile: Add port ds390.
4560 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
4562 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
4564 * sdcc/support/regression/ports/ds390/spec.mk: Added.
4566 * sdcc/support/regression/ports/ds390/support.c: Added.
4568 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
4570 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
4572 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
4574 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4576 * device/include/malloc.h: Added z80 and gbz80 support.
4578 * device/lib/gbz80/heap.s: Added.
4580 * device/lib/z80/heap.s: Added.
4582 * device/lib/malloc.c: Added z80 and gbz80 support.
4584 * support/regression/tests/malloc.c (testMalloc): Added.
4586 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
4588 * support/regression/tests/bug-478094.c: Added.
4590 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
4592 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
4594 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
4596 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
4598 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
4600 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
4602 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
4604 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4606 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
4608 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
4610 * support/regression/tests/bug-477927.c: Added.
4612 * src/z80/peeph.def: Added minor rules.
4614 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
4616 * src/z80/peeph.def: Added jump optimisation modification.
4618 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
4620 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
4622 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
4624 * support/regression/tests/funptrs.c: Added.
4626 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
4628 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
4630 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
4632 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
4634 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
4636 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
4637 (movLeft2ResultLong): Created.
4639 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
4640 (joinPushes): Added. Joins two char pushes into a word push.
4642 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
4644 * support/cpp2/Makefile.in (install): Added creation of dest dir.
4646 * support/makebin/Makefile (install): Added creation of dest dir.
4648 2001-10-24 Karl Bongers <karl AT turbobit.com>
4650 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
4652 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
4654 * src/z80/ralloc.c: Turned off faulty pack for one use.
4656 * src/z80/peeph-gbz80.def: Removed redundent restart options.
4658 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
4660 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
4662 * support/regression/Makefile: Improved clean
4664 * support/regression/ports/gbz80/spec.mk: Added clean
4666 * support/regression/ports/host/spec.mk: Added clean
4668 * support/regression/ports/z80/spec.mk: Added clean
4670 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
4672 * support/regression/ports/mcs51/timeout.c: little improvements
4674 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
4676 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
4678 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
4680 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
4682 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
4684 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
4686 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
4688 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
4689 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
4691 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
4693 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
4695 * src/mcs51/main.c (_linkCmd): Added bin path to command.
4697 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
4699 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
4701 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
4703 * support/regression/tests/longor.c: Added.
4705 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
4707 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
4709 * as/mcs51/aslink.h: define PATH_MAX
4711 * as/mcs51/asm.h: define PATH_MAX
4713 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
4715 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
4717 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
4719 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
4721 * src/SDCCglobl.h: define PATH_MAX
4723 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
4725 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
4727 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
4729 * src/z80/gen.c (gencjneshort): Fixed
4731 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
4733 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
4735 * support/regression/tests/bug-469671.c: Added.
4737 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
4739 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
4741 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
4743 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
4745 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
4747 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
4749 * src/device/lib/_mulint.c : removed hint: nooverlay bug
4751 * src/device/lib/_mullong.c : removed hint: nooverlay bug
4753 * src/device/lib/_divuint.c : removed hint: nooverlay bug
4755 * src/device/lib/_divulong.c: removed hint: nooverlay bug
4757 * src/device/lib/_moduint.c : removed hint: nooverlay bug
4759 * src/device/lib/_modulong.c: removed hint: nooverlay bug
4761 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
4763 * 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.
4765 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
4767 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
4769 2001-10-07 <johan AT FRIJA>
4771 * device/lib/gets.c (gets): fixed the return value.
4773 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
4774 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
4776 * 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.
4778 * 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.
4780 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
4782 * src/pic/gen.c: Removed Safe_strdup.
4784 * configure.in: Added option to enable libgc support.
4786 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
4787 (bitVectUnion): Optimised.
4788 (bitVectIntersect): Optimised.
4789 (bitVectBitsInCommon): Optimised.
4790 (bitVectCplAnd): Optimised.
4792 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
4794 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4796 * src/SDCCmain.c: distinguish between assembler debug and plain options
4798 * src/avr/main.c: remove standard assembler options
4800 * src/ds390/main.c: remove standard assembler options
4802 * src/mcs51/main.c: remove standard assembler options
4804 * src/port.h: removed "PENDING" comment
4806 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4808 * src/device/lib/_mulint.c : new, with assember functions
4810 * src/device/lib/_mullong.c : new, with assember functions
4812 * src/device/lib/_divuint.c : with assember functions
4814 * src/device/lib/_divsint.c : with assember functions
4816 * src/device/lib/_divulong.c: with assember functions
4818 * src/device/lib/_divslong.c: with assember functions
4820 * src/device/lib/_moduint.c : with assember functions
4822 * src/device/lib/_modsint.c : with assember functions
4824 * src/device/lib/_modulong.c: with assember functions
4826 * src/device/lib/_modslong.c: with assember functions
4828 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
4830 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
4832 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
4833 replaced _mululong.c and _mulslong.c by _mullong.c
4835 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4837 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
4839 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4841 * src/SDCCglue.c: test, if win32api is available for MINGW
4843 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4845 * src/SDCCsymt.c: no more _modifier in printTypeChain()
4846 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
4847 * support/regression/ports/gbz80/spec.mk: removed GENERIC
4848 * support/regression/ports/host/spec.mk: removed GENERIC
4849 * support/regression/ports/mcs51/spec.mk: removed GENERIC
4850 * support/regression/ports/z80/spec.mk: removed GENERIC
4852 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
4854 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
4856 * support/regression/tests/bug-467035.c: Created.
4858 2001-10-01 <johan AT FRIJA>
4860 * src/SDCC.y: fixed bug #466586 part 1
4862 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
4864 * SDCCicode.c: z80 has no generic pointers
4865 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
4867 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
4869 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
4871 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
4873 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
4875 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
4877 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
4879 * configure.in: Fixed up so that ucsim is only configured once.
4881 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
4883 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
4884 (getPathDifference): As above.
4886 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
4888 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
4890 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
4891 * .version: Updated to 2.3.1
4893 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
4894 Added copyright header.
4896 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
4897 (assemble): Added support for macro based assembler commands.
4898 (linkEdit): Added support for macro based linker commands.
4899 (preProcess): Changed the pre-processor to use macros.
4900 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
4901 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
4903 * device/lib/z80/crt0.s: Added module name for debugging.
4905 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
4907 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4909 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
4911 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
4913 * src/Makefile.in: Added SDCCmacro and SDCCutil
4915 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
4917 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4919 2001-09-16 <johan AT FRIJA>
4921 * 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.
4923 2001-09-15 <johan AT FRIJA>
4925 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
4926 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
4928 2001-09-11 <johan AT FRIJA>
4930 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
4932 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
4934 * support/regression/tests/bug-460444.c: Added test case.
4936 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
4937 (genCast): Added justification for all of the asserts.
4939 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
4941 * support/regression/support.c: _xdata replaced by xdata
4943 * support/regression/spec.mk: removed _generic
4945 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
4947 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
4949 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
4950 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
4952 * src/z80/peeph.def: Added a rule to optimise shift then compare.
4954 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
4956 * support/regression/tests/bug-460010.c: Added test case.
4958 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
4960 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
4962 * support/regression/Makefile: inter-port-clean adjusted for mcs51
4964 * support/regression/testfwk.c: removed workaround for bug #436344
4966 * support/regression/tests/bp.c: use less memory with mcs51
4968 * support/regression/tests/bug-441448.c: use less memory
4970 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
4972 * support/regression/collate-results.py: typo
4974 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
4976 * support/regression/tests/fetchoverlap.c: Added new test case.
4978 * support/regression/tests/bp.c: Added new test case.
4980 * support/regression/tests/bug-448984.c: Added new test case.
4982 * support/regression/tests/pow2shifts.c: Added new test case.
4984 * src/z80/gen.c: Turned off the noise it normally generates for the release.
4985 (genlshTwo): Fixed right shift for count > 8.
4987 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
4989 2001-09-08 <johan AT FRIJA>
4991 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
4993 2001-09-07 <johan AT FRIJA>
4995 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
4997 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
4999 2001-09-06 <johan AT FRIJA>
5001 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
5002 * bernhard noted me at this: "() equals to (void)" (1.38)
5004 2001-09-05 <johan AT FRIJA>
5006 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
5008 2001-09-04 <johan AT FRIJA>
5010 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
5013 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
5015 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
5017 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
5019 * link/z80/aslink.h: Fixed path for PATH_MAX
5021 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
5023 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
5025 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
5027 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
5029 * 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.
5031 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
5033 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
5034 (genCmp): Fixed up genCmp for the GB with longs.
5036 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
5038 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
5040 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
5042 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
5044 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
5046 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
5048 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
5050 * 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.
5052 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
5054 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
5056 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
5058 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
5060 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5062 * sim/ucsim/configure: little improvement of Cygwin-detection
5063 * sim/ucsim/configure.in: little improvement of Cygwin-detection
5064 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
5065 * support/regression/tests/bug-221100.c: small changes for mcs51
5066 * support/regression/tests/bug-221168.c: small changes for mcs51
5067 * support/regression/tests/bug-227710.c: small changes for mcs51
5068 * support/regression/tests/staticinit.c: small changes for mcs51
5069 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
5070 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
5071 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601