1 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3 * device/lib/_gptrget.c,
4 * device/lib/_gptrput.c: updated comment
8 * device/lib/realloc.c: added LGPL, made them reentrant-safe
9 * src/SDCCcse.c (cseBBlock),
10 * src/SDCCicode.c (printOperand, geniCodeArray),
11 * src/SDCCicode.h (struct operand): fixed bug 868103
12 * support/regression/tests/bug-868103.c: added
13 * src/SDCCast.c (searchLitOp),
14 * src/SDCCcse.h (struct cseDef),
15 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
16 * src/SDCCicode.h (struct operand),
17 * src/SDCCsymt.h (struct sym_link),
18 * src/avr/gen.c (hasInc),
19 * src/ds390/gen.c (hasInc),
20 * src/hc08/gen.c (genPlusIncr, hasInc),
21 * src/mcs51/gen.c (hasInc),
22 * src/pic16/glue.c (pic16_printIvalChar),
23 * src/pic16/ralloc.c (regWithIdx),
24 * src/xa51/gen.c (hasInc) : removed warnings
25 * src/SDCCast.c (createBlock): added comment ???
26 * src/hc08/ralloc.c: updated comments
28 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
30 * doc/sdccman.lyx: updated section on switch statements, added
31 section about semaphore locking
32 * doc/Makefile: added option -info for latex2html
33 * device/lib/_gptrget.c,
34 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
36 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
40 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
41 maxram is less than 0x100.
43 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
45 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
47 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
58 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
59 a jump table is the best form for a switch statement, including
60 automatic insertion of missing cases to make the case range
61 continuous. Developed in collaboration with Frieder Ferlemann.
63 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
65 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
66 accumulator result if it needs sign extension
68 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
70 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
72 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
74 * device/lib/gbz80/printf.c,
75 * device/lib/z80/printf.c: removed define for NULL
77 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
80 * device/examples/ds390/ow390/ad26.c,
81 * device/examples/ds390/ow390/cnt1d.c,
82 * device/examples/ds390/ow390/counter.c,
83 * device/examples/ds390/ow390/ds2480.h,
84 * device/examples/ds390/ow390/ds2480ut.c,
85 * device/examples/ds390/ow390/findtype.c,
86 * device/examples/ds390/ow390/gethumd.c,
87 * device/examples/ds390/ow390/owllu.c,
88 * device/examples/ds390/ow390/ownetu.c,
89 * device/examples/ds390/ow390/swt12.c,
90 * device/examples/ds390/ow390/swtloop.c,
91 * device/examples/ds390/ow390/temp.c,
92 * device/examples/ds390/ow390/temp10.c,
93 * device/examples/ds390/ow390/thermo21.c,
94 * device/examples/ds390/ow390/tinilnk.c,
95 * device/examples/ds390/ow390/tstfind.c,
96 * device/examples/serialcomm/windows/serial.cpp,
97 * device/examples/serialcomm/windows/test_serialcomm.cpp,
98 * device/include/reg51.h: fixed line endings for cvs
100 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
102 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
103 packRegsForAccUse, packRegisters): new accumulator register
105 * support/regression/ports/hc08/support.c (_putchar): suppress
106 warning of unused variable
107 * src/SDCCicode.c: added SWAP entry to codeTable
109 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
111 * device/lib/sprintf.c: forgot to add this file before previous commit
113 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
115 * src/pic16/gen.c (genPackBits): added operand right in function
116 parameters, load result directly if p_type is POINTER (that is
117 called by genNearPointerSet)
118 * (genUnPackBits): added operand left in function parameters,
119 * (genNearPointerGet, genNearPointerSet): prevent the loading of
120 FSR0 if accessing bitfields,
122 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
124 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
125 _print_format; updated printf, sprintf, vsprintf
126 * device/include/asm/default/features.h: corrected comment/define
127 * device/lib/Makefile.in: added sprintf.c
128 * device/lib/libsdcc.lib: added sprintf module
129 * device/lib/printf_large.c,
130 * device/lib/vprintf.c,
131 * device/lib/sprintf.c: totally refactored printf_large and vprintf
133 * support/regression/Makefile: changed ALL_PORTS into a usefull default
134 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
135 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
137 * support/regression/tests/zeropad.c: define idata as data for hc08
139 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
141 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
142 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
143 labels are referenced at least once (even if a reference is not found)
144 * src/hc08/gen.c (emitcode): set isComment flag for comments
145 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
146 loads), rules 6a..6b (optimize jumps to return)
148 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
150 * device/lib/acosf.c (acosf),
151 * device/lib/asinf.c (asinf),
152 * device/lib/atanf.c (atanf),
153 * device/lib/ceilf.c (ceilf),
154 * device/lib/cosf.c (cosf),
155 * device/lib/coshf.c (coshf),
156 * device/lib/cotf.c (cotf),
157 * device/lib/fabsf.c (fabsf),
158 * device/lib/floorf.c (floorf),
159 * device/lib/log10f.c (log10f),
160 * device/lib/logf.c (logf),
161 * device/lib/sinf.c (sinf),
162 * device/lib/sinhf.c (sinhf),
163 * device/lib/sqrtf.c (sqrtf),
164 * device/lib/tanf.c (tanf),
165 * device/lib/tanhf.c (tanhf),
166 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
167 replaced all instances of "reentrant" in the library functions
168 defined in math.h with this macro.
169 * support/regression/tests/float_trans.c: reenabled test for hc08
171 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
173 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
176 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
178 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
179 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
180 multi-byte volatile operands are used
181 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
182 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
183 initialization to area GSINIT0 so that it would always precede
184 any static initializers in GSINIT
185 * support/regression/tests/zeropad.c: fixed idata define for hc08
186 * support/regression/tests/bug-927659.c,
187 * support/regression/tests/float_trans.c: disabled tests for hc08
188 pending missing library routines
189 * .version: increased version number to 2.4.4 - hc08 port now passes
193 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
195 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
196 * Makefile.common.in,
198 * as/hc08/Makefile.in,
199 * as/mcs51/Makefile.in,
200 * as/z80/Makefile.in,
201 * debugger/mcs51/Makefile.in,
202 * device/include/Makefile.in,
203 * device/lib/Makefile.in,
206 * link/z80/Makefile.in,
207 * packihx/Makefile.in,
208 * sim/ucsim/main_in.mk,
209 * sim/ucsim/avr.src/Makefile.in,
210 * sim/ucsim/doc/Makefile.in,
211 * sim/ucsim/gui.src/serio.src/Makefile.in,
212 * sim/ucsim/hc08.src/Makefile.in,
213 * sim/ucsim/s51.src/Makefile.in,
214 * sim/ucsim/xa.src/Makefile.in,
215 * sim/ucsim/z80.src/Makefile.in,
217 * support/cpp2/Makefile.in,
218 * support/librarian/Makefile,
219 * support/makebin/Makefile: added DESTDIR to the install path proposed
220 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
221 * doc/sdccman.lyx: added DESTDIR documentation
223 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
225 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
226 instruction for interrupt handlers, use fast returns when returning
227 from high priority interrupts
229 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
231 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
233 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
234 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
235 bugs, ported much of Bernhard's code from mcs51
236 * src/mcs51/gen.c (genSend),
237 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
238 than one when calling a reentrant function
239 * device/lib/_mullong.c: defined an alternate struct layout for big
242 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
244 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
247 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
249 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
250 are sane and complete before asking the port its prefered parameter
251 passing method (fixes bug #1017633)
252 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
255 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
257 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
258 problem in bitfields >= 8 bits.
260 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
262 * src/SDCCsymt.c: undid changes that were not meant to be committed
264 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
266 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
268 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
270 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
271 copied and wrong bit got inverted
273 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
275 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
276 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
277 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
278 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
279 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
280 assignments to bitfields at known addresses
281 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
282 reads from bitfields at known addresses
283 * src/hc08/ralloc.c (packRegisters),
284 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
285 genhc08Code): optimize pointer get values used as conditionals
286 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
289 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
291 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
292 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
293 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
296 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
298 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
300 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
302 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
305 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
307 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
309 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
311 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
314 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
316 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
318 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
320 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
321 cases use more compact code.
323 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
325 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
327 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
329 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
331 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
334 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
335 parameter of changePointer() from symbol* to sym_link*
336 * src/SDCCast.c (decorateType): call changePointer() for CAST op
337 * src/SDCCsymt.c (compareType): void* type is castable to other
338 pointers, but not necesarily an exact match.
339 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
340 is no longer blindly treated as an exact match.
341 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
343 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
345 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
347 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
352 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
354 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
358 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
360 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
362 * src/mcs51/gen.c (emitcode): fixed bug #992819
364 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
366 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
367 there's no need to make it worse
369 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
371 * src/mcs51/ralloc.c (deassignLR),
372 * src/ds390/ralloc.c (deassignLR),
373 * src/hc08/ralloc.c (deassignLR),
374 * src/z80/ralloc.c (deassignLR),
375 * src/pic/ralloc.c (deassignLR),
376 * src/pic16/ralloc.c (deassignLR),
377 * src/avr/ralloc.c (deassignLR),
378 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
379 rlivePoint): fixed another part of bug #971834
381 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
383 * src/z80/main.c: enabled "critical" keyword
384 * src/z80/mappings.i,
385 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
386 functions (fixes bug #979646)
387 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
389 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
391 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
394 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
396 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
397 doesn't disable too much optimizations
399 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
401 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
403 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
405 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
407 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
409 * src/pic/gen.c tidied up tabs
410 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
411 * src/pic/main.c tidied up tabs
412 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
413 * src/pic/pcoderegs.c tidied up tabs
414 * src/pic/ralloc.c tidied up tabs
416 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
418 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
419 to S_FIXED for pic16 port and when symbol is not in level 0,
420 allocate for S_REGISTER storage class and pic16 port, too,
421 * src/pic16/device.h: prototype for checkSym,
422 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
423 * (pic16_assignConfigWordValue): test the value and the mask to
424 validate that the value is suitable for the configuration word,
425 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
426 collect extern declared symbols, don't emit symbol twice, check
427 first if symbol is in publics set first,
428 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
429 * added command line '--fstack' which enables an experimental
430 feature for stack access, too buggy to be used yet...
431 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
432 * (pic16_allocDirReg): when register has storage class S_REGISTER
433 allocate in pic16_dynAccessRegs,
434 * device/include/pic16/pic18f????.h: modified configuration word
435 naming convention, words started as CONFIG0H but should be CONFIG1H
437 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
439 * device/include/mcs51reg.h: fixed bug 970993
441 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
443 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
444 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
445 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
446 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
447 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
448 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
449 error/warning numbers,
450 added function setWarningDisabled()
451 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
452 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
453 _memcmp.c _memmove.c calloc.c realloc.c free.c
454 * support/regression/tests/malloc.c: added tests for new functionality
455 * support/regression/tests/zeropad.c: added tests for truncated initializers
456 and initialized char arrays starting with '\x0'
457 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
459 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
461 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
463 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
465 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
466 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
467 peephole 177.e. Thanks to anonymous
469 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
471 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
472 function isn't used in the source but referenced as a
473 variable initializer then declare it as extern in .asm file
475 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
477 * .version: increased version number to 2.4.3
479 Adding version extension according to ChangeLog CVS revision
480 * src/Makefile.in (target all): added dependency 'version.h'
481 * (rule version.h): added rule to create version.h from ChangeLog,
482 * (rule dep): added dependency version.h,
483 * src/version.awk: AWK script to create version.h
484 * src/SDCCdwarf2.c (dwWriteModule),
485 * src/SDCCglue.c (initialComments),
486 * src/SDCCmain.c (printVersionInfo): modified to write after
487 version string the version extension number,
488 * src/SDCCutil.c: included "version.h"
489 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
491 * src/SDCCutil.h: added prototype for getBuildNumber
493 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
495 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
496 const char [] is found in function prototype...
498 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
499 moving to WREG with source is already in WREG,
500 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
501 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
502 * (aopForSym): stack'ed symbols are partially supported, added
503 if-clause to support symbols in FARSPACE,
504 * (sameRegs): added test for AOP_ACC to see if registers are same,
505 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
506 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
507 * (pic16_popRegFromString): will not allocate a new register if it
508 doesn't find one by name, bug may have introduced...
509 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
510 * (genIpush): revived to use pic16 port's stack,
511 * (genAddrOf): added incomplete case for stack'ed operand,
512 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
513 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
514 can handle multibyte operands,
515 * src/pic16/glue.c (pic16_printIval*): some debug info added,
516 * (pic16initialComments): added message for MPLAB compatibility
518 * src/pic16/main.h: prototype for pic16_mplab_comp,
519 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
520 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
521 * (_pic16_linkEdit): NEW, handles link stage, transferred here
522 because of increased complexity of procedure,
523 * (_process_pragma): stack pragma changed to format 'stack pos len',
524 emit symbol '_stack_end' to conform with gplink,
525 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
526 to search for register,
527 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
529 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
530 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
531 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
532 case for PO_GPR_REGISTER,
533 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
534 dies, the new era is ahead !...
535 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
536 pic16_dynInternalRegs,
537 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
538 * (pic16_allocDirReg): minor optimizations and bug fixes,
539 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
541 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
542 load stack and frame pointer with address of 'stack_end' symbol
544 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
546 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
547 without source code but only variable initializers
549 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
551 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
552 external are not declared as extern to reduce overhead while linking
554 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
556 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
558 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
560 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
561 Yee Keat for the patch
562 * src/SDCCast.c (decorateType): fixed bug #979599
563 * src/ds390/gen.h: removed local fReturnSizeDS390
564 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
565 * src/ds390/gen.c (genAnd, genOr, genXor),
566 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
568 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
570 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
571 add relFilesSet to $3, manipulate $2 to handle linking of object
572 files without source files in command line,
573 * device/include/pic16 (all headers): added ID location macros,
574 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
575 entries for ID location bytes,
576 * (pic16_assignIdByteValue): NEW,
577 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
578 added field dumpcalltree to pic16_options_t,
579 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
580 is used instead of pic16_Gstack_base_addr, check if (ifx) before
581 emitting rFalseIfx label after check_carry label,
582 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
583 pic16_emitDIRegs), NEW
584 * (pic16glue): dump .calltree file when option --calltree found,
585 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
586 * (_pic16_genAssemblerPreamble): emit ID locations after
587 configuration registers,
588 * (pic16_linkCmd): modifications of the link command,
589 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
590 * (pic16_pCodeInitRegisters): don't init stack registers,
591 * (pic16_findPrevInstruction): fixed bug,
592 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
593 bug with immediate registers,
594 * (buildCallTree): traces stack push and pop,
595 * (pct2): dump also stack usage for each function,
596 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
597 * (pic16_allocDirReg): various modifications,
598 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
601 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
603 * src/pic16/pcode.c: removed buggy double colon
605 2004-07-01 Borut Razem <borut.razem AT siol.net>
607 * support/scripts/sdcc.nsi: added include/pic16 to setup
609 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
611 * device/lib/Makefile.in: fixed bug in target objects-pic16,
612 * device/lib/pic16/Makefile: prefixed with dash (-) command under
614 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
615 specific command line arguments. Also added sample lkr script
616 for placing a variable at a specific memory bank.
617 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
618 at a specific memory bank,
619 * (pic16_dump_isection): fixed bug which caused string literals to
620 be omitted when dumping idata section,
621 * (pic16_groupRegistersInSection): added code to handle registers
622 in specific memory banks,
623 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
624 public, all references are renamed too,
625 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
627 * (pic16_storeForReturn): added case to handle when dest is WREG,
628 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
629 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
630 pic16_rel_udata, check to see if that register is marked as being
631 a member of a specific memory bank,
632 * (pic16_printIvalCharPtr): added code to add string literals either
633 to code or the idata sections,
634 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
635 also accept the 'udata' pragma,
636 * src/pic16/main.h: new structure types sectName and sectSym
637 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
638 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
639 * (pic16_findPrevInstruction): fixed, it returned nothing,
640 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
641 instruction combinations,
642 * (pic16_FixRegisterBanking): heavily reorganised,
643 * (pic16_AnalyzeBanking): if generating banksel directives is
644 disabled, then don't call FixRegisterBanking at all,
645 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
647 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
649 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
651 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
652 Phuah Yee Keat <yk.phuah AT nestac.com>
654 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
656 * src/pic16/glue.c (pic16createInterruptVect): function now emits
657 correctly the IVT even if it is relocated to some other location
659 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
661 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
662 * device/include/pic16/pic18f2220.h: NEW,
663 * device/lib/pic16/libdev/pic18f2220.c: NEW,
664 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
665 * src/pic16/device.c (struct Pics16): added info for 18f2220,
666 * src/pic16/device.h (struct pic16_options): added ivt_loc and
667 nodefaultlibs, ivt_loc is the location of the interrupt vector
668 table, and nodefaultlibs signs that default libraries should not be
669 linked in link stage,
670 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
671 according to --ivt-loc argument,
672 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
673 when pragma stack is found,
675 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
677 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
678 256 (range check), 257 (do while), 258.a-f (bit banging
679 f.e. on 3-wire SPI bus)
681 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
683 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
684 variables used exclusively within a loop
686 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
688 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
690 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
692 * src/SDCClrange.c (computeClash): fixed bug #971834
694 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
696 * src/mcs51/gen.c (genCmp): fixed bug #975903
697 * src/hc08/gen.c (operandsEqu),
698 * src/ds390/gen.c (operandsEqu),
699 * src/z80/gen.c (operandsEqu),
700 * src/pic/gen.c (operandsEqu),
701 * src/pic16/gen.c (operandsEqu),
702 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
703 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
705 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
707 * src/SDCCcse.c (cseBBlock): fixed bug #966963
709 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
711 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
712 default case in switch statement,
713 * glue.c (pic16_initPointer): expr is initialised via decoarteType
714 to eliminate problem with initialisation of pointers, but problem
716 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
717 * (emitStaticSegment): removed various lines emitting debug info,
718 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
719 added processor registers for utilizing EEPROM,
720 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
721 configurable and set 8
723 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
725 * .version: increased version number to 2.4.2,
727 Cumulative patch for pic16 port
728 * src/pic16/device.c: changed scheme to dump initial values for
729 variables in idata segment, all print_idata* functions were removed,
730 now the pic16_printIval* will be called,
731 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
732 * _pic16_printPointerType, pic16_printPointerType,
733 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
734 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
735 NEW, similar to the respective functions in SDCCglue.c,
736 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
737 way, emitting hex bytes,
738 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
740 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
742 * src/avr/ralloc.c (serialRegAssign),
743 * src/xa51/ralloc.c (serialRegAssign),
744 * src/pic/ralloc.c (serialRegAssign),
745 * src/pic16/ralloc.c (serialRegAssign),
746 * src/hc08/ralloc.c (serialRegAssign),
747 * src/z80/ralloc.c (serialRegAssign),
748 * src/ds390/ralloc.c (serialRegAssign),
749 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
751 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
753 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
754 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
756 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
758 Cumulative patch for pic16 port:
759 * src/pic16/device.h (typedef PIC16_device) modified fields for
760 defining microcontrollers,
761 * src/pic16/device.c: added new info for all devices in Pics16 array,
762 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
763 to be optimised out by the pCode optimiser,
764 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
765 specially, bug reported by G.M. Gallant,
766 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
767 as force'd so that cannot be optimised out by pCode optimiser,
769 * src/pic16/pcodepeeph.c,
770 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
771 they are disabled by default, but can be enabled explicit with
772 command argument --denable-peeps, for testing,
773 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
774 --pomit-ivt in COMPILE_FLAGS
776 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
778 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
781 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
783 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
785 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
787 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
788 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
790 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
792 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
793 would only assign 0x300001 register.
795 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
797 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
798 in COMPILE_FLAGS. Thanks to G. Gallant for report.
800 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
802 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
804 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
805 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
806 added peephole 254 (left shift), 255 (jump table)
808 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
810 * device/lib/Makefile.in: removed comment line with model-pic16,
811 * (target port-specific-objects-pic16): the libraries and objects
812 are copied to the build directory form the device/lib/pic16/bin
815 Cumulative patch concerning pic16 port:
816 * library directory has been re-organized,
817 * added support for PIC18F1220,
818 * added headers and library sources for chips 18f1220,18f6520,
819 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
821 * configuration registers setting has changed, now each supported
822 device has a complete description of the registers it uses,
823 * all initialisations are moved to idata sections, these section
824 can be absolute or relocatable,
825 * fixed initialisation of codespace variables,
826 * fixed warning about PCLATU and gpsim,
827 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
828 * (genAssign): use table reads when assigning from variables in codespace,
829 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
830 char/int variables placed in codespace,
831 * (pic16_emitConfigRegs): NEW, emits a list with configuration
832 registers set in .asm file, no need for --pomit-config-words anymore,
833 * (pic16glue): some 8051 legacy segments are commented out
834 (to be removed completely),
835 * added support for alternative assembler and linker with --asm=
836 and --link= command line arguments,
837 * peepholes are disabled automatically in the port, no need to
838 specify on command line,
839 * port supports natively char/int/long multiplication, but converts
840 all divisions to support functions,
841 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
842 to the file set in variable $2,
843 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
844 strings in ASCII format and not in hex,
845 * ralloc.c (serialRegAssign): added a triplet of conditional calls
846 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
847 allocate proper register if iCodes aren't temporary,
849 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
851 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
853 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
855 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
858 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
860 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
861 computed address is reused
862 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
865 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
867 * src/z80/gen.c: (genArrayInit): must check for pointers too
869 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
871 * support/regression/tests/zeropad.c: never meant to commit the
872 nestedstruct test: removed, added check for GCC version
874 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
876 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
877 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
878 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
879 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
880 bugs 928906 and 954082 half-empty initializers
882 * src/SDCCsymt.c (getAllocSize): added for above fix
883 * src/z80/gen.c (genArrayInit): fixed bug 741044
884 * support/regression/tests/zeropad.c: added tests
886 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
888 * src/pic16/device.c (pic16_dump_section): corrected bug which
889 caused some symbols of the libraries to be misplaced
891 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
894 * src/pic16/ralloc.h,
895 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
896 to fix conflict with pic port
898 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
900 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
901 externs configuration variables,
902 * src/pic16/ralloc.h,
903 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
904 prototype in header, commented out some debug messages
906 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
910 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
911 for gpasm COFF object generation. Thanks to D. Hawkins for
914 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
917 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
918 Brock for spotting this)
919 * src/ds390/gen.c (genEndFunction),
920 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
921 interrupt handler and critical. Disable push/pop optimizations when
922 peephole optimizations disabled.
924 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
926 Updated pic16 library sources and headers.
927 * device/lib/pic16/pic18f*/ ,
928 * device/include/pic16/*.h: modified to handle structured SFR
931 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
933 * src/port.h (PORT structure): added hook initPaths, now each
934 port can declare its own default search paths,
935 which can been seen with the --print-search-dirs option,
936 see pic16 port for example,
937 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
938 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
939 * (doPrintSearchDirs): NEW, replaces in a central manner the
940 printing of search dirs which was split in set*Paths functions,
941 * (main): added call to port->initPaths and doPrintSearchDirs,
946 * src/izt/tlcs900h.c,
949 * src/pic16/main.c: modified port structures to reflect addition of
952 * src/pic16/device.c (regCompare): registers are finally sorted by name,
953 * (pic16_dump_section): for registers in same address reserve memory once,
954 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
956 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
957 result is greater in size than right or left,
958 * (pic16_genUMult8X8_8): there are some cases where the result can
959 be 16 bits size, so handle these,
960 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
961 * (pic16_outBitC): modified to emit pcodes,
962 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
964 * (genDivOneByte): implemented algorithm to divide 8-bits,
965 * (genCmp): uncommented goto, but issues still exist,
966 * (genAnd): fixed a bug with variables >8bits,
967 * (genPackBits): optimization added that uses BCF/BSF to change a
969 * (genAssign): fixed bug when assigning floating point literals,
970 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
971 __sdcc_gsinit_startup label,
972 * src/pic16/main.c (_pic16_init): removed search directory
974 * (_pic16_initPaths): NEW, used to initialise search directories,
975 * (_hasNativeMulFor): support functions for all except char/int
976 multiplication, and char division,
977 * (PIC16_port struct): modified entry for native mul support,
978 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
980 * (buildCallTree): call to register_usage is ifdef'ed out,
982 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
984 * device/include/string.h: applied Stas Sergeev's patch to make this
985 header file compatible with the preprocessor -Wundef option
986 * src/SDCCmain.c (main): abort compilation if preprocessor reports
987 failure (fixes bug #941458)
989 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
991 * src/SDCCopt.c (killDeadCode): fixed bug #907733
992 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
993 that the variable, not the function, should be static
994 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
995 to be consistent with non-literal case
997 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
999 * src/SDCCast.c (isConformingBody): fixed bug #949967
1000 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
1001 convilong): fixed bug #952086
1003 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1005 * src/SDCCmem.c (allocVariables): fixed bug #955321
1007 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1009 * src/hc08/main.c (_hc08_genAssemblerEnd),
1010 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
1011 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
1012 completely eliminated the use of a temporary file
1013 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
1014 when more than one file linked
1015 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
1017 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1019 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
1020 which fixes bug #543481
1021 * support/regression/tests/bug-751703.c: fixed comments left from a
1023 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
1024 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
1025 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
1027 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
1028 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
1029 are now changed to underscores in moduleName
1031 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1033 * as/mcs51/lkmem.c: better fix for bug #954173
1035 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1036 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1038 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
1039 * device/include/c8051f000.h,
1040 * device/include/c8051f120.h,
1041 * device/include/c8051f300.h,
1042 * device/include/c8051f310.h,
1043 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
1046 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1048 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
1049 and mailing lists, doc'ed --no-peep-comments, removed reference
1050 to knoppix (newest version has no LyX/LaTeX), other minor changes
1051 * src/SDCCglue.c (glue): save 2 bytes stack space with
1052 option --main-return. The ljmp could probably be avoided too
1054 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1056 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
1058 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1060 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
1061 * src/SDCCopt.c (isLocalWithoutDef),
1062 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
1063 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
1064 (credit to Maarten Brock for patch #949363, on which this is based)
1065 * support/regression/tests/bug-751703.c: some test cases of extern used
1066 within inner scopes.
1068 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1070 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
1072 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
1074 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
1075 dwWriteLabel): fix to create valid debugger symbols even when
1076 the module name has non-alphanumeric symbols in it
1077 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
1078 when a variable's allocation has been optimized away
1081 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1083 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
1085 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
1087 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
1089 * src/z80/gen.c (z80_emitDebuggerSymbol),
1091 * src/pic/gen.c (pic14_emitDebuggerSymbol),
1093 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
1095 * src/avr/gen.c (avr_emitDebuggerSymbol),
1097 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
1099 * src/SDCCdebug.c (emitDebuggerSymbol),
1101 * src/port.h: added a debugger struct to the port struct. Added a
1102 callback for defining debugger symbols
1104 * src/SDCCast.c (createLabel),
1105 * src/SDCC.y (labeled_statement): mark all compiler generated labels
1108 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
1109 iCode back to the ast for the function
1111 * src/hc08/ralloc.c (hc08_assignRegisters),
1112 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
1113 unneeded fields from the regs struct.
1114 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
1115 pushReg() & pullReg() functions instead of emitcode()
1117 * src/hc08/gen.c (genLabel, genhc08Code),
1118 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
1120 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
1123 * src/hc08/gen.c (genEndFunction, genhc08Code),
1125 * src/mcs51/gen.c (genEndFunction, gen51Code),
1127 * src/ds390/gen.c (genEndFunction, gen390Code),
1129 * src/z80/gen.c (genEndFunction, genZ80Code),
1132 * src/pic/gen.c (genEndFunction, genpic14Code),
1134 * src/pic16/gen.c (genEndFunction, genpic16Code),
1136 * src/avr/gen.c (genEndFunction, genAVRCode),
1138 * src/xa51/gen.c (genEndFunction, genXA51Code),
1140 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
1141 specific code to cdbFile.c and out of the backend code generators
1143 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
1144 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
1145 starting address is now 0
1149 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
1150 assembler directive for DWARF support
1151 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
1155 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
1157 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1159 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
1160 and inappropriate peephole optimization in jump tables
1162 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1165 * src/SDCCglue.c: sdccopt works for the hc08 port now
1167 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
1169 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
1171 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1173 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
1175 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1177 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
1181 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
1182 comments from the peephole optimizer replacement rules
1183 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
1185 * src/SDCCcse.c (updateSpillLocation),
1186 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
1188 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
1189 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
1190 objects far pointers
1192 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1194 * src/SDCCsymt.h: a missing part of my last change
1195 * src/pic/ralloc.c (regTypeNum),
1196 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
1198 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1201 * src/SDCCicode.c (aggrToPtrDclType),
1203 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
1204 ptrPseudoSymConvert),
1205 * src/pic/ralloc.c (regTypeNum),
1206 * src/pic16/ralloc.c (regTypeNum),
1207 * src/hc08/ralloc.c (regTypeNum),
1208 * src/ds390/ralloc.c (regTypeNum),
1209 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
1210 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
1212 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1214 * link/z80/lkmain.c (afile),
1215 * as/hc08/lkmain.c (afile),
1216 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
1217 prevent a pointer problem when a filename has no directory and
1218 no extension specified.
1220 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1222 * link/z80/lkmain.c (afile): allow periods in directory names
1223 * link/z80/lkmain.c (afile),
1224 * as/mcs51/lkmain.c (afile),
1225 * as/hc08/lkmain.c (afile): allow linker script file to have an
1226 extension other than ".lnk"
1227 * link/z80/lklex.c (getfid),
1228 * link/z80/lkmain.c (parse),
1229 * as/mcs51/lklex.c (getfid),
1230 * as/mcs51/lkmain.c (parse),
1231 * as/hc08/lklex.c (getfid),
1232 * as/hc08/lkmain.c (parse): Support comments in the linker script
1233 file on lines by themselves and after filenames
1235 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1237 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
1239 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1241 * src/z80/peeph-z80.def: removed some peephole rules that don't
1242 work with multibyte arithmetic (fixed bug #937126)
1243 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
1244 to registers and not global variables
1245 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
1246 geniCodePreInc, geniCodePostDec, geniCodePreDec,
1247 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
1248 checking for assignments not internally generated (fixed bug #931895)
1249 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
1250 structure member (fixed bug #930072)
1252 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1254 * src/SDCCmain.c (linkEdit),
1255 * src/hc08/main.c (_hc08_parseOptions),
1256 * as/hc08/Makefile.in,
1260 * as/hc08/lkrloc.c (relr, rele),
1261 * as/hc08/lkarea.c (lnkarea)
1262 * as/hc08/lkmain.c (afile, parse),
1263 * as/hc08/lkelf.c: support for ELF output
1264 * as/hc08/lks19.c (s19),
1265 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
1267 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1269 * as/mcs51/lkihx.c: Fixed bug #899105.
1271 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1273 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
1274 .dsp files from Unix to DOS.
1276 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1278 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
1279 function pointers; we have been compliant for several months now.
1280 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
1281 change that was accidently commented out
1282 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
1283 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
1286 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1288 * src/hc08/gen.c: output of all of the internal debugging information
1289 is now controlled by the D() macro; it is disabled by default
1291 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1293 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
1294 harder to keep the same registers during a CAST iCode
1295 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
1296 long via int can be done in a single cast, if the signedness is
1298 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
1299 putchar() in tinibios.c in ds390's library
1301 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
1303 * src/SDCCast.c (decorateType): fixed bug #898889,
1304 cast result of a literal complement too
1305 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
1306 fixed check for bitfields
1308 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
1310 * src/SDCCicode.c (geniCodeLogic): made it static,
1311 (geniCodeLogicAndOr): added in order to fix bug #905492,
1312 (ast2iCode): fixed bug #905492
1313 * support/regression/tests/bug-905492.c: added
1314 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
1315 (processParms): fixed bug #927659: don't copy parms, this will clear
1317 * support/regression/tests/bug-927659.c: added
1319 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
1321 * src/SDCCast.c (addCast): don't cast float to char
1322 * device/lib/libsdcc.lib: added _memmove
1324 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
1326 * device/lib/large/Makefile: fixed parallel execution by
1327 replacing `make` by `$(MAKE)`
1329 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1331 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
1332 offsets (fixes bug #923936)
1334 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
1336 * device/lib/small/Makefile: fixed parallel execution by
1337 replacing `make` by `$(MAKE)`
1339 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
1341 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
1343 2004-03-23 Scott Dattalo <scott AT dattalo.com>
1345 * src/pic/gen.c (genCpl): multi-byte complements were not working.
1346 * src/regression/Makefile: Regression test was not running.
1348 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
1350 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
1351 complement if possible
1352 * src/SDCCval.c (valComplement),
1353 * src/SDCCicode.c (operandOperation): fixed complement of literal
1354 * support/regression/tests/onebyte.c (testComplement): added
1356 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
1358 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
1359 return an optimized tree; actually replace actParm with the new tree
1360 * src/SDCCast.h: added some parantheses to remove side effects
1361 * support/regression/tests/bug-920866.c
1363 2004-03-21 Scott Dattalo <scott AT dattalo.com>
1364 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
1365 Bit operands were not being handled properly in the pic14 port.
1366 (now src/regression/add.c passes again).
1368 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1370 * src/SDCC.y (labeled_statement): case and default no longer require
1371 a following statement (RFE #893037)
1373 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1375 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
1376 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
1377 disabled (fixes bug #916294)
1378 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
1379 "mov a,acc"; patch provided by Lenny Story
1380 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
1382 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1384 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
1386 * src/ds390/gen.c (genFunction, genEndFunction),
1387 * src/ds390/ralloc.c (ds390_assignRegisters),
1388 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
1389 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
1390 pushed if there are parameters passed on the stack. Also, a cleaner
1391 way to decide if r0/r1 should be pushed/popped. (Together they fix
1394 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1397 * device/lib/mcs51/crtpagesfr.asm,
1398 * device/lib/mcs51/crtxinit.asm,
1399 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
1400 to avoid confusion with Si Lab's SFRPAGE register.
1402 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1404 * src/SDCCglue.c (emitMaps): allow public sfr variables
1405 * src/SDCCglue.c (initialComments): include compiler build date
1406 with compiler version and put the timestamp of the generated
1407 assembly file on a serperate line to be less confusing.
1408 * src/port.h: added genInitStartup hook
1415 * src/z80/main.c: genInitStartup initialize as NULL (default to
1416 historical behaviour)
1417 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
1418 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
1419 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
1420 library instead of hard coding it into the compiler.
1421 * support/regression/ports/mcs51-stack-auto/spec.mk,
1422 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
1423 * device/lib/mcs51/Makefile,
1424 * device/lib/small/Makefile,
1425 * device/lib/large/Makefile,
1426 * device/lib/mcs51/crtpagesfr.asm,
1427 * device/lib/mcs51/crtstart.asm,
1428 * device/lib/mcs51/crtxclear.asm,
1429 * device/lib/mcs51/crtxinit.asm,
1430 * device/lib/mcs51/crtclear.asm,
1431 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
1432 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
1433 and into user configurable files.
1434 * device/lib/clean.mk: clean mcs51 directory too
1435 * support/regression/tests/longlit.c: added static to T1 declaration
1436 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
1437 accesses in the initialization code
1439 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1441 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
1442 OSCTRIMVAL as noted in bug #916008
1444 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1446 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
1447 in loops with multiple exits (reported as incorrect registers
1448 used by Martin Helmling in Sdcc-user list)
1450 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1452 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
1453 made ds390 register extensions look less like error messages
1455 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1457 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
1458 reported by Adam Wozniak in Sdcc-user list
1460 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
1462 * src/SDCCast.c (decorateType): fixed with bug and promotion in
1463 arithmetic optimizations, added debug output
1465 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
1467 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
1468 * sdcc.spec: updated and split sdcc into 3 rpms
1469 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
1470 needed for literals of LEFT_OP and '+'
1471 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
1472 introduced RESULT_TYPE_NOPROM
1473 (geniCodeMultiply): fixed logic for decision if mul is optimized to
1475 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
1476 limited promotion to int only for '*'
1477 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
1479 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
1481 * src/pic16/gen.c (genSkip),
1482 (genc16bit2lit), (gencjneshort): commented out
1483 (is_LitOp): new helper function, checks operand type
1484 (genCmpEq): rewritten
1486 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
1488 * support/regression/tests/bug-908454.c: added
1490 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
1492 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
1493 * src/SDCCicode.c (usualBinaryConversions): op needs int type
1494 (geniCodeCast): cosmetic, don't preserve bit storage class
1495 (geniCodeLeftShift): added promotion
1496 (geniCodeLogic): fixed regression
1497 * src/SDCCsymt.c (computeTypeOr): accept bits too
1498 (compareType): 2nd part of fix for bug #908454, needed for bitfields
1500 2004-03-07 Borut Razem <borut.razem AT siol.net>
1502 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
1504 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
1506 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
1507 version of pic16_genPackRegisters which does not check if ic is a
1509 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
1510 function cause string1.c regression test fails
1512 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
1514 * sim/ucsim/configure.in,
1515 * sim/ucsim/configure,
1516 * sim/ucsim/doc/Makefile.in: use docdir
1517 * src/SDCC.y: fixed sbit atrributes
1518 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
1519 * src/SDCCast.c (decorateType): |^& need special promotion handling
1521 * src/SDCCsymt.h: moved definition of RESULT_TYPE
1522 * src/SDCCsymt.h (computeType),
1523 * src/SDCCicode.c: computeType() needs op
1524 * src/SDCCsymt.c (checkTypeSanity),
1525 * doc/sddman.lyx: "plain" bitfields are unsigned
1526 * src/SDCCsymt.c (computeTypeOr): added
1527 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
1529 * src/SDCCval.c (val*): computeType() needs op
1530 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
1531 * support/regression/tests/onebyte.c: added tests for |^&
1533 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
1535 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
1536 for writing icode into asm output.
1538 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
1540 * src/pic16/device.c: added some debug lines enabled
1541 with macro DEBUG_CHECK,
1542 * src/pic16/genarith.c: more debug in genPlus,
1543 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
1544 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
1545 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
1546 * (aopForSym): onStack symbols are re-placed in data memspace,
1547 and onStack flag is cleared,
1548 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
1549 copy temporary pcodeop,
1550 * (genPcall): added warning for not updating PCLATU,
1551 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
1552 always true for pic16 port,
1553 * (genMultOneWord): NEW, supports integer multiplication,
1554 * (genMult): modified to call genMultOneWord,
1555 * (ifxForOp): added warning when return NULL,
1556 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
1557 flag is set before call to operandFromSymbol for implicit
1559 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
1560 options.intlong_rent are set by default,
1561 * (_hasNativeMulFor): modified to allow port generation of integer
1563 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
1564 set regtype to REG_SFR for all registers, restricting seting the
1565 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
1567 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1569 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
1570 more than 500 times in the regression tests
1572 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1574 * support/Util/SDCCerr.h,
1575 * support/Util/SDCCerr.c,
1576 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
1578 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
1579 for symbol conflicts.
1580 * support/valdiags/tests/enum.c,
1581 * support/valdiags/tests/tentdecl.c,
1582 * support/valdiags/tests/struct.c: expect possible error messages
1583 referring to original symbol definitions.
1584 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
1586 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
1588 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
1590 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
1592 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
1594 * src/pic16/ralloc.c (newReg): fixed bug #908929
1596 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1598 * src/ds390/gen.c: added missing #include "main.h"
1600 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
1602 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
1603 checking if symbol is already in set,
1604 * src/pic16/device.h: prototype for checkAddSym,
1605 * src/pic16/gen.c: (_G): added entry interruptvector,
1606 * (assignResultValue): removed some commented out lines,
1607 * (genFunction): check for ISR via sym->type, absolute section for
1608 interrupt code is created via a new pBlock, the goto instruction is
1609 placed now correctly at the interrupt vector position, changed all
1610 references from ivec to _G.interruptvector,
1611 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
1612 is the interrupt is a high priority one, same for return from ISR,
1613 * src/pic16/glue.c: changed all calls of addSetHead for publics and
1614 externs to calls of checkAddSym,
1615 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
1616 pic16_pcode_verbose flag is set,
1617 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
1618 * src/pic16/pcoderegs.c: message about how many registers are saved
1619 will only be emitted if pic16_pcode_verbose flag is set,
1621 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1623 * src/ds390/ralloc.h,
1624 * src/ds390/ralloc.c (ds390_regWithIdx),
1625 * src/ds390/gen.c (emitcode),
1627 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
1628 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
1629 ds390operandCompare, getRegsRead, getRegsWritten,
1630 initializeAsmLineNode): customized instruction size calculation for
1631 ds390, started basis for some register optimizations
1632 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
1633 corresponding assembly output
1634 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
1635 missing push/pop of r0/r1. Optimized push/pops
1637 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1639 * src/mcs51/main.c (instructionSize): fixed ACALL size
1640 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
1642 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
1644 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
1645 the sorting of rlist with NULL elements
1646 * (print_idataType, print_idata): NEW to create idata sections
1647 * src/pic16/device.h: idataSymSet new variable
1648 * src/pic16/gen.c (genFunction): fixed some bugs in string
1649 comparing, improved the absolute section creation for ISRs,
1650 added FSR0L/FSR0H in registers that are saved in an ISR,
1651 * (genInline): fixed the processing of inline snippets,
1652 now they undergo no process by the peephole optimizer
1653 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
1654 are placed in idataSymSet,
1655 * (pic16emitStaticSeg): extern symbols are added in externs,
1656 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
1657 switching when aboslute variables are placed in access bank memory
1658 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
1659 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
1660 commented out with #if,
1661 * (pic16_packRegisters): reintroduce the check for CAST because some
1662 symbols are not correctly handled,
1663 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
1664 pCodeInstruction instead of pCode,
1665 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
1666 pCodeAsmDir definition,
1667 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
1668 directive, then the argument directive is emitted without the leading
1669 tab, hack for inline labels which must be in the first column,
1670 * (compareLabel,pic16_findNextInstruction),
1671 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
1672 * (insertBankSwitch): modified for the new pCodeAsmDir,
1674 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1675 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
1677 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
1679 * (pushSide): commented out with #if,
1680 * (assignResultValue): fixed some typos in saving
1682 * (genPcall): FIXED and sync'ed with genCall,
1683 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
1684 * (genNearPointerGet): fixed to handle some more cases,
1685 implementation scheme via table reads,
1686 * (genConstPointerGet): modified to access code memory correct,
1687 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
1688 and improved to handle some cases
1689 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
1690 instead of "RETLW" for init data
1691 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
1692 not IN_DIRSPACE, work around to reduce bank switching when aboslute
1693 variables are placed in access bank memory (<0x80 and >=0xf80),
1694 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
1695 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
1696 TBLWT_POSTDEC,TBLWT_PREINC
1697 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
1698 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
1700 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
1701 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
1702 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
1703 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
1705 2004-02-29 Borut Razem <borut.razem AT siol.net>
1707 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
1708 support/Util/findme.h, support/Util/system.h: enhance binary relative
1709 search for lib and include by using findProgramPath()
1711 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1714 * src/SDCCpeeph.c (pcDistance),
1716 * src/mcs51/ralloc.h,
1717 * src/mcs51/ralloc.c (mcs51_regWithIdx),
1719 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
1720 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
1721 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
1722 size calculation port specific, started basis for some register
1724 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
1725 missing push/pop of r0/r1. Optimized push/pops
1726 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
1727 * device/lib/_modsint.c (_modsint),
1728 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
1729 and stack version so regression tests pass
1731 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
1733 * src/Makefile.in (dep): include SLIBOBJS in dependency check
1734 * src/SDCCast.c (decorateType): catch another small optimization
1736 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
1737 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
1738 modified to finally use computeType() all over SDCC,
1739 see Feature Request #877103
1740 * src/SDCCval.h: cosmetic
1741 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
1742 valCompare(); regression tested in muldiv.c
1743 * support/regression/tests/muldiv.c (testMod): mod sign follows
1746 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
1748 * src/SDCCast.c (decorateType): fixed bug #902362
1749 * doc/INSTALL.txt: fixed install instructions for win32
1751 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
1753 * device/include/Makefile.in (install): fixed by replacing spaces
1756 * doc/INSTALL.txt: updated for release
1757 * doc/sdccman.lyx: added warning for --xstack being buggy
1759 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
1761 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
1762 to eliminate build warnings.
1763 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
1765 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
1766 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1768 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
1769 removed -penable-stack, added comment for stack pragma, added
1770 warning for not initializing the stack/frame registers, removed
1771 comment at interrupts section
1773 Stack is made permanent, there is no ability to disable stack usage.
1774 * src/pic16/device.h,
1775 * src/pic16/device.c: removed all references to USE_STACK macro,
1776 * src/pic16/device.c (pic16_dump_section): when no elements in
1777 rlist, free rlist before return,
1778 * (pic16_dump_int_registers): NEW, internal registers are a new set
1779 of general purpose registers reused by each function,
1780 * (checkAddReg): returns 1 if registers is added to set,
1781 * (pic16_groupRegistersInSection): when a registers is of type
1782 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
1783 * src/pic16/device.h: memRange and Assigned Memory are deleted,
1784 SRCASECMP macro is moved here from device.c
1785 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
1786 PO_PCLATU, PO_PRODL, PO_PRODH,
1787 * (pic16_pCodeOpType, genMinus,
1788 changed compares to "a" register, with AOP_ACC,
1789 * (pic16_genPlus): fixed some bugs and indented properly,
1790 * (pic16_addSign): changed size to size+offset in the MOVWF
1792 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
1793 multiply 8-bit operand by literal, result is 8-bit,
1794 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
1795 multiply 2 8-bit operand, result is 8-bit,
1796 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
1798 * src/pic16/gen.c: changed accUse to contain WREG only,
1799 * (pic16_emitcomment): renamed to pic16_emitpcomment,
1800 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
1801 true, do not use immediate addressing any more unless sym is a
1802 pointer in codespace,
1803 * (aopForRemat): do not use immediate addressing when symbol not in
1804 codespace and when symbol's address is requested,
1805 * (aopOp): for-loop in if(sym->accUse) is modified for the new
1807 * (aopGet): added case for AOP_ACC and don't return "accumulator
1808 bug" but WREG instead,
1809 * (popGetTempReg): pushes contents of temporary register in stack,
1810 * (popReleaseTempReg): pops contents of temporary register from
1811 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
1812 * (pic16_popGet): separated case AOP_ACC to return register WREG
1813 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
1814 or PO_IMMEDIATE and initializes their instance/offset appropriately,
1815 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
1816 the use of immediate pointers to certain cases only.
1818 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
1819 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
1820 * (assignResultValue, genCall, genRet): modified to use the new
1821 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
1822 genPcall is still broken,
1823 * (genFunction): added code to create 'A' type pBlocks when
1824 interrupt functions are generated, code not extensively tested yet,
1825 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
1826 * (genEndFunction): modified so ISRs pop stored registers from stack,
1827 * (genMultOneByte): cleanup,
1828 * (AccRsh): added flag andmask, to and result with appropriate mask,
1829 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
1830 * (genDataPointerGet): fixed and reenabled its use,
1831 * (genNearDataPointerGet): bugs fixed,
1832 * (genDataPointerSet): bugs fixed,
1833 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
1834 pic16_DumpSymbol, pic16_DumpOp,
1835 * src/pic16/genutils.h: function prototypes for the above functions,
1836 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
1838 * (pic16emitRegularMap): many many many improvements, but needs a
1840 * src/pic16/main.c: enable_stack in pic16_options is removed,
1841 * (_pic16_parseOptions): removed command line options -penable-stack,
1842 * (_process_pragma): emit stack symbol only when stack pragma is
1844 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
1845 redirected to FSR0L/FSR0H pair,
1846 * (pic16_get_op, pic16_get_op2): modifications and improvements,
1847 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
1848 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
1850 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
1851 * (dumpPicOptype): NEW,
1852 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
1853 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
1854 with movff instruction,
1855 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
1856 added pic16_int_regs, some packRegsFor* functions are commented out,
1857 because produce errors,
1858 * src/pic16/NOTES: minor modifications
1860 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1862 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
1863 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
1865 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
1866 * as/mcs51/lkaomf51.c: fixed bug #895763
1868 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
1870 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
1872 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1874 * doc/sdccman.lyx: added details about the HC08 storage classes and
1875 interrupts, fixed the register usage info for z80 & gbz80
1877 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
1879 * doc/sdccman.lyx: added more pic16 port documentation
1880 * device/include/pic16/: added header pic18fregs.h
1882 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
1884 * doc/sdccman.lyx: added Vangelis' contribution
1886 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1888 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
1889 extend to the next CALL or PCALL, not just to the next CALL.
1891 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
1893 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
1895 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1897 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
1898 bug #895752 and a better fix for bug #716790
1900 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1902 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
1904 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1906 * doc/sdccman.lyx: minor changes, minor changed
1908 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
1910 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
1911 which can't handle SDCC_NEWONEBYTEOPS,
1912 (geniCodeMultiply): removed conversion from mult to shift for pic14
1915 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1918 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
1919 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
1920 thus fixing bug #895406
1922 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
1924 * device/lib/_modsint.c,
1925 * device/lib/_modslong.c: sign follows divisor only
1926 * src/hc08/gen.c (genMultOneByte): if result size is 1,
1927 signs or signedness can be ignored
1928 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
1929 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
1930 added optimization for IFX,
1931 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
1933 reenabled optimization for IFX, which was removed on 2004-01-11
1934 * src/SDCCast.h: added return type IFX
1935 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
1936 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
1937 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
1938 SDCC_OLDONEBYTEOPS selects the old behaviour
1939 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
1940 changed again and commented promotion rule
1941 * src/SDCCval.c (valDiv): promotion no longer necessary
1942 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
1943 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
1945 * support/regression/tests/onebyte.c: added
1947 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
1949 * gen.c (genInline): reverted to old code for assemnling inline
1950 code because of bug reported James Chadd
1952 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
1954 * ralloc.h: missing declarations from previous patch,
1955 seems that patch for ralloc.h was never applied, fixed
1957 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1958 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
1962 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
1963 indirect addressing. Marked FSR0 as deprecated
1964 * gen.c (pointerCode): commented out, not needed now
1965 (pic16_popGet2p): new MOVFF helper function
1967 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
1968 (shiftRLong): removed duplicate debugging info
1970 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1972 * src/ds390/gen.c (genNearPointerGet),
1973 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
1974 optimization with bits, but not bitfields.
1975 * src/ds390/ralloc.c (packRegisters),
1976 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
1978 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1980 * src/SDCCcse.c (algebraicOpts): copy operands before modification
1982 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1985 * src/SDCCicode.c (operandFromSymbol),
1986 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
1987 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
1988 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
1989 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
1990 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
1991 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
1993 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
1994 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
1995 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
1996 * src/SDCCsymt.c (newSymbol),
1997 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
2000 * src/SDCCval.c (newiList): fixed bug #885705
2002 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2004 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
2005 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
2007 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2009 * device/include/c8051f120.h,
2010 * device/include/c8051f300.h,
2011 * device/include/c8051f310.h: added/updated header files for Silicon
2012 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
2013 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
2014 in new section Submitting patches
2016 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2018 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
2019 genFarPointerGet, genCodePointerGet, genGenPointerGet,
2020 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2022 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
2023 genFarPointerGet, genCodePointerGet, genGenPointerGet,
2024 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2026 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
2027 genFarPointerGet, genCodePointerGet, genGenPointerGet,
2028 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2030 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
2031 genFarPointerGet, genCodePointerGet, genGenPointerGet,
2032 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2033 genGenPointerSet): fixed bug #892400
2034 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
2035 to eliminate build warnings.
2036 * src/SDCCast.c (processParms),
2037 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
2039 * support/valdiag/valdiag.py: added GCC to the list of defines active
2040 when compiling with gcc
2042 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2044 * support/Util/SDCCerr.h,
2045 * support/Util/SDCCerr.c,
2046 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
2047 with an incomplete type (fixed bug #883734)
2048 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
2050 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2052 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
2054 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2056 * src/SDCCast.c (decorateType),
2057 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
2058 function pointer implementation
2059 * support/regression/tests/funptrs.c: added tests to verify both forms
2060 of function pointers work correctly. Added tests to verify parameters
2061 are passed in the correct order.
2063 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
2065 * device.c (regCompare): registers are sorted by ascending
2066 address and increasing size,
2067 * main.c (_pic16_finaliseOptions): removed the declaration
2068 of compiler macro MCU. Now a macro of the format pic18fxxxx
2069 will be defined from the command line
2071 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
2072 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
2074 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
2075 PCOP_RLCF was overwritten!
2076 * gen.c (genSkip): commented out calls to pic16_emitcode,
2077 * (genCmpEQ): fixed "long" compares, only high word did get compared,
2079 * (genRRC): added debugging info,
2080 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
2081 overwritten while shifting,
2082 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
2083 overwritten while shifting,
2086 * (shiftLLeftOrResult),
2087 * (shiftRLeftOrResult),
2089 * (shiftLLong): Implemented with pic16_emitpcode
2090 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
2091 * (genLeftShift): Fixed bug, operand for shift by variable always
2092 was "and"ed with 0x0f,
2093 * (genLeftShiftLiteral),
2095 * (genRightShiftLiteral): added debugging info,
2096 * (genrshFour): added comment,
2097 * (genRightShift): determined signedness from operand "left"
2100 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2102 * src/SDCCicode.c (geniCodeParms),
2103 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
2104 function pointers, fixed function pointer bugs #861242 and #861896
2106 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2108 * device/include/c8051f000.h,
2109 * device/include/c8051f120.h,
2110 * device/include/c8051f300.h: added header files for Silicon
2111 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
2113 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
2115 * src/SDCCast.c (processParams): added new type flow and restructured
2116 (gatherAutoInit): added new type flow
2117 (addCast): cosmetic changes
2118 (getLeftResultType): added new type flow for array indices, patch
2119 provided by Stas, see FR #877103
2120 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
2121 array index patch by Stas
2122 * src/SDCCast.h: added prototype getResultTypeFromType()
2124 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
2125 * src/pic/glue.c (pic14emitStaticSeg),
2126 * src/pic16/glue.c (pic16emitStaticSeg),
2127 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
2128 for initialization of symbols
2129 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
2130 * support/Util/SDCCerr.h:
2131 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
2132 * .version: bumped version number to 2.3.8
2133 * device/include/Makefile.in (install),
2134 * doc/Makefile (install): changed to 'rm `find ...`' construct to
2137 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
2139 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
2140 Slade Rich fixed an optimization bug
2141 * src/pic/pcodepeep.c,
2142 * src/pic/pcoderegs.c
2143 * doc/Makefile (install): added test for directory
2145 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2147 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
2148 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
2149 * src/pic/ralloc.c (getRegPtr, getRegGpr),
2150 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
2151 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
2152 * as/mcs51/asexpr.c (term),
2153 * as/hc08/asexpr.c (term): fixed bug #887146
2155 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2157 * src/z80/gen.c (genMult): handle single byte result product
2158 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
2159 DUMMY_READ_VOLATILE (fixed bug #886367)
2161 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
2163 * support/regression/tests/libmullong.c: fixed logic, on little endian
2164 hosts we ended without a mullong_wrapper()
2166 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2168 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
2169 virus/worm forged address usage.
2171 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
2173 Fixed promotion, it should be done on AST level:
2174 * src/SDCCast.c (addCast): added promotion to int
2175 (decorateType): updated call to upCast()
2176 * src/SDCCicode.c (geniCodeLeftShift): removed call to
2177 usualUnaryConversions()
2179 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
2181 * support/regression/tests/literalop.c (mulWrapper): Added a
2182 wrapper to remove integer overflow warnings.
2184 * support/regression/tests/float_trans.c: Made work on host.
2186 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
2189 * support/regression/generate-cases.py (main): Changed from inline
2192 * doc/Makefile (install): Changed to depth first to get rid of
2193 missing directory install warning.
2195 * as/Makefile (install-doc): Made work on Mac.
2197 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
2199 * src/SDCCast.c: added an additional type flow in decorateType() of
2200 opposite direction, see feature request #860006; it's enabled at runtime
2201 by setting the environment variable SDCC_NEWTYPEFLOW
2202 * src/SDCCast.h: changed prototype of decorateType()
2203 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
2204 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
2205 'char' to 'int' can be omitted, if both operands are 'unsigned char';
2206 see feature request #877103
2207 * src/SDCCval.c: updated call of decorateType()
2208 (valBitwise): fixed bug #882876
2209 (valMinus): added promotion
2210 (valLogicAndOr): result is unsigned
2211 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
2212 * src/SDCCsymt.c (computeType),
2213 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
2214 must not cause an unsigned operation
2215 * src/pic/glue (pic14emitRegularMap),
2216 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
2218 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
2220 * src/pic/pcode.c (PCodeID): commented out left over debug code
2222 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
2224 * support/valdiag/tests/overflow.c: added shift tests
2232 * src/pic/pcodepeep.c,
2233 * src/pic/pcoderegs.c,
2235 * src/pic/ralloc.h: applied patch from Slade Rich;
2236 added support for multiple code pages and multiple RAM banks on the
2237 PIC 14 port. The ASM files now no longer simply assume all the
2238 code / RAM are in the same page / bank. This means the linker can
2239 safely allocate code/RAM of separate ASM files to different pages/banks.
2240 * doc/sdccman.lyx: added Slade's tips
2241 * src/mcs51/peeph.def: fixed bug #880768
2243 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2245 * src/hc08/ralloc.c (rematStr): fixed bug #879282
2246 * src/SDCCast.c (decorateType): fixed bug #880197
2248 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
2250 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
2253 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
2254 strtof is not part of C89 and isn't included with Mac OS X.
2256 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2258 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
2259 shiftL2Left2Result): fixed bug #879326
2260 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
2261 (genMultOneByte): fixed bug in signed vs unsigned multiplication
2262 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
2263 address fetch for clr instruction
2264 * device/lib/hc08/_mulint.c: created optimized assembly version
2265 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
2267 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2269 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
2270 proposed in FR #877103
2272 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
2274 * src/SDCCval.c (cheapestVal): added missing checks
2275 * src/SDCCicode.c (usualBinaryConversions): fixed condition
2276 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
2278 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
2280 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
2283 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
2285 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
2286 loaded with the linker search paths (-L arguments) and the libraries
2287 to be linked with the current source (-l arguments). Changes
2288 currently will affect only the pic16 port.
2289 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
2290 include path the port specific paths and port specific libraries,
2291 * gplink command now contains the $3 argument,
2292 * src/pic16/device.h,
2293 * src/pic16/device.c,: structure PIC_device is made public and
2294 renamed to PIC16_device, the same for variable Pics which is renamed
2295 to Pics16. Updated all references to them.
2296 * src/pic16/glue.c (pic16glue): corrected bug with code
2297 initialization which bypassed the variable initializations block.
2299 * device/lib/pic16/Makefile.rules: removed --penable-stack from
2300 COMPILE_FLAGS and added the --nostdinc option
2302 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2304 * device/include/mc68hc908jb8.h: Register defs for another member
2305 of the hc08 family. Contributed by Bjorn Bringert - thanks!
2307 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
2309 Documenting changes from previous commits.
2310 * configure.in (version 1.56),
2311 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
2312 when generating output files to configure the pic16 library,
2313 but now I've commented it out, since gputils aren't installed in the
2314 SF compile farm, so library won't compile
2316 * device/lib/Makefile.in (version 1.56): initially I've added in
2317 target 'all' the prerequestive 'model-pic16' so it compiled the
2318 pic16 library, but now I've commented it out for the same reasons
2320 * added targets 'model-pic16' and 'objects-pic16' to compile the
2322 * added target 'port-specific-objects-pic16' to handle the
2323 generated libraries and copy them into the build/ directory
2324 * added target 'clean-intermediate-pic16' to clean intermediate
2325 files into pic16 directory
2326 * in target 'installdirs' added line to create directory pic16 in
2327 the installation path
2329 * device/include/Makefile.in (version 1.11): in target 'install'
2330 added lines to copy all header files to installation path,
2331 * in target 'installdirs' added line create directory for pic16
2332 headers in the installation path
2334 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
2336 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
2339 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
2342 * device/lib/configure.in,
2343 * device/lib/configure: fixed for autoconf 2.57
2345 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2347 * src/z80/main.c (_parseOptions): fixed the portmode= command line
2348 option so that it actually works. Made it specific to the z80, since
2349 the gbz80 doesn't have these kinds of I/O ports.
2351 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2353 * device/include/z180.h,
2354 * device/lib/_memcpy.c,
2355 * device/lib/_memmove.c,
2356 * device/lib/_mulint.c,
2357 * device/lib/ser_ir.c,
2358 * device/lib/ser_ir_cts_rts.c,
2359 * device/lib/_strcmp.c,
2360 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
2361 * src/z80/main.c (_process_pragma): add support for pragmas bank and
2362 portmode; added deprecation warning for bank= and protmode= forms.
2363 Also, guard against buffer overflow.
2364 * src/z80/gen.c (aopGet): generate better code for sfr banked read
2366 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2368 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
2369 changed interrupt vector table generation to only emit declared vectors.
2370 * device/include/Makefile.in: added missing backslash
2371 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
2373 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
2375 Mainly changes to support compilation of the device libraries
2376 * src/pic16/device.c: stack is allocated via symbol and not
2377 via literal number. The symbol is placed in the corresponding
2378 position of the data ram
2379 * (pic16_dump_section): relocatable and absolute uninitialized
2380 data are now emitted in sorted order to reduce section naming,
2381 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
2382 weren't marked as being in the access bank,
2384 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
2386 Added portion of GNU PIC Library under the directory
2387 device/include/pic16 and device/lib/pic16. These files
2388 contain the declarations of SFRs for the PIC18Fxx2 devices.
2389 The directory is initialized via configure from toplevel.
2391 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
2393 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
2394 the spilllocations to be compared correctly
2396 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
2398 * src/SDCCast.c (decorateType): fixed bug introduced today
2400 2004-01-12 Borut Razem <borut.razem AT siol.net>
2402 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
2403 doc/sdccman.lyx: upper case pragmas are deprecated
2405 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
2407 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
2408 in simpler and even better code
2410 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
2412 * src/SDCCicode.c (operandOperation): fixed bug #874819
2413 * src/SDCCast.c (decorateType): fixed
2414 char foo (unsigned long ul) { return ul > 0; }
2416 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2418 * doc/sdccman.lyx: Moved and added some sections, small changes
2419 all over. Telling LaTeX to be less strict with word spacing
2420 to better keep the right margin. Changed some notes about
2421 maintainance of the ports in section 3.2.1 - is it OK like this?
2423 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
2425 SDCC source changes:
2426 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
2427 convilong): modified to inform the pic16 port that builtin functions
2430 PIC16 PORT specific changes:
2431 * src/pic16/device.c pic16_dump_equates() added,
2432 processor registers declared internally by the port are emitted in
2433 the translation as equates,
2434 * src/pic16/gen.c: inline code is passed unprocessed to the
2436 * (pic16_popGetLit2): fnuction modified to take second operand as
2437 pCodeOp pointer and not as literal,
2438 * (popRegFromIdx): prefixed with pic16_,
2439 * (pic16_popCombine2): modified to receive already allocated pCode
2441 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
2442 * (genFunction): initializes local stack frame and pushes on stack
2443 all the registers used by this function,
2444 * (genEndFunction): restores all registers from stack and restores
2446 * src/pic16/glue.c (pic16emitRegularMap): various changes and
2448 * (pic16glue): changed the program startup sequence,
2449 * added new dbName code 'A' for functions placed in absolute section
2450 * src/pic16/main.c: added function attribute _naked,
2451 * added pragma 'code' to place a fnuction at an absolute address,
2452 * added command line arguments --debug-ralloc and --pcode-verbose,
2453 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
2454 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
2455 * (pic16_newpCodeOpLit2): modified to take the second operand as
2457 * (pic16_printpBlock): modified to emit each function in a separate
2459 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
2460 UPPER for immediate operands,
2461 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
2463 * src/pic16/peeph.def: all peepholes with movff are commented out,
2464 because there is a problem in the pcode peep optimizer,
2465 * src/pic16/ralloc.c: the register allocator can now reuse local
2466 function symbols for another function. This saves register usage.
2467 * src/pic16/ralloc.h: added flag isLocal in structure regs,
2469 Added file src/pic16/NOTES with information about program writing on
2470 the current port version.
2472 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2474 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
2475 and peephole 252 (array access)
2477 2004-01-09 Borut Razem <borut.razem AT siol.net>
2479 * src/SDCCmain.c : fixed #872250: -l command line defined library
2480 files are scanned before standard library files
2482 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2484 * src/SDCCast.c (decorateType): fixed bug #874046
2486 2004-01-09 Borut Razem <borut.razem AT siol.net>
2488 * support/scripts/sdcc.nsi: remove previous installation
2490 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2492 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
2493 bytes for last interrupt vector (mcs51)
2494 * sdcc.spec: fixed typo
2496 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2498 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
2499 gen51Code): more efficient parameter receive for --model-large
2502 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2505 * src/z80/main.c: added missed needLinkerScript flags (more than
2506 one port structure defined in these file)
2507 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
2510 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
2512 * src/SDCCmain.c: removed various references to DEFAULT_PORT
2513 * src/port.h: added flag needLinkerScript in port->linker
2514 structure to inform whether to create a .lnk file or not,
2522 * src/z80/main.c: changed appropriately to configure
2523 needLinkerScript flag
2525 * src/pic16/gen.c (genAddrOf): fixed bug #863624
2526 * src/pic/glue.c: added variable udata_section_name to
2527 override default uninitialized data segment definition for
2528 devices only with SHAREBANK memory (reported from Erik Epetrich)
2529 * (pic14emitOverlay): modified to emit a commented overlay segment
2530 directive when no overlay data exist
2531 * (picglue): modified to emit uninitialized data segment
2532 according to udata_section_name
2533 * src/pic/main.c (_pic14_parseOptions): added command line
2534 options --udata-section-name=[name] to override default
2535 udata definition name
2536 * modified _linkCmd and _asmCmd to include compiler passed
2537 arguments via -W option
2538 * src/pic16/main.c: added $l in _asmCmd, changed extension for
2539 object file from '.rel' to '.o' in port->linker structure,
2540 changed size of fptr from 2 to 3 in port structure
2542 2004-01-07 Borut Razem <borut.razem AT siol.net>
2544 * support/scripts/sdcc.nsi: update PATH
2545 * support/scripts/sdcc.ico: craeted
2547 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
2549 * device/include/Makefile.in: fix install
2550 * doc/Makefile: fix install
2552 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2554 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
2556 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
2557 how the function variable allocation summary is displayed; also
2558 include information about variables allocated to the overlay
2561 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2563 * as/mcs51/lkmain.c: Help about -Y option
2564 * as/mcs51/lkarea.c: Fixed gcc warnings
2566 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
2568 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
2570 * support/valdiag/tests/overflow.c: added
2571 * src/SDCCast.c (decorateType),
2572 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
2573 LEFT_OP (left shift)
2575 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2577 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
2578 (default behaviour).
2580 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2582 A python script to validate compiler diagnostic messages. It can be
2583 used to verify that sdcc complains about bad c source code and
2584 gives a good location of the error.
2585 * support/valdiag/Makefile,
2586 * support/valdiag/valdiag.py,
2587 * support/valdiag/tests/*
2589 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2591 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
2592 * src/SDCCsymt.c (newEnumType),
2594 * support/Util/SDCCerr.c,
2595 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
2597 * support/regression/tests/enum.c: added test for enum values that
2598 require at least 2 bytes of storage.
2600 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
2602 * src/common.h: added ifndef/define/endif macros
2603 around the header file.
2604 Bug reported from Jesus Calvino-Fraga
2606 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
2608 * sdcc.spec: updated
2609 * device/include/Makefile.in: don't install CVS directories
2610 * device/lib/Makefile.in: added removal of CVS directories after install
2611 * doc/Makefile: fixed install, added local_icons
2612 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
2613 * src/mcs51/gen.c (genRightShift): fixed bug #870788
2614 * src/ds390/gen.c (genRightShift): fixed bug #870788
2615 * src/SDCCast.c (decorateType): fixed bug #870781
2617 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
2619 PIC16 port related changes:
2620 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
2621 added variable stackPos,
2623 * gen.c: genCall, assignResultValue: added support for
2624 pushing/retrieving function parameters to/from stack,
2625 genFunction,genEndFunction: setup stack frame for the
2627 genAddrOf: will be changed according to bug 863624
2629 * added files genutils.c and genutils.h which contain gen*
2630 debugged and optimised functions extracted from gen.c
2632 * glue.c: added variable 'externs' which holds extern symbols,
2633 pic16emitRegularMap: is modified to properly handle relocatable
2634 symbols under the new scheme,
2635 pic16createInterruptVect: is modified
2636 pic16printPublics: is modified to emit 'global' assembler directives,
2637 added pic16_printExterns to print extern symbols,
2638 pic16glue: initializes stack/frame pointer in the beginning of
2639 the assembly output. Temporary hack, will be corrected later,
2640 because gplink yet does not support stack and SDCC does not
2641 yet support a type of crt0.o object to create the final binary.
2643 * Removed many lines that contain 8051 legacy code.
2644 * The code is finally placed under a 'code' directive.
2645 * Added port specific options.
2647 * _process_pragma: simplified since now we do not need *special*
2648 include file to define SFR registers. But a separate header
2649 will be needed. This will be developed later.
2650 * _pic16_parseOptions: added, parses port specific options:
2651 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
2652 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
2653 --preplace-udata-with=
2655 * _pic16_setDefaultOptions: modified to initialize section names,
2656 but hack is temporarly out of order since it needs improvement.
2657 * _pic16_genAssemblerPreamble: configuration words are emitted by
2658 their address instead of their name. This part is incomplete and
2659 supports only the 18Fxx2 devices. Other devices will emit an error
2660 during assembly since they do not contain the same set of config
2662 * _pic16_genIVT: is modified,
2664 * pcode.c: added definitions for some hardware registers that are needed
2666 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
2667 All PCI entries are updated. Now LFSR is supported.
2668 * Removed pic16_pciTRIS is mentioned by mdubuc in source
2669 * added pic16_newpCodeOpLit2 to support instructions with
2670 two literal arguments
2671 * pic16_pCode2str: corrected code that emits assembler instructions
2672 with two literal operands and those that have an access bit modifier
2673 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
2674 this fixes a bug which caused some labels to be lost, when an
2675 assembler directive was added, i.e. banksel,
2676 * pic16_FixRegisterBanking: improved logic that causes the insertion
2678 * InlineFunction: functions that are called once, are not any more
2679 inlined. This can be a port option in the future,
2681 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
2683 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
2684 hold the corresponding uninitialized symbols,
2685 * pic16_allocProcessorRegister: registers have explicit marked the
2687 * pic16_allocInternalRegister: registers are explicit marked as
2689 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
2690 processing list, so bit registers were lost,
2693 * ralloc.h: added field 'accessBank' and original symbol operand
2694 in register definition,
2695 * removed the field isMapped from register definition,
2697 ** Several functions have been removed from various sources:
2698 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
2699 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
2700 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
2701 pic16_assignRelocatableRegisters
2703 ** others have been introduced:
2704 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
2705 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
2707 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
2709 * support/scripts/inc2h.pl: changed definition of BIT_AT
2710 to emit 'sbit at' instead of 'bit at'. This was a request.
2712 PIC16 port related preliminary changes:
2713 * gen.c: prefixed function popRegFromString with
2714 pic16_ and all references to it corrected
2715 * pcode.c: all pic16_pc_* hardware registers prefixed
2716 with underscore (_),
2717 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
2718 * ralloc.c: newReg(): when register is REG_SFR then
2719 set address to rIdx,
2720 pic16_allocProcessorRegister(): marks register wasUsed=0
2721 pic16_writeUsedRegs(): added a call to assign processor
2722 registers via pic16_assignFixedRegisters
2724 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2726 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
2727 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
2728 variables in unused register banks. Also the SSEG is placed
2729 wherever there is enough space for it, and IDATA can be anywhere
2730 in internal RAM. For now compile using -Wl-Y[stack_size].
2731 The mem file is different for this option as well, since it
2732 makes no sense of talking about DSEG lenght.
2734 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
2736 * src/SDCClrange.c: fixed bug 869095 that caused segfault
2737 in certain cases, e.g. when ROM assignment, patch provided
2738 from Albert den Haan.
2740 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2742 Many signedness and type propagation fixes:
2743 * src/SDCCicode.c: made geniCodeCast() static
2744 replaced SPEC_ by IS_ (cosmetic)
2745 (operandOperation): fixed div and mod operation
2746 (usualBinaryConversions): added support for promotion of char
2747 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
2748 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
2749 (geniCodeAdd): an array index will stay unsigned, even if promoted
2751 (geniCodeArray): ditto
2752 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
2753 * src/SDCCsymt.c (computeType): added more support for char;
2754 promotion of char is selectable by promoteCharToInt, fixed signedness
2756 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
2757 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
2758 * src/SDCCval (val*): replaced signedness calculation by
2760 rearranged if-branches (cosmetic)
2761 (valShift): added warning W_SHIFT_CHANGED
2762 (valCompare): fixed problem with different types
2763 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
2764 * support/regression/tests/literalop.c: added many cases
2765 * support/regression/tests/ast_constant_folding.c: changed finally to
2767 * .version: new year, new version: 2.3.7
2768 * src/SDCCmain.c (main): applied patch #866468
2769 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
2770 provided by Scott Bronson
2771 * doc/sdccman.lyx: updated documentation for sdcdb
2772 updated and added chapter tips
2774 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2776 * src/SDCCsymt.h: missing from yesterday's commits
2778 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2780 * src/SDCC.y (struct_or_union_specifier),
2781 * support/Util/SDCCerr.c,
2782 * support/Util/SDCCerr.h: verify that struct & union tags are used
2785 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2787 * src/SDCCglobl.h: missing from yesterday's commits
2789 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2791 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
2792 sft_attributes, struct_declaration, parameter_declaration,
2793 type_name, start_block, declaration_list),
2794 * src/SDCC.lex (check_type): support redefinition of typedef names
2796 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2798 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
2799 aligned xdata arrays. Erik helped me with the if clause.
2801 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2803 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
2806 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2809 * src/SDCCast.c (newAst_),
2811 * src/SDCCicode.c (ast2iCode, newiCode),
2813 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
2814 expr, statement, expression_statement, selection_statement,
2815 iteration_statement, expr_opt, jump_statement): foundation for tracking
2817 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
2820 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2822 * support/Util/SDCCerr.c,
2824 * src/SDCCast.c (createCase, createDefault, decorateType),
2825 * src/SDCClabel.c (labelUnreach),
2826 * src/SDCC.y (labeled_statement, jump_statement): More improvements
2828 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
2829 (with thanks to Stas Sergeev)
2830 * device/include/time.h,
2831 * device/lib/time.c (CheckTime): suppress unreachable code warning
2833 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2835 * src/SDCCast.c (createIvalCharPtr),
2836 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
2838 * support/regression/tests/nullstring.c: tests for these two bugs
2840 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2842 * support/Util/SDCCerr.h,
2843 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
2844 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
2845 about storage class and 'at' used inside struct or union
2846 * src/SDCCBBlock.c (iCodeFromeBBlock),
2847 * src/SDCCcse.c (ifxOptimize),
2848 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
2849 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
2850 printIval, emitStaticSeg, emitOverlay),
2851 * src/SDCClabel.c (deleteIfx),
2852 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
2853 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
2854 gatherAutoInit, processParms),
2855 * support/Util/SDCCerr.h,
2856 * support/Util/SDCCerr.c (werrorfl): Support for better error location
2857 reporting for post-parse errors.
2859 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2861 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
2862 implicit casts via union; they don't work on big endian systems
2863 (possible fix for bug #861138)
2865 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2867 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
2868 * src/mcs51/main.c: fixed the fix for bug #737001
2870 2003-12-15 Borut Razem <borut.razem AT siol.net>
2872 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
2874 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2876 * support/makebin/makebin.c: put output in binary mode
2878 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2880 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
2881 xdata and data memory on startup. Set the environment variable
2882 SDCC_NOGENRAMCLEAR to disable this.
2883 * src/mcs51/peephole.def,
2884 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
2885 (allows non-interrupt and interrupt code to safely compete for a resource
2886 without the non-interrupt code having to disable interrupts)
2888 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2890 * src/SDCCicode.c (geniCodeAdd),
2891 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
2892 with valFromType if type might be a pointer and host is big endian).
2893 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
2894 types, not just integer types.
2895 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
2896 multiply defined with mismatching "at" address.
2898 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2900 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
2901 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
2902 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
2903 with embedded nulls (fixed bug #753752)
2905 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2907 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
2908 Apparently this did not see much testing (endless loop)
2910 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2912 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
2914 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2916 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
2917 gracefully handle NULL memmap pointers
2919 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2921 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
2922 instead of deleting the iCode when an operand is volatile
2923 * src/z80/gen.c (genDummyRead),
2924 * src/mcs51/gen.c (genDummyRead),
2925 * src/ds390/gen.c (genDummyRead),
2926 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
2928 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
2929 * src/SDCC.y: fixed bug #850420
2931 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2933 Applied z80 i/o port patch from Peter Townson and fixed some operators
2934 to better handle operands in A register.
2935 * device/include/z180.h
2941 * src/z80/peeph-z80.def
2945 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2947 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
2949 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2951 * device/lib/hc08/_mullong.c: Removed extra #endif
2953 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2955 * sim/ucsim/hc08.src/inst.cc,
2956 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
2958 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
2959 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
2960 * device/include/stdarg.h: fixed varargs for hc08
2961 * device/lib/Makefile.in,
2962 * device/lib/hc08/Makefile,
2963 * device/lib/hc08/_mulint.c,
2964 * device/lib/hc08/_mullong.c: fixed some endian problems
2966 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2968 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
2969 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
2970 * device/lib/_gptrget.c,
2971 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
2973 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2975 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
2976 * src/SDCCast.c (astErrors): fixed bug #846007
2977 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
2979 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2981 * src/SDCCast.c (decorateType): disabled a transformation I added in
2982 revision 1.188 (access to fields of a structure at an absolute address);
2983 it breaks with bitfields, extern declarations, and gcse analysis.
2984 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
2985 could be assigned through a pointer, so don't complain.
2986 * src/SDCCast.c (astErrors),
2988 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
2990 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
2992 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
2993 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
2994 output of __config directives, since gpasm now supports them
2995 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
2996 pre-processor macro, i.e. -DMCU=p18f452
2997 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
2998 and modified to handle 'cast' icode similarly to '=' icode
2999 * src/pic16/device.h (typedef struct PIC_device): added field
3000 'extMIface' to indicate that chip has external memory interface
3001 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
3002 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
3005 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3007 * src/SDCC.y (pointer): fixed bug #846006
3008 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
3009 * src/SDCCast.c (decorateType): fixed bug #846009
3010 * src/ds390/peeph.def,
3011 * src/ds390/gen.c (genAnd, genOr),
3012 * src/mcs51/peeph.def,
3013 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
3015 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3017 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
3024 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
3028 * src/SDCCbitv.c: added function to free a bitvector
3030 * src/SDCClrange.c: added function to recompute the liveranges
3032 * src/ds390/ralloc.c,
3033 * src/hc08/ralloc.c,
3034 * src/mcs51/ralloc.c,
3036 * src/pic16/ralloc.c,
3037 * src/xa51/ralloc.c,
3038 * src/z80/ralloc.c: recompute the liveranges after register packing
3040 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
3042 * src/SDCCloop.c (newInduction): fixed bug #845630
3044 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3046 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
3047 inadvertantly left behind from my 2003-11-12 change
3049 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3051 Updated headers I neglected to commit yesterday.
3055 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3057 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
3058 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
3059 * src/SDCCopt.c (eBBlockFromiCode),
3060 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
3061 the creation of the key hash table from the sequencing so it can be used
3062 earlier (for some GCSE bug fixes still pending)
3064 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3066 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
3067 * support/regression/tests/addsub.c: testing genPlus shortcut
3069 2003-11-15 Borut Razem <borut.razem AT siol.net>
3071 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
3073 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3075 * src/SDCCcse.c (cseBBlock): fixed bug #527779
3076 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
3077 ordering is immaterial.
3078 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
3080 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3082 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
3083 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
3084 (SIGSEV) of bug #840381
3085 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
3086 unlink new file before rename if new and old filenames are the same)
3088 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3090 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
3091 uninitialized variables) for the mcs51. Set environment variable
3092 SDCC_GENRAMCLEAR to test.
3093 xdata initialization slightly shorter
3095 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3098 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
3099 #838241 & 780691 (basicly the same bug)
3100 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
3101 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
3103 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
3105 * src/SDCCmain.c (linkEdit): "fix" #834252
3107 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3109 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
3111 * src/SDCC.y: fixed bug #819403
3113 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3115 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
3116 the reentrant attribute.
3117 * src/hc08/gen.c (genPackBits): added missing stack readjustment
3118 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
3120 * src/SDCCast.c (decorateType): fixed bug with storage class not being
3121 updated during pointer dereference; f.e. ~(((char *)1)*) was being
3122 erroneously reduced to a literal.
3123 * src/hc08/ralloc.c (packRegisters, rematStr),
3124 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
3127 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3129 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
3130 * doc/sdccman.lyx: changed from 'article' to 'book'
3131 * doc/Makefile: readded test_suite_spec and cdbfileformat
3133 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
3135 * device/include/stdlib.h: include malloc.h to comply with ANSI
3136 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
3138 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3140 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
3141 * doc/clean.mk: also remove *.out files
3142 * doc/sdccman.lyx: some additions, larger top/bottom margins
3144 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3146 * src/SDCC.y: fixed bug #837365
3147 * support/regression/tests/bitopcse.c
3148 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
3149 a symbol (might be valop instead)
3150 * device/lib/Makefile.in: added errno.c to HC08SOURCES
3151 * device/lib/clean.mk: added hc08 to the cleaning list
3153 2003-11-04 Borut Razem <borut.razem AT siol.net>
3155 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
3157 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
3158 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
3159 malloc is declared in standard stdlib.h
3161 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3163 * device/lib/hc08/Makefile: need to clean .rel not .o files
3164 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
3166 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3176 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
3177 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
3178 tests (which uses the port's oclsExpense function)
3184 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
3186 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3188 * src/SDCCcse.c (ifxOptimize),
3189 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
3190 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
3191 deleting the IFX iCode.
3192 * src/hc08/ralloc.c: reduced unneeded slocs
3193 * src/hc08/gen.c: fixed bug in asmopToBoolean
3195 2003-11-04 Borut Razem <borut.razem AT siol.net>
3197 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
3198 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
3199 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
3200 transferred to configure
3202 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
3204 Use headers defined in the C[++] standards:
3205 * sim/ucsim/gui.src/serio.src/fileio.cc
3206 * sim/ucsim/gui.src/serio.src/frontend.cc
3207 * sim/ucsim/gui.src/serio.src/main.cc
3208 * sim/ucsim/gui.src/serio.src/posix_signal.cc
3209 * support/Util/NewAlloc.c
3215 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3217 * Added MSVC projects for hc08 assembler and linker:
3218 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
3219 /as/hc08/link_hc08.dsp
3221 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
3223 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
3225 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
3227 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
3229 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3231 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
3233 2003-10-31 Borut Razem <borut.razem AT siol.net>
3235 * support/cpp2/cpplib.h,
3236 support/cpp2/cpplib.c,
3237 support/cpp2/cpplex.c,
3238 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
3239 to switch _asm block preprocessing on / off. Default is
3240 #pragma preproc_asm +
3242 2003-10-31 Borut Razem <borut.razem AT siol.net>
3244 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
3245 when outputting comment blocks (when executed with -C option) and
3246 _asm (SDCPP specific) blocks
3248 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3250 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
3252 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
3254 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
3256 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
3258 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
3259 * src/SDCCast.c (decorateType): fixed bug #832664
3261 2003-10-31 Borut Razem <borut.razem AT siol.net>
3263 * support\cpp2\cpplex.c: fixed for SDCPP:
3264 comments(when executed with -C option) and _asm blocks
3265 were included even if they where in skipped #if block.
3266 Applied solution from GCC cpp 3.3.2
3268 2003-10-31 Borut Razem <borut.razem AT siol.net>
3270 * src/SDCC.lex: sdcc now understands both formats:
3271 '# <line_number> <file_name>' and
3272 '#line <line_number> <file_name>'
3273 * support/cpp2/cppmain.c: sdcpp now generates the standard
3274 '# <line_number> <file_name>' instead of former
3275 '#line <line_number> <file_name>'
3277 2003-10-30 Borut Razem <borut.razem AT siol.net>
3279 * support/cpp2/cpphash.h,
3280 * support/cpp2/cpplib.h
3281 * support/cpp2/cpplex.c,
3282 * support/cpp2/cppmain.c,
3283 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
3285 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3287 Fixed a number of problems revealed by bug #827883.
3288 * src/SDCCloop.c (loopInvariants): Spill location of the
3289 result operand should be recomputed if extracted from
3290 a loop. Also, don't extract assignments of an iTemp
3292 * src/SDCCast.c (isConformingBody): loop reversal should
3293 not occur if the control variable is involved with a
3294 relational operator.
3296 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
3298 * .version: bumped to 2.3.6 to reflect the big improvements
3299 made by Erik and Klaus. Thanks!
3301 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
3303 Replaced the livrange code.
3304 * src/SDCClrange.c: added new LR code
3306 * src/SDCCBBlock.h: removed remainig parts from old LR code
3307 * src/ds390/ralloc.c,
3308 * src/ds390/gen.c: minor fixes to make it work with new code
3310 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3315 * src/hc08/ralloc.c: Fix various warnings related to the hc08
3316 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
3317 (tweaked fix for bug #818696)
3319 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3321 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
3323 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3326 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
3327 * src/mcs51/gen.c (gencjneshort),
3328 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
3329 more efficient (per Scott Bronson's suggestion)
3331 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3333 Extended the semantics of the critical keyword to include
3334 individual statements. See RFE #827755 and #799831
3339 * support/Util/SDCCerr.c
3340 * support/Util/SDCCerr.h
3345 2003-10-19 Borut Razem <borut.razem AT siol.net>
3347 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
3349 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3351 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
3353 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
3354 and predecrement operand is displayed
3356 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
3358 * src/SDCCval.c (valMinus): fixed bug #826041
3360 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3362 Some hc08 related updates that I missed earlier
3363 * sim/ucsim/stypes.h
3364 * support/regression/ports/hc08/spec.mk
3366 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3368 New target "hc08" for the Motorola 68hc08 family of micros
3376 * sim/ucsim/hc08.src/*
3377 * sim/ucsim/configure.in
3378 * src/ucsim/configure
3379 * sim/ucsim/packages_in.mk
3382 * device/include/mc68hc908qy.h
3384 * device/lib/Makefile.in
3385 * support/regression/ports/hc08/*
3386 * support/regression/Makefile
3388 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3390 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
3392 * src/ds390/gen.c (genCast): fixed bug #821957
3394 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
3396 * device/lib/logf.c: "fixed" overlay bug
3397 * support/regression/ports/host/spec.mk: added m library
3398 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
3399 * support/regression/tests/float_trans: added (for Eric)
3401 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
3403 * src/mcs51/gen.c (genCpl): fixed bug
3404 http://sf.net/mailarchive/message.php?msg_id=6263915
3406 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
3408 * src/SDCCast.c (decorateType): added extended constant folding
3409 * src/SDCCsymt.c (computeType): cleanup
3410 * src/SDCCval.c (valShift): minor optimization
3411 * support/regression/tests/ast_constant_folding.c: added
3413 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3415 * src/SDCCmain.c: removed some unintended changes
3417 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3419 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
3420 * src/z80/gen.c: fixed part of bug #817589
3421 * src/SDCCsymt.c (checkFunction): fixed bug #817895
3423 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
3425 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
3436 * src/ds390/ralloc.c
3438 * src/mcs51/ralloc.c
3440 * src/pic16/ralloc.c
3443 * src/z80/gen.c: removed unused label "release:"
3445 2003-10-06 Borut Razem <borut.razem AT siol.net>
3447 * src/SDCC.lex: removed definition of unused variables
3448 save_optimize and save_options
3450 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3452 * clean.mk: removed '=' in "-maxdepth=1"
3453 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
3454 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
3456 2003-10-06 Borut Razem <borut.razem AT siol.net>
3458 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
3459 my_unput() replaced by unput()
3461 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
3463 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
3464 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
3465 type-punned pointer will break strict-aliasing rules"
3466 Old LR behaviour is again default; Klaus' LR can be choosen by
3467 defining the environment variable LRKLAUS
3471 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
3472 * clean.mk: fixed removal of files in bin/CVS/
3473 * device/lib/clean.mk: fixed removal of directories small and large
3474 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
3476 * src/SDCCval.c: removed superflous test for pedantic
3478 2003-10-05 Borut Razem <borut.razem AT siol.net>
3480 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
3481 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
3482 message "unmatched #pragma SAVE and #pragma RESTORE"
3484 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3486 * doc/sdccman.lyx: various additions and updates (interrupts, inline
3487 assembly, critical functions, atomic, nojtbound)
3489 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
3491 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
3497 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3500 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
3502 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
3504 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
3505 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
3506 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
3508 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3510 * src/z80/gen.c (genRet): fixed bug #524753
3511 * src/z80/gen.c (genCast): fixed internal error on cast from
3513 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
3514 fix for bug #477835 to the z80
3515 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
3516 for tracking iCodes in the peephole optimizer for z80
3518 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3520 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
3521 the other part of bug #814548
3522 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
3524 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
3526 * src/SDCCcse.c: fixed part of bug #814548
3528 2003-09-28 Borut Razem <borut.razem AT siol.net>
3530 * src/asm.c: rewrite of printILine() to use temporary file instead
3532 * src/xa51/main.c: commented out declaration of int rewinds
3534 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3536 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
3538 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3540 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
3541 * src/asm.c (printILine): Fixed bug #811015
3543 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3545 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
3548 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3550 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
3551 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
3552 to correctly handle general case of AOP_PAIRPTR
3553 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
3555 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3557 * src/mcs51/ralloc.c (fillGaps),
3558 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
3559 register positioning bug)
3561 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
3563 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
3565 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3567 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
3568 genCodePointerGet, genGenPointerGet, genFarPointerSet,
3569 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
3570 (ralloc doesn't intentionally do this now, but perhaps later)
3571 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
3572 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
3573 register positioning bugs (Fixed bug #762602 and #795325)
3574 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
3576 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
3577 lines that --i-code-in-asm generates
3579 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3581 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
3582 trying to fclose a FILE* that was already closed.
3584 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3586 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
3587 of const struct should be treated as if const themselves)
3589 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
3591 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
3593 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3595 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
3596 Unix (/n) and DOS (/r/n) line terminations.
3598 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3600 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
3603 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3605 * src/mcs51/gen.c (genFunction, genEndFunction),
3606 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
3607 and restore of EA so that stack offsets to parameters are
3608 correct when using both critical and reentrant/stack-auto.
3609 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
3610 size (can be triggered in error if sloc is shared between
3611 different sized objects)
3612 * device/include/float.h: fixed macros to explicitly use
3613 unsigned long where needed
3615 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
3617 Feature req. 799831: added code to allow nesting of critical functions
3618 * src/mcs51/gen.c (genFunction, genEndFunction)
3619 * src/ds390/gen.c (genFunction, genEndFunction)
3621 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3623 * src/SDCCsymt.c (sclsFromPtr),
3625 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
3626 support for standard C idiom of memory mapped variables; for
3627 example, *((xdata int*)0x1234) = 1 is now internally equivalent
3628 to xdata int at 0x1234 tempvar = 1.
3629 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
3630 provided by Akiya ISHIDA
3632 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
3634 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
3635 * src/SDCCval.c (constVal): added reduction from int to char
3636 * src/SDCCval.c (valMult, valDiv): fixed sign handling
3637 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
3638 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
3640 * support/regression/tests/shifts.c: fixed
3642 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3644 * src/z80/gen.c (genXor): Fixed bug #805445
3646 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3648 Fixed bug #621531 (const & volatile confusion in the type chain).
3649 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
3650 refer to the const or volatile state of the pointer itself.
3662 * src/pic16/ralloc.c
3663 * support/regression/tests/const.c
3665 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3667 When checking for duplicated modules, use absolute paths
3668 instead of relative paths. Files changed:
3673 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3675 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
3677 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3679 * device/include/string.h: added size_t typedef, changed
3680 prototypes to use size_t, eliminated separate reentrant and
3681 non-reentrant declarations, added _memmove declaration
3682 * device/lib/_memcpy.c: changed to use size_t instead of int,
3683 changed /4 to >>2 to avoid division library call
3684 * device/lib/_memcmp.c,
3685 * device/lib/_memset.c,
3686 * device/lib/_strncat.c,
3687 * device/lib/_strncpy.c,
3688 * device/lib/_strncmp.c: changed to use size_t instead of int
3689 * device/lib/_memmove.c: new file (fixed bug #772294)
3690 * device/lib/Makefile.in: added _memmove.c
3691 * device/lib/z80/asm_strings.s: fixed bug #772290
3692 * support/regression/tests/bitfields.c: attempt to fix host assertion
3693 failure on amd64-unknown-linux2.2
3695 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3697 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
3698 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
3699 * as/z80/asmain.c (main): fixed bug #801766
3701 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
3703 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
3706 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3708 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
3709 reported in bug #800609
3711 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
3713 * Top header beautifications in src/pic16 directory:
3714 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
3715 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
3716 pcoderegs.h, ralloc.c, ralloc.h
3717 * main.c: added top header and GPL license notice
3718 * pcode.c: fixed the if-conditional warning
3720 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
3722 * device/lib/_mullong.c: replaced int by short for gcc
3724 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3726 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
3727 and JUMPTABLE iCodes properly now (worked by accident before)
3728 * src/mcs51/gen.c (leftRightUseAcc),
3729 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
3730 iCode properly now. Use getSize instead of nRegs since a & b
3731 aren't part of the nRegs tally.
3733 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
3735 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
3736 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
3737 before instructions that use the _STATUS register
3739 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
3741 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
3742 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
3743 fetching of the pointer
3744 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
3745 copied from genNearPointerSet()
3746 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
3747 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
3748 If they pop r0/r1 they must be called in the opposite order than aopOp().
3749 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
3750 (resp. --stack-auto), prepared for --xstack
3752 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3754 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
3756 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
3758 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
3759 these ports have their own __sdcc_external_start()
3761 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
3763 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
3764 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
3765 type for bits was changed. It resulted in bit variables becoming
3766 global, which is not permitted in PIC 14 assembly output.
3768 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3770 * doc/sdccman.lyx: various additions and updates. Rearranged sections
3772 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3774 Z80 and MCS51 linkers complaint if a public symbol is defined
3775 in more than one library module:
3779 * as/mcs51/Makefile.in
3781 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3783 A few small changes that speed up the peephole optimizer.
3787 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3789 Try to make the peephole optimizer smarter by maintaining
3790 an association between the assembly source code and the
3791 iCodes that originated them. Put this information to use
3792 with a new peephole rule condition "notVolatile" so that
3793 the rules can be aggressive yet still safe.
3798 * src/mcs51/peeph.def
3800 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3804 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
3805 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
3806 if the left or right operand symbols have the accuse flag set.
3808 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3810 Changed the type of the result of the ! (NOT) operator to char;
3811 previously it returned the same type as the source. This allows
3812 us to eliminate all the genFloatNot functions (all of its target
3813 implementations were very buggy) since !float can use the same
3816 * src/SDCCicode.c (ast2iCode): ! returns char
3817 * src/mcs51/gen.c (genNot, genNotFloat),
3818 * src/ds390/gen.c (genNot, genNotFloat),
3819 * src/z80/gen.c (genNot, genNotFloat),
3820 * src/pic/gen.c (genNot, genNotFloat),
3821 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
3823 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
3825 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
3826 1. Interrupt would not compile properly. Ensure PCLATH register is saved
3827 during interrupts. Ensure WSAVE is located at a shared bank address.
3828 2. Fixed page selection in some places
3829 3. Fixed BTFSS/C to where necessary use registers directly and not simply
3830 the registers name strings.
3831 4. Fixed "signed / unsigned compare" compiler warnings.
3832 5. The PIC port manages its own allocation of the general purpose
3833 registers, but makes no attempt to reuse them. As a result when
3834 compiling it soon runs out of general purpose registers. Some
3835 additional code was added to the files pcode.c and device.c to walk
3836 through the function call tree and rename the registers so that they
3846 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
3847 genPlus() & genMinus() when the result is the same as left or right
3849 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3851 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
3853 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3855 Made bitfield a distinct type from bit so that bitfields
3856 convert as per ANSI C and bits retain their traditional
3857 boolean style behaviour. Implemented bitfield support in
3865 * src/ds390/gen.c: bit v bitfield split
3866 * src/z80/gen.c: New support for bitfields
3867 * support/regression/tests/bitfields.c: reenabled z80,
3870 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3872 Rules 246.x, 247.x relate to bitfields, the others speed up
3873 access to xdata mapped I/O devices.
3875 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
3877 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3879 Cleaned up genPackBits and genUnpackBits and added two helper
3880 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
3881 for literal assignments in genPackBits (thanks to Frieder for
3887 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3889 Fixed bug #748310 (pointer to function type mishandled when the
3890 function name is omitted). Also fixed a SIGSEGV when a function
3891 attribute (reentrant, etc) is used on a non-function or on a
3892 function but misplaced before the parameter list.
3894 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
3896 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
3897 * support/Util/SDCCerr.h,
3898 * support/Util/SDCCerr.c: Added func attr misuse error msg
3900 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
3902 Fixed bug #787649 by anonymous
3903 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
3904 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
3906 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3908 Fixed numerous bitfield problems.
3910 * src/SDCC.y: More bitfield related error checking
3912 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
3913 * support/Util/SDCCerr.h,
3914 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
3915 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
3916 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
3917 * support/regression/tests/bitfields.c: tests added
3919 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3921 Made the constant following the "interrupt" keyword optional. If
3922 omitted, the function will not automatically be given an entry
3923 in the interrupt vector table (similar to #pragma NOIV, but
3924 less syntacticly kludgy). The interrupt number is also now
3925 range checked. Also fixed a bug in the high order bit example
3932 * support/Util/SDCCerr.c
3933 * support/Util/SDCCerr.h
3936 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
3938 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
3939 * src/SDCCicode.c (operandOperation): rewritten some ops
3940 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
3941 * src/SDCCsymt.c (computeType): literals are handled the same way as any
3943 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
3944 be re-activated by defining REDUCE_LITERALS)
3945 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
3946 unsigned, but are signed by default
3947 * src/SDCCval.c (constVal): rearranged
3948 * src/SDCCval.c (valMod): preliminary fix
3949 * src/SDCCval.c (valCastLiteral): use TYPE_* types
3950 * support/regression/literalop.c: added, work in progress
3952 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3954 Generate warnings for useless declarations like "char data;"
3955 that don't do what new users expect.
3958 * support/Util/SDCCerr.h
3959 * support/Util/SDCCerr.c
3961 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
3963 * src/SDCCval.c (valMult): fix overflow detection of negative int
3965 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3967 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
3969 Changes to support big endian targets:
3982 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
3984 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
3985 * device/lib/time.c: fixed warning "integer overflow in expression"
3987 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
3989 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
3990 * src/SDCCval.c (constVal): changed default to signed; hex and octal
3991 constants are unsigned; added recognition of "u" flag for unsigned
3992 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
3993 * src/SDCCval.c (valDiv, valMod): fixed signdness
3994 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
3995 signedness of modulo, left and right shift
3996 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
3997 * support/Util/SDCCerr.h: added warning W_INT_OVL
3998 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
3999 * src/SDCCast.c (ast_print): improved output of constants
4001 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4003 Fixed some warnings when building with MSVC:
4016 * support\cpp2\cpplib.c
4020 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
4022 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
4024 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4026 * support\librarian\clean.mk: Do not remove Makefile.
4027 * support\librarian\Makefile: added.
4029 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4031 Added librarian to MSVC build:
4034 * support\librarian\librarian.dsp
4036 'configure' not needed for librarian, removed:
4037 * support\librarian\configure
4038 * support\librarian\configure.in
4039 * support\librarian\config_in.h
4040 * support\librarian\Makefile.in
4042 Hopefully these ones built the librarian and the rest of sdcc properly:
4044 * Makefile.common.in
4046 Messed up 'configure', so revert to previous version:
4050 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
4052 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
4053 there, while the mantissa of a double is "only" 53 bits wide.
4055 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4057 Adding sdcclib to the build. MSVC project coming soon.
4058 Files added/changed:
4060 * support\librarian\clean.mk
4061 * support\librarian\configure
4062 * support\librarian\configure.in
4063 * support\librarian\config_in.h
4064 * support\librarian\Makefile.bcc
4065 * support\librarian\Makefile.in
4066 * support\librarian\sdcclib.c
4069 * Makefile.common.in
4073 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4075 Linker now complaints if linked modules have conflicting options, for
4076 example, one compiled using --model-large and another one compiled with
4077 --model-small. The following files were modified:
4099 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4101 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
4102 as/mcs51/lklibr.c: Generate a warning when a library is not found.
4104 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
4106 * src/z80/mappings.i: fix _mul[us][int,long] entries
4108 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4110 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
4112 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
4114 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
4115 * support/regression/tests/bitopcse.c: added
4123 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4125 added support for new library format to z80, gbz80 linkers:
4131 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
4133 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
4134 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
4136 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
4138 added DUMMY_READ_VOLATILE:
4147 * src/SDCCcse.c (algebraicOpts): many improvements
4148 * src/SDCCcse.h: removed algebraicOpts()
4149 * src/SDCCicode.c (picDummyRead): added
4151 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4153 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
4154 "Insufficient space in data memory".
4156 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4158 * src/mcs51/gen.c: fixed bug #771358
4159 * src/z80/gen.c: fixed bug #759087
4161 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
4163 * src/pic16/glue.c: minor cleanup by Vangelis
4165 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4167 * device/include/regc515c.h: fixed #758477
4168 * device/lib/_gptrget.c: saving some cycles in generic pointer get
4169 * device/lib/_gptrput.c: saved a few bytes
4170 * my tab spacing is 8, yours too?)
4171 * device/lib/_ser.c: process RX bytes earlier than TX bytes
4172 * device/lib/serial.c: process RX bytes earlier than TX bytes
4173 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
4175 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4177 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
4179 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4181 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
4183 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
4185 * device/lib/Makefile.in: bad fix, reverted to 1.43
4187 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
4189 * device/lib/Makefile.in: added missing z80 object files
4191 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
4193 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
4194 pic16 progress by Vangelis:
4209 * pic16/pcodepeep.c:
4212 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4214 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
4216 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4218 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
4219 added gbz80 build to MSVC project.
4220 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
4221 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
4222 from 8051 stuff and setup so it links using a .lnk file.
4224 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4226 * support/librarian/sdcclib.c: sdcc librarian.
4227 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
4230 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4232 * as/mcs51/lkmain.c: properly handle extensions in function afile.
4234 2003-07-02 Borut Razem <borut.razem AT siol.net>
4236 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
4237 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
4238 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
4239 src/xa51/main.c, src/z80/main.c:
4240 virtualization of glue() function: each port has it's own glue function,
4241 which is accessed by do_glue function pointer in PORT.general structure
4243 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
4245 * DS800C400 fun, improved ROM interface and tinibios.
4247 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
4249 * More support for DS80C400. Now includes beginning of interface to ROM.
4251 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
4253 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
4255 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4257 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
4259 2003-06-19 Borut Razem <borut.razem AT siol.net>
4261 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
4263 2003-06-19 Borut Razem <borut.razem AT siol.net>
4265 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
4266 fixed Z80 port - crt0.o: cannot open.
4268 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
4270 * support/Util/MySystem.c (merge_command): revert bad fix
4272 2003-06-18 Borut Razem <borut.razem AT siol.net>
4274 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
4276 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4278 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
4279 option --use-stdout sends errors to stdout instead of stderr.
4281 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
4283 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
4285 2003-06-15 Borut Razem <borut.razem AT siol.net>
4287 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
4288 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
4289 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
4290 fixed width array of pointers replaced with sets;
4291 multiple include and lib paths ared transferred to preprocessor and linker
4292 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
4293 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
4294 fixed width array of pointers
4295 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
4296 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
4297 fixupPath(), getPathDifference()
4298 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
4299 fixed width array of pointers
4301 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
4303 * src/pic16/ralloc.c: fix warnings
4304 * src/pic16/pcode.c: fix warning
4306 2003-06-10 Scott Dattalo <scott AT dattalo.com>
4308 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
4309 know all the details, but essentially this set of changes enable
4310 the pic16 port to generate movff instructions and generate assembler
4315 * src/pic16/pcode.c:
4316 * src/pic16/device.c:
4318 * src/pic16/pcode.h:
4319 * src/pic16/pcoderegs.c:
4320 * src/pic16/ralloc.c:
4321 * src/pic16/ralloc.h:
4323 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4325 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
4326 added option --vc, so sdcc errors and warnings are compatible with
4327 Microsoft Visual Studio.
4329 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4331 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
4332 device/lib/libfloat.lib: added atof function.
4334 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4336 * doc/sdccman.lyx: updated to Lyx 1.3
4337 * doc/cdbfileformat.lyx: updated to Lyx 1.3
4338 * doc/test_suite_spec.lyx: updated to Lyx 1.3
4339 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
4341 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
4343 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
4345 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4347 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
4348 additions to the "related tools/documentation" section
4350 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
4352 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
4354 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
4356 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
4357 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
4359 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
4361 * doc/sdccman.lyx: fix double dash and other minor things
4362 * doc/Makefile: fix double dash
4364 2003-05-28 Karl Bongers(patches from Martin Helmling)
4365 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
4366 condition and ignore commands.
4368 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4370 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
4371 is in parts still quite out of date, I did changes as far as I felt makes sense
4372 for a non-native english speaker.
4373 Please feel free to add to the manual or to correct my changes.
4374 * doc/Makefile: undid touching the date of intermediate tex files.
4376 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4378 * doc/sdccman.lyx: Manual has an index now
4380 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
4382 Finalize muluint/mulsint and mululong/mulslong merging:
4383 * device/lib/_mulint.c
4384 * device/lib/_mullong.c
4385 * device/lib/gbz80/mul.s
4386 * device/lib/gbz80/stubs.s
4387 * device/lib/z80/mul.s
4388 * device/lib/z80/stubs.s
4389 * src/SDCCsymt.c (initCSupport)
4391 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4393 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
4394 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
4395 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
4396 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
4399 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4401 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
4402 the regression tests I'm not brave enough to enable 245.b, 245.c
4403 * doc/sdccman.lyx: added latex preamble for hyperref package.
4404 Using pdflatex this will give you a hyperlinked pdf file with
4405 bookmarks. (prepend '%' before /usepackage if this breaks something)
4407 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4409 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
4411 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
4413 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
4415 2003-05-21 <johan AT balder>
4417 * src/SDCCglue.c (printIval): fixed bug #739934
4419 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
4421 Applied patch from bug 737905 (renamed yylineo to mylineno):
4428 * src/pic16/pcode.c: Cleaned warnings
4429 * src/pic16/pcodeflow.c: Cleaned warnings
4430 * src/pic16/pcoderegs.c: Cleaned warnings
4432 2003-05-19 Scott Dattalo <scott AT dattalo.com>
4434 * src/pic16/pcode.c: Cleaned warnings
4435 * src/pic16/pcodepeep.c: Cleaned warnings
4436 * src/pic16/ralloc.c: Cleaned warnings
4438 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
4440 * doc/sdccman.lyx: fixed bug 739745
4441 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
4443 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
4445 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
4446 it can be defined with CFLAGS when running configure
4447 * src/SDCCmain.c: fixed compiling + linking with object files
4449 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
4451 * configure.in: configure for pic16 port,
4452 added --disable-pic16-port
4453 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
4454 * src/SDCCmain.c: linkOptions is changed to set *,
4455 added if/endif conditional macros to remove options help
4456 messages from optionsTable when a port is not configured, added
4457 support for the PIc16 port in the ports table, when executing
4458 the compiler with no port specified on command line, a default
4459 port is selected with the new macro DEFAULT_PORT which is
4460 defined in port.h, in setDefaultOptions() linkOptions is removed
4461 from initialization assignment, since now it is a set,
4462 parseCmdLine uses setParseWithComma for linkOptions, in
4463 linkEdit() linkOptions are accessed with new function indexSet()
4464 which returns the i'th item of a set variable. See SDCCset.c, in
4465 linkEdit() when calling buildCmdLine(), added linkOptions as
4466 last argument. Now users can pass arguments to gplink via the
4467 -Wl option, main() uses pic16glue() to glue up pic16 programs
4468 * src/SDCCpeeph.c: various changes to support pic16
4469 * src/SDCCset.c: added function void *indexSet(set *, int) to
4470 return the i'th item of the set
4471 * src/SDCCset.h: added function prototype for indexSet()
4472 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
4473 * src/clean.mk: added pic16 in CLEANALLPORTS variable
4474 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
4475 added macro DEFAULT_PORT
4476 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
4477 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
4479 * src/pic16/glue.c: commented out some error producing lines
4480 * src/pic16/main.c: __config directives are commented out to stop
4481 gpasm complaining and test the linkage with gplink, _linkCmd and
4482 _asmCmd changed to be more gplink and gpasm friendly
4483 * src/pic16/peeph.def: peep rule 3 is commented out, since it
4484 produced an error when parsed, peep rule 12 is added to utilize
4485 movff, but it is commented out since the pCode does not support
4486 yet a command with 2 address arguments
4488 2003-05-18 <johan AT balder>
4490 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
4491 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
4492 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
4494 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
4495 Added feature to script commands from file.
4497 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4499 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
4500 * src/SDCCutil.c: include ctype.h for win32
4502 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4504 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
4506 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
4508 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
4509 Fixed so you can set breakpoints prior to run, run does not stop
4510 on entry now. Add tbreak. Other enhancements and fixes for use
4513 2003-05-12 Borut Razem <borut.razem AT siol.net>
4515 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
4517 2003-05-11 Borut Razem <borut.razem AT siol.net>
4519 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
4520 the path of bin directory, so that PATH is the only env. variable, which has to be set
4521 in case of standard installation.
4522 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
4523 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
4524 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
4526 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
4528 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
4529 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
4530 temp files are in the port dir; clean the gen/test directory when
4531 generating new test.c
4532 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
4533 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
4534 * support/regression/tests/zeropad.c: added
4536 2003-05-09 <johan AT balder>
4538 * src/SDCCglue.c: fixed bug #597940
4540 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
4542 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
4543 cache sfr, optimize next,step, fix off by one sourceline,
4544 support ddd list function.
4545 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
4547 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
4549 * support/regression/HTMLgen.py: added compare_s2f()
4550 * support/regression/Makefile: redo 1.27
4551 * support/regression/generate-cases.py: redo 1.5
4553 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
4555 * support/regression/tests/float.c: workaround 33 bit hex constant
4556 * support/regression/tests/simplefloat.c: fix division for host
4558 2003-04-29 Scott Dattalo <scott AT dattalo.com>
4560 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
4561 that tame's the PIC's over-aggressive optimizer.
4563 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4565 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
4568 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
4570 Initial support for DS80C400. "Hello world" runs on TINIm400
4573 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
4575 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
4576 * Some notes on ddd usage added in debugger/README
4577 Martin Helmling adding more features and fixes for ddd GUI debugger.
4578 Code added for nexti, stepi, up, down, and other adjustments.
4580 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
4582 * src/pic/pCodepeep.c non-wildcard asmops are now handled
4583 * src/pic/peeph.def Added two rules to optimize carry manipulation
4584 * src/pic/* removed debug printfs
4586 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
4588 * debugger/mcs51/cmd.c: added header newalloc.h
4590 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
4592 * as/Makefile: new EXEEXT
4593 * as/z80/Makefile: remove trailing slash of BUILDIR
4594 * as/z80/clean.mk: new EXEEXT
4595 * Makefile.common.in: add to CFLAGS (and others), don't replace it
4596 * support/cpp2/Makefile.in: new EXEEXT
4597 * src/pic/glue.c (pic14emitRegularMap): fixed warning
4599 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
4601 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
4602 EXEEXT was introduced to fix all related problems with targets
4603 "clean", "install" and "uninstall"; a couple of further flaws
4604 especially with "clean" have been fixed too
4605 * as/mcs51/Makefile.in
4610 * debugger/mcs51/Makefile.in
4611 * debugger/mcs51/clean.mk
4613 * link/z80/Makefile.in
4616 * packihx/Makefile.in
4618 * sim/ucsim/Makefile
4619 * sim/ucsim/clean.mk
4620 * sim/ucsim/avr.src/Makefile.in
4621 * sim/ucsim/avr.src/clean.mk
4622 * sim/ucsim/s51.src/Makefile.in
4623 * sim/ucsim/s51.src/clean.mk
4624 * sim/ucsim/xa.src/Makefile.in
4625 * sim/ucsim/xa.src/clean.mk
4626 * sim/ucsim/z80.src/Makefile.in
4627 * sim/ucsim/z80.src/clean.mk
4628 * sim/ucsim/main_in.mk
4629 * sim/ucsim/packages_in.mk
4630 * sim/ucsim/gui.src/Makefile.in
4631 * sim/ucsim/gui.src/serio.src/Makefile.in
4632 * sim/ucsim/gui.src/serio.src/clean.mk
4635 * support/cpp2/Makefile.in
4636 * support/cpp2/clean.mk
4637 * support/makebin/Makefile
4638 * support/makebin/clean.mk
4639 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
4640 * doc/sdccman.lyx: --program-suffix no longer needed
4642 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
4644 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
4645 Martin Helmling added support for ddd GUI debugger.
4646 Code added to display assembly, set variables, and other commands
4647 to interface to ddd.
4649 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
4651 * as/Makefile: fix target clean
4652 * as/clean.mk: fix target clean
4653 * as/z80/clean.mk: fix target clean
4655 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
4657 * Makefile.common.in: added AT EXEEXT AT
4658 * configure.in: removed all mingw32 stuff
4659 * configure: rebuilt from configure.in
4660 * doc/sdccman.lyx: updated section "installation"
4661 * support/scripts/sdcc_mingw32: adapted to configure
4662 * support/scripts/sdcc_cygwin_mingw32: added
4664 2003-04-22 Scott Dattalo <scott AT dattalo.com>
4666 * src/pic Added object file support for the PIC port
4667 * src/pic Applied patch from Craig Franklin (this started the object file support)
4668 * src/regression Updated the PIC regression tests for object files
4670 2003-04-20 Borut Razem <borut.razem AT siol.net>
4672 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
4673 lklex.c: In function `getfid':
4674 lklex.c:203: warning: array subscript has type `char'
4675 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
4676 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
4677 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
4678 stack handling macros
4680 2003-04-19 Borut Razem <borut.razem AT siol.net>
4682 * "handling space characters in file path" task:
4683 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
4684 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
4685 * support/Util/MySystem.h: make it self-sufficient
4686 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
4687 src/z80/main.c, sdcc/as/mcs51/lklex.c:
4688 handling space characters in file path
4689 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
4690 (it will be used by assemblers, which have their own includes, e.g. gpasm)
4691 * support/Util/MySystem.c: handling space characters in executable's path
4693 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
4695 * as/z80/Makefile: fix permanent rebuild of z80
4696 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
4697 * support/regression/tests/bitfields.c: added Johan's bitfields.c
4699 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
4701 * src/SDCCopt.c: add special case optimization to replace modulo by
4702 a power of two with a bitwise AND.
4704 2003-04-18 <johan AT balder>
4706 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
4708 2003-04-17 <johan AT balder>
4710 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
4711 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
4713 2003-04-13 Borut Razem <borut.razem AT siol.net>
4715 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
4716 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
4717 fixed mingw problem in adl_NORMALIZE_PATH
4719 2003-04-12 Borut Razem <borut.razem AT siol.net>
4721 * fixed "#pragma SAVE/RESTORE can not be nested":
4722 * src/SDCC.lex: reworked pragma handling functions
4723 * sdcc/src/SDCCglobl.h: reworked stack handling macros
4724 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
4726 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
4728 * src/SDCCutil.c (pathEquivalent): defined but not used
4729 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
4730 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
4731 * configure: rebuilt from configure.in
4732 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
4733 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
4734 * device/include/Makefile.in: replace sdcc_datadir
4735 * device/lib/Makefile.in: replace sdcc_datadir
4736 * Makefile.common.in: add LDFLAGS from configure
4737 * packihx/Makefile.in: use LDFLAGS
4738 * src/Makefile.in: use LDFLAGS
4739 * support/cpp2/Makefile.in: add LDFLAGS from configure
4740 * support/makebin/Makefile: use LDFLAGS
4741 * .version: bumped version number to 2.3.5
4743 2003-04-12 Borut Razem <borut.razem AT siol.net>
4745 * completed "different paths" task:
4746 * src/SDCCmacro.c: fixed bug in handling quotes
4747 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
4748 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
4750 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
4752 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
4754 2003-04-11 kevin Vigor <kevin AT vigor.nu>
4756 * ds390/gen.c ds390/peeph.def: fix bug 706781
4758 2003-04-11 Borut Razem <borut.razem AT siol.net>
4760 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
4762 2003-04-10 Scott Dattalo <scott AT dattalo.com>
4764 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
4765 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
4766 set - this bit used to not be set...).
4767 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
4768 bad code in PIC Port
4769 * src/regression/and2.c added to test bug 609268
4770 * src/regression/Makefile added and2.c to regression test
4773 2003-04-08 <johan AT CP255758-A>
4775 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
4776 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
4777 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
4779 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
4781 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
4783 * support/cpp2/Makefile.in: fix bug #487815
4784 * configure: rebuilt from configure.in
4785 * Makefile.common.in: docdir changed, new path suffixes
4786 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
4787 * sdcc_vc_in.h: reflect changes from sdccconf.h
4788 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
4789 * src/SDCCutil.h: remove BINDIR hack
4790 * doc/sdccman.lyx: update new path hierarchy
4792 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
4794 * src/SDCCpeeph.c: added okToRemoveSLOC test
4796 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
4798 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
4800 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
4802 * src/SDCCpeeph.c: added labelIsReturnOnly test
4803 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
4805 2003-04-05 <johan AT balder>
4807 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
4808 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
4809 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
4810 * src/SDCCast.c: fixed a warning
4811 * src/SDCCast.h: fixed a warning
4812 * src/SDCCicode.c (operandFromAst): fixed a warning
4814 2003-04-04 <johan AT balder>
4816 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
4817 * src/SDCCast.c (decorateType): fixed bug #715076
4818 * src/SDCC.y: fixed bug #702907
4820 2003-04-03 <johan AT balder>
4822 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
4823 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
4824 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
4825 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
4826 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
4828 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
4830 * _decdptr.c: fix return values
4831 * _gptrget.c: fix return values
4832 * _gptrgetc.c: fix return values
4833 * _gptrput.c: fix return values
4834 * _mulint.c: fix return values
4835 * as/z80/Makefile: fix 'make -j' problem
4837 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
4839 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
4840 * configure.in: big cleanup, updated to autoconf 2.5x
4841 * configure: rebuilt from configure.in
4842 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
4843 * sdcc_vc_in.h: reflect changes from sdccconf.h
4844 * doc/Makefile: fixed a flaw in "make install"
4846 2003-04-02 <johan AT balder>
4848 * src/ds390/gen.c (genCmp): no comments
4849 * src/mcs51/gen.c (genCmp): no comments
4850 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
4851 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
4853 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
4855 * support/regression/generate-cases.py: place generated file in given sub directory
4856 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
4857 * support/regression/Makefile: improvements for 'make -j';
4858 side effect: it's simpler and faster now
4860 2003-03-31 Borut Razem <borut.razem AT siol.net>
4862 * src/z80/main.c: link-{port} and as-{port} defined without path
4863 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
4865 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
4867 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
4869 2003-03-30 Borut Razem <borut.razem AT siol.net>
4871 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
4872 changed type of list parameter to set
4873 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
4874 * src/port.h: changed type of do_assemble() parameter to set
4875 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
4876 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
4877 definition of "cppoutfilename" macro with NULL value in preProcess()
4878 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
4879 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
4880 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
4881 replaced with set *binPathSet
4882 * shash_add() deallocates the item, if allready exsists, before adding the new one
4883 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
4885 2003-03-30 Scott Dattalo <scott AT dattalo.com>
4887 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
4888 a nested for loop bug in the PIC port
4889 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
4892 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
4894 * support/Util/dbuf.h: remove C++ stuff to make it portable
4896 2003-03-28 Borut Razem <borut.razem AT siol.net>
4898 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
4899 literal strings in stringLiteral()
4900 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
4901 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
4904 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
4906 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
4908 2003-03-26 <johan AT balder>
4910 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
4911 * src/ds390/gen.c (saveRegisters): catched symbol abuse
4912 * src/SDCCast.c (decorateType): fixed " -v < 3"
4914 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4916 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
4917 Added Lenny Story's debug infrastructure changes:
4918 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
4919 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
4920 * src/cdbFile.c: added
4921 * src/SDCCdebug.c: added
4922 * src/SDCCdebug.h: added
4923 * src/SDCCast.c (createFunction)
4924 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
4925 * src/SDCCmain.c (parseCmdLine, main)
4926 * src/SDCCmem.c (redoStackOffsets)
4927 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
4930 * src/avr/gen.c (genAVRCode)
4931 * src/ds390/gen.c (gen390Code)
4932 * src/mcs51/gen.c (gen51Code)
4933 * src/pic/gen.c (genpic14Code)
4934 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
4935 * src/xa51/gen.c (genXA51Code)
4936 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
4938 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4940 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
4941 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
4943 2003-03-22 <johan AT balder>
4945 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
4947 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
4949 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
4950 * doc/cdbfileformat.lyx: added, written by Lenny Story
4951 * doc/Makefile: added cdbfileformat.lyx
4952 * doc/clean.mk: added cdbfileformat.lyx
4954 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
4956 * src/mcs51/peeph.def: fix bug #705773
4958 2003-03-20 <johan AT balder>
4960 An sfr/sbit can have an "at #" AND an initializer
4961 * src/SDCCsymt.c (checkSClass):
4962 * src/SDCCmem.c (allocGlobal):
4963 * src/SDCCmem.c (allocLocal):
4964 * src/SDCCast.c (createBlock):
4966 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
4968 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
4970 2003-03-16 <johan AT balder>
4972 Undid the hackup of const and volatile, the problem is much bigger
4974 * src/SDCCast.c:1.171
4975 * src/SDCCglue.c:1.138
4976 * src/SDCCicode.c:1.146
4977 * src/SDCCsymt.c:1.150
4978 * src/SDCCval.c:1.65
4980 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
4982 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
4983 * src/ds390/gen.c (genAddrOf): fixed bug #704087
4985 2003-03-13 <johan AT balder>
4987 Hackup const and volatile modifiers in type chains a bit:
4989 * src/SDCCast.c:1.169
4990 * src/SDCCglue.c:1.136
4991 * src/SDCCicode.c:1.143
4992 * src/SDCCsymt.c1.146
4993 * src/SDCCsymt.h1.59
4994 * src/SDCCval.c:1.63
4996 2003-03-12 <johan AT balder>
4998 * src/SDCCBBlock.h: more LRH debugging junk
4999 * src/SDCCcflow.h: more LRH debugging junk
5000 * src/SDCCloop.c: more LRH debugging junk
5001 * src/SDCC.y (struct_declaration): fixed bug #697590
5002 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
5003 * src/ds390/gen.c (aopForRemat): fixed bug #700031
5004 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
5006 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
5007 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
5008 test function names must now match exactly).
5009 * src/SDCCcse.c: added special case in findCheaperOp to allow
5010 extending a short integer. Makes less awful code for bug 700121 test case.
5012 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5014 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
5015 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
5017 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
5019 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
5020 actually called (operandsNotEqual() was called for all
5021 operandsNotEqualX tests).
5023 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
5025 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
5026 with shorter literals. Fixes bug 700121.
5028 2003-03-11 <johan AT balder>
5030 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
5032 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
5034 * src/SDCCloop.c (mergeRegions): an evil beast is dead
5035 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
5037 2003-03-10 Borut Razem <borut.razem AT siol.net>
5039 * src/SDCCmain.c: pipe preprocessor's output
5040 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
5041 * sdcc_vc_in.h: define pclose as _pclose for WIN32
5042 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
5043 which closes all pipes in pipeSet set
5044 * src/SDCCset.c: free deleted item in function deleteSetItem()
5045 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
5046 moved from z80 to src subproject
5047 * .version: increased version number to 2.3.4
5049 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
5051 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
5052 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
5053 * support/regression/ports/xa51/spec.mk: fix typo
5055 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
5057 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
5059 2003-03-09 Borut Razem <borut.razem AT siol.net>
5061 * src/SDCCmain.c: pipe preprocessor's output
5062 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
5063 * sdcc_vc_in.h: define pclose as _pclose for WIN32
5064 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
5065 which closes all pipes in pipeSet set
5066 * src/SDCCset.c: free deleted item in function deleteSetItem()
5067 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
5068 moved from z80 to src subproject
5070 2003-03-09 Borut Razem <borut.razem AT siol.net>
5072 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
5073 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
5074 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
5075 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
5076 * src/SDCCglobl.h: unification of WIN32 native definitions
5078 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5080 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
5082 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
5084 * src/configure.in: check for endianess (even while cross-compiling)
5085 * src/configure: check for endianess (even while cross-compiling)
5086 * src/configure_in.h: check for endianess (even while cross-compiling)
5087 * src/avr/gen.c: remove old endianess stuff
5088 * src/mcs51/gen.c: remove old endianess stuff
5089 * src/ds390/gen.c: remove old endianess stuff
5090 * src/pic/gen.c: remove old endianess stuff
5091 * src/pic/genarith.c: remove old endianess stuff
5092 * src/pic/glue.c: fix endianess check
5093 * src/pic16/gen.c: remove old endianess stuff
5094 * src/pic16/genarith.c: remove old endianess stuff
5095 * src/pic16/glue.c: fix endianess check
5096 * src/xa51/gen.c: remove old endianess stuff
5097 * src/z80/gen.c: fix endianess check
5098 * src/SDCCglue.c: fix endianess check
5099 * src/ds390/peeph.def: fix bug 700036
5101 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
5103 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
5104 * src/configure: find appropriate data-types on host for SDCC's int and long
5105 * src/configure.in: find appropriate data-types on host for SDCC's int and long
5106 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
5107 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
5109 2003-03-07 <johan AT balder>
5112 some minor cleanups before the big shot
5113 OP_DEFS and OP_USES now use Kevin's protection
5114 new option --nolabelopt
5125 * src/ds390/ralloc.c:
5126 * src/mcs51/ralloc.c:
5128 * src/xa51/ralloc.c:
5131 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
5133 * src/pic/pcode.c (get_op): fix 64 bit warnings
5134 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
5135 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
5136 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
5137 * support/regression/tests/malloc.c: fix 64 bit warnings
5139 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
5141 * src/mcs51/gen.c (genMinus): fixed bug 696436
5143 2003-03-02 Borut Razem <borut.razem AT siol.net>
5145 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
5147 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
5149 * configure.in: test for mkstemp
5150 * sdccconf_in.h: add HAVE_MKSTEMP
5152 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
5154 * device/include/ctype.h: removed warning while using --stack-auto
5155 * device/include/malloc.h: removed warning while using --stack-auto
5156 * device/include/string.h: removed warning while using --stack-auto
5158 2003-02-23 Borut Razem <borut.razem AT siol.net>
5160 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
5161 because NDEBUG is defined (see man assert)
5162 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
5164 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5166 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
5167 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
5169 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5171 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
5172 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
5174 2003-02-18 <johan AT balder>
5176 * as/mcs51/asmain.c (asmbl): module can start with a digit
5177 * as/z80/asmain.c (asmbl): module can start with a digit
5179 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
5181 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
5182 * src/asm.c: fix pipe() for Mingw32
5184 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
5186 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
5187 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
5188 make -V work again; --c1mode reads now from stdin
5189 * doc/sdccman.lyx: added --c1mode
5190 * support/Util/SDCCerr.c: new messages for c1 mode
5191 * support/Util/SDCCerr.h: new messages for c1 mode
5192 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
5194 2003-02-15 <johan AT balder>
5196 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
5198 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
5200 * doc/sdccman.lyx: Environment variables, -o and other minor things
5202 2003-02-14 <johan AT balder>
5204 * src/xa51/main.c: before anyone really tries to use it :)
5206 * Install doc's in share/sdcc/doc
5207 * removed some obsolete files
5208 * Do a proper make distclean and uninstall
5209 M Makefile.common.in
5212 M device/include/Makefile.in
5213 M device/lib/Makefile.in
5216 M sim/ucsim/doc/Makefile.in
5219 R src/xa51/peeph.rul
5220 M support/cpp2/Makefile.in
5221 M support/makebin/Makefile
5224 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
5226 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
5228 2003-02-10 Borut Razem <borut.razem AT siol.net>
5230 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
5231 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
5232 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
5233 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
5234 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
5235 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
5236 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
5237 src/z80/Makefile.bcc: Borland Makefile cleanup
5238 * as/z80/Makefile.bcc: Added Borland Makefile
5239 * support/cpp2/borland.h: Removed
5241 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
5243 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
5244 * src/SDCC.lex: new pragma NOIV
5245 * src/SDCCglobl.h: new pragma NOIV
5246 * src/SDCCmem.c: new pragma NOIV
5248 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
5250 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
5252 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
5254 * src/SDCCmain.c: signal handling is switched off by --debug
5255 * doc/Makefile: small fix for install; use clean.mk again
5256 * doc/clean.mk: clean *.pdf and *.html too
5258 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
5260 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
5261 * device/lib/printfl.c: fix a ds390 bug by making it portable
5262 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
5263 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
5264 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
5265 * debugger/mcs51/cmd.c: converted multi-line string literals
5266 * sim/ucsim/globals.cc: converted multi-line string literals
5267 * src/SDCCmain.c: introduced signal handler to remove temp files
5268 * doc/Makefile: small tweaks, implement clean
5269 * doc: removed generated files
5271 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5273 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
5274 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
5275 Address Record is not correctly generated for DS390."
5277 2003-02-02 Borut Razem <borut.razem AT siol.net>
5279 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
5280 * as/mcs51/asm.h: fixed compilation with Borland C
5281 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
5282 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
5283 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
5284 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
5285 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
5286 src/z80/Makefile.bcc: delete $(LIB) only if exist
5287 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
5289 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
5291 * device/include/malloc.h: introduced NULL
5292 * device/include/string.h: introduced NULL
5293 * device/include/stdlib.h: introduced NULL
5294 * device/lib/_memcpy.c: removed NULL
5295 * device/lib/_strcat.c: removed NULL
5296 * device/lib/_strchr.c: removed NULL
5297 * device/lib/_strcmp.c: removed NULL
5298 * device/lib/_strcpy.c: removed NULL
5299 * device/lib/_strcspn.c: removed NULL
5300 * device/lib/_strlen.c: removed NULL
5301 * device/lib/_strncat.c: removed NULL
5302 * device/lib/_strncmp.c: removed NULL
5303 * device/lib/_strncpy.c: removed NULL
5304 * device/lib/_strpbrk.c: removed NULL
5305 * device/lib/_strrchr.c: removed NULL
5306 * device/lib/_strspn.c: removed NULL
5307 * device/lib/_strstr.c: removed NULL
5308 * device/lib/_strtok.c: removed NULL
5309 * device/lib/malloc.c: removed NULL, include own header
5311 2003-02-02 <johan AT balder>
5313 * 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
5314 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
5315 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
5316 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
5317 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
5318 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
5320 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5322 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
5325 2003-02-01 <johan AT balder>
5327 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
5329 2003-01-31 <johan AT CP255758-A>
5331 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
5333 2003-01-30 <johan AT balder>
5335 * src/SDCCBBlock.c: automatic bug detection
5336 * src/SDCCicode.c: automatic bug detection
5338 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5340 * src/SDCCglobl.h: now --xram-size 0 works
5341 * src/SDCCmain.c: now --xram-size 0 works
5343 2003-01-29 <johan AT balder>
5345 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
5347 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5349 * as/mcs51/aslink.h: Added options --xram-size and --code-size
5350 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
5351 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
5352 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
5353 * src/SDCCglobl.h: Added options --xram-size and --code-size
5354 * src/SDCCmain.c: Added options --xram-size and --code-size
5356 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5358 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
5359 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
5361 2003-01-27 <johan AT balder>
5363 * src/SDCC.y: fixed bug #613764
5365 2003-01-26 <johan AT balder>
5367 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
5368 * src/SDCCsymt.h: fixed bug #673374
5369 * src/SDCCglue.c: fixed bug #661910
5370 * src/SDCCast.c: fixed bug #458099 and 673374
5372 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
5374 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
5375 * as/mcs51/strcmpi.h: added
5376 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
5377 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
5378 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
5379 * as/mcs51/assym.c: strcmpi -> as_strcmpi
5380 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
5381 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
5382 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
5383 * as/mcs51/Makefile.aslink: new module strcmpi
5384 * as/mcs51/Makefile.asx8051: new module strcmpi
5385 * as/mcs51/Makefil.bcc: new module strcmpi
5386 * as/mcs51/Makefile.in: new module strcmpi
5387 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
5389 2003-01-26 <johan AT balder>
5391 * src/SDCCglue.c: reverted back to 1.124
5392 * src/SDCCast.c: reverted back to 1.156
5393 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
5395 2003-01-25 <johan AT balder>
5397 * src/SDCCglue.c: A better fix for bug #661910
5398 * src/SDCCast.c: A better fix for bug #661910
5399 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
5401 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
5403 * src/Makefile.in: remove spawn.o
5404 * src/SDCCmain.c: remove spawn.h
5405 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
5406 * src/spawn.c: removed
5407 * src/spawn.h: removed
5408 * support/regression/ports/ds390/spec.mk: link with -r
5410 2003-01-24 <johan AT CP255758-A>
5412 * src/ds390/gen.c (aopOp): fixed bug #667458
5413 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
5414 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
5415 (createIvalCharPtr): an ival doesn't always have a storage class anymore
5417 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
5419 * src/mcs51/peeph.def: better assembler identation by Frieder
5420 * src/mcs51/gen.c: better assembler identation by Frieder
5422 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
5424 * as/z80/string.h: removed for gcc 3.2
5425 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
5426 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
5428 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
5430 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
5431 * src/SDCCpeeph.c (replaceRule): fix bug #663503
5432 * support/regression/Makefile: separate temp files for ports
5433 * support/regression/generate-cases.py: separate temp files for ports
5434 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
5435 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
5437 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
5439 * moved tinitalk to device/examples/ds390
5441 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
5443 * as/mcs51/lkmem.c: rflag is for DS390
5444 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
5445 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
5446 (linkEdit): move mem- and map-files the same way as ihx-files
5447 * src/z80/main.c (_setDefaultOptions): removed --generic
5448 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
5449 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
5450 * src/pic/glue.c (picglue): --c1mode works again
5451 * src/pic16/glue.c (pic16glue): --c1mode works again
5452 * src/asm.c (printCLine): fix #660034
5454 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
5456 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
5457 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
5458 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
5459 * as/mcs51/lkmem (summary): better fix for sp problem
5460 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
5461 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
5462 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
5463 remove --stack-after-data
5465 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5467 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
5468 * src/SDCCutil.c (join): ugly bug: missing '\0'
5469 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
5471 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
5473 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
5475 * src/pic/main.c (_asmCmd): gpasm supports -o
5476 * src/z80/main.c: more general macros
5477 * device/lib/Makefile.in: remove intermediate files
5479 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
5481 * .version: Bumped version number to 2.3.3
5482 * src/SDCCBBlock.c: new option -o
5483 * src/SDCCglobl.h: new option -o
5484 * src/SDCCglue.c: new option -o
5485 * src/SDCCmain.c: new option -o
5486 * src/asm.c: new option -o
5487 * src/ds390/main.c: new option -o
5488 * src/pic/glue.c: new option -o
5489 * src/pic/pcode.c: new option -o
5490 * src/pic/ralloc.c: new option -o
5491 * src/pic16/glue.c: new option -o
5492 * src/pic16/pcode.c: new option -o
5493 * src/pic16/ralloc.c: new option -o
5494 * src/z80/main.c: new option -o
5495 * device/lib/Makefile.in: use -o
5496 * support/regression/ports/ds390/spec.mk: use -o
5497 * support/regression/ports/gbz80/spec.mk: use -o
5498 * support/regression/ports/mcs51/spec.mk: use -o
5499 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
5500 * support/regression/ports/z80/spec.mk: use -o
5501 * support/regression/ports/ucz80/spec.mk: use -o
5502 * support/regression/ports/xa51/spec.mk: use -o
5503 * support/regression/fwk/lib/timeout.c: fix usage string
5505 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
5506 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
5508 2003-01-07 <johan AT balder>
5510 * src/SDCCast.c (decorateType): fixed bug #600035
5512 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
5513 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
5514 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
5515 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
5516 * src/pic/pcode.c: outcommented unused variable to remove warnings
5517 * src/pic/ralloc.c: outcommented unused variable to remove warnings
5519 2003-01-06 <karl AT turbobit.com>
5520 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
5523 2003-01-06 <johan AT balder>
5525 * src/SDCCicode.c: fixed array add
5527 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
5528 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
5529 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
5531 2003-01-04 <johan AT balder>
5533 * src/SDCCval.c (getNelements): fixed the initialized array of structures
5535 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5536 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
5538 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5539 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
5540 * support/regression/tests/bug-524697.c: fit mem usage into 8032
5542 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5543 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
5545 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
5546 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
5548 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
5549 * src/mcs51/main.c: removed {bindir}{sep} from aslink
5551 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5553 * in \sdcc\as\mcs51\ changed these files in order to create an
5554 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
5555 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
5556 following files to include the previous two files: aslink.dsp,
5557 Makefile.aslink, Makefile.bcc, and Makefile.in.
5559 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
5560 .adb instead of .cdb
5562 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5564 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
5565 value from option --iram-size.
5567 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5569 * \sdcc\as\mcs51\lklist.c: added boundary check before using
5572 2002-09-18 <wiml AT hhhh.org>
5574 * SDCClrange.h: exposed setFromRange() and setToRange()
5575 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
5576 packRegsForAccUse() (bug 542397)
5577 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
5578 multiple times and emitting the fetch operations more than once
5579 added aopGetUsesAcc() function to allow binary operators to
5580 fetch their operands in the correct order; made genMinus() emit
5581 compact code for X = LITERAL - Y
5583 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5584 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
5585 sprintf() in line 1267.
5587 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5588 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
5591 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5592 Changes to aslink (All the changes are marked with 'JCF'):
5594 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
5597 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
5598 area BSEG. Also moves, if possible, the DATA area down into the internal
5599 ram so more space is available.
5601 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
5604 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
5605 not bytes. Function summary() which creates a memory usage summary
5606 file with extension .mem. Reports of overlaping stack and small stack
5607 size. If the space for the stack is less than 16 bytes aslink trows a
5610 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
5611 the 8051. Option 'y' for memory summary output file.
5613 Changes to sdcc (All the changes are marked with 'JCF'):
5615 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
5617 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
5618 overlaying area for it (uses RegBankUsed[4]).
5620 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
5621 bank zero as used by default. By default aslink locates the stack
5622 (equivalent to --stack-after-data). Pass option 'y' to aslink for
5623 the creation of the .mem file. Delegates the allocation of data area
5624 to aslink (it is not longer 0x30 by default). If --stack-loc passes
5625 the begining of the stack area to aslink.
5627 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
5628 glue() in SDCCglue.c creates an area for it.
5630 2002-09-03 Borut Razem <borut.razem AT siol.net>
5631 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
5632 sdcc/src/pic/glue.c:
5633 introduced atexit() handler for teporay files removal in case of
5634 errors, assertions, ...
5636 2002-08-29 Borut Razem <borut.razem AT siol.net>
5637 * sdcc/support/cpp2/auto-host_vc_in.h:
5638 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
5639 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
5640 Maybe there is a similar problem with BORLANDC? It should be checked!
5642 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
5643 corrected improper use of assert: the assignment to clr variable was done inside the assert.
5644 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
5645 was not executed, and the compiler (cl) launched a warning:
5646 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
5648 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
5649 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
5651 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
5652 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
5654 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
5655 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
5656 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
5657 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
5658 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
5659 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
5660 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
5661 - added Release configuration in VS projects
5662 - review of compiler an linker options
5663 - VC .exe files are generated in bin_vc directory, not to interfere
5664 with binaries generated from other projects (cygwin, mingw, bcc ...)
5666 * sdcc/src/yacc.dsp: added
5668 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
5669 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
5670 and insert the version number definitions from .version
5672 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
5674 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
5675 added - genarate auto-host.h using auto-host_vc_in.h as template
5678 removed from CVS, generated automatically
5680 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
5681 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
5683 2002-08-11 Borut Razem <borut.razem AT siol.net>
5684 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
5686 2002-08-10 Borut Razem <borut.razem AT siol.net>
5687 * src/SDCCmain.c (main):
5688 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
5689 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
5690 The consequence was that some temporary files were not removed.
5693 unification of code in functions tempfilename() and tempfile():
5694 function tempnam() is defined in Visual Studio 6.0 and .NET
5696 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
5698 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
5699 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
5700 - removed compiler command line option /WX: Treats all warnings as errors
5701 - update a list of source files, included into the project
5703 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
5704 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
5705 changed project type to Generic Project so that can be correcly converted to VS.NET project
5707 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
5709 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
5711 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
5713 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
5714 added return 0 statements after assert() to make compiler happy
5716 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
5717 added newline in the def file to keep MSC compiler satisfied
5719 * sdcc/src/z80/gen.c:
5720 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
5721 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
5722 - solved MSC error in function aopDump()
5724 * sdcc_vc.h: define PREFIX as "\\sdcc"
5726 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
5727 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
5729 2002-06-22 Scott Dattalo <scott AT dattalo.com>
5730 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
5731 - Rewrote the register banking algorithm.
5732 - Added pCode live-range analysis to registers (for now, only non-used and
5733 singly-used registers optimized away)
5735 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
5737 * 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.
5739 2002-05-10 Scott Dattalo <scott AT dattalo.com>
5740 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
5742 2002-04-22 Michael Hope <michaelh AT vroom>
5744 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
5746 * configure.in (DD_COPT): Added include support required for gbdk.
5748 * .version: Bumped version number just to increase it.
5750 * src/SDCCmain.c: Added -nostdinc to the default options.
5752 2002-04-15 Michael Hope <michaelh AT vroom>
5754 * device/lib/z80/printf.c (sprintf): Added.
5756 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
5758 * src/z80/peeph.def: Added transpose redundent load rule.
5760 * src/z80/main.c: Added force callee saves for jaune.
5762 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
5764 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
5766 2002-03-28 Johan Knol <johan AT balder>
5768 * src/SDCCval.c: fixed bug #532436
5770 2002-03-14 Scott Dattalo <scott AT dattalo.com>
5772 Added "char *Processor" field to the port structure.
5775 Added -p option. Allows port dependent processor to be specified.
5778 Initialized the new field char *Processor field to NULL in all ports
5781 Compiler generated registers for interrupt context saving
5782 were not getting allocated.
5784 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
5787 Fixed left shift. Will promote the left side of a left shift
5788 if a) left shifting more than size of operand or b) when assigned
5789 to something size > size of left side
5791 2002-03-14 Scott Dattalo <scott AT dattalo.com>
5793 tons of changes. Register allocation has been
5794 rewritten. Added customization for the various PICs. Flow
5795 analysis is restructured. ...
5801 Added. device.c is a PIC port hack to accomodate variations
5804 2002-03-13 Michael Hope <michaelh AT vroom>
5806 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
5808 2002-03-04 johanknol <johanknol AT manik>
5810 * /src/SDCCval.c: fixed
5812 const unsigned char arr[][2] = { { 0, 1 } };
5813 t18.c:1: error: Initializer element is not constant
5815 2002-03-04 bela <bela AT manik>
5817 * /device/include/mcs51reg.h:
5818 ds89c420 register definition update
5820 2002-03-03 <johan AT FRIJA>
5822 * support/Util/SDCCerr.c: did something, but don't no why anymore
5824 * support/regression/tests/bug-524691.c: made it a little less shy
5826 * src/SDCCast.c (decorateType): fixed bug #524697
5828 * src/SDCCast.c: made some lineno improvements
5830 * src/SDCCval.c (getNelements): changed warning to error
5832 * src/SDCCglue.c (printIvalArray): changed warning to error
5834 * src/SDCCicode.c: fixed a warning for mingw
5836 * src/SDCCast.c (decorateType): fixed the << promotion for ops
5838 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
5840 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
5842 * src/ds390/peeph.def:
5843 Added some more peephole rules
5845 * src/ds390/gen.c: Various fixes & enhancements
5847 * src/SDCClrange.c, src/SDCClrange.h:
5848 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
5850 * src/ds390/ralloc.c:
5851 various fixes & enhancements (ds390) specific
5853 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
5854 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
5857 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
5859 2002-03-02 <johan AT FRIJA>
5861 * src/SDCCast.c (decorateType): fixed bug #524708
5863 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
5865 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
5867 2002-03-01 Michael Hope <michaelh AT vroom>
5869 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
5871 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
5873 2002-03-01 <johan AT FRIJA>
5875 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
5877 * src/SDCCast.c (decorateType): fixed bug #524209
5879 * src/SDCCval.c (valNot): fixed bug #524195
5881 2002-02-26 <johan AT balder>
5883 * src/xa51/gen.c: fixed a warning
5885 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
5887 * src/SDCCast.c (decorateType): fixed bug #522534
5889 2002-02-23 <johan AT balder>
5891 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
5893 2002-02-22 <johan AT balder>
5895 * src/SDCCast.c: fixed bug #514865
5897 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
5899 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
5901 * sdcc/src/SDCCloop.c:
5902 Previous fix was not good. basic blocks that have "break" or "return" are
5903 not really partof a loop , but live ranges used in these blocks should
5904 be live thru the entire loop, so set partOfLoop but don't add them to
5907 2002-02-21 <johan AT FRIJA>
5909 * src/SDCCcse.c: fixed bug #514308
5911 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
5914 Fixed BUG #519583. If a conditional block ended in a return/break
5915 statement inside a loop, it was not being considered part of the loop.
5917 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
5919 2002-02-10 Karl Bongers <karl AT turbobit.com>
5922 Fixed up SDCDB debugger somewhat. Updated debugger/README
5923 with lots of comments and notes.
5925 * device/examples/test2.c:
5926 Fix bug, "red" variable not being initialized(compiler complained).
5928 * device/examples/Makefile, examples/test3.c:
5929 Add Makefile in device/examples folder, compiles test3.c
5930 for use as a multiple module SDCDB test case.
5932 * sim/ucsim/cmd.src/cmdset.cc:
5933 Took out debug printfs in ucsim "next" command.
5936 Karl and Johan start ucsim XA support. Most dissassembly working,
5937 about 75% emulation done(plenty of work remaining).
5939 * sim/ucsim/z80.src:
5940 Add Z80 support to ucsim, add test-ucz80 regression test,
5941 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
5942 Notice z80 compiler fails on examples/test3.c/crc code.
5944 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
5946 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
5947 Added support for --parms-in-bank1
5949 * src/ds390/peeph.def:
5950 added a few more peephole optimzations
5953 1) added __builtin_inp & __builtin_outp used to read in data of given length
5954 from a memory mapped port
5955 2) added __builtin_memcmp
5956 3) added __builtin_swapw swap bytes of a short
5958 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
5959 1) handle multiple send & receives from register bank1
5960 2) ralloc can now allocate DPTR1 to some liveRanges
5962 * src/SDCCsymt.c, src/SDCCsymt.h:
5963 changes to handle multiple sends & receives
5966 added some pointer arithmetic optimization
5969 added some pointer arithmetic optimizations but not stable yet so not
5970 called from anywhere (will get this working shortly)
5972 * src/SDCCopt.c: fixed for multiple sends & receives
5975 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
5976 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
5977 set preprocessor defines (depending on options)
5979 * src/SDCCicode.c, src/SDCCicode.h:
5980 changes made to handle multiple sends & receives
5983 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
5985 * src/SDCCcse.c, src/SDCCcse.h:
5986 added function findbackward def (to be used in upcoming optimization)
5988 * src/SDCCcflow.c, src/SDCCcflow.h:
5989 added function returnAtEnd - to determine if a basic block terminates with
5992 * src/SDCCast.c, src/SDCCast.h:
5993 added option parms-in-bank1
5995 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
5996 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
5997 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
5998 adjusted for --parms-in-bank1 option
6000 * device/include/string.h:
6001 donot redefine "reentrant" keyword
6003 * device/include/ds80c390.h: Added some more SFRs
6005 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6007 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
6009 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
6011 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
6013 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
6015 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
6017 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
6019 * Added --xram-movc option
6021 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
6023 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
6025 2002-01-11 Johan Knol
6027 * Added math lib of Jesus Calvino-Fraga
6029 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
6031 * src/SDCCmain.c (processFile): fix processing of ../../src.c
6032 * support/regression/Makefile: new target test-mcs51-stack-auto
6033 * support/regression/ports/mcs51-stack-auto/spec.mk: added
6035 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
6037 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
6039 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
6041 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
6043 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
6045 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
6047 * src/SDCCglue.h: add definition for printIvalChar()
6049 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
6051 * src/SDCCast.c: fix #498138 by Johan
6053 * src/SDCCglue.c: fix #498138 by Johan
6055 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
6057 * support/regression/Makefile: fix clean
6059 * support/regression/ports/ds390/support.c: fix transmission of last character
6061 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
6063 * /sdcc/src/ds390/gen.c:
6064 a) improved computing address of stack variable
6065 b) took out some #if 0 code
6066 c) improved parmBytes adjustment
6067 d) improved genPlusIncr & genMinusIncr
6068 e) genCmp could generate bad code (when left assigned to DPTR)
6069 f) Fixed bug in hasInc
6071 * /sdcc/src/ds390/ralloc.c:
6072 a) packRegsForSupport could mess up live information (Fixed)
6073 b) packRegsDPTRuse could be incorrect for left & right shift
6075 * /sdcc/src/mcs51/ralloc.c:
6076 packRegsForSupport could mess up the live information (Fixed)
6078 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
6080 * /sdcc/src/SDCCast.c:
6081 can reverse a loop even if function call is present as long
6082 as the loop control variable is local & is not passed as parameter
6084 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
6086 * /sdcc/ChangeLog: *** empty log message ***
6088 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
6089 More builtin function additions for TININative
6091 * /sdcc/src/ds390/ralloc.c:
6092 Had broken the regression testsuite
6094 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
6096 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
6097 Added funcattr hasStackParms will be set for reentrant functions when there
6098 are paramteres on the stack, this helps in minimizing frame pointer generation
6099 typeFromStr can handle function pointers now
6101 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
6102 *** empty log message ***
6104 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
6106 * /src/ds390/gen.c, /src/ds390/main.c:
6107 More builtin function additions for TININative
6109 * /src/ds390/ralloc.c:
6110 Had broken the regression testsuite
6112 * /src/SDCCast.c: Fixed a bug in dumptree
6114 * /src/SDCCsymt.c, /src/SDCCsymt.h:
6115 Added funcattr hasStackParms will be set for reentrant functions when there
6116 are paramteres on the stack, this helps in minimizing frame pointer generation
6117 typeFromStr can handle function pointers now
6119 * /doc/builtins.txt, /doc/TININative.txt:
6120 *** empty log message ***
6123 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
6125 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
6126 ALPHA version for -mTININative
6128 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
6129 updated to reflect changes in the port structure
6132 added function do_assemble (similar to do_link) if non-null this function
6133 will be called to do assembly (-mTININative) requires a multi command
6135 added function genAssemblerEnd will be called to generate assembler Epilogue
6138 added _JavaNative to debug info printing
6140 * /src/SDCCmain.c: added option --tini-libid
6141 added port->do_assemble function (-mTININative) has a multi command assemble
6143 * /src/SDCCglue.c: Disabled "constExpr" check
6144 added port->genAssemblerEnd function
6146 * /src/SDCCglobl.h: Added option --tini-libid value
6149 tookout optimizeCompare from the header (has no external references)
6151 * /src/SDCCast.c: made one more function "static"
6153 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
6155 * src/z80/mappings.i: Added z80asm support.
6157 * src/z80/main.c: Added z80asm support on --asm=z80asm
6159 * src/z80/gen.c: Fixed asm portability issues.
6161 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
6163 * src/SDCCglue.c (printExterns): Added global/extern split.
6165 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
6167 * support/regression/Makefile: added test for mcs51 model large
6169 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
6171 * support/regression/ports/gbz80/spec.mk: added -mgbz80
6173 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
6175 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
6177 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
6179 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
6181 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
6183 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
6185 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
6187 * support/regression/tests/simplefloat.c: Port to mcs51.
6189 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
6190 * support/regression/tests/bug-485362.c: Added.
6192 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
6194 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
6196 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
6198 * src/z80/gen.c (aopDump): Added a dump function.
6200 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
6201 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
6203 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
6205 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
6207 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
6209 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
6211 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
6213 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
6215 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
6217 * support/regression/ports/ds390/support.c: Use tinibios.
6219 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
6221 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
6223 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
6224 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
6226 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
6228 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
6230 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
6232 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
6234 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
6235 (packRegsForIYUse): Created and optimised.
6237 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
6239 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
6240 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6242 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
6244 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
6246 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
6248 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
6250 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
6252 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
6254 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
6256 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
6258 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
6260 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
6262 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
6264 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
6265 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
6266 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
6268 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
6270 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
6271 (genNotFloat): Added.
6272 (genUminusFloat): Added.
6274 * device/lib/z80/Makefile: Added floating pt stubs.
6276 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
6278 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
6280 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
6282 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
6284 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
6286 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
6288 * sdcc/support/regression/Makefile: Add port ds390.
6290 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
6292 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
6294 * sdcc/support/regression/ports/ds390/spec.mk: Added.
6296 * sdcc/support/regression/ports/ds390/support.c: Added.
6298 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
6300 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
6302 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
6304 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
6306 * device/include/malloc.h: Added z80 and gbz80 support.
6308 * device/lib/gbz80/heap.s: Added.
6310 * device/lib/z80/heap.s: Added.
6312 * device/lib/malloc.c: Added z80 and gbz80 support.
6314 * support/regression/tests/malloc.c (testMalloc): Added.
6316 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
6318 * support/regression/tests/bug-478094.c: Added.
6320 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
6322 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
6324 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
6326 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
6328 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
6330 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
6332 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
6334 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
6336 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
6338 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
6340 * support/regression/tests/bug-477927.c: Added.
6342 * src/z80/peeph.def: Added minor rules.
6344 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
6346 * src/z80/peeph.def: Added jump optimisation modification.
6348 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
6350 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
6352 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
6354 * support/regression/tests/funptrs.c: Added.
6356 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
6358 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
6360 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
6362 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
6364 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
6366 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
6367 (movLeft2ResultLong): Created.
6369 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
6370 (joinPushes): Added. Joins two char pushes into a word push.
6372 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
6374 * support/cpp2/Makefile.in (install): Added creation of dest dir.
6376 * support/makebin/Makefile (install): Added creation of dest dir.
6378 2001-10-24 Karl Bongers <karl AT turbobit.com>
6380 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
6382 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
6384 * src/z80/ralloc.c: Turned off faulty pack for one use.
6386 * src/z80/peeph-gbz80.def: Removed redundent restart options.
6388 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
6390 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
6392 * support/regression/Makefile: Improved clean
6394 * support/regression/ports/gbz80/spec.mk: Added clean
6396 * support/regression/ports/host/spec.mk: Added clean
6398 * support/regression/ports/z80/spec.mk: Added clean
6400 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
6402 * support/regression/ports/mcs51/timeout.c: little improvements
6404 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
6406 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
6408 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
6410 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
6412 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
6414 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
6416 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
6418 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
6419 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
6421 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
6423 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
6425 * src/mcs51/main.c (_linkCmd): Added bin path to command.
6427 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
6429 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
6431 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
6433 * support/regression/tests/longor.c: Added.
6435 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
6437 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
6439 * as/mcs51/aslink.h: define PATH_MAX
6441 * as/mcs51/asm.h: define PATH_MAX
6443 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
6445 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
6447 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
6449 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
6451 * src/SDCCglobl.h: define PATH_MAX
6453 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
6455 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
6457 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
6459 * src/z80/gen.c (gencjneshort): Fixed
6461 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
6463 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
6465 * support/regression/tests/bug-469671.c: Added.
6467 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
6469 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
6471 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
6473 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
6475 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
6477 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
6479 * src/device/lib/_mulint.c : removed hint: nooverlay bug
6481 * src/device/lib/_mullong.c : removed hint: nooverlay bug
6483 * src/device/lib/_divuint.c : removed hint: nooverlay bug
6485 * src/device/lib/_divulong.c: removed hint: nooverlay bug
6487 * src/device/lib/_moduint.c : removed hint: nooverlay bug
6489 * src/device/lib/_modulong.c: removed hint: nooverlay bug
6491 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
6493 * 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.
6495 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
6497 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
6499 2001-10-07 <johan AT FRIJA>
6501 * device/lib/gets.c (gets): fixed the return value.
6503 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
6504 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
6506 * 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.
6508 * 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.
6510 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
6512 * src/pic/gen.c: Removed Safe_strdup.
6514 * configure.in: Added option to enable libgc support.
6516 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
6517 (bitVectUnion): Optimised.
6518 (bitVectIntersect): Optimised.
6519 (bitVectBitsInCommon): Optimised.
6520 (bitVectCplAnd): Optimised.
6522 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
6524 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
6526 * src/SDCCmain.c: distinguish between assembler debug and plain options
6528 * src/avr/main.c: remove standard assembler options
6530 * src/ds390/main.c: remove standard assembler options
6532 * src/mcs51/main.c: remove standard assembler options
6534 * src/port.h: removed "PENDING" comment
6536 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
6538 * src/device/lib/_mulint.c : new, with assember functions
6540 * src/device/lib/_mullong.c : new, with assember functions
6542 * src/device/lib/_divuint.c : with assember functions
6544 * src/device/lib/_divsint.c : with assember functions
6546 * src/device/lib/_divulong.c: with assember functions
6548 * src/device/lib/_divslong.c: with assember functions
6550 * src/device/lib/_moduint.c : with assember functions
6552 * src/device/lib/_modsint.c : with assember functions
6554 * src/device/lib/_modulong.c: with assember functions
6556 * src/device/lib/_modslong.c: with assember functions
6558 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
6560 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
6562 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
6563 replaced _mululong.c and _mulslong.c by _mullong.c
6565 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
6567 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
6569 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
6571 * src/SDCCglue.c: test, if win32api is available for MINGW
6573 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
6575 * src/SDCCsymt.c: no more _modifier in printTypeChain()
6576 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
6577 * support/regression/ports/gbz80/spec.mk: removed GENERIC
6578 * support/regression/ports/host/spec.mk: removed GENERIC
6579 * support/regression/ports/mcs51/spec.mk: removed GENERIC
6580 * support/regression/ports/z80/spec.mk: removed GENERIC
6582 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
6584 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
6586 * support/regression/tests/bug-467035.c: Created.
6588 2001-10-01 <johan AT FRIJA>
6590 * src/SDCC.y: fixed bug #466586 part 1
6592 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
6594 * SDCCicode.c: z80 has no generic pointers
6595 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
6597 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
6599 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
6601 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
6603 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
6605 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
6607 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
6609 * configure.in: Fixed up so that ucsim is only configured once.
6611 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
6613 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
6614 (getPathDifference): As above.
6616 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
6618 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
6620 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
6621 * .version: Updated to 2.3.1
6623 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
6624 Added copyright header.
6626 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
6627 (assemble): Added support for macro based assembler commands.
6628 (linkEdit): Added support for macro based linker commands.
6629 (preProcess): Changed the pre-processor to use macros.
6630 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
6631 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
6633 * device/lib/z80/crt0.s: Added module name for debugging.
6635 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
6637 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
6639 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
6641 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
6643 * src/Makefile.in: Added SDCCmacro and SDCCutil
6645 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
6647 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
6649 2001-09-16 <johan AT FRIJA>
6651 * 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.
6653 2001-09-15 <johan AT FRIJA>
6655 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
6656 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
6658 2001-09-11 <johan AT FRIJA>
6660 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
6662 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
6664 * support/regression/tests/bug-460444.c: Added test case.
6666 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
6667 (genCast): Added justification for all of the asserts.
6669 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
6671 * support/regression/support.c: _xdata replaced by xdata
6673 * support/regression/spec.mk: removed _generic
6675 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
6677 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
6679 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
6680 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
6682 * src/z80/peeph.def: Added a rule to optimise shift then compare.
6684 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
6686 * support/regression/tests/bug-460010.c: Added test case.
6688 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
6690 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
6692 * support/regression/Makefile: inter-port-clean adjusted for mcs51
6694 * support/regression/testfwk.c: removed workaround for bug #436344
6696 * support/regression/tests/bp.c: use less memory with mcs51
6698 * support/regression/tests/bug-441448.c: use less memory
6700 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
6702 * support/regression/collate-results.py: typo
6704 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
6706 * support/regression/tests/fetchoverlap.c: Added new test case.
6708 * support/regression/tests/bp.c: Added new test case.
6710 * support/regression/tests/bug-448984.c: Added new test case.
6712 * support/regression/tests/pow2shifts.c: Added new test case.
6714 * src/z80/gen.c: Turned off the noise it normally generates for the release.
6715 (genlshTwo): Fixed right shift for count > 8.
6717 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
6719 2001-09-08 <johan AT FRIJA>
6721 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
6723 2001-09-07 <johan AT FRIJA>
6725 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
6727 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
6729 2001-09-06 <johan AT FRIJA>
6731 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
6732 * bernhard noted me at this: "() equals to (void)" (1.38)
6734 2001-09-05 <johan AT FRIJA>
6736 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
6738 2001-09-04 <johan AT FRIJA>
6740 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
6743 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
6745 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
6747 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
6749 * link/z80/aslink.h: Fixed path for PATH_MAX
6751 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
6753 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
6755 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
6757 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
6759 * 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.
6761 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
6763 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
6764 (genCmp): Fixed up genCmp for the GB with longs.
6766 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
6768 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
6770 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
6772 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
6774 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
6776 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
6778 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
6780 * 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.
6782 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
6784 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
6786 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
6788 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
6790 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
6792 * sim/ucsim/configure: little improvement of Cygwin-detection
6793 * sim/ucsim/configure.in: little improvement of Cygwin-detection
6794 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
6795 * support/regression/tests/bug-221100.c: small changes for mcs51
6796 * support/regression/tests/bug-221168.c: small changes for mcs51
6797 * support/regression/tests/bug-227710.c: small changes for mcs51
6798 * support/regression/tests/staticinit.c: small changes for mcs51
6799 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
6800 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
6801 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601