1 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
7 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
8 dwWriteLabel): fix to create valid debugger symbols even when
9 the module name has non-alphanumeric symbols in it
10 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11 when a variable's allocation has been optimized away
14 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
16 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
18 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
20 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
22 * src/z80/gen.c (z80_emitDebuggerSymbol),
24 * src/pic/gen.c (pic14_emitDebuggerSymbol),
26 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
28 * src/avr/gen.c (avr_emitDebuggerSymbol),
30 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
32 * src/SDCCdebug.c (emitDebuggerSymbol),
34 * src/port.h: added a debugger struct to the port struct. Added a
35 callback for defining debugger symbols
37 * src/SDCCast.c (createLabel),
38 * src/SDCC.y (labeled_statement): mark all compiler generated labels
41 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
42 iCode back to the ast for the function
44 * src/hc08/ralloc.c (hc08_assignRegisters),
45 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
46 unneeded fields from the regs struct.
47 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
48 pushReg() & pullReg() functions instead of emitcode()
50 * src/hc08/gen.c (genLabel, genhc08Code),
51 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
53 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
56 * src/hc08/gen.c (genEndFunction, genhc08Code),
58 * src/mcs51/gen.c (genEndFunction, gen51Code),
60 * src/ds390/gen.c (genEndFunction, gen390Code),
62 * src/z80/gen.c (genEndFunction, genZ80Code),
65 * src/pic/gen.c (genEndFunction, genpic14Code),
67 * src/pic16/gen.c (genEndFunction, genpic16Code),
69 * src/avr/gen.c (genEndFunction, genAVRCode),
71 * src/xa51/gen.c (genEndFunction, genXA51Code),
73 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
74 specific code to cdbFile.c and out of the backend code generators
76 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
77 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
78 starting address is now 0
82 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
83 assembler directive for DWARF support
84 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
88 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
90 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
92 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
93 and inappropriate peephole optimization in jump tables
95 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
98 * src/SDCCglue.c: sdccopt works for the hc08 port now
100 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
102 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
104 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
106 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
108 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
110 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
114 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
115 comments from the peephole optimizer replacement rules
116 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
118 * src/SDCCcse.c (updateSpillLocation),
119 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
121 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
122 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
125 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
127 * src/SDCCsymt.h: a missing part of my last change
128 * src/pic/ralloc.c (regTypeNum),
129 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
131 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
134 * src/SDCCicode.c (aggrToPtrDclType),
136 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
137 ptrPseudoSymConvert),
138 * src/pic/ralloc.c (regTypeNum),
139 * src/pic16/ralloc.c (regTypeNum),
140 * src/hc08/ralloc.c (regTypeNum),
141 * src/ds390/ralloc.c (regTypeNum),
142 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
143 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
145 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
147 * link/z80/lkmain.c (afile),
148 * as/hc08/lkmain.c (afile),
149 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
150 prevent a pointer problem when a filename has no directory and
151 no extension specified.
153 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
155 * link/z80/lkmain.c (afile): allow periods in directory names
156 * link/z80/lkmain.c (afile),
157 * as/mcs51/lkmain.c (afile),
158 * as/hc08/lkmain.c (afile): allow linker script file to have an
159 extension other than ".lnk"
160 * link/z80/lklex.c (getfid),
161 * link/z80/lkmain.c (parse),
162 * as/mcs51/lklex.c (getfid),
163 * as/mcs51/lkmain.c (parse),
164 * as/hc08/lklex.c (getfid),
165 * as/hc08/lkmain.c (parse): Support comments in the linker script
166 file on lines by themselves and after filenames
168 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
170 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
172 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
174 * src/z80/peeph-z80.def: removed some peephole rules that don't
175 work with multibyte arithmetic (fixed bug #937126)
176 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
177 to registers and not global variables
178 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
179 geniCodePreInc, geniCodePostDec, geniCodePreDec,
180 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
181 checking for assignments not internally generated (fixed bug #931895)
182 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
183 structure member (fixed bug #930072)
185 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
187 * src/SDCCmain.c (linkEdit),
188 * src/hc08/main.c (_hc08_parseOptions),
189 * as/hc08/Makefile.in,
193 * as/hc08/lkrloc.c (relr, rele),
194 * as/hc08/lkarea.c (lnkarea)
195 * as/hc08/lkmain.c (afile, parse),
196 * as/hc08/lkelf.c: support for ELF output
197 * as/hc08/lks19.c (s19),
198 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
200 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
202 * as/mcs51/lkihx.c: Fixed bug #899105.
204 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
206 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
207 .dsp files from Unix to DOS.
209 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
211 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
212 function pointers; we have been compliant for several months now.
213 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
214 change that was accidently commented out
215 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
216 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
219 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
221 * src/hc08/gen.c: output of all of the internal debugging information
222 is now controlled by the D() macro; it is disabled by default
224 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
226 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
227 harder to keep the same registers during a CAST iCode
228 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
229 long via int can be done in a single cast, if the signedness is
231 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
232 putchar() in tinibios.c in ds390's library
234 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
236 * src/SDCCast.c (decorateType): fixed bug #898889,
237 cast result of a literal complement too
238 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
239 fixed check for bitfields
241 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
243 * src/SDCCicode.c (geniCodeLogic): made it static,
244 (geniCodeLogicAndOr): added in order to fix bug #905492,
245 (ast2iCode): fixed bug #905492
246 * support/regression/tests/bug-905492.c: added
247 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
248 (processParms): fixed bug #927659: don't copy parms, this will clear
250 * support/regression/tests/bug-927659.c: added
252 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
254 * src/SDCCast.c (addCast): don't cast float to char
255 * device/lib/libsdcc.lib: added _memmove
257 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
259 * device/lib/large/Makefile: fixed parallel execution by
260 replacing `make` by `$(MAKE)`
262 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
264 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
265 offsets (fixes bug #923936)
267 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
269 * device/lib/small/Makefile: fixed parallel execution by
270 replacing `make` by `$(MAKE)`
272 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
274 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
276 2004-03-23 Scott Dattalo <scott AT dattalo.com>
278 * src/pic/gen.c (genCpl): multi-byte complements were not working.
279 * src/regression/Makefile: Regression test was not running.
281 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
283 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
284 complement if possible
285 * src/SDCCval.c (valComplement),
286 * src/SDCCicode.c (operandOperation): fixed complement of literal
287 * support/regression/tests/onebyte.c (testComplement): added
289 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
291 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
292 return an optimized tree; actually replace actParm with the new tree
293 * src/SDCCast.h: added some parantheses to remove side effects
294 * support/regression/tests/bug-920866.c
296 2004-03-21 Scott Dattalo <scott AT dattalo.com>
297 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
298 Bit operands were not being handled properly in the pic14 port.
299 (now src/regression/add.c passes again).
301 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
303 * src/SDCC.y (labeled_statement): case and default no longer require
304 a following statement (RFE #893037)
306 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
308 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
309 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
310 disabled (fixes bug #916294)
311 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
312 "mov a,acc"; patch provided by Lenny Story
313 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
315 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
317 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
319 * src/ds390/gen.c (genFunction, genEndFunction),
320 * src/ds390/ralloc.c (ds390_assignRegisters),
321 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
322 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
323 pushed if there are parameters passed on the stack. Also, a cleaner
324 way to decide if r0/r1 should be pushed/popped. (Together they fix
327 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
330 * device/lib/mcs51/crtpagesfr.asm,
331 * device/lib/mcs51/crtxinit.asm,
332 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
333 to avoid confusion with Si Lab's SFRPAGE register.
335 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
337 * src/SDCCglue.c (emitMaps): allow public sfr variables
338 * src/SDCCglue.c (initialComments): include compiler build date
339 with compiler version and put the timestamp of the generated
340 assembly file on a serperate line to be less confusing.
341 * src/port.h: added genInitStartup hook
348 * src/z80/main.c: genInitStartup initialize as NULL (default to
349 historical behaviour)
350 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
351 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
352 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
353 library instead of hard coding it into the compiler.
354 * support/regression/ports/mcs51-stack-auto/spec.mk,
355 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
356 * device/lib/mcs51/Makefile,
357 * device/lib/small/Makefile,
358 * device/lib/large/Makefile,
359 * device/lib/mcs51/crtpagesfr.asm,
360 * device/lib/mcs51/crtstart.asm,
361 * device/lib/mcs51/crtxclear.asm,
362 * device/lib/mcs51/crtxinit.asm,
363 * device/lib/mcs51/crtclear.asm,
364 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
365 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
366 and into user configurable files.
367 * device/lib/clean.mk: clean mcs51 directory too
368 * support/regression/tests/longlit.c: added static to T1 declaration
369 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
370 accesses in the initialization code
372 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
374 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
375 OSCTRIMVAL as noted in bug #916008
377 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
379 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
380 in loops with multiple exits (reported as incorrect registers
381 used by Martin Helmling in Sdcc-user list)
383 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
385 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
386 made ds390 register extensions look less like error messages
388 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
390 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
391 reported by Adam Wozniak in Sdcc-user list
393 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
395 * src/SDCCast.c (decorateType): fixed with bug and promotion in
396 arithmetic optimizations, added debug output
398 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
400 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
401 * sdcc.spec: updated and split sdcc into 3 rpms
402 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
403 needed for literals of LEFT_OP and '+'
404 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
405 introduced RESULT_TYPE_NOPROM
406 (geniCodeMultiply): fixed logic for decision if mul is optimized to
408 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
409 limited promotion to int only for '*'
410 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
412 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
414 * src/pic16/gen.c (genSkip),
415 (genc16bit2lit), (gencjneshort): commented out
416 (is_LitOp): new helper function, checks operand type
417 (genCmpEq): rewritten
419 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
421 * support/regression/tests/bug-908454.c: added
423 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
425 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
426 * src/SDCCicode.c (usualBinaryConversions): op needs int type
427 (geniCodeCast): cosmetic, don't preserve bit storage class
428 (geniCodeLeftShift): added promotion
429 (geniCodeLogic): fixed regression
430 * src/SDCCsymt.c (computeTypeOr): accept bits too
431 (compareType): 2nd part of fix for bug #908454, needed for bitfields
433 2004-03-07 Borut Razem <borut.razem AT siol.net>
435 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
437 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
439 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
440 version of pic16_genPackRegisters which does not check if ic is a
442 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
443 function cause string1.c regression test fails
445 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
447 * sim/ucsim/configure.in,
448 * sim/ucsim/configure,
449 * sim/ucsim/doc/Makefile.in: use docdir
450 * src/SDCC.y: fixed sbit atrributes
451 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
452 * src/SDCCast.c (decorateType): |^& need special promotion handling
454 * src/SDCCsymt.h: moved definition of RESULT_TYPE
455 * src/SDCCsymt.h (computeType),
456 * src/SDCCicode.c: computeType() needs op
457 * src/SDCCsymt.c (checkTypeSanity),
458 * doc/sddman.lyx: "plain" bitfields are unsigned
459 * src/SDCCsymt.c (computeTypeOr): added
460 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
462 * src/SDCCval.c (val*): computeType() needs op
463 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
464 * support/regression/tests/onebyte.c: added tests for |^&
466 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
468 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
469 for writing icode into asm output.
471 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
473 * src/pic16/device.c: added some debug lines enabled
474 with macro DEBUG_CHECK,
475 * src/pic16/genarith.c: more debug in genPlus,
476 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
477 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
478 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
479 * (aopForSym): onStack symbols are re-placed in data memspace,
480 and onStack flag is cleared,
481 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
482 copy temporary pcodeop,
483 * (genPcall): added warning for not updating PCLATU,
484 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
485 always true for pic16 port,
486 * (genMultOneWord): NEW, supports integer multiplication,
487 * (genMult): modified to call genMultOneWord,
488 * (ifxForOp): added warning when return NULL,
489 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
490 flag is set before call to operandFromSymbol for implicit
492 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
493 options.intlong_rent are set by default,
494 * (_hasNativeMulFor): modified to allow port generation of integer
496 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
497 set regtype to REG_SFR for all registers, restricting seting the
498 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
500 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
502 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
503 more than 500 times in the regression tests
505 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
507 * support/Util/SDCCerr.h,
508 * support/Util/SDCCerr.c,
509 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
511 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
512 for symbol conflicts.
513 * support/valdiags/tests/enum.c,
514 * support/valdiags/tests/tentdecl.c,
515 * support/valdiags/tests/struct.c: expect possible error messages
516 referring to original symbol definitions.
517 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
519 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
521 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
523 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
525 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
527 * src/pic16/ralloc.c (newReg): fixed bug #908929
529 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
531 * src/ds390/gen.c: added missing #include "main.h"
533 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
535 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
536 checking if symbol is already in set,
537 * src/pic16/device.h: prototype for checkAddSym,
538 * src/pic16/gen.c: (_G): added entry interruptvector,
539 * (assignResultValue): removed some commented out lines,
540 * (genFunction): check for ISR via sym->type, absolute section for
541 interrupt code is created via a new pBlock, the goto instruction is
542 placed now correctly at the interrupt vector position, changed all
543 references from ivec to _G.interruptvector,
544 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
545 is the interrupt is a high priority one, same for return from ISR,
546 * src/pic16/glue.c: changed all calls of addSetHead for publics and
547 externs to calls of checkAddSym,
548 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
549 pic16_pcode_verbose flag is set,
550 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
551 * src/pic16/pcoderegs.c: message about how many registers are saved
552 will only be emitted if pic16_pcode_verbose flag is set,
554 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
556 * src/ds390/ralloc.h,
557 * src/ds390/ralloc.c (ds390_regWithIdx),
558 * src/ds390/gen.c (emitcode),
560 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
561 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
562 ds390operandCompare, getRegsRead, getRegsWritten,
563 initializeAsmLineNode): customized instruction size calculation for
564 ds390, started basis for some register optimizations
565 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
566 corresponding assembly output
567 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
568 missing push/pop of r0/r1. Optimized push/pops
570 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
572 * src/mcs51/main.c (instructionSize): fixed ACALL size
573 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
575 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
577 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
578 the sorting of rlist with NULL elements
579 * (print_idataType, print_idata): NEW to create idata sections
580 * src/pic16/device.h: idataSymSet new variable
581 * src/pic16/gen.c (genFunction): fixed some bugs in string
582 comparing, improved the absolute section creation for ISRs,
583 added FSR0L/FSR0H in registers that are saved in an ISR,
584 * (genInline): fixed the processing of inline snippets,
585 now they undergo no process by the peephole optimizer
586 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
587 are placed in idataSymSet,
588 * (pic16emitStaticSeg): extern symbols are added in externs,
589 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
590 switching when aboslute variables are placed in access bank memory
591 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
592 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
593 commented out with #if,
594 * (pic16_packRegisters): reintroduce the check for CAST because some
595 symbols are not correctly handled,
596 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
597 pCodeInstruction instead of pCode,
598 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
599 pCodeAsmDir definition,
600 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
601 directive, then the argument directive is emitted without the leading
602 tab, hack for inline labels which must be in the first column,
603 * (compareLabel,pic16_findNextInstruction),
604 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
605 * (insertBankSwitch): modified for the new pCodeAsmDir,
607 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
608 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
610 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
612 * (pushSide): commented out with #if,
613 * (assignResultValue): fixed some typos in saving
615 * (genPcall): FIXED and sync'ed with genCall,
616 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
617 * (genNearPointerGet): fixed to handle some more cases,
618 implementation scheme via table reads,
619 * (genConstPointerGet): modified to access code memory correct,
620 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
621 and improved to handle some cases
622 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
623 instead of "RETLW" for init data
624 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
625 not IN_DIRSPACE, work around to reduce bank switching when aboslute
626 variables are placed in access bank memory (<0x80 and >=0xf80),
627 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
628 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
629 TBLWT_POSTDEC,TBLWT_PREINC
630 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
631 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
633 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
634 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
635 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
636 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
638 2004-02-29 Borut Razem <borut.razem AT siol.net>
640 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
641 support/Util/findme.h, support/Util/system.h: enhance binary relative
642 search for lib and include by using findProgramPath()
644 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
647 * src/SDCCpeeph.c (pcDistance),
649 * src/mcs51/ralloc.h,
650 * src/mcs51/ralloc.c (mcs51_regWithIdx),
652 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
653 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
654 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
655 size calculation port specific, started basis for some register
657 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
658 missing push/pop of r0/r1. Optimized push/pops
659 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
660 * device/lib/_modsint.c (_modsint),
661 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
662 and stack version so regression tests pass
664 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
666 * src/Makefile.in (dep): include SLIBOBJS in dependency check
667 * src/SDCCast.c (decorateType): catch another small optimization
669 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
670 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
671 modified to finally use computeType() all over SDCC,
672 see Feature Request #877103
673 * src/SDCCval.h: cosmetic
674 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
675 valCompare(); regression tested in muldiv.c
676 * support/regression/tests/muldiv.c (testMod): mod sign follows
679 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
681 * src/SDCCast.c (decorateType): fixed bug #902362
682 * doc/INSTALL.txt: fixed install instructions for win32
684 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
686 * device/include/Makefile.in (install): fixed by replacing spaces
689 * doc/INSTALL.txt: updated for release
690 * doc/sdccman.lyx: added warning for --xstack being buggy
692 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
694 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
695 to eliminate build warnings.
696 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
698 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
699 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
701 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
702 removed -penable-stack, added comment for stack pragma, added
703 warning for not initializing the stack/frame registers, removed
704 comment at interrupts section
706 Stack is made permanent, there is no ability to disable stack usage.
707 * src/pic16/device.h,
708 * src/pic16/device.c: removed all references to USE_STACK macro,
709 * src/pic16/device.c (pic16_dump_section): when no elements in
710 rlist, free rlist before return,
711 * (pic16_dump_int_registers): NEW, internal registers are a new set
712 of general purpose registers reused by each function,
713 * (checkAddReg): returns 1 if registers is added to set,
714 * (pic16_groupRegistersInSection): when a registers is of type
715 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
716 * src/pic16/device.h: memRange and Assigned Memory are deleted,
717 SRCASECMP macro is moved here from device.c
718 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
719 PO_PCLATU, PO_PRODL, PO_PRODH,
720 * (pic16_pCodeOpType, genMinus,
721 changed compares to "a" register, with AOP_ACC,
722 * (pic16_genPlus): fixed some bugs and indented properly,
723 * (pic16_addSign): changed size to size+offset in the MOVWF
725 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
726 multiply 8-bit operand by literal, result is 8-bit,
727 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
728 multiply 2 8-bit operand, result is 8-bit,
729 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
731 * src/pic16/gen.c: changed accUse to contain WREG only,
732 * (pic16_emitcomment): renamed to pic16_emitpcomment,
733 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
734 true, do not use immediate addressing any more unless sym is a
735 pointer in codespace,
736 * (aopForRemat): do not use immediate addressing when symbol not in
737 codespace and when symbol's address is requested,
738 * (aopOp): for-loop in if(sym->accUse) is modified for the new
740 * (aopGet): added case for AOP_ACC and don't return "accumulator
741 bug" but WREG instead,
742 * (popGetTempReg): pushes contents of temporary register in stack,
743 * (popReleaseTempReg): pops contents of temporary register from
744 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
745 * (pic16_popGet): separated case AOP_ACC to return register WREG
746 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
747 or PO_IMMEDIATE and initializes their instance/offset appropriately,
748 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
749 the use of immediate pointers to certain cases only.
751 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
752 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
753 * (assignResultValue, genCall, genRet): modified to use the new
754 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
755 genPcall is still broken,
756 * (genFunction): added code to create 'A' type pBlocks when
757 interrupt functions are generated, code not extensively tested yet,
758 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
759 * (genEndFunction): modified so ISRs pop stored registers from stack,
760 * (genMultOneByte): cleanup,
761 * (AccRsh): added flag andmask, to and result with appropriate mask,
762 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
763 * (genDataPointerGet): fixed and reenabled its use,
764 * (genNearDataPointerGet): bugs fixed,
765 * (genDataPointerSet): bugs fixed,
766 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
767 pic16_DumpSymbol, pic16_DumpOp,
768 * src/pic16/genutils.h: function prototypes for the above functions,
769 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
771 * (pic16emitRegularMap): many many many improvements, but needs a
773 * src/pic16/main.c: enable_stack in pic16_options is removed,
774 * (_pic16_parseOptions): removed command line options -penable-stack,
775 * (_process_pragma): emit stack symbol only when stack pragma is
777 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
778 redirected to FSR0L/FSR0H pair,
779 * (pic16_get_op, pic16_get_op2): modifications and improvements,
780 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
781 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
783 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
784 * (dumpPicOptype): NEW,
785 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
786 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
787 with movff instruction,
788 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
789 added pic16_int_regs, some packRegsFor* functions are commented out,
790 because produce errors,
791 * src/pic16/NOTES: minor modifications
793 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
795 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
796 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
798 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
799 * as/mcs51/lkaomf51.c: fixed bug #895763
801 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
803 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
805 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
807 * doc/sdccman.lyx: added details about the HC08 storage classes and
808 interrupts, fixed the register usage info for z80 & gbz80
810 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
812 * doc/sdccman.lyx: added more pic16 port documentation
813 * device/include/pic16/: added header pic18fregs.h
815 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
817 * doc/sdccman.lyx: added Vangelis' contribution
819 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
821 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
822 extend to the next CALL or PCALL, not just to the next CALL.
824 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
826 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
828 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
830 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
831 bug #895752 and a better fix for bug #716790
833 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
835 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
837 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
839 * doc/sdccman.lyx: minor changes, minor changed
841 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
843 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
844 which can't handle SDCC_NEWONEBYTEOPS,
845 (geniCodeMultiply): removed conversion from mult to shift for pic14
848 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
851 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
852 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
853 thus fixing bug #895406
855 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
857 * device/lib/_modsint.c,
858 * device/lib/_modslong.c: sign follows divisor only
859 * src/hc08/gen.c (genMultOneByte): if result size is 1,
860 signs or signedness can be ignored
861 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
862 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
863 added optimization for IFX,
864 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
866 reenabled optimization for IFX, which was removed on 2004-01-11
867 * src/SDCCast.h: added return type IFX
868 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
869 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
870 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
871 SDCC_OLDONEBYTEOPS selects the old behaviour
872 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
873 changed again and commented promotion rule
874 * src/SDCCval.c (valDiv): promotion no longer necessary
875 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
876 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
878 * support/regression/tests/onebyte.c: added
880 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
882 * gen.c (genInline): reverted to old code for assemnling inline
883 code because of bug reported James Chadd
885 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
887 * ralloc.h: missing declarations from previous patch,
888 seems that patch for ralloc.h was never applied, fixed
890 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
891 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
895 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
896 indirect addressing. Marked FSR0 as deprecated
897 * gen.c (pointerCode): commented out, not needed now
898 (pic16_popGet2p): new MOVFF helper function
900 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
901 (shiftRLong): removed duplicate debugging info
903 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
905 * src/ds390/gen.c (genNearPointerGet),
906 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
907 optimization with bits, but not bitfields.
908 * src/ds390/ralloc.c (packRegisters),
909 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
911 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
913 * src/SDCCcse.c (algebraicOpts): copy operands before modification
915 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
918 * src/SDCCicode.c (operandFromSymbol),
919 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
920 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
921 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
922 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
923 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
924 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
926 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
927 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
928 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
929 * src/SDCCsymt.c (newSymbol),
930 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
933 * src/SDCCval.c (newiList): fixed bug #885705
935 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
937 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
938 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
940 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
942 * device/include/c8051f120.h,
943 * device/include/c8051f300.h,
944 * device/include/c8051f310.h: added/updated header files for Silicon
945 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
946 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
947 in new section Submitting patches
949 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
951 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
952 genFarPointerGet, genCodePointerGet, genGenPointerGet,
953 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
955 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
956 genFarPointerGet, genCodePointerGet, genGenPointerGet,
957 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
959 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
960 genFarPointerGet, genCodePointerGet, genGenPointerGet,
961 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
963 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
964 genFarPointerGet, genCodePointerGet, genGenPointerGet,
965 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
966 genGenPointerSet): fixed bug #892400
967 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
968 to eliminate build warnings.
969 * src/SDCCast.c (processParms),
970 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
972 * support/valdiag/valdiag.py: added GCC to the list of defines active
973 when compiling with gcc
975 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
977 * support/Util/SDCCerr.h,
978 * support/Util/SDCCerr.c,
979 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
980 with an incomplete type (fixed bug #883734)
981 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
983 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
985 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
987 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
989 * src/SDCCast.c (decorateType),
990 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
991 function pointer implementation
992 * support/regression/tests/funptrs.c: added tests to verify both forms
993 of function pointers work correctly. Added tests to verify parameters
994 are passed in the correct order.
996 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
998 * device.c (regCompare): registers are sorted by ascending
999 address and increasing size,
1000 * main.c (_pic16_finaliseOptions): removed the declaration
1001 of compiler macro MCU. Now a macro of the format pic18fxxxx
1002 will be defined from the command line
1004 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1005 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
1007 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
1008 PCOP_RLCF was overwritten!
1009 * gen.c (genSkip): commented out calls to pic16_emitcode,
1010 * (genCmpEQ): fixed "long" compares, only high word did get compared,
1012 * (genRRC): added debugging info,
1013 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
1014 overwritten while shifting,
1015 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
1016 overwritten while shifting,
1019 * (shiftLLeftOrResult),
1020 * (shiftRLeftOrResult),
1022 * (shiftLLong): Implemented with pic16_emitpcode
1023 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
1024 * (genLeftShift): Fixed bug, operand for shift by variable always
1025 was "and"ed with 0x0f,
1026 * (genLeftShiftLiteral),
1028 * (genRightShiftLiteral): added debugging info,
1029 * (genrshFour): added comment,
1030 * (genRightShift): determined signedness from operand "left"
1033 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1035 * src/SDCCicode.c (geniCodeParms),
1036 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
1037 function pointers, fixed function pointer bugs #861242 and #861896
1039 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1041 * device/include/c8051f000.h,
1042 * device/include/c8051f120.h,
1043 * device/include/c8051f300.h: added header files for Silicon
1044 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
1046 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
1048 * src/SDCCast.c (processParams): added new type flow and restructured
1049 (gatherAutoInit): added new type flow
1050 (addCast): cosmetic changes
1051 (getLeftResultType): added new type flow for array indices, patch
1052 provided by Stas, see FR #877103
1053 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
1054 array index patch by Stas
1055 * src/SDCCast.h: added prototype getResultTypeFromType()
1057 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
1058 * src/pic/glue.c (pic14emitStaticSeg),
1059 * src/pic16/glue.c (pic16emitStaticSeg),
1060 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
1061 for initialization of symbols
1062 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
1063 * support/Util/SDCCerr.h:
1064 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
1065 * .version: bumped version number to 2.3.8
1066 * device/include/Makefile.in (install),
1067 * doc/Makefile (install): changed to 'rm `find ...`' construct to
1070 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
1072 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
1073 Slade Rich fixed an optimization bug
1074 * src/pic/pcodepeep.c,
1075 * src/pic/pcoderegs.c
1076 * doc/Makefile (install): added test for directory
1078 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1080 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
1081 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
1082 * src/pic/ralloc.c (getRegPtr, getRegGpr),
1083 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
1084 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
1085 * as/mcs51/asexpr.c (term),
1086 * as/hc08/asexpr.c (term): fixed bug #887146
1088 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1090 * src/z80/gen.c (genMult): handle single byte result product
1091 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
1092 DUMMY_READ_VOLATILE (fixed bug #886367)
1094 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1096 * support/regression/tests/libmullong.c: fixed logic, on little endian
1097 hosts we ended without a mullong_wrapper()
1099 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1101 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
1102 virus/worm forged address usage.
1104 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1106 Fixed promotion, it should be done on AST level:
1107 * src/SDCCast.c (addCast): added promotion to int
1108 (decorateType): updated call to upCast()
1109 * src/SDCCicode.c (geniCodeLeftShift): removed call to
1110 usualUnaryConversions()
1112 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
1114 * support/regression/tests/literalop.c (mulWrapper): Added a
1115 wrapper to remove integer overflow warnings.
1117 * support/regression/tests/float_trans.c: Made work on host.
1119 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
1122 * support/regression/generate-cases.py (main): Changed from inline
1125 * doc/Makefile (install): Changed to depth first to get rid of
1126 missing directory install warning.
1128 * as/Makefile (install-doc): Made work on Mac.
1130 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
1132 * src/SDCCast.c: added an additional type flow in decorateType() of
1133 opposite direction, see feature request #860006; it's enabled at runtime
1134 by setting the environment variable SDCC_NEWTYPEFLOW
1135 * src/SDCCast.h: changed prototype of decorateType()
1136 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
1137 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
1138 'char' to 'int' can be omitted, if both operands are 'unsigned char';
1139 see feature request #877103
1140 * src/SDCCval.c: updated call of decorateType()
1141 (valBitwise): fixed bug #882876
1142 (valMinus): added promotion
1143 (valLogicAndOr): result is unsigned
1144 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
1145 * src/SDCCsymt.c (computeType),
1146 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
1147 must not cause an unsigned operation
1148 * src/pic/glue (pic14emitRegularMap),
1149 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
1151 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
1153 * src/pic/pcode.c (PCodeID): commented out left over debug code
1155 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1157 * support/valdiag/tests/overflow.c: added shift tests
1165 * src/pic/pcodepeep.c,
1166 * src/pic/pcoderegs.c,
1168 * src/pic/ralloc.h: applied patch from Slade Rich;
1169 added support for multiple code pages and multiple RAM banks on the
1170 PIC 14 port. The ASM files now no longer simply assume all the
1171 code / RAM are in the same page / bank. This means the linker can
1172 safely allocate code/RAM of separate ASM files to different pages/banks.
1173 * doc/sdccman.lyx: added Slade's tips
1174 * src/mcs51/peeph.def: fixed bug #880768
1176 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1178 * src/hc08/ralloc.c (rematStr): fixed bug #879282
1179 * src/SDCCast.c (decorateType): fixed bug #880197
1181 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
1183 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
1186 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
1187 strtof is not part of C89 and isn't included with Mac OS X.
1189 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1191 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
1192 shiftL2Left2Result): fixed bug #879326
1193 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
1194 (genMultOneByte): fixed bug in signed vs unsigned multiplication
1195 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
1196 address fetch for clr instruction
1197 * device/lib/hc08/_mulint.c: created optimized assembly version
1198 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
1200 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1202 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
1203 proposed in FR #877103
1205 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1207 * src/SDCCval.c (cheapestVal): added missing checks
1208 * src/SDCCicode.c (usualBinaryConversions): fixed condition
1209 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
1211 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
1213 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
1216 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
1218 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
1219 loaded with the linker search paths (-L arguments) and the libraries
1220 to be linked with the current source (-l arguments). Changes
1221 currently will affect only the pic16 port.
1222 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
1223 include path the port specific paths and port specific libraries,
1224 * gplink command now contains the $3 argument,
1225 * src/pic16/device.h,
1226 * src/pic16/device.c,: structure PIC_device is made public and
1227 renamed to PIC16_device, the same for variable Pics which is renamed
1228 to Pics16. Updated all references to them.
1229 * src/pic16/glue.c (pic16glue): corrected bug with code
1230 initialization which bypassed the variable initializations block.
1232 * device/lib/pic16/Makefile.rules: removed --penable-stack from
1233 COMPILE_FLAGS and added the --nostdinc option
1235 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1237 * device/include/mc68hc908jb8.h: Register defs for another member
1238 of the hc08 family. Contributed by Bjorn Bringert - thanks!
1240 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
1242 Documenting changes from previous commits.
1243 * configure.in (version 1.56),
1244 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
1245 when generating output files to configure the pic16 library,
1246 but now I've commented it out, since gputils aren't installed in the
1247 SF compile farm, so library won't compile
1249 * device/lib/Makefile.in (version 1.56): initially I've added in
1250 target 'all' the prerequestive 'model-pic16' so it compiled the
1251 pic16 library, but now I've commented it out for the same reasons
1253 * added targets 'model-pic16' and 'objects-pic16' to compile the
1255 * added target 'port-specific-objects-pic16' to handle the
1256 generated libraries and copy them into the build/ directory
1257 * added target 'clean-intermediate-pic16' to clean intermediate
1258 files into pic16 directory
1259 * in target 'installdirs' added line to create directory pic16 in
1260 the installation path
1262 * device/include/Makefile.in (version 1.11): in target 'install'
1263 added lines to copy all header files to installation path,
1264 * in target 'installdirs' added line create directory for pic16
1265 headers in the installation path
1267 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
1269 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
1272 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
1275 * device/lib/configure.in,
1276 * device/lib/configure: fixed for autoconf 2.57
1278 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1280 * src/z80/main.c (_parseOptions): fixed the portmode= command line
1281 option so that it actually works. Made it specific to the z80, since
1282 the gbz80 doesn't have these kinds of I/O ports.
1284 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1286 * device/include/z180.h,
1287 * device/lib/_memcpy.c,
1288 * device/lib/_memmove.c,
1289 * device/lib/_mulint.c,
1290 * device/lib/ser_ir.c,
1291 * device/lib/ser_ir_cts_rts.c,
1292 * device/lib/_strcmp.c,
1293 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
1294 * src/z80/main.c (_process_pragma): add support for pragmas bank and
1295 portmode; added deprecation warning for bank= and protmode= forms.
1296 Also, guard against buffer overflow.
1297 * src/z80/gen.c (aopGet): generate better code for sfr banked read
1299 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1301 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
1302 changed interrupt vector table generation to only emit declared vectors.
1303 * device/include/Makefile.in: added missing backslash
1304 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
1306 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
1308 Mainly changes to support compilation of the device libraries
1309 * src/pic16/device.c: stack is allocated via symbol and not
1310 via literal number. The symbol is placed in the corresponding
1311 position of the data ram
1312 * (pic16_dump_section): relocatable and absolute uninitialized
1313 data are now emitted in sorted order to reduce section naming,
1314 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
1315 weren't marked as being in the access bank,
1317 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
1319 Added portion of GNU PIC Library under the directory
1320 device/include/pic16 and device/lib/pic16. These files
1321 contain the declarations of SFRs for the PIC18Fxx2 devices.
1322 The directory is initialized via configure from toplevel.
1324 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
1326 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
1327 the spilllocations to be compared correctly
1329 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
1331 * src/SDCCast.c (decorateType): fixed bug introduced today
1333 2004-01-12 Borut Razem <borut.razem AT siol.net>
1335 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
1336 doc/sdccman.lyx: upper case pragmas are deprecated
1338 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
1340 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
1341 in simpler and even better code
1343 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
1345 * src/SDCCicode.c (operandOperation): fixed bug #874819
1346 * src/SDCCast.c (decorateType): fixed
1347 char foo (unsigned long ul) { return ul > 0; }
1349 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1351 * doc/sdccman.lyx: Moved and added some sections, small changes
1352 all over. Telling LaTeX to be less strict with word spacing
1353 to better keep the right margin. Changed some notes about
1354 maintainance of the ports in section 3.2.1 - is it OK like this?
1356 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
1358 SDCC source changes:
1359 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
1360 convilong): modified to inform the pic16 port that builtin functions
1363 PIC16 PORT specific changes:
1364 * src/pic16/device.c pic16_dump_equates() added,
1365 processor registers declared internally by the port are emitted in
1366 the translation as equates,
1367 * src/pic16/gen.c: inline code is passed unprocessed to the
1369 * (pic16_popGetLit2): fnuction modified to take second operand as
1370 pCodeOp pointer and not as literal,
1371 * (popRegFromIdx): prefixed with pic16_,
1372 * (pic16_popCombine2): modified to receive already allocated pCode
1374 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
1375 * (genFunction): initializes local stack frame and pushes on stack
1376 all the registers used by this function,
1377 * (genEndFunction): restores all registers from stack and restores
1379 * src/pic16/glue.c (pic16emitRegularMap): various changes and
1381 * (pic16glue): changed the program startup sequence,
1382 * added new dbName code 'A' for functions placed in absolute section
1383 * src/pic16/main.c: added function attribute _naked,
1384 * added pragma 'code' to place a fnuction at an absolute address,
1385 * added command line arguments --debug-ralloc and --pcode-verbose,
1386 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
1387 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
1388 * (pic16_newpCodeOpLit2): modified to take the second operand as
1390 * (pic16_printpBlock): modified to emit each function in a separate
1392 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
1393 UPPER for immediate operands,
1394 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
1396 * src/pic16/peeph.def: all peepholes with movff are commented out,
1397 because there is a problem in the pcode peep optimizer,
1398 * src/pic16/ralloc.c: the register allocator can now reuse local
1399 function symbols for another function. This saves register usage.
1400 * src/pic16/ralloc.h: added flag isLocal in structure regs,
1402 Added file src/pic16/NOTES with information about program writing on
1403 the current port version.
1405 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1407 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
1408 and peephole 252 (array access)
1410 2004-01-09 Borut Razem <borut.razem AT siol.net>
1412 * src/SDCCmain.c : fixed #872250: -l command line defined library
1413 files are scanned before standard library files
1415 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1417 * src/SDCCast.c (decorateType): fixed bug #874046
1419 2004-01-09 Borut Razem <borut.razem AT siol.net>
1421 * support/scripts/sdcc.nsi: remove previous installation
1423 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1425 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
1426 bytes for last interrupt vector (mcs51)
1427 * sdcc.spec: fixed typo
1429 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1431 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
1432 gen51Code): more efficient parameter receive for --model-large
1435 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1438 * src/z80/main.c: added missed needLinkerScript flags (more than
1439 one port structure defined in these file)
1440 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
1443 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
1445 * src/SDCCmain.c: removed various references to DEFAULT_PORT
1446 * src/port.h: added flag needLinkerScript in port->linker
1447 structure to inform whether to create a .lnk file or not,
1455 * src/z80/main.c: changed appropriately to configure
1456 needLinkerScript flag
1458 * src/pic16/gen.c (genAddrOf): fixed bug #863624
1459 * src/pic/glue.c: added variable udata_section_name to
1460 override default uninitialized data segment definition for
1461 devices only with SHAREBANK memory (reported from Erik Epetrich)
1462 * (pic14emitOverlay): modified to emit a commented overlay segment
1463 directive when no overlay data exist
1464 * (picglue): modified to emit uninitialized data segment
1465 according to udata_section_name
1466 * src/pic/main.c (_pic14_parseOptions): added command line
1467 options --udata-section-name=[name] to override default
1468 udata definition name
1469 * modified _linkCmd and _asmCmd to include compiler passed
1470 arguments via -W option
1471 * src/pic16/main.c: added $l in _asmCmd, changed extension for
1472 object file from '.rel' to '.o' in port->linker structure,
1473 changed size of fptr from 2 to 3 in port structure
1475 2004-01-07 Borut Razem <borut.razem AT siol.net>
1477 * support/scripts/sdcc.nsi: update PATH
1478 * support/scripts/sdcc.ico: craeted
1480 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
1482 * device/include/Makefile.in: fix install
1483 * doc/Makefile: fix install
1485 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1487 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
1489 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
1490 how the function variable allocation summary is displayed; also
1491 include information about variables allocated to the overlay
1494 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1496 * as/mcs51/lkmain.c: Help about -Y option
1497 * as/mcs51/lkarea.c: Fixed gcc warnings
1499 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
1501 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
1503 * support/valdiag/tests/overflow.c: added
1504 * src/SDCCast.c (decorateType),
1505 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
1506 LEFT_OP (left shift)
1508 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1510 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
1511 (default behaviour).
1513 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1515 A python script to validate compiler diagnostic messages. It can be
1516 used to verify that sdcc complains about bad c source code and
1517 gives a good location of the error.
1518 * support/valdiag/Makefile,
1519 * support/valdiag/valdiag.py,
1520 * support/valdiag/tests/*
1522 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1524 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
1525 * src/SDCCsymt.c (newEnumType),
1527 * support/Util/SDCCerr.c,
1528 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
1530 * support/regression/tests/enum.c: added test for enum values that
1531 require at least 2 bytes of storage.
1533 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
1535 * src/common.h: added ifndef/define/endif macros
1536 around the header file.
1537 Bug reported from Jesus Calvino-Fraga
1539 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
1541 * sdcc.spec: updated
1542 * device/include/Makefile.in: don't install CVS directories
1543 * device/lib/Makefile.in: added removal of CVS directories after install
1544 * doc/Makefile: fixed install, added local_icons
1545 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
1546 * src/mcs51/gen.c (genRightShift): fixed bug #870788
1547 * src/ds390/gen.c (genRightShift): fixed bug #870788
1548 * src/SDCCast.c (decorateType): fixed bug #870781
1550 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
1552 PIC16 port related changes:
1553 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
1554 added variable stackPos,
1556 * gen.c: genCall, assignResultValue: added support for
1557 pushing/retrieving function parameters to/from stack,
1558 genFunction,genEndFunction: setup stack frame for the
1560 genAddrOf: will be changed according to bug 863624
1562 * added files genutils.c and genutils.h which contain gen*
1563 debugged and optimised functions extracted from gen.c
1565 * glue.c: added variable 'externs' which holds extern symbols,
1566 pic16emitRegularMap: is modified to properly handle relocatable
1567 symbols under the new scheme,
1568 pic16createInterruptVect: is modified
1569 pic16printPublics: is modified to emit 'global' assembler directives,
1570 added pic16_printExterns to print extern symbols,
1571 pic16glue: initializes stack/frame pointer in the beginning of
1572 the assembly output. Temporary hack, will be corrected later,
1573 because gplink yet does not support stack and SDCC does not
1574 yet support a type of crt0.o object to create the final binary.
1576 * Removed many lines that contain 8051 legacy code.
1577 * The code is finally placed under a 'code' directive.
1578 * Added port specific options.
1580 * _process_pragma: simplified since now we do not need *special*
1581 include file to define SFR registers. But a separate header
1582 will be needed. This will be developed later.
1583 * _pic16_parseOptions: added, parses port specific options:
1584 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
1585 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
1586 --preplace-udata-with=
1588 * _pic16_setDefaultOptions: modified to initialize section names,
1589 but hack is temporarly out of order since it needs improvement.
1590 * _pic16_genAssemblerPreamble: configuration words are emitted by
1591 their address instead of their name. This part is incomplete and
1592 supports only the 18Fxx2 devices. Other devices will emit an error
1593 during assembly since they do not contain the same set of config
1595 * _pic16_genIVT: is modified,
1597 * pcode.c: added definitions for some hardware registers that are needed
1599 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
1600 All PCI entries are updated. Now LFSR is supported.
1601 * Removed pic16_pciTRIS is mentioned by mdubuc in source
1602 * added pic16_newpCodeOpLit2 to support instructions with
1603 two literal arguments
1604 * pic16_pCode2str: corrected code that emits assembler instructions
1605 with two literal operands and those that have an access bit modifier
1606 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
1607 this fixes a bug which caused some labels to be lost, when an
1608 assembler directive was added, i.e. banksel,
1609 * pic16_FixRegisterBanking: improved logic that causes the insertion
1611 * InlineFunction: functions that are called once, are not any more
1612 inlined. This can be a port option in the future,
1614 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
1616 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
1617 hold the corresponding uninitialized symbols,
1618 * pic16_allocProcessorRegister: registers have explicit marked the
1620 * pic16_allocInternalRegister: registers are explicit marked as
1622 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
1623 processing list, so bit registers were lost,
1626 * ralloc.h: added field 'accessBank' and original symbol operand
1627 in register definition,
1628 * removed the field isMapped from register definition,
1630 ** Several functions have been removed from various sources:
1631 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
1632 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
1633 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
1634 pic16_assignRelocatableRegisters
1636 ** others have been introduced:
1637 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
1638 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
1640 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
1642 * support/scripts/inc2h.pl: changed definition of BIT_AT
1643 to emit 'sbit at' instead of 'bit at'. This was a request.
1645 PIC16 port related preliminary changes:
1646 * gen.c: prefixed function popRegFromString with
1647 pic16_ and all references to it corrected
1648 * pcode.c: all pic16_pc_* hardware registers prefixed
1649 with underscore (_),
1650 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
1651 * ralloc.c: newReg(): when register is REG_SFR then
1652 set address to rIdx,
1653 pic16_allocProcessorRegister(): marks register wasUsed=0
1654 pic16_writeUsedRegs(): added a call to assign processor
1655 registers via pic16_assignFixedRegisters
1657 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1659 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
1660 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
1661 variables in unused register banks. Also the SSEG is placed
1662 wherever there is enough space for it, and IDATA can be anywhere
1663 in internal RAM. For now compile using -Wl-Y[stack_size].
1664 The mem file is different for this option as well, since it
1665 makes no sense of talking about DSEG lenght.
1667 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
1669 * src/SDCClrange.c: fixed bug 869095 that caused segfault
1670 in certain cases, e.g. when ROM assignment, patch provided
1671 from Albert den Haan.
1673 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1675 Many signedness and type propagation fixes:
1676 * src/SDCCicode.c: made geniCodeCast() static
1677 replaced SPEC_ by IS_ (cosmetic)
1678 (operandOperation): fixed div and mod operation
1679 (usualBinaryConversions): added support for promotion of char
1680 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
1681 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
1682 (geniCodeAdd): an array index will stay unsigned, even if promoted
1684 (geniCodeArray): ditto
1685 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
1686 * src/SDCCsymt.c (computeType): added more support for char;
1687 promotion of char is selectable by promoteCharToInt, fixed signedness
1689 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1690 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1691 * src/SDCCval (val*): replaced signedness calculation by
1693 rearranged if-branches (cosmetic)
1694 (valShift): added warning W_SHIFT_CHANGED
1695 (valCompare): fixed problem with different types
1696 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
1697 * support/regression/tests/literalop.c: added many cases
1698 * support/regression/tests/ast_constant_folding.c: changed finally to
1700 * .version: new year, new version: 2.3.7
1701 * src/SDCCmain.c (main): applied patch #866468
1702 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
1703 provided by Scott Bronson
1704 * doc/sdccman.lyx: updated documentation for sdcdb
1705 updated and added chapter tips
1707 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1709 * src/SDCCsymt.h: missing from yesterday's commits
1711 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1713 * src/SDCC.y (struct_or_union_specifier),
1714 * support/Util/SDCCerr.c,
1715 * support/Util/SDCCerr.h: verify that struct & union tags are used
1718 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1720 * src/SDCCglobl.h: missing from yesterday's commits
1722 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1724 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
1725 sft_attributes, struct_declaration, parameter_declaration,
1726 type_name, start_block, declaration_list),
1727 * src/SDCC.lex (check_type): support redefinition of typedef names
1729 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1731 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
1732 aligned xdata arrays. Erik helped me with the if clause.
1734 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1736 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
1739 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1742 * src/SDCCast.c (newAst_),
1744 * src/SDCCicode.c (ast2iCode, newiCode),
1746 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
1747 expr, statement, expression_statement, selection_statement,
1748 iteration_statement, expr_opt, jump_statement): foundation for tracking
1750 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
1753 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1755 * support/Util/SDCCerr.c,
1757 * src/SDCCast.c (createCase, createDefault, decorateType),
1758 * src/SDCClabel.c (labelUnreach),
1759 * src/SDCC.y (labeled_statement, jump_statement): More improvements
1761 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
1762 (with thanks to Stas Sergeev)
1763 * device/include/time.h,
1764 * device/lib/time.c (CheckTime): suppress unreachable code warning
1766 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1768 * src/SDCCast.c (createIvalCharPtr),
1769 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
1771 * support/regression/tests/nullstring.c: tests for these two bugs
1773 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1775 * support/Util/SDCCerr.h,
1776 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
1777 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
1778 about storage class and 'at' used inside struct or union
1779 * src/SDCCBBlock.c (iCodeFromeBBlock),
1780 * src/SDCCcse.c (ifxOptimize),
1781 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
1782 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
1783 printIval, emitStaticSeg, emitOverlay),
1784 * src/SDCClabel.c (deleteIfx),
1785 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
1786 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
1787 gatherAutoInit, processParms),
1788 * support/Util/SDCCerr.h,
1789 * support/Util/SDCCerr.c (werrorfl): Support for better error location
1790 reporting for post-parse errors.
1792 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1794 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
1795 implicit casts via union; they don't work on big endian systems
1796 (possible fix for bug #861138)
1798 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1800 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
1801 * src/mcs51/main.c: fixed the fix for bug #737001
1803 2003-12-15 Borut Razem <borut.razem AT siol.net>
1805 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
1807 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1809 * support/makebin/makebin.c: put output in binary mode
1811 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1813 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
1814 xdata and data memory on startup. Set the environment variable
1815 SDCC_NOGENRAMCLEAR to disable this.
1816 * src/mcs51/peephole.def,
1817 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
1818 (allows non-interrupt and interrupt code to safely compete for a resource
1819 without the non-interrupt code having to disable interrupts)
1821 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1823 * src/SDCCicode.c (geniCodeAdd),
1824 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
1825 with valFromType if type might be a pointer and host is big endian).
1826 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
1827 types, not just integer types.
1828 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
1829 multiply defined with mismatching "at" address.
1831 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1833 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
1834 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
1835 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
1836 with embedded nulls (fixed bug #753752)
1838 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1840 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
1841 Apparently this did not see much testing (endless loop)
1843 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1845 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
1847 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1849 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
1850 gracefully handle NULL memmap pointers
1852 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1854 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
1855 instead of deleting the iCode when an operand is volatile
1856 * src/z80/gen.c (genDummyRead),
1857 * src/mcs51/gen.c (genDummyRead),
1858 * src/ds390/gen.c (genDummyRead),
1859 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
1861 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
1862 * src/SDCC.y: fixed bug #850420
1864 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1866 Applied z80 i/o port patch from Peter Townson and fixed some operators
1867 to better handle operands in A register.
1868 * device/include/z180.h
1874 * src/z80/peeph-z80.def
1878 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1880 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
1882 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1884 * device/lib/hc08/_mullong.c: Removed extra #endif
1886 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1888 * sim/ucsim/hc08.src/inst.cc,
1889 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
1891 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
1892 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
1893 * device/include/stdarg.h: fixed varargs for hc08
1894 * device/lib/Makefile.in,
1895 * device/lib/hc08/Makefile,
1896 * device/lib/hc08/_mulint.c,
1897 * device/lib/hc08/_mullong.c: fixed some endian problems
1899 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1901 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
1902 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
1903 * device/lib/_gptrget.c,
1904 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
1906 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1908 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
1909 * src/SDCCast.c (astErrors): fixed bug #846007
1910 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
1912 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1914 * src/SDCCast.c (decorateType): disabled a transformation I added in
1915 revision 1.188 (access to fields of a structure at an absolute address);
1916 it breaks with bitfields, extern declarations, and gcse analysis.
1917 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
1918 could be assigned through a pointer, so don't complain.
1919 * src/SDCCast.c (astErrors),
1921 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
1923 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
1925 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
1926 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
1927 output of __config directives, since gpasm now supports them
1928 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
1929 pre-processor macro, i.e. -DMCU=p18f452
1930 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
1931 and modified to handle 'cast' icode similarly to '=' icode
1932 * src/pic16/device.h (typedef struct PIC_device): added field
1933 'extMIface' to indicate that chip has external memory interface
1934 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
1935 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
1938 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1940 * src/SDCC.y (pointer): fixed bug #846006
1941 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
1942 * src/SDCCast.c (decorateType): fixed bug #846009
1943 * src/ds390/peeph.def,
1944 * src/ds390/gen.c (genAnd, genOr),
1945 * src/mcs51/peeph.def,
1946 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
1948 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1950 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
1957 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
1961 * src/SDCCbitv.c: added function to free a bitvector
1963 * src/SDCClrange.c: added function to recompute the liveranges
1965 * src/ds390/ralloc.c,
1966 * src/hc08/ralloc.c,
1967 * src/mcs51/ralloc.c,
1969 * src/pic16/ralloc.c,
1970 * src/xa51/ralloc.c,
1971 * src/z80/ralloc.c: recompute the liveranges after register packing
1973 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
1975 * src/SDCCloop.c (newInduction): fixed bug #845630
1977 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1979 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
1980 inadvertantly left behind from my 2003-11-12 change
1982 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1984 Updated headers I neglected to commit yesterday.
1988 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1990 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
1991 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
1992 * src/SDCCopt.c (eBBlockFromiCode),
1993 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
1994 the creation of the key hash table from the sequencing so it can be used
1995 earlier (for some GCSE bug fixes still pending)
1997 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1999 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
2000 * support/regression/tests/addsub.c: testing genPlus shortcut
2002 2003-11-15 Borut Razem <borut.razem AT siol.net>
2004 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
2006 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2008 * src/SDCCcse.c (cseBBlock): fixed bug #527779
2009 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
2010 ordering is immaterial.
2011 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
2013 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2015 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
2016 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
2017 (SIGSEV) of bug #840381
2018 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
2019 unlink new file before rename if new and old filenames are the same)
2021 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2023 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
2024 uninitialized variables) for the mcs51. Set environment variable
2025 SDCC_GENRAMCLEAR to test.
2026 xdata initialization slightly shorter
2028 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2031 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
2032 #838241 & 780691 (basicly the same bug)
2033 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
2034 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
2036 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
2038 * src/SDCCmain.c (linkEdit): "fix" #834252
2040 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2042 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
2044 * src/SDCC.y: fixed bug #819403
2046 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2048 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
2049 the reentrant attribute.
2050 * src/hc08/gen.c (genPackBits): added missing stack readjustment
2051 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
2053 * src/SDCCast.c (decorateType): fixed bug with storage class not being
2054 updated during pointer dereference; f.e. ~(((char *)1)*) was being
2055 erroneously reduced to a literal.
2056 * src/hc08/ralloc.c (packRegisters, rematStr),
2057 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
2060 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2062 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
2063 * doc/sdccman.lyx: changed from 'article' to 'book'
2064 * doc/Makefile: readded test_suite_spec and cdbfileformat
2066 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
2068 * device/include/stdlib.h: include malloc.h to comply with ANSI
2069 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
2071 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2073 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
2074 * doc/clean.mk: also remove *.out files
2075 * doc/sdccman.lyx: some additions, larger top/bottom margins
2077 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2079 * src/SDCC.y: fixed bug #837365
2080 * support/regression/tests/bitopcse.c
2081 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
2082 a symbol (might be valop instead)
2083 * device/lib/Makefile.in: added errno.c to HC08SOURCES
2084 * device/lib/clean.mk: added hc08 to the cleaning list
2086 2003-11-04 Borut Razem <borut.razem AT siol.net>
2088 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
2090 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
2091 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
2092 malloc is declared in standard stdlib.h
2094 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2096 * device/lib/hc08/Makefile: need to clean .rel not .o files
2097 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
2099 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2109 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
2110 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
2111 tests (which uses the port's oclsExpense function)
2117 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
2119 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2121 * src/SDCCcse.c (ifxOptimize),
2122 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
2123 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
2124 deleting the IFX iCode.
2125 * src/hc08/ralloc.c: reduced unneeded slocs
2126 * src/hc08/gen.c: fixed bug in asmopToBoolean
2128 2003-11-04 Borut Razem <borut.razem AT siol.net>
2130 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
2131 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
2132 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
2133 transferred to configure
2135 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
2137 Use headers defined in the C[++] standards:
2138 * sim/ucsim/gui.src/serio.src/fileio.cc
2139 * sim/ucsim/gui.src/serio.src/frontend.cc
2140 * sim/ucsim/gui.src/serio.src/main.cc
2141 * sim/ucsim/gui.src/serio.src/posix_signal.cc
2142 * support/Util/NewAlloc.c
2148 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2150 * Added MSVC projects for hc08 assembler and linker:
2151 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
2152 /as/hc08/link_hc08.dsp
2154 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
2156 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
2158 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
2160 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
2162 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2164 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
2166 2003-10-31 Borut Razem <borut.razem AT siol.net>
2168 * support/cpp2/cpplib.h,
2169 support/cpp2/cpplib.c,
2170 support/cpp2/cpplex.c,
2171 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
2172 to switch _asm block preprocessing on / off. Default is
2173 #pragma preproc_asm +
2175 2003-10-31 Borut Razem <borut.razem AT siol.net>
2177 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
2178 when outputting comment blocks (when executed with -C option) and
2179 _asm (SDCPP specific) blocks
2181 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2183 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
2185 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
2187 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
2189 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
2191 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
2192 * src/SDCCast.c (decorateType): fixed bug #832664
2194 2003-10-31 Borut Razem <borut.razem AT siol.net>
2196 * support\cpp2\cpplex.c: fixed for SDCPP:
2197 comments(when executed with -C option) and _asm blocks
2198 were included even if they where in skipped #if block.
2199 Applied solution from GCC cpp 3.3.2
2201 2003-10-31 Borut Razem <borut.razem AT siol.net>
2203 * src/SDCC.lex: sdcc now understands both formats:
2204 '# <line_number> <file_name>' and
2205 '#line <line_number> <file_name>'
2206 * support/cpp2/cppmain.c: sdcpp now generates the standard
2207 '# <line_number> <file_name>' instead of former
2208 '#line <line_number> <file_name>'
2210 2003-10-30 Borut Razem <borut.razem AT siol.net>
2212 * support/cpp2/cpphash.h,
2213 * support/cpp2/cpplib.h
2214 * support/cpp2/cpplex.c,
2215 * support/cpp2/cppmain.c,
2216 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
2218 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2220 Fixed a number of problems revealed by bug #827883.
2221 * src/SDCCloop.c (loopInvariants): Spill location of the
2222 result operand should be recomputed if extracted from
2223 a loop. Also, don't extract assignments of an iTemp
2225 * src/SDCCast.c (isConformingBody): loop reversal should
2226 not occur if the control variable is involved with a
2227 relational operator.
2229 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
2231 * .version: bumped to 2.3.6 to reflect the big improvements
2232 made by Erik and Klaus. Thanks!
2234 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
2236 Replaced the livrange code.
2237 * src/SDCClrange.c: added new LR code
2239 * src/SDCCBBlock.h: removed remainig parts from old LR code
2240 * src/ds390/ralloc.c,
2241 * src/ds390/gen.c: minor fixes to make it work with new code
2243 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2248 * src/hc08/ralloc.c: Fix various warnings related to the hc08
2249 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
2250 (tweaked fix for bug #818696)
2252 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2254 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
2256 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2259 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
2260 * src/mcs51/gen.c (gencjneshort),
2261 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
2262 more efficient (per Scott Bronson's suggestion)
2264 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2266 Extended the semantics of the critical keyword to include
2267 individual statements. See RFE #827755 and #799831
2272 * support/Util/SDCCerr.c
2273 * support/Util/SDCCerr.h
2278 2003-10-19 Borut Razem <borut.razem AT siol.net>
2280 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
2282 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2284 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
2286 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
2287 and predecrement operand is displayed
2289 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
2291 * src/SDCCval.c (valMinus): fixed bug #826041
2293 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2295 Some hc08 related updates that I missed earlier
2296 * sim/ucsim/stypes.h
2297 * support/regression/ports/hc08/spec.mk
2299 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2301 New target "hc08" for the Motorola 68hc08 family of micros
2309 * sim/ucsim/hc08.src/*
2310 * sim/ucsim/configure.in
2311 * src/ucsim/configure
2312 * sim/ucsim/packages_in.mk
2315 * device/include/mc68hc908qy.h
2317 * device/lib/Makefile.in
2318 * support/regression/ports/hc08/*
2319 * support/regression/Makefile
2321 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2323 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
2325 * src/ds390/gen.c (genCast): fixed bug #821957
2327 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
2329 * device/lib/logf.c: "fixed" overlay bug
2330 * support/regression/ports/host/spec.mk: added m library
2331 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
2332 * support/regression/tests/float_trans: added (for Eric)
2334 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
2336 * src/mcs51/gen.c (genCpl): fixed bug
2337 http://sf.net/mailarchive/message.php?msg_id=6263915
2339 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
2341 * src/SDCCast.c (decorateType): added extended constant folding
2342 * src/SDCCsymt.c (computeType): cleanup
2343 * src/SDCCval.c (valShift): minor optimization
2344 * support/regression/tests/ast_constant_folding.c: added
2346 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2348 * src/SDCCmain.c: removed some unintended changes
2350 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2352 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
2353 * src/z80/gen.c: fixed part of bug #817589
2354 * src/SDCCsymt.c (checkFunction): fixed bug #817895
2356 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
2358 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
2369 * src/ds390/ralloc.c
2371 * src/mcs51/ralloc.c
2373 * src/pic16/ralloc.c
2376 * src/z80/gen.c: removed unused label "release:"
2378 2003-10-06 Borut Razem <borut.razem AT siol.net>
2380 * src/SDCC.lex: removed definition of unused variables
2381 save_optimize and save_options
2383 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2385 * clean.mk: removed '=' in "-maxdepth=1"
2386 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
2387 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
2389 2003-10-06 Borut Razem <borut.razem AT siol.net>
2391 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
2392 my_unput() replaced by unput()
2394 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
2396 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
2397 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
2398 type-punned pointer will break strict-aliasing rules"
2399 Old LR behaviour is again default; Klaus' LR can be choosen by
2400 defining the environment variable LRKLAUS
2404 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
2405 * clean.mk: fixed removal of files in bin/CVS/
2406 * device/lib/clean.mk: fixed removal of directories small and large
2407 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
2409 * src/SDCCval.c: removed superflous test for pedantic
2411 2003-10-05 Borut Razem <borut.razem AT siol.net>
2413 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
2414 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
2415 message "unmatched #pragma SAVE and #pragma RESTORE"
2417 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2419 * doc/sdccman.lyx: various additions and updates (interrupts, inline
2420 assembly, critical functions, atomic, nojtbound)
2422 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
2424 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
2430 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2433 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2435 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2437 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
2438 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
2439 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
2441 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2443 * src/z80/gen.c (genRet): fixed bug #524753
2444 * src/z80/gen.c (genCast): fixed internal error on cast from
2446 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
2447 fix for bug #477835 to the z80
2448 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
2449 for tracking iCodes in the peephole optimizer for z80
2451 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2453 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
2454 the other part of bug #814548
2455 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
2457 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
2459 * src/SDCCcse.c: fixed part of bug #814548
2461 2003-09-28 Borut Razem <borut.razem AT siol.net>
2463 * src/asm.c: rewrite of printILine() to use temporary file instead
2465 * src/xa51/main.c: commented out declaration of int rewinds
2467 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2469 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
2471 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2473 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
2474 * src/asm.c (printILine): Fixed bug #811015
2476 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2478 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
2481 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2483 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
2484 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
2485 to correctly handle general case of AOP_PAIRPTR
2486 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
2488 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2490 * src/mcs51/ralloc.c (fillGaps),
2491 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
2492 register positioning bug)
2494 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
2496 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
2498 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2500 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
2501 genCodePointerGet, genGenPointerGet, genFarPointerSet,
2502 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
2503 (ralloc doesn't intentionally do this now, but perhaps later)
2504 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
2505 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
2506 register positioning bugs (Fixed bug #762602 and #795325)
2507 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
2509 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
2510 lines that --i-code-in-asm generates
2512 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2514 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
2515 trying to fclose a FILE* that was already closed.
2517 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2519 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
2520 of const struct should be treated as if const themselves)
2522 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
2524 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
2526 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2528 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
2529 Unix (/n) and DOS (/r/n) line terminations.
2531 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2533 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
2536 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2538 * src/mcs51/gen.c (genFunction, genEndFunction),
2539 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
2540 and restore of EA so that stack offsets to parameters are
2541 correct when using both critical and reentrant/stack-auto.
2542 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
2543 size (can be triggered in error if sloc is shared between
2544 different sized objects)
2545 * device/include/float.h: fixed macros to explicitly use
2546 unsigned long where needed
2548 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
2550 Feature req. 799831: added code to allow nesting of critical functions
2551 * src/mcs51/gen.c (genFunction, genEndFunction)
2552 * src/ds390/gen.c (genFunction, genEndFunction)
2554 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2556 * src/SDCCsymt.c (sclsFromPtr),
2558 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
2559 support for standard C idiom of memory mapped variables; for
2560 example, *((xdata int*)0x1234) = 1 is now internally equivalent
2561 to xdata int at 0x1234 tempvar = 1.
2562 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
2563 provided by Akiya ISHIDA
2565 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
2567 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
2568 * src/SDCCval.c (constVal): added reduction from int to char
2569 * src/SDCCval.c (valMult, valDiv): fixed sign handling
2570 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
2571 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
2573 * support/regression/tests/shifts.c: fixed
2575 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2577 * src/z80/gen.c (genXor): Fixed bug #805445
2579 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2581 Fixed bug #621531 (const & volatile confusion in the type chain).
2582 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
2583 refer to the const or volatile state of the pointer itself.
2595 * src/pic16/ralloc.c
2596 * support/regression/tests/const.c
2598 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2600 When checking for duplicated modules, use absolute paths
2601 instead of relative paths. Files changed:
2606 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2608 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
2610 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2612 * device/include/string.h: added size_t typedef, changed
2613 prototypes to use size_t, eliminated separate reentrant and
2614 non-reentrant declarations, added _memmove declaration
2615 * device/lib/_memcpy.c: changed to use size_t instead of int,
2616 changed /4 to >>2 to avoid division library call
2617 * device/lib/_memcmp.c,
2618 * device/lib/_memset.c,
2619 * device/lib/_strncat.c,
2620 * device/lib/_strncpy.c,
2621 * device/lib/_strncmp.c: changed to use size_t instead of int
2622 * device/lib/_memmove.c: new file (fixed bug #772294)
2623 * device/lib/Makefile.in: added _memmove.c
2624 * device/lib/z80/asm_strings.s: fixed bug #772290
2625 * support/regression/tests/bitfields.c: attempt to fix host assertion
2626 failure on amd64-unknown-linux2.2
2628 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2630 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
2631 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
2632 * as/z80/asmain.c (main): fixed bug #801766
2634 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
2636 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
2639 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2641 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
2642 reported in bug #800609
2644 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
2646 * Top header beautifications in src/pic16 directory:
2647 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
2648 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
2649 pcoderegs.h, ralloc.c, ralloc.h
2650 * main.c: added top header and GPL license notice
2651 * pcode.c: fixed the if-conditional warning
2653 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
2655 * device/lib/_mullong.c: replaced int by short for gcc
2657 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2659 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
2660 and JUMPTABLE iCodes properly now (worked by accident before)
2661 * src/mcs51/gen.c (leftRightUseAcc),
2662 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
2663 iCode properly now. Use getSize instead of nRegs since a & b
2664 aren't part of the nRegs tally.
2666 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
2668 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
2669 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
2670 before instructions that use the _STATUS register
2672 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
2674 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
2675 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
2676 fetching of the pointer
2677 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
2678 copied from genNearPointerSet()
2679 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
2680 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
2681 If they pop r0/r1 they must be called in the opposite order than aopOp().
2682 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
2683 (resp. --stack-auto), prepared for --xstack
2685 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2687 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
2689 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
2691 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
2692 these ports have their own __sdcc_external_start()
2694 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
2696 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2697 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
2698 type for bits was changed. It resulted in bit variables becoming
2699 global, which is not permitted in PIC 14 assembly output.
2701 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2703 * doc/sdccman.lyx: various additions and updates. Rearranged sections
2705 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2707 Z80 and MCS51 linkers complaint if a public symbol is defined
2708 in more than one library module:
2712 * as/mcs51/Makefile.in
2714 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2716 A few small changes that speed up the peephole optimizer.
2720 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2722 Try to make the peephole optimizer smarter by maintaining
2723 an association between the assembly source code and the
2724 iCodes that originated them. Put this information to use
2725 with a new peephole rule condition "notVolatile" so that
2726 the rules can be aggressive yet still safe.
2731 * src/mcs51/peeph.def
2733 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2737 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
2738 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
2739 if the left or right operand symbols have the accuse flag set.
2741 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2743 Changed the type of the result of the ! (NOT) operator to char;
2744 previously it returned the same type as the source. This allows
2745 us to eliminate all the genFloatNot functions (all of its target
2746 implementations were very buggy) since !float can use the same
2749 * src/SDCCicode.c (ast2iCode): ! returns char
2750 * src/mcs51/gen.c (genNot, genNotFloat),
2751 * src/ds390/gen.c (genNot, genNotFloat),
2752 * src/z80/gen.c (genNot, genNotFloat),
2753 * src/pic/gen.c (genNot, genNotFloat),
2754 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
2756 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
2758 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2759 1. Interrupt would not compile properly. Ensure PCLATH register is saved
2760 during interrupts. Ensure WSAVE is located at a shared bank address.
2761 2. Fixed page selection in some places
2762 3. Fixed BTFSS/C to where necessary use registers directly and not simply
2763 the registers name strings.
2764 4. Fixed "signed / unsigned compare" compiler warnings.
2765 5. The PIC port manages its own allocation of the general purpose
2766 registers, but makes no attempt to reuse them. As a result when
2767 compiling it soon runs out of general purpose registers. Some
2768 additional code was added to the files pcode.c and device.c to walk
2769 through the function call tree and rename the registers so that they
2779 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
2780 genPlus() & genMinus() when the result is the same as left or right
2782 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2784 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
2786 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2788 Made bitfield a distinct type from bit so that bitfields
2789 convert as per ANSI C and bits retain their traditional
2790 boolean style behaviour. Implemented bitfield support in
2798 * src/ds390/gen.c: bit v bitfield split
2799 * src/z80/gen.c: New support for bitfields
2800 * support/regression/tests/bitfields.c: reenabled z80,
2803 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2805 Rules 246.x, 247.x relate to bitfields, the others speed up
2806 access to xdata mapped I/O devices.
2808 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
2810 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2812 Cleaned up genPackBits and genUnpackBits and added two helper
2813 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
2814 for literal assignments in genPackBits (thanks to Frieder for
2820 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2822 Fixed bug #748310 (pointer to function type mishandled when the
2823 function name is omitted). Also fixed a SIGSEGV when a function
2824 attribute (reentrant, etc) is used on a non-function or on a
2825 function but misplaced before the parameter list.
2827 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
2829 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
2830 * support/Util/SDCCerr.h,
2831 * support/Util/SDCCerr.c: Added func attr misuse error msg
2833 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2835 Fixed bug #787649 by anonymous
2836 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
2837 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
2839 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2841 Fixed numerous bitfield problems.
2843 * src/SDCC.y: More bitfield related error checking
2845 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
2846 * support/Util/SDCCerr.h,
2847 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
2848 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2849 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2850 * support/regression/tests/bitfields.c: tests added
2852 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2854 Made the constant following the "interrupt" keyword optional. If
2855 omitted, the function will not automatically be given an entry
2856 in the interrupt vector table (similar to #pragma NOIV, but
2857 less syntacticly kludgy). The interrupt number is also now
2858 range checked. Also fixed a bug in the high order bit example
2865 * support/Util/SDCCerr.c
2866 * support/Util/SDCCerr.h
2869 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
2871 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
2872 * src/SDCCicode.c (operandOperation): rewritten some ops
2873 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
2874 * src/SDCCsymt.c (computeType): literals are handled the same way as any
2876 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
2877 be re-activated by defining REDUCE_LITERALS)
2878 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
2879 unsigned, but are signed by default
2880 * src/SDCCval.c (constVal): rearranged
2881 * src/SDCCval.c (valMod): preliminary fix
2882 * src/SDCCval.c (valCastLiteral): use TYPE_* types
2883 * support/regression/literalop.c: added, work in progress
2885 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2887 Generate warnings for useless declarations like "char data;"
2888 that don't do what new users expect.
2891 * support/Util/SDCCerr.h
2892 * support/Util/SDCCerr.c
2894 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
2896 * src/SDCCval.c (valMult): fix overflow detection of negative int
2898 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2900 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
2902 Changes to support big endian targets:
2915 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
2917 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
2918 * device/lib/time.c: fixed warning "integer overflow in expression"
2920 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
2922 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
2923 * src/SDCCval.c (constVal): changed default to signed; hex and octal
2924 constants are unsigned; added recognition of "u" flag for unsigned
2925 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
2926 * src/SDCCval.c (valDiv, valMod): fixed signdness
2927 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
2928 signedness of modulo, left and right shift
2929 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
2930 * support/Util/SDCCerr.h: added warning W_INT_OVL
2931 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
2932 * src/SDCCast.c (ast_print): improved output of constants
2934 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2936 Fixed some warnings when building with MSVC:
2949 * support\cpp2\cpplib.c
2953 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
2955 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
2957 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2959 * support\librarian\clean.mk: Do not remove Makefile.
2960 * support\librarian\Makefile: added.
2962 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2964 Added librarian to MSVC build:
2967 * support\librarian\librarian.dsp
2969 'configure' not needed for librarian, removed:
2970 * support\librarian\configure
2971 * support\librarian\configure.in
2972 * support\librarian\config_in.h
2973 * support\librarian\Makefile.in
2975 Hopefully these ones built the librarian and the rest of sdcc properly:
2977 * Makefile.common.in
2979 Messed up 'configure', so revert to previous version:
2983 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
2985 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
2986 there, while the mantissa of a double is "only" 53 bits wide.
2988 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2990 Adding sdcclib to the build. MSVC project coming soon.
2991 Files added/changed:
2993 * support\librarian\clean.mk
2994 * support\librarian\configure
2995 * support\librarian\configure.in
2996 * support\librarian\config_in.h
2997 * support\librarian\Makefile.bcc
2998 * support\librarian\Makefile.in
2999 * support\librarian\sdcclib.c
3002 * Makefile.common.in
3006 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3008 Linker now complaints if linked modules have conflicting options, for
3009 example, one compiled using --model-large and another one compiled with
3010 --model-small. The following files were modified:
3032 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3034 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
3035 as/mcs51/lklibr.c: Generate a warning when a library is not found.
3037 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
3039 * src/z80/mappings.i: fix _mul[us][int,long] entries
3041 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3043 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
3045 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
3047 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
3048 * support/regression/tests/bitopcse.c: added
3056 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3058 added support for new library format to z80, gbz80 linkers:
3064 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
3066 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
3067 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
3069 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
3071 added DUMMY_READ_VOLATILE:
3080 * src/SDCCcse.c (algebraicOpts): many improvements
3081 * src/SDCCcse.h: removed algebraicOpts()
3082 * src/SDCCicode.c (picDummyRead): added
3084 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3086 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
3087 "Insufficient space in data memory".
3089 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3091 * src/mcs51/gen.c: fixed bug #771358
3092 * src/z80/gen.c: fixed bug #759087
3094 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
3096 * src/pic16/glue.c: minor cleanup by Vangelis
3098 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3100 * device/include/regc515c.h: fixed #758477
3101 * device/lib/_gptrget.c: saving some cycles in generic pointer get
3102 * device/lib/_gptrput.c: saved a few bytes
3103 * my tab spacing is 8, yours too?)
3104 * device/lib/_ser.c: process RX bytes earlier than TX bytes
3105 * device/lib/serial.c: process RX bytes earlier than TX bytes
3106 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
3108 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3110 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
3112 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3114 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
3116 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
3118 * device/lib/Makefile.in: bad fix, reverted to 1.43
3120 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
3122 * device/lib/Makefile.in: added missing z80 object files
3124 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
3126 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
3127 pic16 progress by Vangelis:
3142 * pic16/pcodepeep.c:
3145 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3147 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
3149 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3151 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
3152 added gbz80 build to MSVC project.
3153 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
3154 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
3155 from 8051 stuff and setup so it links using a .lnk file.
3157 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3159 * support/librarian/sdcclib.c: sdcc librarian.
3160 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
3163 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3165 * as/mcs51/lkmain.c: properly handle extensions in function afile.
3167 2003-07-02 Borut Razem <borut.razem AT siol.net>
3169 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
3170 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
3171 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
3172 src/xa51/main.c, src/z80/main.c:
3173 virtualization of glue() function: each port has it's own glue function,
3174 which is accessed by do_glue function pointer in PORT.general structure
3176 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
3178 * DS800C400 fun, improved ROM interface and tinibios.
3180 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
3182 * More support for DS80C400. Now includes beginning of interface to ROM.
3184 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
3186 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
3188 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3190 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
3192 2003-06-19 Borut Razem <borut.razem AT siol.net>
3194 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
3196 2003-06-19 Borut Razem <borut.razem AT siol.net>
3198 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
3199 fixed Z80 port - crt0.o: cannot open.
3201 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
3203 * support/Util/MySystem.c (merge_command): revert bad fix
3205 2003-06-18 Borut Razem <borut.razem AT siol.net>
3207 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
3209 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3211 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
3212 option --use-stdout sends errors to stdout instead of stderr.
3214 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
3216 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
3218 2003-06-15 Borut Razem <borut.razem AT siol.net>
3220 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
3221 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
3222 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
3223 fixed width array of pointers replaced with sets;
3224 multiple include and lib paths ared transferred to preprocessor and linker
3225 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
3226 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
3227 fixed width array of pointers
3228 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
3229 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
3230 fixupPath(), getPathDifference()
3231 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
3232 fixed width array of pointers
3234 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
3236 * src/pic16/ralloc.c: fix warnings
3237 * src/pic16/pcode.c: fix warning
3239 2003-06-10 Scott Dattalo <scott AT dattalo.com>
3241 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
3242 know all the details, but essentially this set of changes enable
3243 the pic16 port to generate movff instructions and generate assembler
3248 * src/pic16/pcode.c:
3249 * src/pic16/device.c:
3251 * src/pic16/pcode.h:
3252 * src/pic16/pcoderegs.c:
3253 * src/pic16/ralloc.c:
3254 * src/pic16/ralloc.h:
3256 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3258 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
3259 added option --vc, so sdcc errors and warnings are compatible with
3260 Microsoft Visual Studio.
3262 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3264 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
3265 device/lib/libfloat.lib: added atof function.
3267 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3269 * doc/sdccman.lyx: updated to Lyx 1.3
3270 * doc/cdbfileformat.lyx: updated to Lyx 1.3
3271 * doc/test_suite_spec.lyx: updated to Lyx 1.3
3272 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
3274 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
3276 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
3278 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3280 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
3281 additions to the "related tools/documentation" section
3283 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
3285 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
3287 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
3289 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
3290 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
3292 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
3294 * doc/sdccman.lyx: fix double dash and other minor things
3295 * doc/Makefile: fix double dash
3297 2003-05-28 Karl Bongers(patches from Martin Helmling)
3298 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
3299 condition and ignore commands.
3301 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3303 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
3304 is in parts still quite out of date, I did changes as far as I felt makes sense
3305 for a non-native english speaker.
3306 Please feel free to add to the manual or to correct my changes.
3307 * doc/Makefile: undid touching the date of intermediate tex files.
3309 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3311 * doc/sdccman.lyx: Manual has an index now
3313 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
3315 Finalize muluint/mulsint and mululong/mulslong merging:
3316 * device/lib/_mulint.c
3317 * device/lib/_mullong.c
3318 * device/lib/gbz80/mul.s
3319 * device/lib/gbz80/stubs.s
3320 * device/lib/z80/mul.s
3321 * device/lib/z80/stubs.s
3322 * src/SDCCsymt.c (initCSupport)
3324 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3326 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
3327 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
3328 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
3329 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
3332 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3334 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
3335 the regression tests I'm not brave enough to enable 245.b, 245.c
3336 * doc/sdccman.lyx: added latex preamble for hyperref package.
3337 Using pdflatex this will give you a hyperlinked pdf file with
3338 bookmarks. (prepend '%' before /usepackage if this breaks something)
3340 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3342 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
3344 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
3346 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
3348 2003-05-21 <johan AT balder>
3350 * src/SDCCglue.c (printIval): fixed bug #739934
3352 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
3354 Applied patch from bug 737905 (renamed yylineo to mylineno):
3361 * src/pic16/pcode.c: Cleaned warnings
3362 * src/pic16/pcodeflow.c: Cleaned warnings
3363 * src/pic16/pcoderegs.c: Cleaned warnings
3365 2003-05-19 Scott Dattalo <scott AT dattalo.com>
3367 * src/pic16/pcode.c: Cleaned warnings
3368 * src/pic16/pcodepeep.c: Cleaned warnings
3369 * src/pic16/ralloc.c: Cleaned warnings
3371 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
3373 * doc/sdccman.lyx: fixed bug 739745
3374 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
3376 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
3378 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
3379 it can be defined with CFLAGS when running configure
3380 * src/SDCCmain.c: fixed compiling + linking with object files
3382 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
3384 * configure.in: configure for pic16 port,
3385 added --disable-pic16-port
3386 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
3387 * src/SDCCmain.c: linkOptions is changed to set *,
3388 added if/endif conditional macros to remove options help
3389 messages from optionsTable when a port is not configured, added
3390 support for the PIc16 port in the ports table, when executing
3391 the compiler with no port specified on command line, a default
3392 port is selected with the new macro DEFAULT_PORT which is
3393 defined in port.h, in setDefaultOptions() linkOptions is removed
3394 from initialization assignment, since now it is a set,
3395 parseCmdLine uses setParseWithComma for linkOptions, in
3396 linkEdit() linkOptions are accessed with new function indexSet()
3397 which returns the i'th item of a set variable. See SDCCset.c, in
3398 linkEdit() when calling buildCmdLine(), added linkOptions as
3399 last argument. Now users can pass arguments to gplink via the
3400 -Wl option, main() uses pic16glue() to glue up pic16 programs
3401 * src/SDCCpeeph.c: various changes to support pic16
3402 * src/SDCCset.c: added function void *indexSet(set *, int) to
3403 return the i'th item of the set
3404 * src/SDCCset.h: added function prototype for indexSet()
3405 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
3406 * src/clean.mk: added pic16 in CLEANALLPORTS variable
3407 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
3408 added macro DEFAULT_PORT
3409 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
3410 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
3412 * src/pic16/glue.c: commented out some error producing lines
3413 * src/pic16/main.c: __config directives are commented out to stop
3414 gpasm complaining and test the linkage with gplink, _linkCmd and
3415 _asmCmd changed to be more gplink and gpasm friendly
3416 * src/pic16/peeph.def: peep rule 3 is commented out, since it
3417 produced an error when parsed, peep rule 12 is added to utilize
3418 movff, but it is commented out since the pCode does not support
3419 yet a command with 2 address arguments
3421 2003-05-18 <johan AT balder>
3423 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
3424 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
3425 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
3427 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
3428 Added feature to script commands from file.
3430 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3432 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
3433 * src/SDCCutil.c: include ctype.h for win32
3435 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3437 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
3439 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
3441 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
3442 Fixed so you can set breakpoints prior to run, run does not stop
3443 on entry now. Add tbreak. Other enhancements and fixes for use
3446 2003-05-12 Borut Razem <borut.razem AT siol.net>
3448 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
3450 2003-05-11 Borut Razem <borut.razem AT siol.net>
3452 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
3453 the path of bin directory, so that PATH is the only env. variable, which has to be set
3454 in case of standard installation.
3455 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
3456 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
3457 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
3459 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
3461 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
3462 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
3463 temp files are in the port dir; clean the gen/test directory when
3464 generating new test.c
3465 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
3466 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
3467 * support/regression/tests/zeropad.c: added
3469 2003-05-09 <johan AT balder>
3471 * src/SDCCglue.c: fixed bug #597940
3473 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
3475 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
3476 cache sfr, optimize next,step, fix off by one sourceline,
3477 support ddd list function.
3478 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
3480 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
3482 * support/regression/HTMLgen.py: added compare_s2f()
3483 * support/regression/Makefile: redo 1.27
3484 * support/regression/generate-cases.py: redo 1.5
3486 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3488 * support/regression/tests/float.c: workaround 33 bit hex constant
3489 * support/regression/tests/simplefloat.c: fix division for host
3491 2003-04-29 Scott Dattalo <scott AT dattalo.com>
3493 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
3494 that tame's the PIC's over-aggressive optimizer.
3496 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3498 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
3501 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
3503 Initial support for DS80C400. "Hello world" runs on TINIm400
3506 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
3508 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
3509 * Some notes on ddd usage added in debugger/README
3510 Martin Helmling adding more features and fixes for ddd GUI debugger.
3511 Code added for nexti, stepi, up, down, and other adjustments.
3513 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
3515 * src/pic/pCodepeep.c non-wildcard asmops are now handled
3516 * src/pic/peeph.def Added two rules to optimize carry manipulation
3517 * src/pic/* removed debug printfs
3519 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3521 * debugger/mcs51/cmd.c: added header newalloc.h
3523 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3525 * as/Makefile: new EXEEXT
3526 * as/z80/Makefile: remove trailing slash of BUILDIR
3527 * as/z80/clean.mk: new EXEEXT
3528 * Makefile.common.in: add to CFLAGS (and others), don't replace it
3529 * support/cpp2/Makefile.in: new EXEEXT
3530 * src/pic/glue.c (pic14emitRegularMap): fixed warning
3532 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3534 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
3535 EXEEXT was introduced to fix all related problems with targets
3536 "clean", "install" and "uninstall"; a couple of further flaws
3537 especially with "clean" have been fixed too
3538 * as/mcs51/Makefile.in
3543 * debugger/mcs51/Makefile.in
3544 * debugger/mcs51/clean.mk
3546 * link/z80/Makefile.in
3549 * packihx/Makefile.in
3551 * sim/ucsim/Makefile
3552 * sim/ucsim/clean.mk
3553 * sim/ucsim/avr.src/Makefile.in
3554 * sim/ucsim/avr.src/clean.mk
3555 * sim/ucsim/s51.src/Makefile.in
3556 * sim/ucsim/s51.src/clean.mk
3557 * sim/ucsim/xa.src/Makefile.in
3558 * sim/ucsim/xa.src/clean.mk
3559 * sim/ucsim/z80.src/Makefile.in
3560 * sim/ucsim/z80.src/clean.mk
3561 * sim/ucsim/main_in.mk
3562 * sim/ucsim/packages_in.mk
3563 * sim/ucsim/gui.src/Makefile.in
3564 * sim/ucsim/gui.src/serio.src/Makefile.in
3565 * sim/ucsim/gui.src/serio.src/clean.mk
3568 * support/cpp2/Makefile.in
3569 * support/cpp2/clean.mk
3570 * support/makebin/Makefile
3571 * support/makebin/clean.mk
3572 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
3573 * doc/sdccman.lyx: --program-suffix no longer needed
3575 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
3577 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
3578 Martin Helmling added support for ddd GUI debugger.
3579 Code added to display assembly, set variables, and other commands
3580 to interface to ddd.
3582 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
3584 * as/Makefile: fix target clean
3585 * as/clean.mk: fix target clean
3586 * as/z80/clean.mk: fix target clean
3588 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
3590 * Makefile.common.in: added AT EXEEXT AT
3591 * configure.in: removed all mingw32 stuff
3592 * configure: rebuilt from configure.in
3593 * doc/sdccman.lyx: updated section "installation"
3594 * support/scripts/sdcc_mingw32: adapted to configure
3595 * support/scripts/sdcc_cygwin_mingw32: added
3597 2003-04-22 Scott Dattalo <scott AT dattalo.com>
3599 * src/pic Added object file support for the PIC port
3600 * src/pic Applied patch from Craig Franklin (this started the object file support)
3601 * src/regression Updated the PIC regression tests for object files
3603 2003-04-20 Borut Razem <borut.razem AT siol.net>
3605 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
3606 lklex.c: In function `getfid':
3607 lklex.c:203: warning: array subscript has type `char'
3608 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
3609 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
3610 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
3611 stack handling macros
3613 2003-04-19 Borut Razem <borut.razem AT siol.net>
3615 * "handling space characters in file path" task:
3616 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
3617 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
3618 * support/Util/MySystem.h: make it self-sufficient
3619 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
3620 src/z80/main.c, sdcc/as/mcs51/lklex.c:
3621 handling space characters in file path
3622 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
3623 (it will be used by assemblers, which have their own includes, e.g. gpasm)
3624 * support/Util/MySystem.c: handling space characters in executable's path
3626 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
3628 * as/z80/Makefile: fix permanent rebuild of z80
3629 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
3630 * support/regression/tests/bitfields.c: added Johan's bitfields.c
3632 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
3634 * src/SDCCopt.c: add special case optimization to replace modulo by
3635 a power of two with a bitwise AND.
3637 2003-04-18 <johan AT balder>
3639 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
3641 2003-04-17 <johan AT balder>
3643 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
3644 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
3646 2003-04-13 Borut Razem <borut.razem AT siol.net>
3648 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
3649 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
3650 fixed mingw problem in adl_NORMALIZE_PATH
3652 2003-04-12 Borut Razem <borut.razem AT siol.net>
3654 * fixed "#pragma SAVE/RESTORE can not be nested":
3655 * src/SDCC.lex: reworked pragma handling functions
3656 * sdcc/src/SDCCglobl.h: reworked stack handling macros
3657 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
3659 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3661 * src/SDCCutil.c (pathEquivalent): defined but not used
3662 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
3663 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
3664 * configure: rebuilt from configure.in
3665 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3666 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3667 * device/include/Makefile.in: replace sdcc_datadir
3668 * device/lib/Makefile.in: replace sdcc_datadir
3669 * Makefile.common.in: add LDFLAGS from configure
3670 * packihx/Makefile.in: use LDFLAGS
3671 * src/Makefile.in: use LDFLAGS
3672 * support/cpp2/Makefile.in: add LDFLAGS from configure
3673 * support/makebin/Makefile: use LDFLAGS
3674 * .version: bumped version number to 2.3.5
3676 2003-04-12 Borut Razem <borut.razem AT siol.net>
3678 * completed "different paths" task:
3679 * src/SDCCmacro.c: fixed bug in handling quotes
3680 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
3681 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
3683 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3685 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
3687 2003-04-11 kevin Vigor <kevin AT vigor.nu>
3689 * ds390/gen.c ds390/peeph.def: fix bug 706781
3691 2003-04-11 Borut Razem <borut.razem AT siol.net>
3693 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
3695 2003-04-10 Scott Dattalo <scott AT dattalo.com>
3697 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
3698 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
3699 set - this bit used to not be set...).
3700 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
3701 bad code in PIC Port
3702 * src/regression/and2.c added to test bug 609268
3703 * src/regression/Makefile added and2.c to regression test
3706 2003-04-08 <johan AT CP255758-A>
3708 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
3709 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
3710 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
3712 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
3714 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
3716 * support/cpp2/Makefile.in: fix bug #487815
3717 * configure: rebuilt from configure.in
3718 * Makefile.common.in: docdir changed, new path suffixes
3719 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3720 * sdcc_vc_in.h: reflect changes from sdccconf.h
3721 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
3722 * src/SDCCutil.h: remove BINDIR hack
3723 * doc/sdccman.lyx: update new path hierarchy
3725 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3727 * src/SDCCpeeph.c: added okToRemoveSLOC test
3729 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3731 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
3733 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
3735 * src/SDCCpeeph.c: added labelIsReturnOnly test
3736 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
3738 2003-04-05 <johan AT balder>
3740 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
3741 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
3742 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
3743 * src/SDCCast.c: fixed a warning
3744 * src/SDCCast.h: fixed a warning
3745 * src/SDCCicode.c (operandFromAst): fixed a warning
3747 2003-04-04 <johan AT balder>
3749 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
3750 * src/SDCCast.c (decorateType): fixed bug #715076
3751 * src/SDCC.y: fixed bug #702907
3753 2003-04-03 <johan AT balder>
3755 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
3756 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
3757 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
3758 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
3759 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
3761 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
3763 * _decdptr.c: fix return values
3764 * _gptrget.c: fix return values
3765 * _gptrgetc.c: fix return values
3766 * _gptrput.c: fix return values
3767 * _mulint.c: fix return values
3768 * as/z80/Makefile: fix 'make -j' problem
3770 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
3772 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
3773 * configure.in: big cleanup, updated to autoconf 2.5x
3774 * configure: rebuilt from configure.in
3775 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3776 * sdcc_vc_in.h: reflect changes from sdccconf.h
3777 * doc/Makefile: fixed a flaw in "make install"
3779 2003-04-02 <johan AT balder>
3781 * src/ds390/gen.c (genCmp): no comments
3782 * src/mcs51/gen.c (genCmp): no comments
3783 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
3784 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
3786 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
3788 * support/regression/generate-cases.py: place generated file in given sub directory
3789 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
3790 * support/regression/Makefile: improvements for 'make -j';
3791 side effect: it's simpler and faster now
3793 2003-03-31 Borut Razem <borut.razem AT siol.net>
3795 * src/z80/main.c: link-{port} and as-{port} defined without path
3796 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
3798 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
3800 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
3802 2003-03-30 Borut Razem <borut.razem AT siol.net>
3804 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
3805 changed type of list parameter to set
3806 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
3807 * src/port.h: changed type of do_assemble() parameter to set
3808 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
3809 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
3810 definition of "cppoutfilename" macro with NULL value in preProcess()
3811 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
3812 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
3813 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
3814 replaced with set *binPathSet
3815 * shash_add() deallocates the item, if allready exsists, before adding the new one
3816 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
3818 2003-03-30 Scott Dattalo <scott AT dattalo.com>
3820 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
3821 a nested for loop bug in the PIC port
3822 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
3825 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
3827 * support/Util/dbuf.h: remove C++ stuff to make it portable
3829 2003-03-28 Borut Razem <borut.razem AT siol.net>
3831 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
3832 literal strings in stringLiteral()
3833 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
3834 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
3837 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
3839 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
3841 2003-03-26 <johan AT balder>
3843 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
3844 * src/ds390/gen.c (saveRegisters): catched symbol abuse
3845 * src/SDCCast.c (decorateType): fixed " -v < 3"
3847 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3849 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
3850 Added Lenny Story's debug infrastructure changes:
3851 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
3852 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
3853 * src/cdbFile.c: added
3854 * src/SDCCdebug.c: added
3855 * src/SDCCdebug.h: added
3856 * src/SDCCast.c (createFunction)
3857 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
3858 * src/SDCCmain.c (parseCmdLine, main)
3859 * src/SDCCmem.c (redoStackOffsets)
3860 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
3863 * src/avr/gen.c (genAVRCode)
3864 * src/ds390/gen.c (gen390Code)
3865 * src/mcs51/gen.c (gen51Code)
3866 * src/pic/gen.c (genpic14Code)
3867 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
3868 * src/xa51/gen.c (genXA51Code)
3869 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
3871 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3873 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
3874 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
3876 2003-03-22 <johan AT balder>
3878 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
3880 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
3882 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
3883 * doc/cdbfileformat.lyx: added, written by Lenny Story
3884 * doc/Makefile: added cdbfileformat.lyx
3885 * doc/clean.mk: added cdbfileformat.lyx
3887 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
3889 * src/mcs51/peeph.def: fix bug #705773
3891 2003-03-20 <johan AT balder>
3893 An sfr/sbit can have an "at #" AND an initializer
3894 * src/SDCCsymt.c (checkSClass):
3895 * src/SDCCmem.c (allocGlobal):
3896 * src/SDCCmem.c (allocLocal):
3897 * src/SDCCast.c (createBlock):
3899 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
3901 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
3903 2003-03-16 <johan AT balder>
3905 Undid the hackup of const and volatile, the problem is much bigger
3907 * src/SDCCast.c:1.171
3908 * src/SDCCglue.c:1.138
3909 * src/SDCCicode.c:1.146
3910 * src/SDCCsymt.c:1.150
3911 * src/SDCCval.c:1.65
3913 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
3915 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
3916 * src/ds390/gen.c (genAddrOf): fixed bug #704087
3918 2003-03-13 <johan AT balder>
3920 Hackup const and volatile modifiers in type chains a bit:
3922 * src/SDCCast.c:1.169
3923 * src/SDCCglue.c:1.136
3924 * src/SDCCicode.c:1.143
3925 * src/SDCCsymt.c1.146
3926 * src/SDCCsymt.h1.59
3927 * src/SDCCval.c:1.63
3929 2003-03-12 <johan AT balder>
3931 * src/SDCCBBlock.h: more LRH debugging junk
3932 * src/SDCCcflow.h: more LRH debugging junk
3933 * src/SDCCloop.c: more LRH debugging junk
3934 * src/SDCC.y (struct_declaration): fixed bug #697590
3935 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
3936 * src/ds390/gen.c (aopForRemat): fixed bug #700031
3937 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
3939 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3940 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
3941 test function names must now match exactly).
3942 * src/SDCCcse.c: added special case in findCheaperOp to allow
3943 extending a short integer. Makes less awful code for bug 700121 test case.
3945 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3947 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
3948 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
3950 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3952 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
3953 actually called (operandsNotEqual() was called for all
3954 operandsNotEqualX tests).
3956 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3958 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
3959 with shorter literals. Fixes bug 700121.
3961 2003-03-11 <johan AT balder>
3963 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
3965 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
3967 * src/SDCCloop.c (mergeRegions): an evil beast is dead
3968 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
3970 2003-03-10 Borut Razem <borut.razem AT siol.net>
3972 * src/SDCCmain.c: pipe preprocessor's output
3973 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3974 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3975 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3976 which closes all pipes in pipeSet set
3977 * src/SDCCset.c: free deleted item in function deleteSetItem()
3978 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3979 moved from z80 to src subproject
3980 * .version: increased version number to 2.3.4
3982 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
3984 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
3985 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
3986 * support/regression/ports/xa51/spec.mk: fix typo
3988 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
3990 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
3992 2003-03-09 Borut Razem <borut.razem AT siol.net>
3994 * src/SDCCmain.c: pipe preprocessor's output
3995 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3996 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3997 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3998 which closes all pipes in pipeSet set
3999 * src/SDCCset.c: free deleted item in function deleteSetItem()
4000 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
4001 moved from z80 to src subproject
4003 2003-03-09 Borut Razem <borut.razem AT siol.net>
4005 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
4006 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
4007 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
4008 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
4009 * src/SDCCglobl.h: unification of WIN32 native definitions
4011 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4013 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
4015 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
4017 * src/configure.in: check for endianess (even while cross-compiling)
4018 * src/configure: check for endianess (even while cross-compiling)
4019 * src/configure_in.h: check for endianess (even while cross-compiling)
4020 * src/avr/gen.c: remove old endianess stuff
4021 * src/mcs51/gen.c: remove old endianess stuff
4022 * src/ds390/gen.c: remove old endianess stuff
4023 * src/pic/gen.c: remove old endianess stuff
4024 * src/pic/genarith.c: remove old endianess stuff
4025 * src/pic/glue.c: fix endianess check
4026 * src/pic16/gen.c: remove old endianess stuff
4027 * src/pic16/genarith.c: remove old endianess stuff
4028 * src/pic16/glue.c: fix endianess check
4029 * src/xa51/gen.c: remove old endianess stuff
4030 * src/z80/gen.c: fix endianess check
4031 * src/SDCCglue.c: fix endianess check
4032 * src/ds390/peeph.def: fix bug 700036
4034 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
4036 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
4037 * src/configure: find appropriate data-types on host for SDCC's int and long
4038 * src/configure.in: find appropriate data-types on host for SDCC's int and long
4039 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
4040 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
4042 2003-03-07 <johan AT balder>
4045 some minor cleanups before the big shot
4046 OP_DEFS and OP_USES now use Kevin's protection
4047 new option --nolabelopt
4058 * src/ds390/ralloc.c:
4059 * src/mcs51/ralloc.c:
4061 * src/xa51/ralloc.c:
4064 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
4066 * src/pic/pcode.c (get_op): fix 64 bit warnings
4067 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
4068 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
4069 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
4070 * support/regression/tests/malloc.c: fix 64 bit warnings
4072 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
4074 * src/mcs51/gen.c (genMinus): fixed bug 696436
4076 2003-03-02 Borut Razem <borut.razem AT siol.net>
4078 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
4080 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
4082 * configure.in: test for mkstemp
4083 * sdccconf_in.h: add HAVE_MKSTEMP
4085 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
4087 * device/include/ctype.h: removed warning while using --stack-auto
4088 * device/include/malloc.h: removed warning while using --stack-auto
4089 * device/include/string.h: removed warning while using --stack-auto
4091 2003-02-23 Borut Razem <borut.razem AT siol.net>
4093 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
4094 because NDEBUG is defined (see man assert)
4095 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
4097 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4099 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
4100 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
4102 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4104 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
4105 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
4107 2003-02-18 <johan AT balder>
4109 * as/mcs51/asmain.c (asmbl): module can start with a digit
4110 * as/z80/asmain.c (asmbl): module can start with a digit
4112 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
4114 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
4115 * src/asm.c: fix pipe() for Mingw32
4117 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
4119 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
4120 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
4121 make -V work again; --c1mode reads now from stdin
4122 * doc/sdccman.lyx: added --c1mode
4123 * support/Util/SDCCerr.c: new messages for c1 mode
4124 * support/Util/SDCCerr.h: new messages for c1 mode
4125 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
4127 2003-02-15 <johan AT balder>
4129 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
4131 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
4133 * doc/sdccman.lyx: Environment variables, -o and other minor things
4135 2003-02-14 <johan AT balder>
4137 * src/xa51/main.c: before anyone really tries to use it :)
4139 * Install doc's in share/sdcc/doc
4140 * removed some obsolete files
4141 * Do a proper make distclean and uninstall
4142 M Makefile.common.in
4145 M device/include/Makefile.in
4146 M device/lib/Makefile.in
4149 M sim/ucsim/doc/Makefile.in
4152 R src/xa51/peeph.rul
4153 M support/cpp2/Makefile.in
4154 M support/makebin/Makefile
4157 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
4159 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
4161 2003-02-10 Borut Razem <borut.razem AT siol.net>
4163 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
4164 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
4165 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
4166 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
4167 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
4168 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
4169 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
4170 src/z80/Makefile.bcc: Borland Makefile cleanup
4171 * as/z80/Makefile.bcc: Added Borland Makefile
4172 * support/cpp2/borland.h: Removed
4174 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
4176 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
4177 * src/SDCC.lex: new pragma NOIV
4178 * src/SDCCglobl.h: new pragma NOIV
4179 * src/SDCCmem.c: new pragma NOIV
4181 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
4183 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
4185 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
4187 * src/SDCCmain.c: signal handling is switched off by --debug
4188 * doc/Makefile: small fix for install; use clean.mk again
4189 * doc/clean.mk: clean *.pdf and *.html too
4191 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
4193 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
4194 * device/lib/printfl.c: fix a ds390 bug by making it portable
4195 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
4196 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
4197 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
4198 * debugger/mcs51/cmd.c: converted multi-line string literals
4199 * sim/ucsim/globals.cc: converted multi-line string literals
4200 * src/SDCCmain.c: introduced signal handler to remove temp files
4201 * doc/Makefile: small tweaks, implement clean
4202 * doc: removed generated files
4204 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4206 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
4207 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
4208 Address Record is not correctly generated for DS390."
4210 2003-02-02 Borut Razem <borut.razem AT siol.net>
4212 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
4213 * as/mcs51/asm.h: fixed compilation with Borland C
4214 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
4215 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
4216 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
4217 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
4218 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
4219 src/z80/Makefile.bcc: delete $(LIB) only if exist
4220 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
4222 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
4224 * device/include/malloc.h: introduced NULL
4225 * device/include/string.h: introduced NULL
4226 * device/include/stdlib.h: introduced NULL
4227 * device/lib/_memcpy.c: removed NULL
4228 * device/lib/_strcat.c: removed NULL
4229 * device/lib/_strchr.c: removed NULL
4230 * device/lib/_strcmp.c: removed NULL
4231 * device/lib/_strcpy.c: removed NULL
4232 * device/lib/_strcspn.c: removed NULL
4233 * device/lib/_strlen.c: removed NULL
4234 * device/lib/_strncat.c: removed NULL
4235 * device/lib/_strncmp.c: removed NULL
4236 * device/lib/_strncpy.c: removed NULL
4237 * device/lib/_strpbrk.c: removed NULL
4238 * device/lib/_strrchr.c: removed NULL
4239 * device/lib/_strspn.c: removed NULL
4240 * device/lib/_strstr.c: removed NULL
4241 * device/lib/_strtok.c: removed NULL
4242 * device/lib/malloc.c: removed NULL, include own header
4244 2003-02-02 <johan AT balder>
4246 * 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
4247 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
4248 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
4249 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
4250 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
4251 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
4253 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4255 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
4258 2003-02-01 <johan AT balder>
4260 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
4262 2003-01-31 <johan AT CP255758-A>
4264 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
4266 2003-01-30 <johan AT balder>
4268 * src/SDCCBBlock.c: automatic bug detection
4269 * src/SDCCicode.c: automatic bug detection
4271 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4273 * src/SDCCglobl.h: now --xram-size 0 works
4274 * src/SDCCmain.c: now --xram-size 0 works
4276 2003-01-29 <johan AT balder>
4278 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
4280 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4282 * as/mcs51/aslink.h: Added options --xram-size and --code-size
4283 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
4284 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
4285 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
4286 * src/SDCCglobl.h: Added options --xram-size and --code-size
4287 * src/SDCCmain.c: Added options --xram-size and --code-size
4289 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4291 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
4292 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
4294 2003-01-27 <johan AT balder>
4296 * src/SDCC.y: fixed bug #613764
4298 2003-01-26 <johan AT balder>
4300 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
4301 * src/SDCCsymt.h: fixed bug #673374
4302 * src/SDCCglue.c: fixed bug #661910
4303 * src/SDCCast.c: fixed bug #458099 and 673374
4305 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4307 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
4308 * as/mcs51/strcmpi.h: added
4309 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
4310 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
4311 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
4312 * as/mcs51/assym.c: strcmpi -> as_strcmpi
4313 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
4314 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
4315 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
4316 * as/mcs51/Makefile.aslink: new module strcmpi
4317 * as/mcs51/Makefile.asx8051: new module strcmpi
4318 * as/mcs51/Makefil.bcc: new module strcmpi
4319 * as/mcs51/Makefile.in: new module strcmpi
4320 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
4322 2003-01-26 <johan AT balder>
4324 * src/SDCCglue.c: reverted back to 1.124
4325 * src/SDCCast.c: reverted back to 1.156
4326 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
4328 2003-01-25 <johan AT balder>
4330 * src/SDCCglue.c: A better fix for bug #661910
4331 * src/SDCCast.c: A better fix for bug #661910
4332 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
4334 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
4336 * src/Makefile.in: remove spawn.o
4337 * src/SDCCmain.c: remove spawn.h
4338 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
4339 * src/spawn.c: removed
4340 * src/spawn.h: removed
4341 * support/regression/ports/ds390/spec.mk: link with -r
4343 2003-01-24 <johan AT CP255758-A>
4345 * src/ds390/gen.c (aopOp): fixed bug #667458
4346 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
4347 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
4348 (createIvalCharPtr): an ival doesn't always have a storage class anymore
4350 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
4352 * src/mcs51/peeph.def: better assembler identation by Frieder
4353 * src/mcs51/gen.c: better assembler identation by Frieder
4355 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4357 * as/z80/string.h: removed for gcc 3.2
4358 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
4359 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
4361 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4363 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
4364 * src/SDCCpeeph.c (replaceRule): fix bug #663503
4365 * support/regression/Makefile: separate temp files for ports
4366 * support/regression/generate-cases.py: separate temp files for ports
4367 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
4368 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
4370 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4372 * moved tinitalk to device/examples/ds390
4374 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
4376 * as/mcs51/lkmem.c: rflag is for DS390
4377 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
4378 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
4379 (linkEdit): move mem- and map-files the same way as ihx-files
4380 * src/z80/main.c (_setDefaultOptions): removed --generic
4381 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
4382 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
4383 * src/pic/glue.c (picglue): --c1mode works again
4384 * src/pic16/glue.c (pic16glue): --c1mode works again
4385 * src/asm.c (printCLine): fix #660034
4387 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4389 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
4390 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
4391 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
4392 * as/mcs51/lkmem (summary): better fix for sp problem
4393 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
4394 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
4395 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
4396 remove --stack-after-data
4398 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
4400 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
4401 * src/SDCCutil.c (join): ugly bug: missing '\0'
4402 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
4404 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
4406 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
4408 * src/pic/main.c (_asmCmd): gpasm supports -o
4409 * src/z80/main.c: more general macros
4410 * device/lib/Makefile.in: remove intermediate files
4412 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
4414 * .version: Bumped version number to 2.3.3
4415 * src/SDCCBBlock.c: new option -o
4416 * src/SDCCglobl.h: new option -o
4417 * src/SDCCglue.c: new option -o
4418 * src/SDCCmain.c: new option -o
4419 * src/asm.c: new option -o
4420 * src/ds390/main.c: new option -o
4421 * src/pic/glue.c: new option -o
4422 * src/pic/pcode.c: new option -o
4423 * src/pic/ralloc.c: new option -o
4424 * src/pic16/glue.c: new option -o
4425 * src/pic16/pcode.c: new option -o
4426 * src/pic16/ralloc.c: new option -o
4427 * src/z80/main.c: new option -o
4428 * device/lib/Makefile.in: use -o
4429 * support/regression/ports/ds390/spec.mk: use -o
4430 * support/regression/ports/gbz80/spec.mk: use -o
4431 * support/regression/ports/mcs51/spec.mk: use -o
4432 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
4433 * support/regression/ports/z80/spec.mk: use -o
4434 * support/regression/ports/ucz80/spec.mk: use -o
4435 * support/regression/ports/xa51/spec.mk: use -o
4436 * support/regression/fwk/lib/timeout.c: fix usage string
4438 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
4439 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
4441 2003-01-07 <johan AT balder>
4443 * src/SDCCast.c (decorateType): fixed bug #600035
4445 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
4446 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
4447 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
4448 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
4449 * src/pic/pcode.c: outcommented unused variable to remove warnings
4450 * src/pic/ralloc.c: outcommented unused variable to remove warnings
4452 2003-01-06 <karl AT turbobit.com>
4453 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
4456 2003-01-06 <johan AT balder>
4458 * src/SDCCicode.c: fixed array add
4460 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
4461 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
4462 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
4464 2003-01-04 <johan AT balder>
4466 * src/SDCCval.c (getNelements): fixed the initialized array of structures
4468 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4469 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
4471 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4472 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
4473 * support/regression/tests/bug-524697.c: fit mem usage into 8032
4475 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4476 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
4478 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
4479 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
4481 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4482 * src/mcs51/main.c: removed {bindir}{sep} from aslink
4484 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4486 * in \sdcc\as\mcs51\ changed these files in order to create an
4487 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
4488 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
4489 following files to include the previous two files: aslink.dsp,
4490 Makefile.aslink, Makefile.bcc, and Makefile.in.
4492 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
4493 .adb instead of .cdb
4495 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4497 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
4498 value from option --iram-size.
4500 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4502 * \sdcc\as\mcs51\lklist.c: added boundary check before using
4505 2002-09-18 <wiml AT hhhh.org>
4507 * SDCClrange.h: exposed setFromRange() and setToRange()
4508 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
4509 packRegsForAccUse() (bug 542397)
4510 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
4511 multiple times and emitting the fetch operations more than once
4512 added aopGetUsesAcc() function to allow binary operators to
4513 fetch their operands in the correct order; made genMinus() emit
4514 compact code for X = LITERAL - Y
4516 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4517 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
4518 sprintf() in line 1267.
4520 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4521 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
4524 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4525 Changes to aslink (All the changes are marked with 'JCF'):
4527 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
4530 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
4531 area BSEG. Also moves, if possible, the DATA area down into the internal
4532 ram so more space is available.
4534 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
4537 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
4538 not bytes. Function summary() which creates a memory usage summary
4539 file with extension .mem. Reports of overlaping stack and small stack
4540 size. If the space for the stack is less than 16 bytes aslink trows a
4543 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
4544 the 8051. Option 'y' for memory summary output file.
4546 Changes to sdcc (All the changes are marked with 'JCF'):
4548 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
4550 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
4551 overlaying area for it (uses RegBankUsed[4]).
4553 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
4554 bank zero as used by default. By default aslink locates the stack
4555 (equivalent to --stack-after-data). Pass option 'y' to aslink for
4556 the creation of the .mem file. Delegates the allocation of data area
4557 to aslink (it is not longer 0x30 by default). If --stack-loc passes
4558 the begining of the stack area to aslink.
4560 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
4561 glue() in SDCCglue.c creates an area for it.
4563 2002-09-03 Borut Razem <borut.razem AT siol.net>
4564 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
4565 sdcc/src/pic/glue.c:
4566 introduced atexit() handler for teporay files removal in case of
4567 errors, assertions, ...
4569 2002-08-29 Borut Razem <borut.razem AT siol.net>
4570 * sdcc/support/cpp2/auto-host_vc_in.h:
4571 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
4572 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
4573 Maybe there is a similar problem with BORLANDC? It should be checked!
4575 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
4576 corrected improper use of assert: the assignment to clr variable was done inside the assert.
4577 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
4578 was not executed, and the compiler (cl) launched a warning:
4579 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
4581 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
4582 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
4584 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
4585 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
4587 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
4588 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
4589 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
4590 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
4591 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
4592 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
4593 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
4594 - added Release configuration in VS projects
4595 - review of compiler an linker options
4596 - VC .exe files are generated in bin_vc directory, not to interfere
4597 with binaries generated from other projects (cygwin, mingw, bcc ...)
4599 * sdcc/src/yacc.dsp: added
4601 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
4602 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
4603 and insert the version number definitions from .version
4605 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
4607 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
4608 added - genarate auto-host.h using auto-host_vc_in.h as template
4611 removed from CVS, generated automatically
4613 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
4614 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
4616 2002-08-11 Borut Razem <borut.razem AT siol.net>
4617 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
4619 2002-08-10 Borut Razem <borut.razem AT siol.net>
4620 * src/SDCCmain.c (main):
4621 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
4622 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
4623 The consequence was that some temporary files were not removed.
4626 unification of code in functions tempfilename() and tempfile():
4627 function tempnam() is defined in Visual Studio 6.0 and .NET
4629 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
4631 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
4632 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
4633 - removed compiler command line option /WX: Treats all warnings as errors
4634 - update a list of source files, included into the project
4636 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
4637 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
4638 changed project type to Generic Project so that can be correcly converted to VS.NET project
4640 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
4642 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
4644 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
4646 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
4647 added return 0 statements after assert() to make compiler happy
4649 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
4650 added newline in the def file to keep MSC compiler satisfied
4652 * sdcc/src/z80/gen.c:
4653 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
4654 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
4655 - solved MSC error in function aopDump()
4657 * sdcc_vc.h: define PREFIX as "\\sdcc"
4659 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
4660 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
4662 2002-06-22 Scott Dattalo <scott AT dattalo.com>
4663 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
4664 - Rewrote the register banking algorithm.
4665 - Added pCode live-range analysis to registers (for now, only non-used and
4666 singly-used registers optimized away)
4668 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
4670 * 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.
4672 2002-05-10 Scott Dattalo <scott AT dattalo.com>
4673 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
4675 2002-04-22 Michael Hope <michaelh AT vroom>
4677 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
4679 * configure.in (DD_COPT): Added include support required for gbdk.
4681 * .version: Bumped version number just to increase it.
4683 * src/SDCCmain.c: Added -nostdinc to the default options.
4685 2002-04-15 Michael Hope <michaelh AT vroom>
4687 * device/lib/z80/printf.c (sprintf): Added.
4689 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
4691 * src/z80/peeph.def: Added transpose redundent load rule.
4693 * src/z80/main.c: Added force callee saves for jaune.
4695 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
4697 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
4699 2002-03-28 Johan Knol <johan AT balder>
4701 * src/SDCCval.c: fixed bug #532436
4703 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4705 Added "char *Processor" field to the port structure.
4708 Added -p option. Allows port dependent processor to be specified.
4711 Initialized the new field char *Processor field to NULL in all ports
4714 Compiler generated registers for interrupt context saving
4715 were not getting allocated.
4717 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
4720 Fixed left shift. Will promote the left side of a left shift
4721 if a) left shifting more than size of operand or b) when assigned
4722 to something size > size of left side
4724 2002-03-14 Scott Dattalo <scott AT dattalo.com>
4726 tons of changes. Register allocation has been
4727 rewritten. Added customization for the various PICs. Flow
4728 analysis is restructured. ...
4734 Added. device.c is a PIC port hack to accomodate variations
4737 2002-03-13 Michael Hope <michaelh AT vroom>
4739 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
4741 2002-03-04 johanknol <johanknol AT manik>
4743 * /src/SDCCval.c: fixed
4745 const unsigned char arr[][2] = { { 0, 1 } };
4746 t18.c:1: error: Initializer element is not constant
4748 2002-03-04 bela <bela AT manik>
4750 * /device/include/mcs51reg.h:
4751 ds89c420 register definition update
4753 2002-03-03 <johan AT FRIJA>
4755 * support/Util/SDCCerr.c: did something, but don't no why anymore
4757 * support/regression/tests/bug-524691.c: made it a little less shy
4759 * src/SDCCast.c (decorateType): fixed bug #524697
4761 * src/SDCCast.c: made some lineno improvements
4763 * src/SDCCval.c (getNelements): changed warning to error
4765 * src/SDCCglue.c (printIvalArray): changed warning to error
4767 * src/SDCCicode.c: fixed a warning for mingw
4769 * src/SDCCast.c (decorateType): fixed the << promotion for ops
4771 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
4773 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
4775 * src/ds390/peeph.def:
4776 Added some more peephole rules
4778 * src/ds390/gen.c: Various fixes & enhancements
4780 * src/SDCClrange.c, src/SDCClrange.h:
4781 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
4783 * src/ds390/ralloc.c:
4784 various fixes & enhancements (ds390) specific
4786 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
4787 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
4790 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
4792 2002-03-02 <johan AT FRIJA>
4794 * src/SDCCast.c (decorateType): fixed bug #524708
4796 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
4798 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
4800 2002-03-01 Michael Hope <michaelh AT vroom>
4802 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
4804 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
4806 2002-03-01 <johan AT FRIJA>
4808 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
4810 * src/SDCCast.c (decorateType): fixed bug #524209
4812 * src/SDCCval.c (valNot): fixed bug #524195
4814 2002-02-26 <johan AT balder>
4816 * src/xa51/gen.c: fixed a warning
4818 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
4820 * src/SDCCast.c (decorateType): fixed bug #522534
4822 2002-02-23 <johan AT balder>
4824 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
4826 2002-02-22 <johan AT balder>
4828 * src/SDCCast.c: fixed bug #514865
4830 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
4832 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
4834 * sdcc/src/SDCCloop.c:
4835 Previous fix was not good. basic blocks that have "break" or "return" are
4836 not really partof a loop , but live ranges used in these blocks should
4837 be live thru the entire loop, so set partOfLoop but don't add them to
4840 2002-02-21 <johan AT FRIJA>
4842 * src/SDCCcse.c: fixed bug #514308
4844 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
4847 Fixed BUG #519583. If a conditional block ended in a return/break
4848 statement inside a loop, it was not being considered part of the loop.
4850 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
4852 2002-02-10 Karl Bongers <karl AT turbobit.com>
4855 Fixed up SDCDB debugger somewhat. Updated debugger/README
4856 with lots of comments and notes.
4858 * device/examples/test2.c:
4859 Fix bug, "red" variable not being initialized(compiler complained).
4861 * device/examples/Makefile, examples/test3.c:
4862 Add Makefile in device/examples folder, compiles test3.c
4863 for use as a multiple module SDCDB test case.
4865 * sim/ucsim/cmd.src/cmdset.cc:
4866 Took out debug printfs in ucsim "next" command.
4869 Karl and Johan start ucsim XA support. Most dissassembly working,
4870 about 75% emulation done(plenty of work remaining).
4872 * sim/ucsim/z80.src:
4873 Add Z80 support to ucsim, add test-ucz80 regression test,
4874 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
4875 Notice z80 compiler fails on examples/test3.c/crc code.
4877 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
4879 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
4880 Added support for --parms-in-bank1
4882 * src/ds390/peeph.def:
4883 added a few more peephole optimzations
4886 1) added __builtin_inp & __builtin_outp used to read in data of given length
4887 from a memory mapped port
4888 2) added __builtin_memcmp
4889 3) added __builtin_swapw swap bytes of a short
4891 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
4892 1) handle multiple send & receives from register bank1
4893 2) ralloc can now allocate DPTR1 to some liveRanges
4895 * src/SDCCsymt.c, src/SDCCsymt.h:
4896 changes to handle multiple sends & receives
4899 added some pointer arithmetic optimization
4902 added some pointer arithmetic optimizations but not stable yet so not
4903 called from anywhere (will get this working shortly)
4905 * src/SDCCopt.c: fixed for multiple sends & receives
4908 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
4909 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
4910 set preprocessor defines (depending on options)
4912 * src/SDCCicode.c, src/SDCCicode.h:
4913 changes made to handle multiple sends & receives
4916 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
4918 * src/SDCCcse.c, src/SDCCcse.h:
4919 added function findbackward def (to be used in upcoming optimization)
4921 * src/SDCCcflow.c, src/SDCCcflow.h:
4922 added function returnAtEnd - to determine if a basic block terminates with
4925 * src/SDCCast.c, src/SDCCast.h:
4926 added option parms-in-bank1
4928 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
4929 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
4930 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
4931 adjusted for --parms-in-bank1 option
4933 * device/include/string.h:
4934 donot redefine "reentrant" keyword
4936 * device/include/ds80c390.h: Added some more SFRs
4938 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4940 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
4942 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4944 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
4946 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4948 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
4950 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
4952 * Added --xram-movc option
4954 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4956 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
4958 2002-01-11 Johan Knol
4960 * Added math lib of Jesus Calvino-Fraga
4962 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
4964 * src/SDCCmain.c (processFile): fix processing of ../../src.c
4965 * support/regression/Makefile: new target test-mcs51-stack-auto
4966 * support/regression/ports/mcs51-stack-auto/spec.mk: added
4968 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4970 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
4972 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4974 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
4976 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4978 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
4980 * src/SDCCglue.h: add definition for printIvalChar()
4982 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4984 * src/SDCCast.c: fix #498138 by Johan
4986 * src/SDCCglue.c: fix #498138 by Johan
4988 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4990 * support/regression/Makefile: fix clean
4992 * support/regression/ports/ds390/support.c: fix transmission of last character
4994 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
4996 * /sdcc/src/ds390/gen.c:
4997 a) improved computing address of stack variable
4998 b) took out some #if 0 code
4999 c) improved parmBytes adjustment
5000 d) improved genPlusIncr & genMinusIncr
5001 e) genCmp could generate bad code (when left assigned to DPTR)
5002 f) Fixed bug in hasInc
5004 * /sdcc/src/ds390/ralloc.c:
5005 a) packRegsForSupport could mess up live information (Fixed)
5006 b) packRegsDPTRuse could be incorrect for left & right shift
5008 * /sdcc/src/mcs51/ralloc.c:
5009 packRegsForSupport could mess up the live information (Fixed)
5011 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
5013 * /sdcc/src/SDCCast.c:
5014 can reverse a loop even if function call is present as long
5015 as the loop control variable is local & is not passed as parameter
5017 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
5019 * /sdcc/ChangeLog: *** empty log message ***
5021 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
5022 More builtin function additions for TININative
5024 * /sdcc/src/ds390/ralloc.c:
5025 Had broken the regression testsuite
5027 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
5029 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
5030 Added funcattr hasStackParms will be set for reentrant functions when there
5031 are paramteres on the stack, this helps in minimizing frame pointer generation
5032 typeFromStr can handle function pointers now
5034 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
5035 *** empty log message ***
5037 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
5039 * /src/ds390/gen.c, /src/ds390/main.c:
5040 More builtin function additions for TININative
5042 * /src/ds390/ralloc.c:
5043 Had broken the regression testsuite
5045 * /src/SDCCast.c: Fixed a bug in dumptree
5047 * /src/SDCCsymt.c, /src/SDCCsymt.h:
5048 Added funcattr hasStackParms will be set for reentrant functions when there
5049 are paramteres on the stack, this helps in minimizing frame pointer generation
5050 typeFromStr can handle function pointers now
5052 * /doc/builtins.txt, /doc/TININative.txt:
5053 *** empty log message ***
5056 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
5058 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
5059 ALPHA version for -mTININative
5061 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
5062 updated to reflect changes in the port structure
5065 added function do_assemble (similar to do_link) if non-null this function
5066 will be called to do assembly (-mTININative) requires a multi command
5068 added function genAssemblerEnd will be called to generate assembler Epilogue
5071 added _JavaNative to debug info printing
5073 * /src/SDCCmain.c: added option --tini-libid
5074 added port->do_assemble function (-mTININative) has a multi command assemble
5076 * /src/SDCCglue.c: Disabled "constExpr" check
5077 added port->genAssemblerEnd function
5079 * /src/SDCCglobl.h: Added option --tini-libid value
5082 tookout optimizeCompare from the header (has no external references)
5084 * /src/SDCCast.c: made one more function "static"
5086 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
5088 * src/z80/mappings.i: Added z80asm support.
5090 * src/z80/main.c: Added z80asm support on --asm=z80asm
5092 * src/z80/gen.c: Fixed asm portability issues.
5094 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
5096 * src/SDCCglue.c (printExterns): Added global/extern split.
5098 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
5100 * support/regression/Makefile: added test for mcs51 model large
5102 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
5104 * support/regression/ports/gbz80/spec.mk: added -mgbz80
5106 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
5108 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
5110 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
5112 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
5114 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
5116 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
5118 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
5120 * support/regression/tests/simplefloat.c: Port to mcs51.
5122 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
5123 * support/regression/tests/bug-485362.c: Added.
5125 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
5127 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
5129 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
5131 * src/z80/gen.c (aopDump): Added a dump function.
5133 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
5134 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
5136 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
5138 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
5140 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
5142 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
5144 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
5146 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
5148 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
5150 * support/regression/ports/ds390/support.c: Use tinibios.
5152 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
5154 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
5156 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
5157 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
5159 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
5161 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
5163 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
5165 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
5167 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
5168 (packRegsForIYUse): Created and optimised.
5170 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
5172 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
5173 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5175 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
5177 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
5179 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
5181 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
5183 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
5185 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
5187 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
5189 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
5191 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
5193 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
5195 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
5197 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
5198 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
5199 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
5201 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
5203 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
5204 (genNotFloat): Added.
5205 (genUminusFloat): Added.
5207 * device/lib/z80/Makefile: Added floating pt stubs.
5209 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
5211 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
5213 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
5215 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
5217 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
5219 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
5221 * sdcc/support/regression/Makefile: Add port ds390.
5223 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
5225 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
5227 * sdcc/support/regression/ports/ds390/spec.mk: Added.
5229 * sdcc/support/regression/ports/ds390/support.c: Added.
5231 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
5233 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
5235 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
5237 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
5239 * device/include/malloc.h: Added z80 and gbz80 support.
5241 * device/lib/gbz80/heap.s: Added.
5243 * device/lib/z80/heap.s: Added.
5245 * device/lib/malloc.c: Added z80 and gbz80 support.
5247 * support/regression/tests/malloc.c (testMalloc): Added.
5249 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
5251 * support/regression/tests/bug-478094.c: Added.
5253 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
5255 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
5257 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
5259 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
5261 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
5263 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
5265 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
5267 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
5269 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
5271 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
5273 * support/regression/tests/bug-477927.c: Added.
5275 * src/z80/peeph.def: Added minor rules.
5277 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
5279 * src/z80/peeph.def: Added jump optimisation modification.
5281 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
5283 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
5285 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
5287 * support/regression/tests/funptrs.c: Added.
5289 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
5291 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
5293 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
5295 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
5297 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
5299 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
5300 (movLeft2ResultLong): Created.
5302 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
5303 (joinPushes): Added. Joins two char pushes into a word push.
5305 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
5307 * support/cpp2/Makefile.in (install): Added creation of dest dir.
5309 * support/makebin/Makefile (install): Added creation of dest dir.
5311 2001-10-24 Karl Bongers <karl AT turbobit.com>
5313 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
5315 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
5317 * src/z80/ralloc.c: Turned off faulty pack for one use.
5319 * src/z80/peeph-gbz80.def: Removed redundent restart options.
5321 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
5323 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
5325 * support/regression/Makefile: Improved clean
5327 * support/regression/ports/gbz80/spec.mk: Added clean
5329 * support/regression/ports/host/spec.mk: Added clean
5331 * support/regression/ports/z80/spec.mk: Added clean
5333 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
5335 * support/regression/ports/mcs51/timeout.c: little improvements
5337 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
5339 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
5341 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
5343 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
5345 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
5347 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
5349 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
5351 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
5352 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
5354 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
5356 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
5358 * src/mcs51/main.c (_linkCmd): Added bin path to command.
5360 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
5362 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
5364 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
5366 * support/regression/tests/longor.c: Added.
5368 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
5370 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
5372 * as/mcs51/aslink.h: define PATH_MAX
5374 * as/mcs51/asm.h: define PATH_MAX
5376 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
5378 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
5380 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
5382 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
5384 * src/SDCCglobl.h: define PATH_MAX
5386 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
5388 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
5390 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
5392 * src/z80/gen.c (gencjneshort): Fixed
5394 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
5396 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
5398 * support/regression/tests/bug-469671.c: Added.
5400 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
5402 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
5404 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
5406 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
5408 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
5410 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
5412 * src/device/lib/_mulint.c : removed hint: nooverlay bug
5414 * src/device/lib/_mullong.c : removed hint: nooverlay bug
5416 * src/device/lib/_divuint.c : removed hint: nooverlay bug
5418 * src/device/lib/_divulong.c: removed hint: nooverlay bug
5420 * src/device/lib/_moduint.c : removed hint: nooverlay bug
5422 * src/device/lib/_modulong.c: removed hint: nooverlay bug
5424 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
5426 * 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.
5428 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
5430 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
5432 2001-10-07 <johan AT FRIJA>
5434 * device/lib/gets.c (gets): fixed the return value.
5436 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
5437 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
5439 * 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.
5441 * 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.
5443 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
5445 * src/pic/gen.c: Removed Safe_strdup.
5447 * configure.in: Added option to enable libgc support.
5449 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
5450 (bitVectUnion): Optimised.
5451 (bitVectIntersect): Optimised.
5452 (bitVectBitsInCommon): Optimised.
5453 (bitVectCplAnd): Optimised.
5455 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
5457 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5459 * src/SDCCmain.c: distinguish between assembler debug and plain options
5461 * src/avr/main.c: remove standard assembler options
5463 * src/ds390/main.c: remove standard assembler options
5465 * src/mcs51/main.c: remove standard assembler options
5467 * src/port.h: removed "PENDING" comment
5469 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5471 * src/device/lib/_mulint.c : new, with assember functions
5473 * src/device/lib/_mullong.c : new, with assember functions
5475 * src/device/lib/_divuint.c : with assember functions
5477 * src/device/lib/_divsint.c : with assember functions
5479 * src/device/lib/_divulong.c: with assember functions
5481 * src/device/lib/_divslong.c: with assember functions
5483 * src/device/lib/_moduint.c : with assember functions
5485 * src/device/lib/_modsint.c : with assember functions
5487 * src/device/lib/_modulong.c: with assember functions
5489 * src/device/lib/_modslong.c: with assember functions
5491 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
5493 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
5495 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
5496 replaced _mululong.c and _mulslong.c by _mullong.c
5498 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
5500 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
5502 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
5504 * src/SDCCglue.c: test, if win32api is available for MINGW
5506 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
5508 * src/SDCCsymt.c: no more _modifier in printTypeChain()
5509 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
5510 * support/regression/ports/gbz80/spec.mk: removed GENERIC
5511 * support/regression/ports/host/spec.mk: removed GENERIC
5512 * support/regression/ports/mcs51/spec.mk: removed GENERIC
5513 * support/regression/ports/z80/spec.mk: removed GENERIC
5515 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
5517 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
5519 * support/regression/tests/bug-467035.c: Created.
5521 2001-10-01 <johan AT FRIJA>
5523 * src/SDCC.y: fixed bug #466586 part 1
5525 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
5527 * SDCCicode.c: z80 has no generic pointers
5528 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
5530 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
5532 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
5534 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
5536 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
5538 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
5540 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
5542 * configure.in: Fixed up so that ucsim is only configured once.
5544 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
5546 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
5547 (getPathDifference): As above.
5549 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
5551 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
5553 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
5554 * .version: Updated to 2.3.1
5556 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
5557 Added copyright header.
5559 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
5560 (assemble): Added support for macro based assembler commands.
5561 (linkEdit): Added support for macro based linker commands.
5562 (preProcess): Changed the pre-processor to use macros.
5563 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
5564 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
5566 * device/lib/z80/crt0.s: Added module name for debugging.
5568 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
5570 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
5572 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
5574 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
5576 * src/Makefile.in: Added SDCCmacro and SDCCutil
5578 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
5580 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
5582 2001-09-16 <johan AT FRIJA>
5584 * 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.
5586 2001-09-15 <johan AT FRIJA>
5588 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
5589 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
5591 2001-09-11 <johan AT FRIJA>
5593 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
5595 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
5597 * support/regression/tests/bug-460444.c: Added test case.
5599 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
5600 (genCast): Added justification for all of the asserts.
5602 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
5604 * support/regression/support.c: _xdata replaced by xdata
5606 * support/regression/spec.mk: removed _generic
5608 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
5610 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
5612 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
5613 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
5615 * src/z80/peeph.def: Added a rule to optimise shift then compare.
5617 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
5619 * support/regression/tests/bug-460010.c: Added test case.
5621 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
5623 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
5625 * support/regression/Makefile: inter-port-clean adjusted for mcs51
5627 * support/regression/testfwk.c: removed workaround for bug #436344
5629 * support/regression/tests/bp.c: use less memory with mcs51
5631 * support/regression/tests/bug-441448.c: use less memory
5633 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
5635 * support/regression/collate-results.py: typo
5637 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
5639 * support/regression/tests/fetchoverlap.c: Added new test case.
5641 * support/regression/tests/bp.c: Added new test case.
5643 * support/regression/tests/bug-448984.c: Added new test case.
5645 * support/regression/tests/pow2shifts.c: Added new test case.
5647 * src/z80/gen.c: Turned off the noise it normally generates for the release.
5648 (genlshTwo): Fixed right shift for count > 8.
5650 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
5652 2001-09-08 <johan AT FRIJA>
5654 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
5656 2001-09-07 <johan AT FRIJA>
5658 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
5660 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
5662 2001-09-06 <johan AT FRIJA>
5664 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
5665 * bernhard noted me at this: "() equals to (void)" (1.38)
5667 2001-09-05 <johan AT FRIJA>
5669 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
5671 2001-09-04 <johan AT FRIJA>
5673 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
5676 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
5678 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
5680 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
5682 * link/z80/aslink.h: Fixed path for PATH_MAX
5684 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
5686 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
5688 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
5690 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
5692 * 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.
5694 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
5696 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
5697 (genCmp): Fixed up genCmp for the GB with longs.
5699 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
5701 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
5703 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
5705 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
5707 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
5709 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
5711 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
5713 * 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.
5715 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
5717 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
5719 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
5721 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
5723 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5725 * sim/ucsim/configure: little improvement of Cygwin-detection
5726 * sim/ucsim/configure.in: little improvement of Cygwin-detection
5727 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
5728 * support/regression/tests/bug-221100.c: small changes for mcs51
5729 * support/regression/tests/bug-221168.c: small changes for mcs51
5730 * support/regression/tests/bug-227710.c: small changes for mcs51
5731 * support/regression/tests/staticinit.c: small changes for mcs51
5732 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
5733 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
5734 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601