* src/SDCC.lex: fixed bug #1030549
[fw/sdcc] / ChangeLog
1 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2
3         * src/SDCC.lex: fixed bug #1030549
4
5 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6
7         * src/SDCCcse.h (struct cseDef),
8         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9         over a function call if the CSE is derived from a symbol whose
10         address has been taken (fixes bug #1029883)
11         * support/regression/tests/bug-1029883: a new regression test for
12         this bug
13
14 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15
16         * src/hc08/gen.c (emitinline): fixed bug #1029778
17         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
18         to a cast object is no longer a syntax error ("fixes" bug #1030006,
19         and starts toward RFE #905167)
20
21 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
22
23         * src/pic16/gen.c (mov2f): New function to move an operand to
24         another without considering if it is a literal or a register,
25         * (pic16_sameRegs): don't check if they are both AOP_REG,
26         * (AccRsh): removed andmask=0 lines,
27         * (genLeftShift): duplicated to be improved in future versions,
28         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
29         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
30         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
31         * (pic16initMnemonics): added initialization for POC_INFSNZW,
32         * (insertBankSwitch): fixed inserting banksel directives algorithm
33         for instructions that follow a skip instruction, this fixes a report
34         for broken subtraction code generation,
35         * src/pic16/ralloc.c (deassignLRs): do not free register if current
36         iCode is a left op, just in case result and right share the same
37         registers
38
39 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
40
41         * src/hc08/main.c,
42         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
43         preservation of HX
44         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
45         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
46         on 2004-09-12; it was buggy
47
48 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
49
50         * src/SDCCsymt.h: removed RESULT_CHECK
51         * src/SDCCast.c,
52         * src/SDCCglue.c,
53         * src/SDCCval.c,
54         * src/pic/glue.c,
55         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
56
57 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
58
59         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
60         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
61         configuration values no more rejected by compiler, they are assigned
62         to configuration registers with a warning message instead,
63         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
64         the for-loop so last conf register is emitted too,
65         * (_pic16_initPaths): link library libsdcc.lib by default,
66         * (_hasNativeMulFor): modified test for multiplication according to
67         Raphael Neider's remarks. Integer multiplication is also done with
68         support functions,
69         * device/include/pic16/pic18fregs.h: corrected type error in while
70         testing and including 18f6720 header file
71
72 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
73
74         * src/pic16/device.h (pic16_options): removed field use_crt,
75         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
76         until an optimization to handle single bits is added,
77         * (pic16_loadFSR0): moved before genUnpackBits,
78         * (genAnd): some white lines removed,
79         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
80         leave_reset flags in pic16_options when using crt modules,
81
82 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
83
84         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
85           for bugs 898889 & 979599. Also used some safer print instructions.
86
87 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
88
89         * src/pic16/device.h (pic16_options_t): added field use_crt,
90         crt_name, no_crt,
91         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
92         catch a probable future bug,
93         * src/pic16/gen.c: aopIdx function commented out,
94         * (genAssign): commented out old code which used aopIdx,
95         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
96         code, added if conditionals to take into account the --use-crt
97         command line options,
98         * src/pic16/main.c (pic16_optionsTable): added new command line
99         options, --use-crt= and --no-crt,
100         * (_pic16_linkEdit): now the proper crt object is added in the
101         linker command line except than when --no-crt is specified,
102         * src/pic16/pcode.c,
103         * src/pic16/pcode.h: added some structures and functions for a new
104         optimization scheme to compansate for instruction overhead between
105         same iCodes, this scheme is currently under development and is not
106         working in any way,
107         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
108         to && operator,
109         * device/lib/pic16/startup/crt0i.c,
110         * device/lib/pic16/startup/crt0iz.c: added global char variable
111         __uflags to force the generation of an idata section
112
113 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
114
115         * doc/Makefile,
116         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
117         * doc/sdccman.lyx: updated sdcc version to 2.4.4
118
119 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
120
121         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
122         Frieder) and clarified the default code optimization mode
123
124 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
125
126         * src/SDCC.lex (doPragma, process_pragma),
127         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
128         "opt_code_size", and "opt_code_balanced"
129         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
130         regrouped options by category, added support for category headers
131         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
132         and "--opt-code-size"
133         * doc/sdccman.lyx: documented these new options and pragmas
134         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
135         preference into account
136
137 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
138
139         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
140           geniCodePreDec): Fixed bug 904237 by generating a warning
141         * src/SDCCerr.h,
142         * src/SDCCerr.c: added warning W_SIZEOF_VOID
143
144 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
145
146         * src/pic/device.c : When no max ram set validate full memory range.
147         * src/pic/pcode.c,
148         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
149
150 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
151
152         * device/lib/_gptrget.c,
153         * device/lib/_gptrput.c: updated comment
154         * device/lib/calloc.c,
155         * device/lib/free.c,
156         * device/lib/malloc.c,
157         * device/lib/realloc.c: added LGPL, made them reentrant-safe
158         * src/SDCCcse.c (cseBBlock),
159         * src/SDCCicode.c (printOperand, geniCodeArray),
160         * src/SDCCicode.h (struct operand): fixed bug 868103
161         * support/regression/tests/bug-868103.c: added
162         * src/SDCCast.c (searchLitOp),
163         * src/SDCCcse.h (struct cseDef),
164         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
165         * src/SDCCicode.h (struct operand),
166         * src/SDCCsymt.h (struct sym_link),
167         * src/avr/gen.c (hasInc),
168         * src/ds390/gen.c (hasInc),
169         * src/hc08/gen.c (genPlusIncr, hasInc),
170         * src/mcs51/gen.c (hasInc),
171         * src/pic16/glue.c (pic16_printIvalChar),
172         * src/pic16/ralloc.c (regWithIdx),
173         * src/xa51/gen.c (hasInc) : removed warnings
174         * src/SDCCast.c (createBlock): added comment ???
175         * src/hc08/ralloc.c: updated comments
176
177 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
178
179         * doc/sdccman.lyx: updated section on switch statements, added
180         section about semaphore locking
181         * doc/Makefile: added option -info for latex2html
182         * device/lib/_gptrget.c,
183         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
184
185 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
186
187         * src/pic/device.h,
188         * src/pic/device.c,
189         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
190          maxram is less than 0x100.
191
192 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
193
194         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
195
196 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
197
198         * src/port.h,
199         * src/mcs51/main.c,
200         * src/ds390/main.c,
201         * src/z80/main.c,
202         * src/hc08/main.c,
203         * src/pic/main.c,
204         * src/pic16/main.c,
205         * src/avr/main.c,
206         * src/xa51/main.c
207         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
208         a jump table is the best form for a switch statement, including
209         automatic insertion of missing cases to make the case range
210         continuous. Developed in collaboration with Frieder Ferlemann.
211
212 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
213
214         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
215         accumulator result if it needs sign extension
216
217 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
218
219         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
220
221 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
222
223         * device/lib/gbz80/printf.c,
224         * device/lib/z80/printf.c: removed define for NULL
225
226 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
227
228         * as/xa51/xa_link.c,
229         * device/examples/ds390/ow390/ad26.c,
230         * device/examples/ds390/ow390/cnt1d.c,
231         * device/examples/ds390/ow390/counter.c,
232         * device/examples/ds390/ow390/ds2480.h,
233         * device/examples/ds390/ow390/ds2480ut.c,
234         * device/examples/ds390/ow390/findtype.c,
235         * device/examples/ds390/ow390/gethumd.c,
236         * device/examples/ds390/ow390/owllu.c,
237         * device/examples/ds390/ow390/ownetu.c,
238         * device/examples/ds390/ow390/swt12.c,
239         * device/examples/ds390/ow390/swtloop.c,
240         * device/examples/ds390/ow390/temp.c,
241         * device/examples/ds390/ow390/temp10.c,
242         * device/examples/ds390/ow390/thermo21.c,
243         * device/examples/ds390/ow390/tinilnk.c,
244         * device/examples/ds390/ow390/tstfind.c,
245         * device/examples/serialcomm/windows/serial.cpp,
246         * device/examples/serialcomm/windows/test_serialcomm.cpp,
247         * device/include/reg51.h: fixed line endings for cvs
248
249 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
250
251         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
252         packRegsForAccUse, packRegisters): new accumulator register
253         packing algorithm
254         * support/regression/ports/hc08/support.c (_putchar): suppress
255         warning of unused variable
256         * src/SDCCicode.c: added SWAP entry to codeTable
257
258 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
259
260         * device/lib/sprintf.c: forgot to add this file before previous commit
261
262 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
263
264         * src/pic16/gen.c (genPackBits): added operand right in function
265         parameters, load result directly if p_type is POINTER (that is
266         called by genNearPointerSet)
267         * (genUnPackBits): added operand left in function parameters,
268         * (genNearPointerGet, genNearPointerSet): prevent the loading of
269         FSR0 if accessing bitfields,
270
271 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
272
273         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
274           _print_format; updated printf, sprintf, vsprintf
275         * device/include/asm/default/features.h: corrected comment/define
276         * device/lib/Makefile.in: added sprintf.c
277         * device/lib/libsdcc.lib: added sprintf module
278         * device/lib/printf_large.c,
279         * device/lib/vprintf.c,
280         * device/lib/sprintf.c: totally refactored printf_large and vprintf
281           into these 3 files
282         * support/regression/Makefile: changed ALL_PORTS into a usefull default
283         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
284         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
285           hc08 test
286         * support/regression/tests/zeropad.c: define idata as data for hc08
287
288 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
289
290         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
291         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
292         labels are referenced at least once (even if a reference is not found)
293         * src/hc08/gen.c (emitcode): set isComment flag for comments
294         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
295         loads), rules 6a..6b (optimize jumps to return)
296
297 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
298
299         * device/lib/acosf.c (acosf),
300         * device/lib/asinf.c (asinf),
301         * device/lib/atanf.c (atanf),
302         * device/lib/ceilf.c (ceilf),
303         * device/lib/cosf.c (cosf),
304         * device/lib/coshf.c (coshf),
305         * device/lib/cotf.c (cotf),
306         * device/lib/fabsf.c (fabsf),
307         * device/lib/floorf.c (floorf),
308         * device/lib/log10f.c (log10f),
309         * device/lib/logf.c (logf),
310         * device/lib/sinf.c (sinf),
311         * device/lib/sinhf.c (sinhf),
312         * device/lib/sqrtf.c (sqrtf),
313         * device/lib/tanf.c (tanf),
314         * device/lib/tanhf.c (tanhf),
315         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
316         replaced all instances of "reentrant" in the library functions
317         defined in math.h with this macro.
318         * support/regression/tests/float_trans.c: reenabled test for hc08
319
320 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
321
322         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
323         erroneously deleted
324
325 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
326
327         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
328         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
329         multi-byte volatile operands are used
330         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
331         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
332         initialization to area GSINIT0 so that it would always precede
333         any static initializers in GSINIT
334         * support/regression/tests/zeropad.c: fixed idata define for hc08
335         * support/regression/tests/bug-927659.c,
336         * support/regression/tests/float_trans.c: disabled tests for hc08
337         pending missing library routines
338         * .version: increased version number to 2.4.4 - hc08 port now passes
339         regression tests
340
341
342 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
343
344         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
345         * Makefile.common.in,
346         * as/Makefile,
347         * as/hc08/Makefile.in,
348         * as/mcs51/Makefile.in,
349         * as/z80/Makefile.in,
350         * debugger/mcs51/Makefile.in,
351         * device/include/Makefile.in,
352         * device/lib/Makefile.in,
353         * doc/Makefile,
354         * link/Makefile,
355         * link/z80/Makefile.in,
356         * packihx/Makefile.in,
357         * sim/ucsim/main_in.mk,
358         * sim/ucsim/avr.src/Makefile.in,
359         * sim/ucsim/doc/Makefile.in,
360         * sim/ucsim/gui.src/serio.src/Makefile.in,
361         * sim/ucsim/hc08.src/Makefile.in,
362         * sim/ucsim/s51.src/Makefile.in,
363         * sim/ucsim/xa.src/Makefile.in,
364         * sim/ucsim/z80.src/Makefile.in,
365         * src/Makefile.in,
366         * support/cpp2/Makefile.in,
367         * support/librarian/Makefile,
368         * support/makebin/Makefile: added DESTDIR to the install path proposed
369         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
370         * doc/sdccman.lyx: added DESTDIR documentation
371
372 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
373
374         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
375         instruction for interrupt handlers, use fast returns when returning
376         from high priority interrupts
377
378 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
379
380         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
381         code generation
382         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
383         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
384         bugs, ported much of Bernhard's code from mcs51
385         * src/mcs51/gen.c (genSend),
386         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
387         than one when calling a reentrant function
388         * device/lib/_mullong.c: defined an alternate struct layout for big
389         endian ports (hc08)
390
391 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
392
393         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
394         test
395
396 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
397
398         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
399         are sane and complete before asking the port its prefered parameter
400         passing method (fixes bug #1017633)
401         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
402         and _ret3
403
404 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
405
406         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
407         problem in bitfields >= 8 bits.
408
409 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
410
411         * src/SDCCsymt.c: undid changes that were not meant to be committed
412
413 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
414
415         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
416
417 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
418
419         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
420           copied and wrong bit got inverted
421
422 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
423
424         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
425         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
426         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
427         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
428         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
429         assignments to bitfields at known addresses
430         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
431         reads from bitfields at known addresses
432         * src/hc08/ralloc.c (packRegisters),
433         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
434         genhc08Code): optimize pointer get values used as conditionals
435         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
436         and branch
437
438 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
439
440         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
441         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
442         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
443         as conditionals
444
445 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
446
447         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
448
449 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
450
451         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
452         related problems
453
454 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
455
456         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
457
458 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
459
460         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
461         mcs51 port
462
463 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
464
465         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
466
467 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
468
469         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
470         cases use more compact code.
471
472 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
473
474         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
475
476 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
477
478         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
479
480 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
481
482         * src/SDCCsymt.h,
483         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
484         parameter of changePointer() from symbol* to sym_link*
485         * src/SDCCast.c (decorateType): call changePointer() for CAST op
486         * src/SDCCsymt.c (compareType): void* type is castable to other
487         pointers, but not necesarily an exact match.
488         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
489         is no longer blindly treated as an exact match.
490         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
491
492 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
493
494         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
495
496 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
497
498         * src/pic/gen.c,
499         * src/pic/pcode.c,
500         * src/pic/ralloc.h,
501         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
502
503 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
504
505         * src/pic/device.c,
506         * src/pic/device.h,
507         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
508
509 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
510
511         * src/mcs51/gen.c (emitcode): fixed bug #992819
512
513 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
514
515         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
516           there's no need to make it worse
517
518 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
519
520         * src/mcs51/ralloc.c (deassignLR),
521         * src/ds390/ralloc.c (deassignLR),
522         * src/hc08/ralloc.c (deassignLR),
523         * src/z80/ralloc.c (deassignLR),
524         * src/pic/ralloc.c (deassignLR),
525         * src/pic16/ralloc.c (deassignLR),
526         * src/avr/ralloc.c (deassignLR),
527         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
528         rlivePoint): fixed another part of bug #971834
529
530 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
531
532         * src/z80/main.c: enabled "critical" keyword
533         * src/z80/mappings.i,
534         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
535         functions (fixes bug #979646)
536         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
537
538 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
539
540         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
541           such as c:\mydir.
542
543 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
544
545         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
546           doesn't disable too much optimizations
547
548 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
549
550         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
551
552 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
553
554         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
555
556 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
557
558         * src/pic/gen.c tidied up tabs
559         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
560         * src/pic/main.c tidied up tabs
561         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
562         * src/pic/pcoderegs.c tidied up tabs
563         * src/pic/ralloc.c tidied up tabs
564
565 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
566
567         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
568         to S_FIXED for pic16 port and when symbol is not in level 0,
569         allocate for S_REGISTER storage class and pic16 port, too,
570         * src/pic16/device.h: prototype for checkSym,
571         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
572         * (pic16_assignConfigWordValue): test the value and the mask to
573         validate that the value is suitable for the configuration word,
574         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
575         collect extern declared symbols, don't emit symbol twice, check
576         first if symbol is in publics set first,
577         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
578         * added command line '--fstack' which enables an experimental
579         feature for stack access, too buggy to be used yet...
580         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
581         * (pic16_allocDirReg): when register has storage class S_REGISTER
582         allocate in pic16_dynAccessRegs,
583         * device/include/pic16/pic18f????.h: modified configuration word
584         naming convention, words started as CONFIG0H but should be CONFIG1H
585
586 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
587
588         * device/include/mcs51reg.h: fixed bug 970993
589
590 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
591
592         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
593         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
594         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
595         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
596         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
597         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
598           error/warning numbers,
599           added function setWarningDisabled()
600         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
601         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
602           _memcmp.c _memmove.c calloc.c realloc.c free.c
603         * support/regression/tests/malloc.c: added tests for new functionality
604         * support/regression/tests/zeropad.c: added tests for truncated initializers
605           and initialized char arrays starting with '\x0'
606         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
607
608 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
609
610         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
611
612 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
613
614         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
615         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
616         peephole 177.e. Thanks to anonymous
617
618 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
619
620         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
621         function isn't used in the source but referenced as a
622         variable initializer then declare it as extern in .asm file
623
624 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
625
626         * .version: increased version number to 2.4.3
627
628         Adding version extension according to ChangeLog CVS revision
629         * src/Makefile.in (target all): added dependency 'version.h'
630         * (rule version.h): added rule to create version.h from ChangeLog,
631         * (rule dep): added dependency version.h,
632         * src/version.awk: AWK script to create version.h
633         * src/SDCCdwarf2.c (dwWriteModule),
634         * src/SDCCglue.c (initialComments),
635         * src/SDCCmain.c (printVersionInfo): modified to write after
636         version string the version extension number,
637         * src/SDCCutil.c: included "version.h"
638         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
639         number,
640         * src/SDCCutil.h: added prototype for getBuildNumber
641
642         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
643         includeDirsSet, too,
644         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
645         const char [] is found in function prototype...
646
647         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
648         moving to WREG with source is already in WREG,
649         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
650         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
651         * (aopForSym): stack'ed symbols are partially supported, added
652         if-clause to support symbols in FARSPACE,
653         * (sameRegs): added test for AOP_ACC to see if registers are same,
654         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
655         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
656         * (pic16_popRegFromString): will not allocate a new register if it
657         doesn't find one by name, bug may have introduced...
658         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
659         * (genIpush): revived to use pic16 port's stack,
660         * (genAddrOf): added incomplete case for stack'ed operand,
661         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
662         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
663         can handle multibyte operands,
664         * src/pic16/glue.c (pic16_printIval*): some debug info added,
665         * (pic16initialComments): added message for MPLAB compatibility
666         mode enabled,
667         * src/pic16/main.h: prototype for pic16_mplab_comp,
668         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
669         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
670         * (_pic16_linkEdit): NEW, handles link stage, transferred here
671         because of increased complexity of procedure,
672         * (_process_pragma): stack pragma changed to format 'stack pos len',
673         emit symbol '_stack_end' to conform with gplink,
674         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
675         to search for register,
676         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
677         PO_GPR_REGISTER,
678         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
679         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
680         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
681         case for PO_GPR_REGISTER,
682         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
683         dies, the new era is ahead !...
684         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
685         pic16_dynInternalRegs,
686         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
687         * (pic16_allocDirReg): minor optimizations and bug fixes,
688         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
689
690         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
691         load stack and frame pointer with address of 'stack_end' symbol
692
693 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
694
695         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
696         without source code but only variable initializers
697
698 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
699
700         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
701         external are not declared as extern to reduce overhead while linking
702
703 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
704
705         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
706
707 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
708
709         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
710           Yee Keat for the patch
711         * src/SDCCast.c (decorateType): fixed bug #979599
712         * src/ds390/gen.h: removed local fReturnSizeDS390
713         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
714         * src/ds390/gen.c (genAnd, genOr, genXor),
715         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
716
717 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
718
719         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
720         add relFilesSet to $3, manipulate $2 to handle linking of object
721         files without source files in command line,
722         * device/include/pic16 (all headers): added ID location macros,
723         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
724         entries for ID location bytes,
725         * (pic16_assignIdByteValue): NEW,
726         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
727         added field dumpcalltree to pic16_options_t,
728         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
729         is used instead of pic16_Gstack_base_addr, check if (ifx) before
730         emitting rFalseIfx label after check_carry label,
731         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
732         pic16_emitDIRegs), NEW
733         * (pic16glue): dump .calltree file when option --calltree found,
734         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
735         * (_pic16_genAssemblerPreamble): emit ID locations after
736         configuration registers,
737         * (pic16_linkCmd): modifications of the link command,
738         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
739         * (pic16_pCodeInitRegisters): don't init stack registers,
740         * (pic16_findPrevInstruction): fixed bug,
741         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
742         bug with immediate registers,
743         * (buildCallTree): traces stack push and pop,
744         * (pct2): dump also stack usage for each function,
745         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
746         * (pic16_allocDirReg): various modifications,
747         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
748         fixed to 1,
749
750 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
751
752         * src/pic16/pcode.c: removed buggy double colon
753
754 2004-07-01 Borut Razem <borut.razem AT siol.net>
755
756         * support/scripts/sdcc.nsi: added include/pic16 to setup
757
758 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
759
760         * device/lib/Makefile.in: fixed bug in target objects-pic16,
761         * device/lib/pic16/Makefile: prefixed with dash (-) command under
762         target 'clean',
763         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
764         specific command line arguments. Also added sample lkr script
765         for placing a variable at a specific memory bank.
766         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
767         at a specific memory bank,
768         * (pic16_dump_isection): fixed bug which caused string literals to
769         be omitted when dumping idata section,
770         * (pic16_groupRegistersInSection): added code to handle registers
771         in specific memory banks,
772         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
773         public, all references are renamed too,
774         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
775         AOP_DPTR2,
776         * (pic16_storeForReturn): added case to handle when dest is WREG,
777         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
778         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
779         pic16_rel_udata, check to see if that register is marked as being
780         a member of a specific memory bank,
781         * (pic16_printIvalCharPtr): added code to add string literals either
782         to code or the idata sections,
783         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
784         also accept the 'udata' pragma,
785         * src/pic16/main.h: new structure types sectName and sectSym
786         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
787         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
788         * (pic16_findPrevInstruction): fixed, it returned nothing,
789         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
790         instruction combinations,
791         * (pic16_FixRegisterBanking): heavily reorganised,
792         * (pic16_AnalyzeBanking): if generating banksel directives is
793         disabled, then don't call FixRegisterBanking at all,
794         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
795         completely removed,
796         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
797
798 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
799
800         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
801         Phuah Yee Keat <yk.phuah AT nestac.com>
802
803 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
804
805         * src/pic16/glue.c (pic16createInterruptVect): function now emits
806         correctly the IVT even if it is relocated to some other location
807
808 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
809
810         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
811         * device/include/pic16/pic18f2220.h: NEW,
812         * device/lib/pic16/libdev/pic18f2220.c: NEW,
813         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
814         * src/pic16/device.c (struct Pics16): added info for 18f2220,
815         * src/pic16/device.h (struct pic16_options): added ivt_loc and
816         nodefaultlibs, ivt_loc is the location of the interrupt vector
817         table, and nodefaultlibs signs that default libraries should not be
818         linked in link stage,
819         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
820         according to --ivt-loc argument,
821         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
822         when pragma stack is found,
823
824 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
825
826         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
827         256 (range check), 257 (do while), 258.a-f (bit banging
828         f.e. on 3-wire SPI bus)
829
830 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
831
832         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
833         variables used exclusively within a loop
834
835 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
836
837         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
838
839 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
840
841         * src/SDCClrange.c (computeClash): fixed bug #971834
842
843 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
844
845         * src/mcs51/gen.c (genCmp): fixed bug #975903
846         * src/hc08/gen.c (operandsEqu),
847         * src/ds390/gen.c (operandsEqu),
848         * src/z80/gen.c (operandsEqu),
849         * src/pic/gen.c (operandsEqu),
850         * src/pic16/gen.c (operandsEqu),
851         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
852         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
853
854 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
855
856         * src/SDCCcse.c (cseBBlock): fixed bug #966963
857
858 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
859
860         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
861         default case in switch statement,
862         * glue.c (pic16_initPointer): expr is initialised via decoarteType
863         to eliminate problem with initialisation of pointers, but problem
864         still exists,
865         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
866         * (emitStaticSegment): removed various lines emitting debug info,
867         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
868         added processor registers for utilizing EEPROM,
869         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
870         configurable and set 8
871
872 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
873
874         * .version: increased version number to 2.4.2,
875
876         Cumulative patch for pic16 port
877         * src/pic16/device.c: changed scheme to dump initial values for
878         variables in idata segment, all print_idata* functions were removed,
879         now the pic16_printIval* will be called,
880         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
881         * _pic16_printPointerType, pic16_printPointerType,
882         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
883         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
884         NEW, similar to the respective functions in SDCCglue.c,
885         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
886         way, emitting hex bytes,
887         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
888
889 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
890
891         * src/avr/ralloc.c (serialRegAssign),
892         * src/xa51/ralloc.c (serialRegAssign),
893         * src/pic/ralloc.c (serialRegAssign),
894         * src/pic16/ralloc.c (serialRegAssign),
895         * src/hc08/ralloc.c (serialRegAssign),
896         * src/z80/ralloc.c (serialRegAssign),
897         * src/ds390/ralloc.c (serialRegAssign),
898         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
899
900 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
901
902         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
903         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
904
905 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
906
907         Cumulative patch for pic16 port:
908         * src/pic16/device.h (typedef PIC16_device) modified fields for
909         defining microcontrollers,
910         * src/pic16/device.c: added new info for all devices in Pics16 array,
911         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
912         to be optimised out by the pCode optimiser,
913         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
914         specially, bug reported by G.M. Gallant,
915         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
916         as force'd so that cannot be optimised out by pCode optimiser,
917         * src/pic16/pcode.c,
918         * src/pic16/pcodepeeph.c,
919         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
920         they are disabled by default, but can be enabled explicit with
921         command argument --denable-peeps, for testing,
922         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
923         --pomit-ivt in COMPILE_FLAGS
924
925 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
926
927         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
928           compilation on MSVC
929
930 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
931
932         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
933
934 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
935
936         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
937         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
938
939 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
940
941         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
942         would only assign 0x300001 register.
943
944 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
945
946         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
947         in COMPILE_FLAGS. Thanks to G. Gallant for report.
948
949 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
950
951         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
952         for ds80c400
953         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
954         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
955         added peephole 254 (left shift), 255 (jump table)
956
957 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
958
959         * device/lib/Makefile.in: removed comment line with model-pic16,
960         * (target port-specific-objects-pic16): the libraries and objects
961         are copied to the build directory form the device/lib/pic16/bin
962         directory
963
964         Cumulative patch concerning pic16 port:
965         * library directory has been re-organized,
966         * added support for PIC18F1220,
967         * added headers and library sources for chips 18f1220,18f6520,
968         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
969
970         * configuration registers setting has changed, now each supported
971         device has a complete description of the registers it uses,
972         * all initialisations are moved to idata sections, these section
973         can be absolute or relocatable,
974         * fixed initialisation of codespace variables,
975         * fixed warning about PCLATU and gpsim,
976         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
977         * (genAssign): use table reads when assigning from variables in codespace,
978         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
979         char/int variables placed in codespace,
980         * (pic16_emitConfigRegs): NEW, emits a list with configuration
981         registers set in .asm file, no need for --pomit-config-words anymore,
982         * (pic16glue): some 8051 legacy segments are commented out
983         (to be removed completely),
984         * added support for alternative assembler and linker with --asm=
985         and --link= command line arguments,
986         * peepholes are disabled automatically in the port, no need to
987         specify on command line,
988         * port supports natively char/int/long multiplication, but converts
989         all divisions to support functions,
990         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
991         to the file set in variable $2,
992         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
993         strings in ASCII format and not in hex,
994         * ralloc.c (serialRegAssign): added a triplet of conditional calls
995         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
996         allocate proper register if iCodes aren't temporary,
997
998 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
999
1000         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
1001
1002 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
1003
1004         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
1005         is commented out
1006
1007 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1008
1009         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
1010         computed address is reused
1011         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
1012         multi-byte bitfields
1013
1014 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
1015
1016         * src/z80/gen.c: (genArrayInit): must check for pointers too
1017
1018 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
1019
1020         * support/regression/tests/zeropad.c: never meant to commit the
1021           nestedstruct test: removed, added check for GCC version
1022
1023 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
1024
1025         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
1026         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
1027         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
1028           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
1029           bugs 928906 and 954082 half-empty initializers
1030         * src/SDCCsymt.h,
1031         * src/SDCCsymt.c (getAllocSize): added for above fix
1032         * src/z80/gen.c (genArrayInit): fixed bug 741044
1033         * support/regression/tests/zeropad.c: added tests
1034
1035 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
1036
1037         * src/pic16/device.c (pic16_dump_section): corrected bug which
1038         caused some symbols of the libraries to be misplaced
1039
1040 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
1041
1042         * src/pic16/glue.c,
1043         * src/pic16/ralloc.h,
1044         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
1045         to fix conflict with pic port
1046
1047 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
1048
1049         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
1050         externs configuration variables,
1051         * src/pic16/ralloc.h,
1052         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
1053         prototype in header, commented out some debug messages
1054
1055 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
1056
1057         * src/pic16/glue.c,
1058         * src/pic16/main.c,
1059         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
1060         for gpasm COFF object generation. Thanks to D. Hawkins for
1061         his patch info
1062
1063 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1064
1065         * src/ds390/main.c,
1066         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
1067         Brock for spotting this)
1068         * src/ds390/gen.c (genEndFunction),
1069         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
1070         interrupt handler and critical. Disable push/pop optimizations when
1071         peephole optimizations disabled.
1072
1073 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
1074
1075         Updated pic16 library sources and headers.
1076         * device/lib/pic16/pic18f*/ ,
1077         * device/include/pic16/*.h: modified to handle structured SFR
1078         definitions
1079
1080 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
1081
1082         * src/port.h (PORT structure): added hook initPaths, now each
1083         port can declare its own default search paths,
1084         which can been seen with the --print-search-dirs option,
1085         see pic16 port for example,
1086         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
1087         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
1088         * (doPrintSearchDirs): NEW, replaces in a central manner the
1089         printing of search dirs which was split in set*Paths functions,
1090         * (main): added call to port->initPaths and doPrintSearchDirs,
1091         * src/avr/main.c,
1092         * src/ds390/main.c,
1093         * src/hc08/main.c,
1094         * src/izt/i186.c,
1095         * src/izt/tlcs900h.c,
1096         * src/mcs51/main.c,
1097         * src/pic/main.c,
1098         * src/pic16/main.c: modified port structures to reflect addition of
1099         initPaths hook,
1100
1101         * src/pic16/device.c (regCompare): registers are finally sorted by name,
1102         * (pic16_dump_section): for registers in same address reserve memory once,
1103         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
1104         to no_banksel,
1105         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
1106         result is greater in size than right or left,
1107         * (pic16_genUMult8X8_8): there are some cases where the result can
1108         be 16 bits size, so handle these,
1109         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
1110         * (pic16_outBitC): modified to emit pcodes,
1111         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
1112         or not,
1113         * (genDivOneByte): implemented algorithm to divide 8-bits,
1114         * (genCmp): uncommented goto, but issues still exist,
1115         * (genAnd): fixed a bug with variables >8bits,
1116         * (genPackBits): optimization added that uses BCF/BSF to change a
1117         single bit,
1118         * (genAssign): fixed bug when assigning floating point literals,
1119         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
1120         __sdcc_gsinit_startup label,
1121         * src/pic16/main.c (_pic16_init): removed search directory
1122         initialisations,
1123         * (_pic16_initPaths): NEW, used to initialise search directories,
1124         * (_hasNativeMulFor): support functions for all except char/int
1125         multiplication, and char division,
1126         * (PIC16_port struct): modified entry for native mul support,
1127         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
1128         no_banksel option,
1129         * (buildCallTree): call to register_usage is ifdef'ed out,
1130
1131 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1132
1133         * device/include/string.h: applied Stas Sergeev's patch to make this
1134         header file compatible with the preprocessor -Wundef option
1135         * src/SDCCmain.c (main): abort compilation if preprocessor reports
1136         failure (fixes bug #941458)
1137
1138 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1139
1140         * src/SDCCopt.c (killDeadCode): fixed bug #907733
1141         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
1142         that the variable, not the function, should be static
1143         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
1144         to be consistent with non-literal case
1145
1146 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1147
1148         * src/SDCCast.c (isConformingBody): fixed bug #949967
1149         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
1150         convilong): fixed bug #952086
1151
1152 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1153
1154         * src/SDCCmem.c (allocVariables): fixed bug #955321
1155
1156 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1157
1158         * src/hc08/main.c (_hc08_genAssemblerEnd),
1159         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
1160         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
1161         completely eliminated the use of a temporary file
1162         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
1163         when more than one file linked
1164         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
1165
1166 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1167
1168         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
1169         which fixes bug #543481
1170         * support/regression/tests/bug-751703.c: fixed comments left from a
1171         cut and paste error
1172         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
1173         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
1174         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
1175         scopes
1176         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
1177         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
1178         are now changed to underscores in moduleName
1179
1180 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1181
1182         * as/mcs51/lkmem.c: better fix for bug #954173
1183
1184 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1185         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1186
1187         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
1188         * device/include/c8051f000.h,
1189         * device/include/c8051f120.h,
1190         * device/include/c8051f300.h,
1191         * device/include/c8051f310.h,
1192         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
1193         PWM16) and detab'ed
1194
1195 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1196
1197         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
1198         and mailing lists, doc'ed --no-peep-comments, removed reference
1199         to knoppix (newest version has no LyX/LaTeX), other minor changes
1200         * src/SDCCglue.c (glue): save 2 bytes stack space with
1201         option --main-return. The ljmp could probably be avoided too
1202
1203 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1204
1205         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
1206
1207 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1208
1209         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
1210         * src/SDCCopt.c (isLocalWithoutDef),
1211         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
1212         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
1213         (credit to Maarten Brock for patch #949363, on which this is based)
1214         * support/regression/tests/bug-751703.c: some test cases of extern used
1215         within inner scopes.
1216
1217 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1218
1219         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
1220         SPEC_STRUCT
1221         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
1222         struct definitions
1223         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
1224         dwWriteLabel): fix to create valid debugger symbols even when
1225         the module name has non-alphanumeric symbols in it
1226         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
1227         when a variable's allocation has been optimized away
1228
1229
1230 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1231
1232         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
1233         * src/hc08/main.c,
1234         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
1235         * src/mcs51/main.c,
1236         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
1237         * src/ds390/main.c,
1238         * src/z80/gen.c (z80_emitDebuggerSymbol),
1239         * src/z80/main.c,
1240         * src/pic/gen.c (pic14_emitDebuggerSymbol),
1241         * src/pic/main.c,
1242         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
1243         * src/pic16/main.c,
1244         * src/avr/gen.c (avr_emitDebuggerSymbol),
1245         * src/avr/main.c,
1246         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
1247         * src/xa51/main.c,
1248         * src/SDCCdebug.c (emitDebuggerSymbol),
1249         * src/SDCCdebug.h,
1250         * src/port.h: added a debugger struct to the port struct. Added a
1251         callback for defining debugger symbols
1252
1253         * src/SDCCast.c (createLabel),
1254         * src/SDCC.y (labeled_statement): mark all compiler generated labels
1255         with isitmp = 1
1256         * src/SDCCicode.h,
1257         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
1258         iCode back to the ast for the function
1259
1260         * src/hc08/ralloc.c (hc08_assignRegisters),
1261         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
1262         unneeded fields from the regs struct.
1263         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
1264         pushReg() & pullReg() functions instead of emitcode()
1265
1266         * src/hc08/gen.c (genLabel, genhc08Code),
1267         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
1268
1269         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
1270         debugger hooks
1271
1272         * src/hc08/gen.c (genEndFunction, genhc08Code),
1273         * src/hc08/gen.h,
1274         * src/mcs51/gen.c (genEndFunction, gen51Code),
1275         * src/mcs51/gen.h,
1276         * src/ds390/gen.c (genEndFunction, gen390Code),
1277         * src/ds390/gen.h,
1278         * src/z80/gen.c (genEndFunction, genZ80Code),
1279         * src/z80/gen.h,
1280         * src/z80/z80.h,
1281         * src/pic/gen.c (genEndFunction, genpic14Code),
1282         * src/pic/gen.h,
1283         * src/pic16/gen.c (genEndFunction, genpic16Code),
1284         * src/pic16/gen.h,
1285         * src/avr/gen.c (genEndFunction, genAVRCode),
1286         * src/avr/gen.h,
1287         * src/xa51/gen.c (genEndFunction, genXA51Code),
1288         * src/xa51/gen.h,
1289         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
1290         specific code to cdbFile.c and out of the backend code generators
1291
1292         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
1293         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
1294         starting address is now 0
1295
1296         * as/hc08/asm.h,
1297         * as/hc08/m08pst.c,
1298         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
1299         assembler directive for DWARF support
1300         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
1301
1302         * src/src.dsp,
1303         * src/Makefile.in,
1304         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
1305
1306 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1307
1308         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
1309         and inappropriate peephole optimization in jump tables
1310
1311 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1312
1313         * as/hc08/m08pst.c,
1314         * src/SDCCglue.c: sdccopt works for the hc08 port now
1315
1316 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
1317
1318         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
1319
1320 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1321
1322         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
1323
1324 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1325
1326         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
1327         rules
1328         * src/SDCCmain.c,
1329         * src/SDCCglobl.h,
1330         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
1331         comments from the peephole optimizer replacement rules
1332         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
1333         symbols
1334         * src/SDCCcse.c (updateSpillLocation),
1335         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
1336         equivalents
1337         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
1338         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
1339         objects far pointers
1340
1341 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1342
1343         * src/SDCCsymt.h: a missing part of my last change
1344         * src/pic/ralloc.c (regTypeNum),
1345         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
1346
1347 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1348
1349         * src/SDCCicode.h,
1350         * src/SDCCicode.c (aggrToPtrDclType),
1351         * src/SDCCptropt.h,
1352         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
1353         ptrPseudoSymConvert),
1354         * src/pic/ralloc.c (regTypeNum),
1355         * src/pic16/ralloc.c (regTypeNum),
1356         * src/hc08/ralloc.c (regTypeNum),
1357         * src/ds390/ralloc.c (regTypeNum),
1358         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
1359         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
1360
1361 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1362
1363         * link/z80/lkmain.c (afile),
1364         * as/hc08/lkmain.c (afile),
1365         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
1366         prevent a pointer problem when a filename has no directory and
1367         no extension specified.
1368
1369 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1370
1371         * link/z80/lkmain.c (afile): allow periods in directory names
1372         * link/z80/lkmain.c (afile),
1373         * as/mcs51/lkmain.c (afile),
1374         * as/hc08/lkmain.c (afile): allow linker script file to have an
1375         extension other than ".lnk"
1376         * link/z80/lklex.c (getfid),
1377         * link/z80/lkmain.c (parse),
1378         * as/mcs51/lklex.c (getfid),
1379         * as/mcs51/lkmain.c (parse),
1380         * as/hc08/lklex.c (getfid),
1381         * as/hc08/lkmain.c (parse): Support comments in the linker script
1382         file on lines by themselves and after filenames
1383
1384 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1385
1386         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
1387
1388 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1389
1390         * src/z80/peeph-z80.def: removed some peephole rules that don't
1391         work with multibyte arithmetic (fixed bug #937126)
1392         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
1393         to registers and not global variables
1394         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
1395         geniCodePreInc, geniCodePostDec, geniCodePreDec,
1396         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
1397         checking for assignments not internally generated (fixed bug #931895)
1398         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
1399         structure member (fixed bug #930072)
1400
1401 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1402
1403         * src/SDCCmain.c (linkEdit),
1404         * src/hc08/main.c (_hc08_parseOptions),
1405         * as/hc08/Makefile.in,
1406         * as/hc08/aslink.h,
1407         * as/hc08/asm.h,
1408         * as/hc08/m08pst.c,
1409         * as/hc08/lkrloc.c (relr, rele),
1410         * as/hc08/lkarea.c (lnkarea)
1411         * as/hc08/lkmain.c (afile, parse),
1412         * as/hc08/lkelf.c: support for ELF output
1413         * as/hc08/lks19.c (s19),
1414         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
1415
1416 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1417
1418         * as/mcs51/lkihx.c: Fixed bug #899105.
1419
1420 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1421
1422         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
1423         .dsp files from Unix to DOS.
1424
1425 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1426
1427         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
1428         function pointers; we have been compliant for several months now.
1429         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
1430         change that was accidently commented out
1431         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
1432         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
1433         bug #922319
1434
1435 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1436
1437         * src/hc08/gen.c: output of all of the internal debugging information
1438         is now controlled by the D() macro; it is disabled by default
1439
1440 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1441
1442         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
1443         harder to keep the same registers during a CAST iCode
1444         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
1445         long via int can be done in a single cast, if the signedness is
1446         correct.
1447         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
1448         putchar() in tinibios.c in ds390's library
1449
1450 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
1451
1452         * src/SDCCast.c (decorateType): fixed bug #898889,
1453         cast result of a literal complement too
1454         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
1455         fixed check for bitfields
1456
1457 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
1458
1459         * src/SDCCicode.c (geniCodeLogic): made it static,
1460         (geniCodeLogicAndOr): added in order to fix bug #905492,
1461         (ast2iCode): fixed bug #905492
1462         * support/regression/tests/bug-905492.c: added
1463         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
1464         (processParms): fixed bug #927659: don't copy parms, this will clear
1465         decorated flag
1466         * support/regression/tests/bug-927659.c: added
1467
1468 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
1469
1470         * src/SDCCast.c (addCast): don't cast float to char
1471         * device/lib/libsdcc.lib: added _memmove
1472
1473 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
1474
1475         * device/lib/large/Makefile: fixed parallel execution by
1476         replacing `make` by `$(MAKE)`
1477
1478 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1479
1480         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
1481         offsets (fixes bug #923936)
1482
1483 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
1484
1485         * device/lib/small/Makefile: fixed parallel execution by
1486         replacing `make` by `$(MAKE)`
1487
1488 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
1489
1490         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
1491
1492 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
1493
1494         * src/pic/gen.c (genCpl): multi-byte complements were not working.
1495         * src/regression/Makefile: Regression test was not running.
1496
1497 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
1498
1499         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
1500         complement if possible
1501         * src/SDCCval.c (valComplement),
1502         * src/SDCCicode.c (operandOperation): fixed complement of literal
1503         * support/regression/tests/onebyte.c (testComplement): added
1504
1505 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
1506
1507         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
1508         return an optimized tree; actually replace actParm with the new tree
1509         * src/SDCCast.h: added some parantheses to remove side effects
1510         * support/regression/tests/bug-920866.c
1511
1512 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
1513         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
1514         Bit operands were not being handled properly in the pic14 port.
1515         (now src/regression/add.c passes again).
1516
1517 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1518
1519         * src/SDCC.y (labeled_statement): case and default no longer require
1520         a following statement (RFE #893037)
1521
1522 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1523
1524         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
1525         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
1526         disabled (fixes bug #916294)
1527         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
1528         "mov a,acc"; patch provided by Lenny Story
1529         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
1530
1531 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1532
1533         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
1534         functions
1535         * src/ds390/gen.c (genFunction, genEndFunction),
1536         * src/ds390/ralloc.c (ds390_assignRegisters),
1537         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
1538         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
1539         pushed if there are parameters passed on the stack. Also, a cleaner
1540         way to decide if r0/r1 should be pushed/popped. (Together they fix
1541         bug #918693)
1542
1543 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1544
1545         * doc/sdccman.lyx,
1546         * device/lib/mcs51/crtpagesfr.asm,
1547         * device/lib/mcs51/crtxinit.asm,
1548         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
1549         to avoid confusion with Si Lab's SFRPAGE register.
1550
1551 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1552
1553         * src/SDCCglue.c (emitMaps): allow public sfr variables
1554         * src/SDCCglue.c (initialComments): include compiler build date
1555         with compiler version and put the timestamp of the generated
1556         assembly file on a serperate line to be less confusing.
1557         * src/port.h: added genInitStartup hook
1558         * src/avr/main.c,
1559         * src/ds390/main.c,
1560         * src/hc08/main.c,
1561         * src/pic/main.c,
1562         * src/pic16/main.c,
1563         * src/xa51/main.c,
1564         * src/z80/main.c: genInitStartup initialize as NULL (default to
1565         historical behaviour)
1566         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
1567         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
1568         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
1569         library instead of hard coding it into the compiler.
1570         * support/regression/ports/mcs51-stack-auto/spec.mk,
1571         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
1572         * device/lib/mcs51/Makefile,
1573         * device/lib/small/Makefile,
1574         * device/lib/large/Makefile,
1575         * device/lib/mcs51/crtpagesfr.asm,
1576         * device/lib/mcs51/crtstart.asm,
1577         * device/lib/mcs51/crtxclear.asm,
1578         * device/lib/mcs51/crtxinit.asm,
1579         * device/lib/mcs51/crtclear.asm,
1580         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
1581         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
1582         and into user configurable files.
1583         * device/lib/clean.mk: clean mcs51 directory too
1584         * support/regression/tests/longlit.c: added static to T1 declaration
1585         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
1586         accesses in the initialization code
1587
1588 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1589
1590         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
1591         OSCTRIMVAL as noted in bug #916008
1592
1593 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1594
1595         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
1596         in loops with multiple exits (reported as incorrect registers
1597         used by Martin Helmling in Sdcc-user list)
1598
1599 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1600
1601         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
1602         made ds390 register extensions look less like error messages
1603
1604 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1605
1606         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
1607         reported by Adam Wozniak in Sdcc-user list
1608
1609 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
1610
1611         * src/SDCCast.c (decorateType): fixed with bug and promotion in
1612         arithmetic optimizations, added debug output
1613
1614 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
1615
1616         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
1617         * sdcc.spec: updated and split sdcc into 3 rpms
1618         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
1619         needed for literals of LEFT_OP and '+'
1620         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
1621         introduced RESULT_TYPE_NOPROM
1622         (geniCodeMultiply): fixed logic for decision if mul is optimized to
1623         left shift
1624         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
1625         limited promotion to int only for '*'
1626         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
1627
1628 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
1629
1630         * src/pic16/gen.c (genSkip),
1631         (genc16bit2lit), (gencjneshort): commented out
1632         (is_LitOp): new helper function, checks operand type
1633         (genCmpEq): rewritten
1634
1635 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
1636
1637         * support/regression/tests/bug-908454.c: added
1638
1639 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
1640
1641         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
1642         * src/SDCCicode.c (usualBinaryConversions): op needs int type
1643         (geniCodeCast): cosmetic, don't preserve bit storage class
1644         (geniCodeLeftShift): added promotion
1645         (geniCodeLogic): fixed regression
1646         * src/SDCCsymt.c (computeTypeOr): accept bits too
1647         (compareType): 2nd part of fix for bug #908454, needed for bitfields
1648
1649 2004-03-07  Borut Razem <borut.razem AT siol.net>
1650
1651         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
1652
1653 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
1654
1655         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
1656         version of pic16_genPackRegisters which does not check if ic is a
1657         CAST operator,
1658         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
1659         function cause string1.c regression test fails
1660
1661 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
1662
1663         * sim/ucsim/configure.in,
1664         * sim/ucsim/configure,
1665         * sim/ucsim/doc/Makefile.in: use docdir
1666         * src/SDCC.y: fixed sbit atrributes
1667         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
1668         * src/SDCCast.c (decorateType): |^& need special promotion handling
1669         * src/SDCCast.h,
1670         * src/SDCCsymt.h: moved definition of RESULT_TYPE
1671         * src/SDCCsymt.h (computeType),
1672         * src/SDCCicode.c: computeType() needs op
1673         * src/SDCCsymt.c (checkTypeSanity),
1674         * doc/sddman.lyx: "plain" bitfields are unsigned
1675         * src/SDCCsymt.c (computeTypeOr): added
1676         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
1677         |^& ops
1678         * src/SDCCval.c (val*): computeType() needs op
1679         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
1680         * support/regression/tests/onebyte.c: added tests for |^&
1681
1682 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
1683
1684         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
1685         for writing icode into asm output.
1686
1687 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
1688
1689         * src/pic16/device.c: added some debug lines enabled
1690         with macro DEBUG_CHECK,
1691         * src/pic16/genarith.c: more debug in genPlus,
1692         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
1693         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
1694         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
1695         * (aopForSym): onStack symbols are re-placed in data memspace,
1696         and onStack flag is cleared,
1697         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
1698         copy temporary pcodeop,
1699         * (genPcall): added warning for not updating PCLATU,
1700         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
1701         always true for pic16 port,
1702         * (genMultOneWord): NEW, supports integer multiplication,
1703         * (genMult): modified to call genMultOneWord,
1704         * (ifxForOp): added warning when return NULL,
1705         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
1706         flag is set before call to operandFromSymbol for implicit
1707         added structures,
1708         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
1709         options.intlong_rent are set by default,
1710         * (_hasNativeMulFor): modified to allow port generation of integer
1711         multiplication,
1712         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
1713         set regtype to REG_SFR for all registers, restricting seting the
1714         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
1715
1716 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1717
1718         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
1719         more than 500 times in the regression tests
1720
1721 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1722
1723         * support/Util/SDCCerr.h,
1724         * support/Util/SDCCerr.c,
1725         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
1726         enumerator_list),
1727         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
1728         for symbol conflicts.
1729         * support/valdiags/tests/enum.c,
1730         * support/valdiags/tests/tentdecl.c,
1731         * support/valdiags/tests/struct.c: expect possible error messages
1732         referring to original symbol definitions.
1733         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
1734         * src/SDCCsymt.h,
1735         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
1736
1737 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
1738
1739         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
1740
1741 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
1742
1743         * src/pic16/ralloc.c (newReg): fixed bug #908929
1744
1745 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1746
1747         * src/ds390/gen.c: added missing #include "main.h"
1748
1749 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
1750
1751         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
1752         checking if symbol is already in set,
1753         * src/pic16/device.h: prototype for checkAddSym,
1754         * src/pic16/gen.c: (_G): added entry interruptvector,
1755         * (assignResultValue): removed some commented out lines,
1756         * (genFunction): check for ISR via sym->type, absolute section for
1757         interrupt code is created via a new pBlock, the goto instruction is
1758         placed now correctly at the interrupt vector position, changed all
1759         references from ivec to _G.interruptvector,
1760         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
1761         is the interrupt is a high priority one, same for return from ISR,
1762         * src/pic16/glue.c: changed all calls of addSetHead for publics and
1763         externs to calls of checkAddSym,
1764         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
1765         pic16_pcode_verbose flag is set,
1766         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
1767         * src/pic16/pcoderegs.c: message about how many registers are saved
1768         will only be emitted if pic16_pcode_verbose flag is set,
1769
1770 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1771
1772         * src/ds390/ralloc.h,
1773         * src/ds390/ralloc.c (ds390_regWithIdx),
1774         * src/ds390/gen.c (emitcode),
1775         * src/ds390/main.h,
1776         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
1777         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
1778         ds390operandCompare, getRegsRead, getRegsWritten,
1779         initializeAsmLineNode): customized instruction size calculation for
1780         ds390, started basis for some register optimizations
1781         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
1782         corresponding assembly output
1783         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
1784         missing push/pop of r0/r1. Optimized push/pops
1785
1786 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1787
1788         * src/mcs51/main.c (instructionSize): fixed ACALL size
1789         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
1790
1791 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
1792
1793         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
1794         the sorting of rlist with NULL elements
1795         * (print_idataType, print_idata): NEW to create idata sections
1796         * src/pic16/device.h: idataSymSet new variable
1797         * src/pic16/gen.c (genFunction): fixed some bugs in string
1798         comparing, improved the absolute section creation for ISRs,
1799         added FSR0L/FSR0H in registers that are saved in an ISR,
1800         * (genInline): fixed the processing of inline snippets,
1801         now they undergo no process by the peephole optimizer
1802         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
1803         are placed in idataSymSet,
1804         * (pic16emitStaticSeg): extern symbols are added in externs,
1805         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
1806         switching when aboslute variables are placed in access bank memory
1807         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
1808         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
1809         commented out with #if,
1810         * (pic16_packRegisters): reintroduce the check for CAST because some
1811         symbols are not correctly handled,
1812         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
1813         pCodeInstruction instead of pCode,
1814         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
1815         pCodeAsmDir definition,
1816         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
1817         directive, then the argument directive is emitted without the leading
1818         tab, hack for inline labels which must be in the first column,
1819         * (compareLabel,pic16_findNextInstruction),
1820         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
1821         * (insertBankSwitch): modified for the new pCodeAsmDir,
1822
1823 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1824         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
1825
1826         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
1827         instance,
1828         * (pushSide): commented out with #if,
1829         * (assignResultValue): fixed some typos in saving
1830         registers,
1831         * (genPcall): FIXED and sync'ed with genCall,
1832         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
1833         * (genNearPointerGet): fixed to handle some more cases,
1834         implementation scheme via table reads,
1835         * (genConstPointerGet): modified to access code memory correct,
1836         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
1837         and improved to handle some cases
1838         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
1839         instead of "RETLW" for init data
1840         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
1841         not IN_DIRSPACE, work around to reduce bank switching when aboslute
1842         variables are placed in access bank memory (<0x80 and >=0xf80),
1843         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
1844         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
1845         TBLWT_POSTDEC,TBLWT_PREINC
1846         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
1847         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
1848         directives
1849         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
1850         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
1851         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
1852         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
1853
1854 2004-02-29  Borut Razem <borut.razem AT siol.net>
1855
1856         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
1857         support/Util/findme.h, support/Util/system.h: enhance binary relative
1858         search for lib and include by using findProgramPath()
1859
1860 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1861
1862         * src/SDCCpeeph.h,
1863         * src/SDCCpeeph.c (pcDistance),
1864         * src/port.h,
1865         * src/mcs51/ralloc.h,
1866         * src/mcs51/ralloc.c (mcs51_regWithIdx),
1867         * src/mcs51/main.h,
1868         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
1869         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
1870         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
1871         size calculation port specific, started basis for some register
1872         optimizations
1873         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
1874         missing push/pop of r0/r1. Optimized push/pops
1875         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
1876         * device/lib/_modsint.c (_modsint),
1877         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
1878         and stack version so regression tests pass
1879
1880 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
1881
1882         * src/Makefile.in (dep): include SLIBOBJS in dependency check
1883         * src/SDCCast.c (decorateType): catch another small optimization
1884         with '?' operator
1885         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
1886         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
1887         modified to finally use computeType() all over SDCC,
1888         see Feature Request #877103
1889         * src/SDCCval.h: cosmetic
1890         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
1891         valCompare(); regression tested in muldiv.c
1892         * support/regression/tests/muldiv.c (testMod): mod sign follows
1893         dividend only
1894
1895 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
1896
1897         * src/SDCCast.c (decorateType): fixed bug #902362
1898         * doc/INSTALL.txt: fixed install instructions for win32
1899
1900 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
1901
1902         * device/include/Makefile.in (install): fixed by replacing spaces
1903         by tabs
1904         * doc/README.txt,
1905         * doc/INSTALL.txt: updated for release
1906         * doc/sdccman.lyx: added warning for --xstack being buggy
1907
1908 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
1909
1910         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
1911         to eliminate build warnings.
1912         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
1913
1914 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
1915            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
1916
1917         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
1918         removed -penable-stack, added comment for stack pragma, added
1919         warning for not initializing the stack/frame registers, removed
1920         comment at interrupts section
1921
1922         Stack is made permanent, there is no ability to disable stack usage.
1923         * src/pic16/device.h,
1924         * src/pic16/device.c: removed all references to USE_STACK macro,
1925         * src/pic16/device.c (pic16_dump_section): when no elements in
1926         rlist, free rlist before return,
1927         * (pic16_dump_int_registers): NEW, internal registers are a new set
1928         of general purpose registers reused by each function,
1929         * (checkAddReg): returns 1 if registers is added to set,
1930         * (pic16_groupRegistersInSection): when a registers is of type
1931         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
1932         * src/pic16/device.h: memRange and Assigned Memory are deleted,
1933         SRCASECMP macro is moved here from device.c
1934         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
1935         PO_PCLATU, PO_PRODL, PO_PRODH,
1936         * (pic16_pCodeOpType, genMinus,
1937         changed compares to "a" register, with AOP_ACC,
1938         * (pic16_genPlus): fixed some bugs and indented properly,
1939         * (pic16_addSign): changed size to size+offset in the MOVWF
1940         instruction,
1941         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
1942         multiply 8-bit operand by literal, result is 8-bit,
1943         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
1944         multiply 2 8-bit operand, result is 8-bit,
1945         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
1946         genUMult8X*_16,
1947         * src/pic16/gen.c: changed accUse to contain WREG only,
1948         * (pic16_emitcomment): renamed to pic16_emitpcomment,
1949         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
1950         true, do not use immediate addressing any more unless sym is a
1951         pointer in codespace,
1952         * (aopForRemat): do not use immediate addressing when symbol not in
1953         codespace and when symbol's address is requested,
1954         * (aopOp): for-loop in if(sym->accUse) is modified for the new
1955         accUse size (= 1),
1956         * (aopGet): added case for AOP_ACC and don't return "accumulator
1957         bug" but WREG instead,
1958         * (popGetTempReg): pushes contents of temporary register in stack,
1959         * (popReleaseTempReg): pops contents of temporary register from
1960         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
1961         * (pic16_popGet): separated case AOP_ACC to return register WREG
1962         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
1963         or PO_IMMEDIATE and initializes their instance/offset appropriately,
1964         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
1965         the use of immediate pointers to certain cases only.
1966
1967         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
1968         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
1969         * (assignResultValue, genCall, genRet): modified to use the new
1970         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
1971         genPcall is still broken,
1972         * (genFunction): added code to create 'A' type pBlocks when
1973         interrupt functions are generated, code not extensively tested yet,
1974         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
1975         * (genEndFunction): modified so ISRs pop stored registers from stack,
1976         * (genMultOneByte): cleanup,
1977         * (AccRsh): added flag andmask, to and result with appropriate mask,
1978         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
1979         * (genDataPointerGet): fixed and reenabled its use,
1980         * (genNearDataPointerGet): bugs fixed,
1981         * (genDataPointerSet): bugs fixed,
1982         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
1983         pic16_DumpSymbol, pic16_DumpOp,
1984         * src/pic16/genutils.h: function prototypes for the above functions,
1985         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
1986         pointers,
1987         * (pic16emitRegularMap): many many many improvements, but needs a
1988         major cleanup,
1989         * src/pic16/main.c: enable_stack in pic16_options is removed,
1990         * (_pic16_parseOptions): removed command line options -penable-stack,
1991         * (_process_pragma): emit stack symbol only when stack pragma is
1992         processed,
1993         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
1994         redirected to FSR0L/FSR0H pair,
1995         * (pic16_get_op, pic16_get_op2): modifications and improvements,
1996         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
1997         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
1998         for immediates,
1999         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
2000         * (dumpPicOptype): NEW,
2001         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
2002         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
2003         with movff instruction,
2004         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
2005         added pic16_int_regs, some packRegsFor* functions are commented out,
2006         because produce errors,
2007         * src/pic16/NOTES: minor modifications
2008
2009 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2010
2011         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
2012         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
2013         --pack-iram.
2014         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
2015         * as/mcs51/lkaomf51.c: fixed bug #895763
2016
2017 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
2018
2019         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
2020
2021 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2022
2023         * doc/sdccman.lyx: added details about the HC08 storage classes and
2024         interrupts, fixed the register usage info for z80 & gbz80
2025
2026 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
2027
2028         * doc/sdccman.lyx: added more pic16 port documentation
2029         * device/include/pic16/: added header pic18fregs.h
2030
2031 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
2032
2033         * doc/sdccman.lyx: added Vangelis' contribution
2034
2035 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2036
2037         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
2038         extend to the next CALL or PCALL, not just to the next CALL.
2039
2040 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
2041
2042         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
2043
2044 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2045
2046         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
2047         bug #895752 and a better fix for bug #716790
2048
2049 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2050
2051         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
2052
2053 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2054
2055         * doc/sdccman.lyx: minor changes, minor changed
2056
2057 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
2058
2059         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
2060         which can't handle SDCC_NEWONEBYTEOPS,
2061         (geniCodeMultiply): removed conversion from mult to shift for pic14
2062         and pic16
2063
2064 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2065
2066         * src/hc08/gen.h,
2067         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
2068         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
2069         thus fixing bug #895406
2070
2071 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
2072
2073         * device/lib/_modsint.c,
2074         * device/lib/_modslong.c: sign follows divisor only
2075         * src/hc08/gen.c (genMultOneByte): if result size is 1,
2076         signs or signedness can be ignored
2077         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
2078         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
2079         added optimization for IFX,
2080         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
2081         arguments;
2082         reenabled optimization for IFX, which was removed on 2004-01-11
2083         * src/SDCCast.h: added return type IFX
2084         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
2085         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
2086         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
2087         SDCC_OLDONEBYTEOPS selects the old behaviour
2088         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
2089         changed again and commented promotion rule
2090         * src/SDCCval.c (valDiv): promotion no longer necessary
2091         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
2092         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
2093         rewritten
2094         * support/regression/tests/onebyte.c: added
2095
2096 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
2097
2098         * gen.c (genInline): reverted to old code for assemnling inline
2099         code because of bug reported James Chadd
2100
2101 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
2102
2103         * ralloc.h: missing declarations from previous patch,
2104         seems that patch for ralloc.h was never applied, fixed
2105
2106 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
2107            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
2108
2109         * pcode.c,
2110         * pcode.h,
2111         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
2112         indirect addressing. Marked FSR0 as deprecated
2113         * gen.c (pointerCode): commented out, not needed now
2114         (pic16_popGet2p): new MOVFF helper function
2115         (genGenPointerGet),
2116         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
2117         (shiftRLong): removed duplicate debugging info
2118
2119 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2120
2121         * src/ds390/gen.c (genNearPointerGet),
2122         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
2123         optimization with bits, but not bitfields.
2124         * src/ds390/ralloc.c (packRegisters),
2125         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
2126
2127 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2128
2129         * src/SDCCcse.c (algebraicOpts): copy operands before modification
2130
2131 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2132
2133         * src/SDCCsymt.h,
2134         * src/SDCCicode.c (operandFromSymbol),
2135         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
2136         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
2137         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
2138         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
2139         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
2140         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
2141         bug #892038
2142         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
2143         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
2144         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
2145         * src/SDCCsymt.c (newSymbol),
2146         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
2147         enumerator_list),
2148         * src/SDCCval.h,
2149         * src/SDCCval.c (newiList): fixed bug #885705
2150
2151 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2152
2153         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
2154         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
2155
2156 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2157
2158         * device/include/c8051f120.h,
2159         * device/include/c8051f300.h,
2160         * device/include/c8051f310.h: added/updated header files for Silicon
2161         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
2162         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
2163         in new section Submitting patches
2164
2165 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2166
2167         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
2168         genFarPointerGet, genCodePointerGet, genGenPointerGet,
2169         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2170         genGenPointerSet),
2171         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
2172         genFarPointerGet, genCodePointerGet, genGenPointerGet,
2173         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2174         genGenPointerSet),
2175         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
2176         genFarPointerGet, genCodePointerGet, genGenPointerGet,
2177         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2178         genGenPointerSet),
2179         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
2180         genFarPointerGet, genCodePointerGet, genGenPointerGet,
2181         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2182         genGenPointerSet): fixed bug #892400
2183         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
2184         to eliminate build warnings.
2185         * src/SDCCast.c (processParms),
2186         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
2187         fixed bug 751859
2188         * support/valdiag/valdiag.py: added GCC to the list of defines active
2189         when compiling with gcc
2190
2191 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2192
2193         * support/Util/SDCCerr.h,
2194         * support/Util/SDCCerr.c,
2195         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
2196         with an incomplete type (fixed bug #883734)
2197         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
2198
2199 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2200
2201         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
2202
2203 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2204
2205         * src/SDCCast.c (decorateType),
2206         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
2207         function pointer implementation
2208         * support/regression/tests/funptrs.c: added tests to verify both forms
2209         of function pointers work correctly. Added tests to verify parameters
2210         are passed in the correct order.
2211
2212 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
2213
2214         * device.c (regCompare): registers are sorted by ascending
2215         address and increasing size,
2216         * main.c (_pic16_finaliseOptions): removed the declaration
2217         of compiler macro MCU. Now a macro of the format pic18fxxxx
2218         will be defined from the command line
2219
2220 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
2221             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
2222
2223         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
2224         PCOP_RLCF was overwritten!
2225         * gen.c (genSkip): commented out calls to pic16_emitcode,
2226         * (genCmpEQ): fixed "long" compares, only high word did get compared,
2227         * (genlshTwo),
2228         * (genRRC): added debugging info,
2229         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
2230         overwritten while shifting,
2231         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
2232         overwritten while shifting,
2233         * (AccLsh),
2234         * (AccRsh),
2235         * (shiftLLeftOrResult),
2236         * (shiftRLeftOrResult),
2237         * (shiftRLong),
2238         * (shiftLLong): Implemented with pic16_emitpcode
2239         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
2240         * (genLeftShift): Fixed bug, operand for shift by variable always
2241         was "and"ed with 0x0f,
2242         * (genLeftShiftLiteral),
2243         * (genrshTwo),
2244         * (genRightShiftLiteral): added debugging info,
2245         * (genrshFour): added comment,
2246         * (genRightShift): determined signedness from operand "left"
2247         instead of "result"
2248
2249 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2250
2251         * src/SDCCicode.c (geniCodeParms),
2252         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
2253         function pointers, fixed function pointer bugs #861242 and #861896
2254
2255 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2256
2257         * device/include/c8051f000.h,
2258         * device/include/c8051f120.h,
2259         * device/include/c8051f300.h: added header files for Silicon
2260         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
2261
2262 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
2263
2264         * src/SDCCast.c (processParams): added new type flow and restructured
2265         (gatherAutoInit): added new type flow
2266         (addCast): cosmetic changes
2267         (getLeftResultType): added new type flow for array indices, patch
2268         provided by Stas, see FR #877103
2269         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
2270         array index patch by Stas
2271         * src/SDCCast.h: added prototype getResultTypeFromType()
2272         * src/SDCCval.h,
2273         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
2274         * src/pic/glue.c (pic14emitStaticSeg),
2275         * src/pic16/glue.c (pic16emitStaticSeg),
2276         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
2277         for initialization of symbols
2278         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
2279         * support/Util/SDCCerr.h:
2280         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
2281         * .version: bumped version number to 2.3.8
2282         * device/include/Makefile.in (install),
2283         * doc/Makefile (install): changed to 'rm `find ...`' construct to
2284         avoid warnings
2285
2286 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
2287
2288         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
2289         Slade Rich fixed an optimization bug
2290         * src/pic/pcodepeep.c,
2291         * src/pic/pcoderegs.c
2292         * doc/Makefile (install): added test for directory
2293
2294 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2295
2296         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
2297         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
2298         * src/pic/ralloc.c (getRegPtr, getRegGpr),
2299         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
2300         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
2301         * as/mcs51/asexpr.c (term),
2302         * as/hc08/asexpr.c (term): fixed bug #887146
2303
2304 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2305
2306         * src/z80/gen.c (genMult): handle single byte result product
2307         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
2308         DUMMY_READ_VOLATILE (fixed bug #886367)
2309
2310 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
2311
2312         * support/regression/tests/libmullong.c: fixed logic, on little endian
2313         hosts we ended without a mullong_wrapper()
2314
2315 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2316
2317         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
2318         virus/worm forged address usage.
2319
2320 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
2321
2322         Fixed promotion, it should be done on AST level:
2323         * src/SDCCast.c (addCast): added promotion to int
2324         (decorateType): updated call to upCast()
2325         * src/SDCCicode.c (geniCodeLeftShift): removed call to
2326         usualUnaryConversions()
2327
2328 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
2329
2330         * support/regression/tests/literalop.c (mulWrapper): Added a
2331         wrapper to remove integer overflow warnings.
2332
2333         * support/regression/tests/float_trans.c: Made work on host.
2334
2335         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
2336         location of sz80.
2337
2338         * support/regression/generate-cases.py (main): Changed from inline
2339         to a main method.
2340
2341         * doc/Makefile (install): Changed to depth first to get rid of
2342         missing directory install warning.
2343
2344         * as/Makefile (install-doc): Made work on Mac.
2345
2346 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
2347
2348         * src/SDCCast.c: added an additional type flow in decorateType() of
2349         opposite direction, see feature request #860006; it's enabled at runtime
2350         by setting the environment variable SDCC_NEWTYPEFLOW
2351         * src/SDCCast.h: changed prototype of decorateType()
2352         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
2353         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
2354         'char' to 'int' can be omitted, if both operands are 'unsigned char';
2355         see feature request #877103
2356         * src/SDCCval.c: updated call of decorateType()
2357         (valBitwise): fixed bug #882876
2358         (valMinus): added promotion
2359         (valLogicAndOr): result is unsigned
2360         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
2361         * src/SDCCsymt.c (computeType),
2362         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
2363         must not cause an unsigned operation
2364         * src/pic/glue (pic14emitRegularMap),
2365         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
2366
2367 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
2368
2369         * src/pic/pcode.c (PCodeID): commented out left over debug code
2370
2371 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
2372
2373         * support/valdiag/tests/overflow.c: added shift tests
2374         * src/pic/device.c,
2375         * src/pic/gen.c,
2376         * src/pic/gen.h,
2377         * src/pic/glue.c,
2378         * src/pic/main.c,
2379         * src/pic/pcode.c,
2380         * src/pic/pcode.h,
2381         * src/pic/pcodepeep.c,
2382         * src/pic/pcoderegs.c,
2383         * src/pic/ralloc.c,
2384         * src/pic/ralloc.h: applied patch from Slade Rich;
2385         added support for multiple code pages and multiple RAM banks on the
2386         PIC 14 port. The ASM files now no longer simply assume all the
2387         code / RAM are in the same page / bank. This means the linker can
2388         safely allocate code/RAM of separate ASM files to different pages/banks.
2389         * doc/sdccman.lyx: added Slade's tips
2390         * src/mcs51/peeph.def: fixed bug #880768
2391
2392 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2393
2394         * src/hc08/ralloc.c (rematStr): fixed bug #879282
2395         * src/SDCCast.c (decorateType): fixed bug #880197
2396
2397 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
2398
2399         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
2400         getopt.h.
2401
2402         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
2403         strtof is not part of C89 and isn't included with Mac OS X.
2404
2405 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2406
2407         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
2408         shiftL2Left2Result): fixed bug #879326
2409         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
2410         (genMultOneByte): fixed bug in signed vs unsigned multiplication
2411         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
2412         address fetch for clr instruction
2413         * device/lib/hc08/_mulint.c: created optimized assembly version
2414         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
2415
2416 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2417
2418         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
2419         proposed in FR #877103
2420
2421 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
2422
2423         * src/SDCCval.c (cheapestVal): added missing checks
2424         * src/SDCCicode.c (usualBinaryConversions): fixed condition
2425         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
2426
2427 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
2428
2429         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
2430         equal operands
2431
2432 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
2433
2434         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
2435         loaded with the linker search paths (-L arguments) and the libraries
2436         to be linked with the current source (-l arguments). Changes
2437         currently will affect only the pic16 port.
2438         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
2439         include path the port specific paths and port specific libraries,
2440         * gplink command now contains the $3 argument,
2441         * src/pic16/device.h,
2442         * src/pic16/device.c,: structure PIC_device is made public and
2443         renamed to PIC16_device, the same for variable Pics which is renamed
2444         to Pics16. Updated all references to them.
2445         * src/pic16/glue.c (pic16glue): corrected bug with code
2446         initialization which bypassed the variable initializations block.
2447
2448         * device/lib/pic16/Makefile.rules: removed --penable-stack from
2449         COMPILE_FLAGS and added the --nostdinc option
2450
2451 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2452
2453         * device/include/mc68hc908jb8.h: Register defs for another member
2454         of the hc08 family. Contributed by Bjorn Bringert - thanks!
2455
2456 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
2457
2458         Documenting changes from previous commits.
2459         * configure.in (version 1.56),
2460         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
2461         when generating output files to configure the pic16 library,
2462         but now I've commented it out, since gputils aren't installed in the
2463         SF compile farm, so library won't compile
2464
2465         * device/lib/Makefile.in (version 1.56): initially I've added in
2466         target 'all' the prerequestive 'model-pic16' so it compiled the
2467         pic16 library, but now I've commented it out for the same reasons
2468         above,
2469         * added targets 'model-pic16' and 'objects-pic16' to compile the
2470         library
2471         * added target 'port-specific-objects-pic16' to handle the
2472         generated libraries and copy them into the build/ directory
2473         * added target 'clean-intermediate-pic16' to clean intermediate
2474         files into pic16 directory
2475         * in target 'installdirs' added line to create directory pic16 in
2476         the installation path
2477
2478         * device/include/Makefile.in (version 1.11): in target 'install'
2479         added lines to copy all header files to installation path,
2480         * in target 'installdirs' added line create directory for pic16
2481         headers in the installation path
2482
2483 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
2484
2485         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
2486          a function call
2487
2488 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
2489
2490         * configure,
2491         * device/lib/configure.in,
2492         * device/lib/configure: fixed for autoconf 2.57
2493
2494 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2495
2496         * src/z80/main.c (_parseOptions): fixed the portmode= command line
2497         option so that it actually works. Made it specific to the z80, since
2498         the gbz80 doesn't have these kinds of I/O ports.
2499
2500 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2501
2502         * device/include/z180.h,
2503         * device/lib/_memcpy.c,
2504         * device/lib/_memmove.c,
2505         * device/lib/_mulint.c,
2506         * device/lib/ser_ir.c,
2507         * device/lib/ser_ir_cts_rts.c,
2508         * device/lib/_strcmp.c,
2509         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
2510         * src/z80/main.c (_process_pragma): add support for pragmas bank and
2511         portmode; added deprecation warning for bank= and protmode= forms.
2512         Also, guard against buffer overflow.
2513         * src/z80/gen.c (aopGet): generate better code for sfr banked read
2514
2515 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2516
2517         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
2518         changed interrupt vector table generation to only emit declared vectors.
2519         * device/include/Makefile.in: added missing backslash
2520         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
2521
2522 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
2523
2524         Mainly changes to support compilation of the device libraries
2525         * src/pic16/device.c: stack is allocated via symbol and not
2526         via literal number. The symbol is placed in the corresponding
2527         position of the data ram
2528         * (pic16_dump_section): relocatable and absolute uninitialized
2529         data are now emitted in sorted order to reduce section naming,
2530         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
2531         weren't marked as being in the access bank,
2532
2533 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
2534
2535         Added portion of GNU PIC Library under the directory
2536         device/include/pic16 and device/lib/pic16. These files
2537         contain the declarations of SFRs for the PIC18Fxx2 devices.
2538         The directory is initialized via configure from toplevel.
2539
2540 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
2541
2542         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
2543         the spilllocations to be compared correctly
2544
2545 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
2546
2547         * src/SDCCast.c (decorateType): fixed bug introduced today
2548
2549 2004-01-12  Borut Razem <borut.razem AT siol.net>
2550
2551         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
2552         doc/sdccman.lyx: upper case pragmas are deprecated
2553
2554 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
2555
2556         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
2557         in simpler and even better code
2558
2559 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
2560
2561         * src/SDCCicode.c (operandOperation): fixed bug #874819
2562         * src/SDCCast.c (decorateType): fixed
2563         char foo (unsigned long ul) { return ul > 0; }
2564
2565 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2566
2567         * doc/sdccman.lyx: Moved and added some sections, small changes
2568         all over. Telling LaTeX to be less strict with word spacing
2569         to better keep the right margin. Changed some notes about
2570         maintainance of the ports in section 3.2.1 - is it OK like this?
2571
2572 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
2573
2574         SDCC source changes:
2575         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
2576         convilong): modified to inform the pic16 port that builtin functions
2577         are external
2578
2579         PIC16 PORT specific changes:
2580         * src/pic16/device.c pic16_dump_equates() added,
2581         processor registers declared internally by the port are emitted in
2582         the translation as equates,
2583         * src/pic16/gen.c: inline code is passed unprocessed to the
2584         translation,
2585         * (pic16_popGetLit2): fnuction modified to take second operand as
2586         pCodeOp pointer and not as literal,
2587         * (popRegFromIdx): prefixed with pic16_,
2588         * (pic16_popCombine2): modified to receive already allocated pCode
2589         operands,
2590         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
2591         * (genFunction): initializes local stack frame and pushes on stack
2592         all the registers used by this function,
2593         * (genEndFunction): restores all registers from stack and restores
2594         stack frame,
2595         * src/pic16/glue.c (pic16emitRegularMap): various changes and
2596         improvements,
2597         * (pic16glue): changed the program startup sequence,
2598         * added new dbName code 'A' for functions placed in absolute section
2599         * src/pic16/main.c: added function attribute _naked,
2600         * added pragma 'code' to place a fnuction at an absolute address,
2601         * added command line arguments --debug-ralloc and --pcode-verbose,
2602         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
2603         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
2604         * (pic16_newpCodeOpLit2): modified to take the second operand as
2605         pCodeOp pointer,
2606         * (pic16_printpBlock): modified to emit each function in a separate
2607         section,
2608         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
2609         UPPER for immediate operands,
2610         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
2611         instruction,
2612         * src/pic16/peeph.def: all peepholes with movff are commented out,
2613         because there is a problem in the pcode peep optimizer,
2614         * src/pic16/ralloc.c: the register allocator can now reuse local
2615         function symbols for another function. This saves register usage.
2616         * src/pic16/ralloc.h: added flag isLocal in structure regs,
2617
2618         Added file src/pic16/NOTES with information about program writing on
2619         the current port version.
2620
2621 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2622
2623         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
2624         and peephole 252 (array access)
2625
2626 2004-01-09  Borut Razem <borut.razem AT siol.net>
2627
2628         * src/SDCCmain.c : fixed #872250: -l command line defined library
2629           files are scanned before standard library files
2630
2631 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2632
2633         * src/SDCCast.c (decorateType): fixed bug #874046
2634
2635 2004-01-09  Borut Razem <borut.razem AT siol.net>
2636
2637         * support/scripts/sdcc.nsi: remove previous installation
2638
2639 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2640
2641         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
2642         bytes for last interrupt vector (mcs51)
2643         * sdcc.spec: fixed typo
2644
2645 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2646
2647         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
2648         gen51Code): more efficient parameter receive for --model-large
2649         ("bug" #845294)
2650
2651 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2652
2653         * src/ds390/main.c,
2654         * src/z80/main.c: added missed needLinkerScript flags (more than
2655         one port structure defined in these file)
2656         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
2657         bug #795325
2658
2659 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
2660
2661         * src/SDCCmain.c: removed various references to DEFAULT_PORT
2662         * src/port.h: added flag needLinkerScript in port->linker
2663         structure to inform whether to create a .lnk file or not,
2664         * src/avr/main.c,
2665         * src/ds390/main.c,
2666         * src/hc08/main.c,
2667         * src/mcs51/main.c,
2668         * src/pic/main.c,
2669         * src/pic16/main.c,
2670         * src/xa51/main.c,
2671         * src/z80/main.c: changed appropriately to configure
2672         needLinkerScript flag
2673         * src/pic/gen.c,
2674         * src/pic16/gen.c (genAddrOf): fixed bug #863624
2675         * src/pic/glue.c: added variable udata_section_name to
2676         override default uninitialized data segment definition for
2677         devices only with SHAREBANK memory (reported from Erik Epetrich)
2678         * (pic14emitOverlay): modified to emit a commented overlay segment
2679         directive when no overlay data exist
2680         * (picglue): modified to emit uninitialized data segment
2681         according to udata_section_name
2682         * src/pic/main.c (_pic14_parseOptions): added command line
2683         options --udata-section-name=[name] to override default
2684         udata definition name
2685         * modified _linkCmd and _asmCmd to include compiler passed
2686         arguments via -W option
2687         * src/pic16/main.c: added $l in _asmCmd, changed extension for
2688         object file from '.rel' to '.o' in port->linker structure,
2689         changed size of fptr from 2 to 3 in port structure
2690
2691 2004-01-07  Borut Razem <borut.razem AT siol.net>
2692
2693         * support/scripts/sdcc.nsi: update PATH
2694         * support/scripts/sdcc.ico: craeted
2695
2696 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
2697
2698         * device/include/Makefile.in: fix install
2699         * doc/Makefile: fix install
2700
2701 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2702
2703         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
2704         in bug #860505
2705         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
2706         how the function variable allocation summary is displayed; also
2707         include information about variables allocated to the overlay
2708         segment
2709
2710 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2711
2712         * as/mcs51/lkmain.c: Help about -Y option
2713         * as/mcs51/lkarea.c: Fixed gcc warnings
2714
2715 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
2716
2717         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
2718         fixed warning
2719         * support/valdiag/tests/overflow.c: added
2720         * src/SDCCast.c (decorateType),
2721         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
2722         LEFT_OP (left shift)
2723
2724 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2725
2726         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
2727         (default behaviour).
2728
2729 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2730
2731         A python script to validate compiler diagnostic messages. It can be
2732         used to verify that sdcc complains about bad c source code and
2733         gives a good location of the error.
2734         * support/valdiag/Makefile,
2735         * support/valdiag/valdiag.py,
2736         * support/valdiag/tests/*
2737
2738 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2739
2740         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
2741         * src/SDCCsymt.c (newEnumType),
2742         * src/SDCCsymt.h
2743         * support/Util/SDCCerr.c,
2744         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
2745         enum related bugs.
2746         * support/regression/tests/enum.c: added test for enum values that
2747         require at least 2 bytes of storage.
2748
2749 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
2750
2751         * src/common.h: added ifndef/define/endif macros
2752         around the header file.
2753         Bug reported from Jesus Calvino-Fraga
2754
2755 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
2756
2757         * sdcc.spec: updated
2758         * device/include/Makefile.in: don't install CVS directories
2759         * device/lib/Makefile.in: added removal of CVS directories after install
2760         * doc/Makefile: fixed install, added local_icons
2761         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
2762         * src/mcs51/gen.c (genRightShift): fixed bug #870788
2763         * src/ds390/gen.c (genRightShift): fixed bug #870788
2764         * src/SDCCast.c (decorateType): fixed bug #870781
2765
2766 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
2767
2768         PIC16 port related changes:
2769         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
2770         added variable stackPos,
2771
2772         * gen.c: genCall, assignResultValue: added support for
2773         pushing/retrieving function parameters to/from stack,
2774         genFunction,genEndFunction: setup stack frame for the
2775         generated function,
2776         genAddrOf: will be changed according to bug 863624
2777
2778         * added files genutils.c and genutils.h which contain gen*
2779         debugged and optimised functions extracted from gen.c
2780
2781         * glue.c: added variable 'externs' which holds extern symbols,
2782         pic16emitRegularMap: is modified to properly handle relocatable
2783          symbols under the new scheme,
2784         pic16createInterruptVect: is modified
2785         pic16printPublics: is modified to emit 'global' assembler directives,
2786         added pic16_printExterns to print extern symbols,
2787         pic16glue: initializes stack/frame pointer in the beginning of
2788         the assembly output. Temporary hack, will be corrected later,
2789         because gplink yet does not support stack and SDCC does not
2790         yet support a type of crt0.o object to create the final binary.
2791
2792         * Removed many lines that contain 8051 legacy code.
2793         * The code is finally placed under a 'code' directive.
2794         * Added port specific options.
2795
2796         * _process_pragma: simplified since now we do not need *special*
2797         include file to define SFR registers. But a separate header
2798         will be needed. This will be developed later.
2799         * _pic16_parseOptions: added, parses port specific options:
2800         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
2801         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
2802         --preplace-udata-with=
2803
2804         * _pic16_setDefaultOptions: modified to initialize section names,
2805         but hack is temporarly out of order since it needs improvement.
2806         * _pic16_genAssemblerPreamble: configuration words are emitted by
2807         their address instead of their name. This part is incomplete and
2808         supports only the 18Fxx2 devices. Other devices will emit an error
2809         during assembly since they do not contain the same set of config
2810         registers
2811         * _pic16_genIVT: is modified,
2812
2813         * pcode.c: added definitions for some hardware registers that are needed
2814         for stack support
2815         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
2816         All PCI entries are updated. Now LFSR is supported.
2817         * Removed pic16_pciTRIS is mentioned by mdubuc in source
2818         * added pic16_newpCodeOpLit2 to support instructions with
2819         two literal arguments
2820         * pic16_pCode2str: corrected code that emits assembler instructions
2821         with two literal operands and those that have an access bit modifier
2822         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
2823         this fixes a bug which caused some labels to be lost, when an
2824         assembler directive was added, i.e. banksel,
2825         * pic16_FixRegisterBanking: improved logic that causes the insertion
2826         of bank switching,
2827         * InlineFunction: functions that are called once, are not any more
2828         inlined. This can be a port option in the future,
2829
2830         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
2831
2832         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
2833         hold the corresponding uninitialized symbols,
2834         * pic16_allocProcessorRegister: registers have explicit marked the
2835         accessBank field,
2836         * pic16_allocInternalRegister: registers are explicit marked as
2837         not used,
2838         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
2839         processing list, so bit registers were lost,
2840         *
2841
2842         * ralloc.h: added field 'accessBank' and original symbol operand
2843         in register definition,
2844         * removed the field isMapped from register definition,
2845
2846         ** Several functions have been removed from various sources:
2847         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
2848         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
2849         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
2850         pic16_assignRelocatableRegisters
2851
2852         ** others have been introduced:
2853         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
2854         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
2855
2856 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
2857
2858         * support/scripts/inc2h.pl: changed definition of BIT_AT
2859         to emit 'sbit at' instead of 'bit at'. This was a request.
2860
2861         PIC16 port related preliminary changes:
2862         * gen.c: prefixed function popRegFromString with
2863         pic16_ and all references to it corrected
2864         * pcode.c: all pic16_pc_* hardware registers prefixed
2865         with underscore (_),
2866         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
2867         * ralloc.c: newReg(): when register is REG_SFR then
2868         set address to rIdx,
2869         pic16_allocProcessorRegister(): marks register wasUsed=0
2870         pic16_writeUsedRegs(): added a call to assign processor
2871         registers via pic16_assignFixedRegisters
2872
2873 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2874
2875         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
2876         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
2877         variables in unused register banks.  Also the SSEG is placed
2878         wherever there is enough space for it, and IDATA can be anywhere
2879         in internal RAM.  For now compile using -Wl-Y[stack_size].
2880         The mem file is different for this option as well, since it
2881         makes no sense of talking about DSEG lenght.
2882
2883 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
2884
2885         * src/SDCClrange.c: fixed bug 869095 that caused segfault
2886         in certain cases, e.g. when ROM assignment, patch provided
2887         from Albert den Haan.
2888
2889 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2890
2891         Many signedness and type propagation fixes:
2892         * src/SDCCicode.c: made geniCodeCast() static
2893         replaced SPEC_ by IS_ (cosmetic)
2894         (operandOperation): fixed div and mod operation
2895         (usualBinaryConversions): added support for promotion of char
2896         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
2897         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
2898         (geniCodeAdd): an array index will stay unsigned, even if promoted
2899         from char to int
2900         (geniCodeArray): ditto
2901         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
2902         * src/SDCCsymt.c (computeType): added more support for char;
2903         promotion of char is selectable by promoteCharToInt, fixed signedness
2904         for all cases
2905         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
2906         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
2907         * src/SDCCval (val*): replaced signedness calculation by
2908         computeType()
2909         rearranged if-branches (cosmetic)
2910         (valShift): added warning W_SHIFT_CHANGED
2911         (valCompare): fixed problem with different types
2912         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
2913         * support/regression/tests/literalop.c: added many cases
2914         * support/regression/tests/ast_constant_folding.c: changed finally to
2915         'unsigned int'
2916         * .version: new year, new version: 2.3.7
2917         * src/SDCCmain.c (main): applied patch #866468
2918         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
2919         provided by Scott Bronson
2920         * doc/sdccman.lyx: updated documentation for sdcdb
2921         updated and added chapter tips
2922
2923 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2924
2925         * src/SDCCsymt.h: missing from yesterday's commits
2926
2927 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2928
2929         * src/SDCC.y (struct_or_union_specifier),
2930         * support/Util/SDCCerr.c,
2931         * support/Util/SDCCerr.h: verify that struct & union tags are used
2932         as declared.
2933
2934 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2935
2936         * src/SDCCglobl.h: missing from yesterday's commits
2937
2938 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2939
2940         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
2941         sft_attributes, struct_declaration, parameter_declaration,
2942         type_name, start_block, declaration_list),
2943         * src/SDCC.lex (check_type): support redefinition of typedef names
2944
2945 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2946
2947         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
2948         aligned xdata arrays. Erik helped me with the if clause.
2949
2950 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2951
2952         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
2953         warning
2954
2955 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2956
2957         * src/SDCCast.h,
2958         * src/SDCCast.c (newAst_),
2959         * src/SDCCicode.h,
2960         * src/SDCCicode.c (ast2iCode, newiCode),
2961         * src/SDCCglobl.h,
2962         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
2963         expr, statement, expression_statement, selection_statement,
2964         iteration_statement, expr_opt, jump_statement): foundation for tracking
2965         sequence points
2966         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
2967         point code too)
2968
2969 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2970
2971         * support/Util/SDCCerr.c,
2972         * src/SDCCast.h,
2973         * src/SDCCast.c (createCase, createDefault, decorateType),
2974         * src/SDCClabel.c (labelUnreach),
2975         * src/SDCC.y (labeled_statement, jump_statement): More improvements
2976         to error messages.
2977         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
2978         (with thanks to Stas Sergeev)
2979         * device/include/time.h,
2980         * device/lib/time.c (CheckTime): suppress unreachable code warning
2981
2982 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2983
2984         * src/SDCCast.c (createIvalCharPtr),
2985         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
2986         bug #753752)
2987         * support/regression/tests/nullstring.c: tests for these two bugs
2988
2989 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2990
2991         * support/Util/SDCCerr.h,
2992         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
2993         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
2994         about storage class and 'at' used inside struct or union
2995         * src/SDCCBBlock.c (iCodeFromeBBlock),
2996         * src/SDCCcse.c (ifxOptimize),
2997         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
2998         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
2999         printIval, emitStaticSeg, emitOverlay),
3000         * src/SDCClabel.c (deleteIfx),
3001         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
3002         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
3003         gatherAutoInit, processParms),
3004         * support/Util/SDCCerr.h,
3005         * support/Util/SDCCerr.c (werrorfl): Support for better error location
3006         reporting for post-parse errors.
3007
3008 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3009
3010         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
3011         implicit casts via union; they don't work on big endian systems
3012         (possible fix for bug #861138)
3013
3014 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3015
3016         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
3017         * src/mcs51/main.c: fixed the fix for bug #737001
3018
3019 2003-12-15  Borut Razem <borut.razem AT siol.net>
3020
3021         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
3022
3023 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3024
3025         * support/makebin/makebin.c: put output in binary mode
3026
3027 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3028
3029         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
3030         xdata and data memory on startup. Set the environment variable
3031         SDCC_NOGENRAMCLEAR to disable this.
3032         * src/mcs51/peephole.def,
3033         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
3034         (allows non-interrupt and interrupt code to safely compete for a resource
3035         without the non-interrupt code having to disable interrupts)
3036
3037 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3038
3039         * src/SDCCicode.c (geniCodeAdd),
3040         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
3041         with valFromType if type might be a pointer and host is big endian).
3042         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
3043         types, not just integer types.
3044         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
3045         multiply defined with mismatching "at" address.
3046
3047 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3048
3049         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
3050         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
3051         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
3052         with embedded nulls (fixed bug #753752)
3053
3054 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3055
3056         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
3057         Apparently this did not see much testing (endless loop)
3058
3059 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3060
3061         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
3062
3063 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3064
3065         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
3066         gracefully handle NULL memmap pointers
3067
3068 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3069
3070         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
3071         instead of deleting the iCode when an operand is volatile
3072         * src/z80/gen.c (genDummyRead),
3073         * src/mcs51/gen.c (genDummyRead),
3074         * src/ds390/gen.c (genDummyRead),
3075         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
3076         not just IC_RIGHT
3077         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
3078         * src/SDCC.y: fixed bug #850420
3079
3080 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3081
3082         Applied z80 i/o port patch from Peter Townson and fixed some operators
3083         to better handle operands in A register.
3084         * device/include/z180.h
3085         * src/SDCC.y
3086         * src/SDCCglue.c
3087         * src/z80/gen.c
3088         * src/z80/gen.h
3089         * src/z80/main.c
3090         * src/z80/peeph-z80.def
3091         * src/z80/peeph.def
3092         * src/z80/z80.h
3093
3094 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3095
3096         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
3097
3098 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3099
3100         * device/lib/hc08/_mullong.c: Removed extra #endif
3101
3102 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3103
3104         * sim/ucsim/hc08.src/inst.cc,
3105         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
3106         carries from x to h
3107         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
3108         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
3109         * device/include/stdarg.h: fixed varargs for hc08
3110         * device/lib/Makefile.in,
3111         * device/lib/hc08/Makefile,
3112         * device/lib/hc08/_mulint.c,
3113         * device/lib/hc08/_mullong.c: fixed some endian problems
3114
3115 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3116
3117         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
3118         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
3119         * device/lib/_gptrget.c,
3120         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
3121
3122 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3123
3124         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
3125         * src/SDCCast.c (astErrors): fixed bug #846007
3126         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
3127
3128 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3129
3130         * src/SDCCast.c (decorateType): disabled a transformation I added in
3131         revision 1.188 (access to fields of a structure at an absolute address);
3132         it breaks with bitfields, extern declarations, and gcse analysis.
3133         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
3134         could be assigned through a pointer, so don't complain.
3135         * src/SDCCast.c (astErrors),
3136         * src/SDCCast.h,
3137         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
3138
3139 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
3140
3141         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
3142         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
3143         output of __config directives, since gpasm now supports them
3144         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
3145         pre-processor macro, i.e. -DMCU=p18f452
3146         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
3147         and modified to handle 'cast' icode similarly to '=' icode
3148         * src/pic16/device.h (typedef struct PIC_device): added field
3149         'extMIface' to indicate that chip has external memory interface
3150         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
3151         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
3152         18F8720
3153
3154 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3155
3156         * src/SDCC.y (pointer): fixed bug #846006
3157         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
3158         * src/SDCCast.c (decorateType): fixed bug #846009
3159         * src/ds390/peeph.def,
3160         * src/ds390/gen.c (genAnd, genOr),
3161         * src/mcs51/peeph.def,
3162         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
3163
3164 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3165
3166         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
3167         * src/SDCCdflow.c
3168         * src/SDCCcse.c
3169         * src/SDCCcse.h
3170         * src/SDCCBBlock.h
3171         * src/SDCCBBlock.c
3172
3173 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
3174
3175         fixed bug #845089
3176         * src/SDCCbitv.h,
3177         * src/SDCCbitv.c: added function to free a bitvector
3178         * src/SDCClrange.h,
3179         * src/SDCClrange.c: added function to recompute the liveranges
3180         * src/avr/ralloc.c,
3181         * src/ds390/ralloc.c,
3182         * src/hc08/ralloc.c,
3183         * src/mcs51/ralloc.c,
3184         * src/pic/ralloc.c,
3185         * src/pic16/ralloc.c,
3186         * src/xa51/ralloc.c,
3187         * src/z80/ralloc.c: recompute the liveranges after register packing
3188
3189 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
3190
3191         * src/SDCCloop.c (newInduction): fixed bug #845630
3192
3193 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3194
3195         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
3196         inadvertantly left behind from my 2003-11-12 change
3197
3198 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3199
3200         Updated headers I neglected to commit yesterday.
3201         * src/SDCClrange.h,
3202         * src/SDCCicode.h
3203
3204 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3205
3206         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
3207         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
3208         * src/SDCCopt.c (eBBlockFromiCode),
3209         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
3210         the creation of the key hash table from the sequencing so it can be used
3211         earlier (for some GCSE bug fixes still pending)
3212
3213 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3214
3215         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
3216         * support/regression/tests/addsub.c: testing genPlus shortcut
3217
3218 2003-11-15  Borut Razem <borut.razem AT siol.net>
3219
3220         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
3221
3222 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3223
3224         * src/SDCCcse.c (cseBBlock): fixed bug #527779
3225         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
3226         ordering is immaterial.
3227         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
3228
3229 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3230
3231         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
3232         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
3233         (SIGSEV) of bug #840381
3234         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
3235         unlink new file before rename if new and old filenames are the same)
3236
3237 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3238
3239         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
3240         uninitialized variables) for the mcs51. Set environment variable
3241         SDCC_GENRAMCLEAR to test.
3242         xdata initialization slightly shorter
3243
3244 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3245
3246         * src/SDCCsymt.h,
3247         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
3248         #838241 & 780691 (basicly the same bug)
3249         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
3250         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
3251
3252 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
3253
3254         * src/SDCCmain.c (linkEdit): "fix" #834252
3255
3256 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3257
3258         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
3259         * src/SDCCast.h,
3260         * src/SDCC.y: fixed bug #819403
3261
3262 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3263
3264         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
3265         the reentrant attribute.
3266         * src/hc08/gen.c (genPackBits): added missing stack readjustment
3267         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
3268         simulation
3269         * src/SDCCast.c (decorateType): fixed bug with storage class not being
3270         updated during pointer dereference; f.e. ~(((char *)1)*) was being
3271         erroneously reduced to a literal.
3272         * src/hc08/ralloc.c (packRegisters, rematStr),
3273         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
3274         some cases
3275
3276 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3277
3278         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
3279         * doc/sdccman.lyx: changed from 'article' to 'book'
3280         * doc/Makefile: readded test_suite_spec and cdbfileformat
3281
3282 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
3283
3284         * device/include/stdlib.h: include malloc.h to comply with ANSI
3285         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
3286
3287 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3288
3289         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
3290         * doc/clean.mk: also remove *.out files
3291         * doc/sdccman.lyx: some additions, larger top/bottom margins
3292
3293 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3294
3295         * src/SDCC.y: fixed bug #837365
3296         * support/regression/tests/bitopcse.c
3297         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
3298         a symbol (might be valop instead)
3299         * device/lib/Makefile.in: added errno.c to HC08SOURCES
3300         * device/lib/clean.mk: added hc08 to the cleaning list
3301
3302 2003-11-04  Borut Razem <borut.razem AT siol.net>
3303
3304         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
3305           made 2003-11-04
3306         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
3307           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
3308           malloc is declared in standard stdlib.h
3309
3310 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3311
3312         * device/lib/hc08/Makefile: need to clean .rel not .o files
3313         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
3314
3315 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3316
3317         * src/port.h,
3318         * src/hc08/main.c,
3319         * src/mcs51/main.c,
3320         * src/ds390/main.c,
3321         * src/z80/main.c,
3322         * src/avr/main.c,
3323         * src/pic/main.c,
3324         * src/pic16/main.c,
3325         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
3326         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
3327         tests (which uses the port's oclsExpense function)
3328         * src/SDCC.y,
3329         * src/SDCCast.c,
3330         * src/SDCCicode.c,
3331         * src/hc08/gen.c,
3332         * src/ds390/gen.c,
3333         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
3334
3335 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3336
3337         * src/SDCCcse.c (ifxOptimize),
3338         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
3339         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
3340         deleting the IFX iCode.
3341         * src/hc08/ralloc.c: reduced unneeded slocs
3342         * src/hc08/gen.c: fixed bug in asmopToBoolean
3343
3344 2003-11-04  Borut Razem <borut.razem AT siol.net>
3345
3346         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
3347           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
3348           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
3349           transferred to configure
3350
3351 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
3352
3353         Use headers defined in the C[++] standards:
3354         * sim/ucsim/gui.src/serio.src/fileio.cc
3355         * sim/ucsim/gui.src/serio.src/frontend.cc
3356         * sim/ucsim/gui.src/serio.src/main.cc
3357         * sim/ucsim/gui.src/serio.src/posix_signal.cc
3358         * support/Util/NewAlloc.c
3359         * as/hc08/lklibr.c
3360         * as/mcs51/lklibr.c
3361         * as/z80/aslist.c
3362         * as/z80/assym.c
3363
3364 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3365
3366         * Added MSVC projects for hc08 assembler and linker:
3367         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
3368         /as/hc08/link_hc08.dsp
3369
3370 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
3371
3372         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
3373
3374 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
3375
3376         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
3377
3378 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3379
3380         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
3381
3382 2003-10-31  Borut Razem <borut.razem AT siol.net>
3383
3384         * support/cpp2/cpplib.h,
3385           support/cpp2/cpplib.c,
3386           support/cpp2/cpplex.c,
3387           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
3388           to switch _asm block preprocessing on / off. Default is
3389           #pragma preproc_asm +
3390
3391 2003-10-31  Borut Razem <borut.razem AT siol.net>
3392
3393         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
3394           when outputting comment blocks (when executed with -C option) and
3395           _asm (SDCPP specific) blocks
3396
3397 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3398
3399         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
3400
3401 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
3402
3403         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
3404
3405 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
3406
3407         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
3408         * src/SDCCast.c (decorateType): fixed bug #832664
3409
3410 2003-10-31  Borut Razem <borut.razem AT siol.net>
3411
3412         * support\cpp2\cpplex.c: fixed for SDCPP:
3413           comments(when executed with -C option) and _asm blocks
3414           were included even if they where in skipped #if block.
3415           Applied solution from GCC cpp 3.3.2
3416
3417 2003-10-31  Borut Razem <borut.razem AT siol.net>
3418
3419         * src/SDCC.lex: sdcc now understands both formats:
3420           '# <line_number> <file_name>' and
3421           '#line <line_number> <file_name>'
3422         * support/cpp2/cppmain.c: sdcpp now generates the standard
3423           '# <line_number> <file_name>' instead of former
3424           '#line <line_number> <file_name>'
3425
3426 2003-10-30  Borut Razem <borut.razem AT siol.net>
3427
3428         * support/cpp2/cpphash.h,
3429         * support/cpp2/cpplib.h
3430         * support/cpp2/cpplex.c,
3431         * support/cpp2/cppmain.c,
3432         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
3433
3434 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3435
3436         Fixed a number of problems revealed by bug #827883.
3437         * src/SDCCloop.c (loopInvariants): Spill location of the
3438         result operand should be recomputed if extracted from
3439         a loop. Also, don't extract assignments of an iTemp
3440         from a literal.
3441         * src/SDCCast.c (isConformingBody): loop reversal should
3442         not occur if the control variable is involved with a
3443         relational operator.
3444
3445 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
3446
3447         * .version: bumped to 2.3.6 to reflect the big improvements
3448         made by Erik and Klaus. Thanks!
3449
3450 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
3451
3452         Replaced the livrange code.
3453         * src/SDCClrange.c: added new LR code
3454         * src/SDCCloop.c,
3455         * src/SDCCBBlock.h: removed remainig parts from old LR code
3456         * src/ds390/ralloc.c,
3457         * src/ds390/gen.c: minor fixes to make it work with new code
3458
3459 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3460
3461         * as/hc08/asm.h,
3462         * as/hc08/lkrloc.c,
3463         * src/hc08/gen.c,
3464         * src/hc08/ralloc.c: Fix various warnings related to the hc08
3465         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
3466         (tweaked fix for bug #818696)
3467
3468 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3469
3470         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
3471
3472 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3473
3474         * src/SDCCmain.c,
3475         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
3476         * src/mcs51/gen.c (gencjneshort),
3477         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
3478         more efficient (per Scott Bronson's suggestion)
3479
3480 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3481
3482         Extended the semantics of the critical keyword to include
3483         individual statements. See RFE #827755 and #799831
3484         * src/SDCC.y
3485         * src/SDCCicode.c
3486         * src/SDCCopt.c
3487         * src/SDCCast.c
3488         * support/Util/SDCCerr.c
3489         * support/Util/SDCCerr.h
3490         * src/mcs51/gen.c
3491         * src/ds390/gen.c
3492         * src/hc08/gen.c
3493
3494 2003-10-19  Borut Razem <borut.razem AT siol.net>
3495
3496         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
3497
3498 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3499
3500         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
3501         Fixed bug #818696
3502         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
3503         and predecrement operand is displayed
3504
3505 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
3506
3507         * src/SDCCval.c (valMinus): fixed bug #826041
3508
3509 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3510
3511         Some hc08 related updates that I missed earlier
3512         * sim/ucsim/stypes.h
3513         * support/regression/ports/hc08/spec.mk
3514
3515 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3516
3517         New target "hc08" for the Motorola 68hc08 family of micros
3518
3519         * configure
3520         * configure.in
3521         * Makefile
3522         * src/hc08/*
3523         * src/SDCCmain.c
3524         * src/port.h
3525         * sim/ucsim/hc08.src/*
3526         * sim/ucsim/configure.in
3527         * src/ucsim/configure
3528         * sim/ucsim/packages_in.mk
3529         * as/hc08/*
3530         * as/Makefile
3531         * device/include/mc68hc908qy.h
3532         * device/lib/hc08/*
3533         * device/lib/Makefile.in
3534         * support/regression/ports/hc08/*
3535         * support/regression/Makefile
3536
3537 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3538
3539         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
3540         regression test
3541         * src/ds390/gen.c (genCast): fixed bug #821957
3542
3543 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
3544
3545         * device/lib/logf.c: "fixed" overlay bug
3546         * support/regression/ports/host/spec.mk: added m library
3547         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
3548         * support/regression/tests/float_trans: added (for Eric)
3549
3550 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
3551
3552         * src/mcs51/gen.c (genCpl): fixed bug
3553         http://sf.net/mailarchive/message.php?msg_id=6263915
3554
3555 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
3556
3557         * src/SDCCast.c (decorateType): added extended constant folding
3558         * src/SDCCsymt.c (computeType): cleanup
3559         * src/SDCCval.c (valShift): minor optimization
3560         * support/regression/tests/ast_constant_folding.c: added
3561
3562 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3563
3564         * src/SDCCmain.c: removed some unintended changes
3565
3566 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3567
3568         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
3569         * src/z80/gen.c: fixed part of bug #817589
3570         * src/SDCCsymt.c (checkFunction): fixed bug #817895
3571
3572 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
3573
3574         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
3575         * src/SDCCcflow.c
3576         * src/SDCCcse.c
3577         * src/SDCCdflow.c
3578         * src/SDCClabel.c
3579         * src/SDCClrange.c
3580         * src/SDCCmem.c
3581         * src/SDCCopt.c
3582         * src/SDCCpeeph.c
3583         * src/SDCCset.c
3584         * src/avr/ralloc.c
3585         * src/ds390/ralloc.c
3586         * src/izt/ralloc.c
3587         * src/mcs51/ralloc.c
3588         * src/pic/ralloc.c
3589         * src/pic16/ralloc.c
3590         * src/xa51/ralloc.c
3591         * src/z80/ralloc.c
3592         * src/z80/gen.c: removed unused label "release:"
3593
3594 2003-10-06  Borut Razem <borut.razem AT siol.net>
3595
3596         * src/SDCC.lex: removed definition of unused variables
3597           save_optimize and save_options
3598
3599 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3600
3601         * clean.mk: removed '=' in "-maxdepth=1"
3602         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
3603         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
3604
3605 2003-10-06  Borut Razem <borut.razem AT siol.net>
3606
3607         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
3608           my_unput() replaced by unput()
3609
3610 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
3611
3612         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
3613         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
3614         type-punned pointer will break strict-aliasing rules"
3615         Old LR behaviour is again default; Klaus' LR can be choosen by
3616         defining the environment variable LRKLAUS
3617         * src/SDCCBBlock.h
3618         * src/SDCCloop.c
3619         * src/SDCClrange.c
3620         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
3621         * clean.mk: fixed removal of files in bin/CVS/
3622         * device/lib/clean.mk: fixed removal of directories small and large
3623         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
3624         * src/SDCCicode.c,
3625         * src/SDCCval.c: removed superflous test for pedantic
3626
3627 2003-10-05  Borut Razem <borut.razem AT siol.net>
3628
3629         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
3630           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
3631           message "unmatched #pragma SAVE and #pragma RESTORE"
3632
3633 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3634
3635         * doc/sdccman.lyx: various additions and updates (interrupts, inline
3636           assembly, critical functions, atomic, nojtbound)
3637
3638 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
3639
3640         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
3641         * src/SDCCBBlock.h
3642         * src/SDCCloop.c
3643         * src/SDCCloop.h
3644         * src/SDCClrange.c
3645
3646 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3647
3648         * src/z80/gen.h,
3649         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
3650         * src/mcs51/gen.h
3651         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
3652         * src/ds390/gen.h
3653         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
3654         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
3655         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
3656
3657 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3658
3659         * src/z80/gen.c (genRet): fixed bug #524753
3660         * src/z80/gen.c (genCast): fixed internal error on cast from
3661         pointer to long
3662         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
3663         fix for bug #477835 to the z80
3664         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
3665         for tracking iCodes in the peephole optimizer for z80
3666
3667 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3668
3669         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
3670         the other part of bug #814548
3671         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
3672
3673 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
3674
3675         * src/SDCCcse.c: fixed part of bug #814548
3676
3677 2003-09-28  Borut Razem <borut.razem AT siol.net>
3678
3679         * src/asm.c: rewrite of printILine() to use temporary file instead
3680           a pipe
3681         * src/xa51/main.c: commented out declaration of int rewinds
3682
3683 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3684
3685         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
3686
3687 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3688
3689         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
3690         * src/asm.c (printILine): Fixed bug #811015
3691
3692 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3693
3694         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
3695         freeing.
3696
3697 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3698
3699         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
3700         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
3701         to correctly handle general case of AOP_PAIRPTR
3702         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
3703
3704 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3705
3706         * src/mcs51/ralloc.c (fillGaps),
3707         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
3708         register positioning bug)
3709
3710 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
3711
3712         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
3713
3714 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3715
3716         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
3717         genCodePointerGet, genGenPointerGet, genFarPointerSet,
3718         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
3719         (ralloc doesn't intentionally do this now, but perhaps later)
3720         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
3721         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
3722         register positioning bugs (Fixed bug #762602 and #795325)
3723         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
3724         (Fixed bug #808779)
3725         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
3726         lines that --i-code-in-asm generates
3727
3728 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3729
3730         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
3731         trying to fclose a FILE* that was already closed.
3732
3733 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3734
3735         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
3736         of const struct should be treated as if const themselves)
3737
3738 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
3739
3740         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
3741
3742 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3743
3744         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
3745         Unix (/n) and DOS (/r/n) line terminations.
3746
3747 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3748
3749         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
3750         bug #613775
3751
3752 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3753
3754         * src/mcs51/gen.c (genFunction, genEndFunction),
3755         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
3756         and restore of EA so that stack offsets to parameters are
3757         correct when using both critical and reentrant/stack-auto.
3758         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
3759         size (can be triggered in error if sloc is shared between
3760         different sized objects)
3761         * device/include/float.h: fixed macros to explicitly use
3762         unsigned long where needed
3763
3764 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
3765
3766         Feature req. 799831: added code to allow nesting of critical functions
3767         * src/mcs51/gen.c (genFunction, genEndFunction)
3768         * src/ds390/gen.c (genFunction, genEndFunction)
3769
3770 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3771
3772         * src/SDCCsymt.c (sclsFromPtr),
3773         * src/SDCCsymt.h,
3774         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
3775         support for standard C idiom of memory mapped variables; for
3776         example, *((xdata int*)0x1234) = 1 is now internally equivalent
3777         to xdata int at 0x1234 tempvar = 1.
3778         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
3779         provided by Akiya ISHIDA
3780
3781 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
3782
3783         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
3784         * src/SDCCval.c (constVal): added reduction from int to char
3785         * src/SDCCval.c (valMult, valDiv): fixed sign handling
3786         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
3787         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
3788         to ignore the sign
3789         * support/regression/tests/shifts.c: fixed
3790
3791 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3792
3793         * src/z80/gen.c (genXor): Fixed bug #805445
3794
3795 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3796
3797         Fixed bug #621531 (const & volatile confusion in the type chain).
3798         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
3799         refer to the const or volatile state of the pointer itself.
3800
3801         * src/SDCCast.c
3802         * src/SDCCglue.c
3803         * src/SDCCicode.c
3804         * src/SDCCsymt.c
3805         * src/SDCCval.c
3806         * src/SDCC.y
3807         * src/SDCCsymt.h
3808         * src/pic/gen.c
3809         * src/pic/ralloc.c
3810         * src/pic16/gen.c
3811         * src/pic16/ralloc.c
3812         * support/regression/tests/const.c
3813
3814 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3815
3816         When checking for duplicated modules, use absolute paths
3817         instead of relative paths.  Files changed:
3818
3819         * as/mcs51/lklib.c
3820         * link/z80/lklib.c
3821
3822 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3823
3824         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
3825
3826 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3827
3828         * device/include/string.h: added size_t typedef, changed
3829         prototypes to use size_t, eliminated separate reentrant and
3830         non-reentrant declarations, added _memmove declaration
3831         * device/lib/_memcpy.c: changed to use size_t instead of int,
3832         changed /4 to >>2 to avoid division library call
3833         * device/lib/_memcmp.c,
3834         * device/lib/_memset.c,
3835         * device/lib/_strncat.c,
3836         * device/lib/_strncpy.c,
3837         * device/lib/_strncmp.c: changed to use size_t instead of int
3838         * device/lib/_memmove.c: new file (fixed bug #772294)
3839         * device/lib/Makefile.in: added _memmove.c
3840         * device/lib/z80/asm_strings.s: fixed bug #772290
3841         * support/regression/tests/bitfields.c: attempt to fix host assertion
3842         failure on amd64-unknown-linux2.2
3843
3844 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3845
3846         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
3847         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
3848         * as/z80/asmain.c (main): fixed bug #801766
3849
3850 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
3851
3852         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
3853         compilers
3854
3855 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3856
3857         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
3858         reported in bug #800609
3859
3860 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
3861
3862         * Top header beautifications in src/pic16 directory:
3863           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
3864           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
3865           pcoderegs.h, ralloc.c, ralloc.h
3866         * main.c: added top header and GPL license notice
3867         * pcode.c: fixed the if-conditional warning
3868
3869 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
3870
3871         * device/lib/_mullong.c: replaced int by short for gcc
3872
3873 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3874
3875         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
3876         and JUMPTABLE iCodes properly now (worked by accident before)
3877         * src/mcs51/gen.c (leftRightUseAcc),
3878         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
3879         iCode properly now. Use getSize instead of nRegs since a & b
3880         aren't part of the nRegs tally.
3881
3882 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
3883
3884         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
3885         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
3886           before instructions that use the _STATUS register
3887
3888 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
3889
3890         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
3891         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
3892         fetching of the pointer
3893         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
3894         copied from genNearPointerSet()
3895         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
3896         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
3897         If they pop r0/r1 they must be called in the opposite order than aopOp().
3898         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
3899         (resp. --stack-auto), prepared for --xstack
3900
3901 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3902
3903         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
3904
3905 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
3906
3907         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
3908         these ports have their own __sdcc_external_start()
3909
3910 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
3911
3912         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
3913         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
3914         type for bits was changed. It resulted in bit variables becoming
3915         global, which is not permitted in PIC 14 assembly output.
3916
3917 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3918
3919         * doc/sdccman.lyx: various additions and updates. Rearranged sections
3920
3921 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3922
3923         Z80 and MCS51 linkers complaint if a public symbol is defined
3924         in more than one library module:
3925
3926         * as/mcs51/lklib.c
3927         * link/z80/lklib.c
3928         * as/mcs51/Makefile.in
3929
3930 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3931
3932         A few small changes that speed up the peephole optimizer.
3933
3934         * src/SDCCpeeph.c
3935
3936 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3937
3938         Try to make the peephole optimizer smarter by maintaining
3939         an association between the assembly source code and the
3940         iCodes that originated them. Put this information to use
3941         with a new peephole rule condition "notVolatile" so that
3942         the rules can be aggressive yet still safe.
3943
3944         * src/SDCCpeeph.c
3945         * src/SDCCpeeph.h
3946         * src/mcs51/gen.c
3947         * src/mcs51/peeph.def
3948
3949 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3950
3951         Fixed bug #741761
3952
3953         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
3954         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
3955         if the left or right operand symbols have the accuse flag set.
3956
3957 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3958
3959         Changed the type of the result of the ! (NOT) operator to char;
3960         previously it returned the same type as the source. This allows
3961         us to eliminate all the genFloatNot functions (all of its target
3962         implementations were very buggy) since !float can use the same
3963         code as !long now.
3964
3965         * src/SDCCicode.c (ast2iCode): ! returns char
3966         * src/mcs51/gen.c (genNot, genNotFloat),
3967         * src/ds390/gen.c (genNot, genNotFloat),
3968         * src/z80/gen.c (genNot, genNotFloat),
3969         * src/pic/gen.c (genNot, genNotFloat),
3970         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
3971
3972 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
3973
3974         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
3975         1. Interrupt would not compile properly. Ensure PCLATH register is saved
3976            during interrupts. Ensure WSAVE is located at a shared bank address.
3977         2. Fixed page selection in some places
3978         3. Fixed BTFSS/C to where necessary use registers directly and not simply
3979            the registers name strings.
3980         4. Fixed "signed / unsigned compare" compiler warnings.
3981         5. The PIC port manages its own allocation of the general purpose
3982            registers, but makes no attempt to reuse them. As a result when
3983            compiling it soon runs out of general purpose registers. Some
3984            additional code was added to the files pcode.c and device.c to walk
3985            through the function call tree and rename the registers so that they
3986            get reused.
3987
3988         * src/pic/device.c
3989         * src/pic/gen.c
3990         * src/pic/glue.c
3991         * src/pic/pcode.c
3992         * src/pic/pcode.h
3993         * src/pic/ralloc.c
3994         * src/pic/ralloc.h
3995         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
3996         genPlus() & genMinus() when the result is the same as left or right
3997
3998 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3999
4000         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
4001
4002 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4003
4004         Made bitfield a distinct type from bit so that bitfields
4005         convert as per ANSI C and bits retain their traditional
4006         boolean style behaviour. Implemented bitfield support in
4007         the z80 port.
4008
4009         * src/SDCCsymt.h,
4010         * src/SDCCsymt.c,
4011         * src/SDCCast.c,
4012         * src/cdbFile.c,
4013         * src/mcs51/gen.c,
4014         * src/ds390/gen.c: bit v bitfield split
4015         * src/z80/gen.c: New support for bitfields
4016         * support/regression/tests/bitfields.c: reenabled z80,
4017         added more tests
4018
4019 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4020
4021         Rules 246.x, 247.x relate to bitfields, the others speed up
4022         access to xdata mapped I/O devices.
4023
4024         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
4025
4026 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4027
4028         Cleaned up genPackBits and genUnpackBits and added two helper
4029         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
4030         for literal assignments in genPackBits (thanks to Frieder for
4031         reminding me).
4032
4033         * src/mcs51/gen.c
4034         * src/ds390/gen.c
4035
4036 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4037
4038         Fixed bug #748310 (pointer to function type mishandled when the
4039         function name is omitted). Also fixed a SIGSEGV when a function
4040         attribute (reentrant, etc) is used on a non-function or on a
4041         function but misplaced before the parameter list.
4042
4043         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
4044         bug #748310
4045         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
4046         * support/Util/SDCCerr.h,
4047         * support/Util/SDCCerr.c: Added func attr misuse error msg
4048
4049 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
4050
4051         Fixed bug #787649 by anonymous
4052         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
4053         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
4054
4055 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4056
4057         Fixed numerous bitfield problems.
4058
4059         * src/SDCC.y: More bitfield related error checking
4060         * src/SDCCsymt.h,
4061         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
4062         * support/Util/SDCCerr.h,
4063         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
4064         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
4065         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
4066         * support/regression/tests/bitfields.c: tests added
4067
4068 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4069
4070         Made the constant following the "interrupt" keyword optional. If
4071         omitted, the function will not automatically be given an entry
4072         in the interrupt vector table (similar to #pragma NOIV, but
4073         less syntacticly kludgy). The interrupt number is also now
4074         range checked. Also fixed a bug in the high order bit example
4075         in the manual.
4076
4077         * src/SDCC.y
4078         * src/SDCCmem.c
4079         * src/SDCCglue.c
4080         * src/SDCCsymt.h
4081         * support/Util/SDCCerr.c
4082         * support/Util/SDCCerr.h
4083         * doc/sdccman.lyx
4084
4085 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
4086
4087         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
4088         * src/SDCCicode.c (operandOperation): rewritten some ops
4089         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
4090         * src/SDCCsymt.c (computeType): literals are handled the same way as any
4091         other type
4092         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
4093         be re-activated by defining REDUCE_LITERALS)
4094         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
4095         unsigned, but are signed by default
4096         * src/SDCCval.c (constVal): rearranged
4097         * src/SDCCval.c (valMod): preliminary fix
4098         * src/SDCCval.c (valCastLiteral): use TYPE_* types
4099         * support/regression/literalop.c: added, work in progress
4100
4101 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4102
4103         Generate warnings for useless declarations like "char data;"
4104         that don't do what new users expect.
4105
4106         * src/SDCC.y
4107         * support/Util/SDCCerr.h
4108         * support/Util/SDCCerr.c
4109
4110 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
4111
4112         * src/SDCCval.c (valMult): fix overflow detection of negative int
4113
4114 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4115
4116         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
4117
4118         Changes to support big endian targets:
4119
4120         * src/ports.h
4121         * src/SDCCglue.c
4122         * src/avr/main.c
4123         * src/ds390/main.c
4124         * src/izt/i186.c
4125         * src/mcs51/main.c
4126         * src/pic/main.c
4127         * src/pic16/main.c
4128         * src/xa51/main.c
4129         * src/z80/main.c
4130
4131 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
4132
4133         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
4134         * device/lib/time.c: fixed warning "integer overflow in expression"
4135
4136 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
4137
4138         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
4139         * src/SDCCval.c (constVal): changed default to signed; hex and octal
4140         constants are unsigned; added recognition of "u" flag for unsigned
4141         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
4142         * src/SDCCval.c (valDiv, valMod): fixed signdness
4143         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
4144         signedness of modulo, left and right shift
4145         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
4146         * support/Util/SDCCerr.h: added warning W_INT_OVL
4147         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
4148         * src/SDCCast.c (ast_print): improved output of constants
4149
4150 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4151
4152         Fixed some warnings when building with MSVC:
4153
4154         * as\mcs51\asdata.c
4155         * as\z80\asdata.c
4156         * as\mcs51\asm.h
4157         * as\z80\asm.h
4158         * link\z80\aslink.h
4159         * link\z80\lkdata.c
4160         * link\z80\lkeval.c
4161         * link\z80\lkgb.c
4162         * link\z80\lkihx.c
4163         * link\z80\lks19.c
4164         * link\z80\lksym.c
4165         * support\cpp2\cpplib.c
4166         * src\ds390\gen.c
4167         * src\mcs51\gen.c
4168
4169 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
4170
4171         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
4172
4173 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4174
4175         * support\librarian\clean.mk: Do not remove Makefile.
4176         * support\librarian\Makefile: added.
4177
4178 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4179
4180         Added librarian to MSVC build:
4181         * all.dsp
4182         * sdcc.dsw
4183         * support\librarian\librarian.dsp
4184
4185         'configure' not needed for librarian, removed:
4186         * support\librarian\configure
4187         * support\librarian\configure.in
4188         * support\librarian\config_in.h
4189         * support\librarian\Makefile.in
4190
4191         Hopefully these ones built the librarian and the rest of sdcc properly:
4192         * Makefile
4193         * Makefile.common.in
4194
4195         Messed up 'configure', so revert to previous version:
4196         * configure
4197         * configure.in
4198
4199 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
4200
4201         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
4202         there, while the mantissa of a double is "only" 53 bits wide.
4203
4204 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4205
4206         Adding sdcclib to the build.  MSVC project coming soon.
4207         Files added/changed:
4208
4209         * support\librarian\clean.mk
4210         * support\librarian\configure
4211         * support\librarian\configure.in
4212         * support\librarian\config_in.h
4213         * support\librarian\Makefile.bcc
4214         * support\librarian\Makefile.in
4215         * support\librarian\sdcclib.c
4216         * Makefile.bcc
4217         * Makefile
4218         * Makefile.common.in
4219         * configure
4220         * configure.in
4221
4222 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4223
4224         Linker now complaints if linked modules have conflicting options, for
4225         example, one compiled using --model-large and another one compiled with
4226         --model-small.  The following files were modified:
4227
4228         * as\mcs51\asdata.c
4229         * as\mcs51\aslink.h
4230         * as\mcs51\asm.h
4231         * as\mcs51\asmain.c
4232         * as\mcs51\asout.c
4233         * as\mcs51\i51pst.c
4234         * as\mcs51\lkdata.c
4235         * as\mcs51\lklibr.c
4236         * as\mcs51\lkmain.c
4237         * as\z80\asdata.c
4238         * as\z80\asm.h
4239         * as\z80\asmain.c
4240         * as\z80\asout.c
4241         * as\z80\z80pst.c
4242         * link\z80\aslink.h
4243         * link\z80\lkdata.c
4244         * link\z80\lklibr.c
4245         * link\z80\lkmain.c
4246         * src\SDCCglue.c
4247
4248 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4249
4250         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
4251         as/mcs51/lklibr.c: Generate a warning when a library is not found.
4252
4253 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
4254
4255         * src/z80/mappings.i: fix _mul[us][int,long] entries
4256
4257 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4258
4259         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
4260
4261 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
4262
4263         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
4264         * support/regression/tests/bitopcse.c: added
4265         fixed warning:
4266         * src/avr/gen.c:
4267         * src/pic/gen.c:
4268         * src/pic16/gen.c:
4269         * src/z80/gen.c:
4270         * src/xa51/gen.c:
4271
4272 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4273
4274         added support for new library format to z80, gbz80 linkers:
4275         *link/z80/aslink.h
4276         *link/z80/lklex.c
4277         *link/z80/lklib.c
4278         *link/z80/lklist.c
4279
4280 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
4281
4282         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
4283         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
4284
4285 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
4286
4287         added DUMMY_READ_VOLATILE:
4288         * src/SDCC.y:
4289         * src/avr/gen.c:
4290         * src/xa51/gen.c:
4291         * src/z80/gen.c:
4292         * src/pic/gen.c:
4293         * src/pic16/gen.c:
4294         * src/mcs51/gen.c:
4295         * src/ds390/gen.c:
4296         * src/SDCCcse.c (algebraicOpts): many improvements
4297         * src/SDCCcse.h: removed algebraicOpts()
4298         * src/SDCCicode.c (picDummyRead): added
4299
4300 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4301
4302         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
4303         "Insufficient space in data memory".
4304
4305 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4306
4307         * src/mcs51/gen.c: fixed bug #771358
4308         * src/z80/gen.c: fixed bug #759087
4309
4310 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
4311
4312         * src/pic16/glue.c: minor cleanup by Vangelis
4313
4314 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4315
4316         * device/include/regc515c.h: fixed #758477
4317         * device/lib/_gptrget.c: saving some cycles in generic pointer get
4318         * device/lib/_gptrput.c: saved a few bytes
4319         * my tab spacing is 8, yours too?)
4320         * device/lib/_ser.c: process RX bytes earlier than TX bytes
4321         * device/lib/serial.c: process RX bytes earlier than TX bytes
4322         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
4323
4324 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4325
4326         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
4327
4328 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4329
4330     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
4331
4332 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
4333
4334         * device/lib/Makefile.in: bad fix, reverted to 1.43
4335
4336 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
4337
4338         * device/lib/Makefile.in: added missing z80 object files
4339
4340 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
4341
4342         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
4343         pic16 progress by Vangelis:
4344         * src/SDCCglobl.h:
4345         * src/SDCCmain.c:
4346         * src/pic/Makefile:
4347         * src/pic:
4348         * pic/Makefile:
4349         * pic16/device.c:
4350         * pic16/device.h:
4351         * pic16/gen.c:
4352         * pic16/gen.h:
4353         * pic16/genarith.c:
4354         * pic16/glue.c:
4355         * pic16/main.c:
4356         * pic16/pcode.c:
4357         * pic16/pcode.h:
4358         * pic16/pcodepeep.c:
4359         * pic16/peeph.def:
4360
4361 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4362
4363     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
4364
4365 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4366
4367     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
4368     added gbz80 build to MSVC project.
4369     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
4370     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
4371     from 8051 stuff and setup so it links using a .lnk file.
4372
4373 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4374
4375     * support/librarian/sdcclib.c: sdcc librarian.
4376     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
4377     with sdcclib.
4378
4379 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4380
4381     * as/mcs51/lkmain.c: properly handle extensions in function afile.
4382
4383 2003-07-02  Borut Razem <borut.razem AT siol.net>
4384
4385         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
4386         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
4387         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
4388         src/xa51/main.c, src/z80/main.c:
4389         virtualization of glue() function: each port has it's own glue function,
4390         which is accessed by do_glue function pointer in PORT.general structure
4391
4392 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
4393
4394         * DS800C400 fun, improved ROM interface and tinibios.
4395
4396 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
4397
4398         * More support for DS80C400. Now includes beginning of interface to ROM.
4399
4400 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
4401
4402         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
4403
4404 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4405
4406         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
4407
4408 2003-06-19  Borut Razem <borut.razem AT siol.net>
4409
4410         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
4411
4412 2003-06-19  Borut Razem <borut.razem AT siol.net>
4413
4414         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
4415         fixed Z80 port - crt0.o: cannot open.
4416
4417 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
4418
4419         * support/Util/MySystem.c (merge_command): revert bad fix
4420
4421 2003-06-18  Borut Razem <borut.razem AT siol.net>
4422
4423         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
4424
4425 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4426
4427         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
4428         option --use-stdout sends errors to stdout instead of stderr.
4429
4430 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
4431
4432         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
4433
4434 2003-06-15  Borut Razem <borut.razem AT siol.net>
4435
4436         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
4437         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
4438         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
4439         fixed width array of pointers replaced with sets;
4440         multiple include and lib paths ared transferred to preprocessor and linker
4441         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
4442         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
4443         fixed width array of pointers
4444         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
4445         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
4446         fixupPath(), getPathDifference()
4447         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
4448         fixed width array of pointers
4449
4450 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
4451
4452         * src/pic16/ralloc.c: fix warnings
4453         * src/pic16/pcode.c: fix warning
4454
4455 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
4456
4457          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
4458         know all the details, but essentially this set of changes enable
4459         the pic16 port to generate movff instructions and generate assembler
4460         directives,
4461         * src/SDCCmain.c:
4462         * src/pic16/gen.c:
4463         * src/pic16/glue.c:
4464         * src/pic16/pcode.c:
4465         * src/pic16/device.c:
4466         * src/pic16/main.c:
4467         * src/pic16/pcode.h:
4468         * src/pic16/pcoderegs.c:
4469         * src/pic16/ralloc.c:
4470         * src/pic16/ralloc.h:
4471
4472 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4473
4474         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
4475         added option --vc, so sdcc errors and warnings are compatible with
4476         Microsoft Visual Studio.
4477
4478 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4479
4480         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
4481           device/lib/libfloat.lib: added atof function.
4482
4483 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
4484
4485         * doc/sdccman.lyx: updated to Lyx 1.3
4486         * doc/cdbfileformat.lyx: updated to Lyx 1.3
4487         * doc/test_suite_spec.lyx: updated to Lyx 1.3
4488         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
4489
4490 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
4491
4492         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
4493
4494 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4495
4496         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
4497           additions to the "related tools/documentation" section
4498
4499 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
4500
4501         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
4502
4503 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
4504
4505         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
4506         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
4507
4508 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
4509
4510         * doc/sdccman.lyx: fix double dash and other minor things
4511         * doc/Makefile: fix double dash
4512
4513 2003-05-28  Karl Bongers(patches from Martin Helmling)
4514         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
4515           condition and ignore commands.
4516
4517 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4518
4519         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
4520           is in parts still quite out of date, I did changes as far as I felt makes sense
4521           for a non-native english speaker.
4522           Please feel free to add to the manual or to correct my changes.
4523         * doc/Makefile: undid touching the date of intermediate tex files.
4524
4525 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4526
4527         * doc/sdccman.lyx: Manual has an index now
4528
4529 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
4530
4531         Finalize muluint/mulsint and mululong/mulslong merging:
4532         * device/lib/_mulint.c
4533         * device/lib/_mullong.c
4534         * device/lib/gbz80/mul.s
4535         * device/lib/gbz80/stubs.s
4536         * device/lib/z80/mul.s
4537         * device/lib/z80/stubs.s
4538         * src/SDCCsymt.c (initCSupport)
4539
4540 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4541
4542         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
4543         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
4544           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
4545           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
4546           instead of /Zm500.
4547
4548 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4549
4550         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
4551           the regression tests I'm not brave enough to enable 245.b, 245.c
4552         * doc/sdccman.lyx: added latex preamble for hyperref package.
4553           Using pdflatex this will give you a hyperlinked pdf file with
4554           bookmarks. (prepend '%' before /usepackage if this breaks something)
4555
4556 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4557
4558          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
4559
4560 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
4561
4562         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
4563
4564 2003-05-21    <johan AT balder>
4565
4566         * src/SDCCglue.c (printIval): fixed bug #739934
4567
4568 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
4569
4570         Applied patch from bug 737905 (renamed yylineo to mylineno):
4571         * src/altlex.c
4572         * src/SDCCast.c
4573         * src/SDCglobl.h
4574         * src/SDCC.lex
4575         * src/SDCCsymt.c
4576         * src/SDCCval.c
4577         * src/pic16/pcode.c: Cleaned warnings
4578         * src/pic16/pcodeflow.c: Cleaned warnings
4579         * src/pic16/pcoderegs.c: Cleaned warnings
4580
4581 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
4582
4583         * src/pic16/pcode.c: Cleaned warnings
4584         * src/pic16/pcodepeep.c: Cleaned warnings
4585         * src/pic16/ralloc.c: Cleaned warnings
4586
4587 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
4588
4589         * doc/sdccman.lyx: fixed bug 739745
4590         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
4591
4592 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
4593
4594         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
4595         it can be defined with CFLAGS when running configure
4596         * src/SDCCmain.c: fixed compiling + linking with object files
4597
4598 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
4599
4600         * configure.in: configure for pic16 port,
4601             added --disable-pic16-port
4602         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
4603         * src/SDCCmain.c: linkOptions is changed to set *,
4604             added if/endif conditional macros to remove options help
4605             messages from optionsTable when a port is not configured, added
4606             support for the PIc16 port in the ports table, when executing
4607             the compiler with no port specified on command line, a default
4608             port is selected with the new macro DEFAULT_PORT which is
4609             defined in port.h, in setDefaultOptions() linkOptions is removed
4610             from initialization assignment, since now it is a set,
4611             parseCmdLine uses setParseWithComma for linkOptions, in
4612             linkEdit() linkOptions are accessed with new function indexSet()
4613             which returns the i'th item of a set variable. See SDCCset.c, in
4614             linkEdit() when calling buildCmdLine(), added linkOptions as
4615             last argument. Now users can pass arguments to gplink via the
4616             -Wl option, main() uses pic16glue() to glue up pic16 programs
4617         * src/SDCCpeeph.c: various changes to support pic16
4618         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
4619             return the i'th item of the set
4620         * src/SDCCset.h: added function prototype for indexSet()
4621         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
4622         * src/clean.mk: added pic16 in CLEANALLPORTS variable
4623         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
4624             added macro DEFAULT_PORT
4625         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
4626         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
4627             generated
4628         * src/pic16/glue.c: commented out some error producing lines
4629         * src/pic16/main.c: __config directives are commented out to stop
4630             gpasm complaining and test the linkage with gplink, _linkCmd and
4631             _asmCmd changed to be more gplink and gpasm friendly
4632         * src/pic16/peeph.def: peep rule 3 is commented out, since it
4633             produced an error when parsed, peep rule 12 is added to utilize
4634             movff, but it is commented out since the pCode does not support
4635             yet a command with 2 address arguments
4636
4637 2003-05-18    <johan AT balder>
4638
4639         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
4640         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
4641 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
4642
4643         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
4644   Added feature to script commands from file.
4645
4646 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
4647
4648         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
4649         * src/SDCCutil.c: include ctype.h for win32
4650
4651 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
4652
4653         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
4654
4655 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
4656
4657         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
4658   Fixed so you can set breakpoints prior to run, run does not stop
4659   on entry now.  Add tbreak.  Other enhancements and fixes for use
4660   with ddd.
4661
4662 2003-05-12  Borut Razem <borut.razem AT siol.net>
4663
4664         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
4665
4666 2003-05-11  Borut Razem <borut.razem AT siol.net>
4667
4668         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
4669         the path of bin directory, so that PATH is the only env. variable, which has to be set
4670         in case of standard installation.
4671         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
4672         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
4673         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
4674
4675 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
4676
4677         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
4678         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
4679         temp files are in the port dir; clean the gen/test directory when
4680         generating new test.c
4681         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
4682         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
4683         * support/regression/tests/zeropad.c: added
4684
4685 2003-05-09    <johan AT balder>
4686
4687         * src/SDCCglue.c: fixed bug #597940
4688
4689 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
4690
4691         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
4692   cache sfr, optimize next,step, fix off by one sourceline,
4693   support ddd list function.
4694         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
4695
4696 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
4697
4698         * support/regression/HTMLgen.py: added compare_s2f()
4699         * support/regression/Makefile: redo 1.27
4700         * support/regression/generate-cases.py: redo 1.5
4701
4702 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
4703
4704         * support/regression/tests/float.c: workaround 33 bit hex constant
4705         * support/regression/tests/simplefloat.c: fix division for host
4706
4707 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
4708
4709         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
4710         that tame's the PIC's over-aggressive optimizer.
4711
4712 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4713
4714          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
4715          support for MSVC.
4716
4717 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
4718
4719         Initial support for DS80C400. "Hello world" runs on TINIm400
4720         (with polled I/O).
4721
4722 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
4723
4724          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
4725          * Some notes on ddd usage added in debugger/README
4726          Martin Helmling adding more features and fixes for ddd GUI debugger.
4727          Code added for nexti, stepi, up, down, and other adjustments.
4728
4729 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
4730
4731         * src/pic/pCodepeep.c non-wildcard asmops are now handled
4732         * src/pic/peeph.def Added two rules to optimize carry manipulation
4733         * src/pic/* removed debug printfs
4734
4735 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
4736
4737         * debugger/mcs51/cmd.c: added header newalloc.h
4738
4739 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
4740
4741         * as/Makefile: new EXEEXT
4742         * as/z80/Makefile: remove trailing slash of BUILDIR
4743         * as/z80/clean.mk: new EXEEXT
4744         * Makefile.common.in: add to CFLAGS (and others), don't replace it
4745         * support/cpp2/Makefile.in: new EXEEXT
4746         * src/pic/glue.c (pic14emitRegularMap): fixed warning
4747
4748 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
4749
4750         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
4751         EXEEXT was introduced to fix all related problems with targets
4752         "clean", "install" and "uninstall"; a couple of further flaws
4753         especially with "clean" have been fixed too
4754         * as/mcs51/Makefile.in
4755         * as/mcs51/clean.mk
4756         * as/z80/Makefile
4757         * Makefile
4758         * clean.mk
4759         * debugger/mcs51/Makefile.in
4760         * debugger/mcs51/clean.mk
4761         * link/z80/Makefile
4762         * link/z80/Makefile.in
4763         * link/z80/clean.mk
4764         * link/Makefile
4765         * packihx/Makefile.in
4766         * packihx/clean.mk
4767         * sim/ucsim/Makefile
4768         * sim/ucsim/clean.mk
4769         * sim/ucsim/avr.src/Makefile.in
4770         * sim/ucsim/avr.src/clean.mk
4771         * sim/ucsim/s51.src/Makefile.in
4772         * sim/ucsim/s51.src/clean.mk
4773         * sim/ucsim/xa.src/Makefile.in
4774         * sim/ucsim/xa.src/clean.mk
4775         * sim/ucsim/z80.src/Makefile.in
4776         * sim/ucsim/z80.src/clean.mk
4777         * sim/ucsim/main_in.mk
4778         * sim/ucsim/packages_in.mk
4779         * sim/ucsim/gui.src/Makefile.in
4780         * sim/ucsim/gui.src/serio.src/Makefile.in
4781         * sim/ucsim/gui.src/serio.src/clean.mk
4782         * src/Makefile.in
4783         * src/clean.mk
4784         * support/cpp2/Makefile.in
4785         * support/cpp2/clean.mk
4786         * support/makebin/Makefile
4787         * support/makebin/clean.mk
4788         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
4789         * doc/sdccman.lyx: --program-suffix no longer needed
4790
4791 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
4792
4793          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
4794          Martin Helmling added support for ddd GUI debugger.
4795          Code added to display assembly, set variables, and other commands
4796          to interface to ddd.
4797
4798 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
4799
4800         * as/Makefile: fix target clean
4801         * as/clean.mk: fix target clean
4802         * as/z80/clean.mk: fix target clean
4803
4804 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
4805
4806         * Makefile.common.in: added  AT EXEEXT AT
4807         * configure.in: removed all mingw32 stuff
4808         * configure: rebuilt from configure.in
4809         * doc/sdccman.lyx: updated section "installation"
4810         * support/scripts/sdcc_mingw32: adapted to configure
4811         * support/scripts/sdcc_cygwin_mingw32: added
4812
4813 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
4814
4815         * src/pic Added object file support for the PIC port
4816         * src/pic Applied patch from Craig Franklin (this started the object file support)
4817         * src/regression Updated the PIC regression tests for object files
4818
4819 2003-04-20  Borut Razem <borut.razem AT siol.net>
4820
4821         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
4822           lklex.c: In function `getfid':
4823           lklex.c:203: warning: array subscript has type `char'
4824         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
4825           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
4826         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
4827           stack handling macros
4828
4829 2003-04-19  Borut Razem <borut.razem AT siol.net>
4830
4831         * "handling space characters in file path" task:
4832         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
4833         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
4834         * support/Util/MySystem.h: make it self-sufficient
4835         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
4836           src/z80/main.c, sdcc/as/mcs51/lklex.c:
4837           handling space characters in file path
4838         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
4839           (it will be used by assemblers, which have their own includes, e.g. gpasm)
4840         * support/Util/MySystem.c: handling space characters in executable's path
4841
4842 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
4843
4844         * as/z80/Makefile: fix permanent rebuild of z80
4845         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
4846         * support/regression/tests/bitfields.c: added Johan's bitfields.c
4847
4848 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
4849
4850         * src/SDCCopt.c: add special case optimization to replace modulo by
4851           a power of two with a bitwise AND.
4852
4853 2003-04-18    <johan AT balder>
4854
4855         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
4856
4857 2003-04-17    <johan AT balder>
4858
4859         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
4860         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
4861
4862 2003-04-13  Borut Razem <borut.razem AT siol.net>
4863
4864         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
4865         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
4866           fixed mingw problem in adl_NORMALIZE_PATH
4867
4868 2003-04-12  Borut Razem <borut.razem AT siol.net>
4869
4870         * fixed "#pragma SAVE/RESTORE can not be nested":
4871         * src/SDCC.lex: reworked pragma handling functions
4872         * sdcc/src/SDCCglobl.h: reworked stack handling macros
4873         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
4874
4875 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
4876
4877         * src/SDCCutil.c (pathEquivalent): defined but not used
4878         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
4879         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
4880         * configure: rebuilt from configure.in
4881         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
4882         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
4883         * device/include/Makefile.in: replace sdcc_datadir
4884         * device/lib/Makefile.in: replace sdcc_datadir
4885         * Makefile.common.in: add LDFLAGS from configure
4886         * packihx/Makefile.in: use LDFLAGS
4887         * src/Makefile.in: use LDFLAGS
4888         * support/cpp2/Makefile.in: add LDFLAGS from configure
4889         * support/makebin/Makefile: use LDFLAGS
4890         * .version: bumped version number to 2.3.5
4891
4892 2003-04-12  Borut Razem <borut.razem AT siol.net>
4893
4894         * completed "different paths" task:
4895         * src/SDCCmacro.c: fixed bug in handling quotes
4896         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
4897         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
4898
4899 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
4900
4901         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
4902
4903 2003-04-11 kevin Vigor <kevin AT vigor.nu>
4904
4905         * ds390/gen.c ds390/peeph.def: fix bug 706781
4906
4907 2003-04-11  Borut Razem <borut.razem AT siol.net>
4908
4909         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
4910
4911 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
4912
4913         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
4914         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
4915          set - this bit used to not be set...).
4916         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
4917           bad code in PIC Port
4918         * src/regression/and2.c added to test bug 609268
4919         * src/regression/Makefile added and2.c to regression test
4920
4921
4922 2003-04-08    <johan AT CP255758-A>
4923
4924         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
4925         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
4926         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
4927
4928 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
4929
4930         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
4931         fix bug #487815
4932         * support/cpp2/Makefile.in: fix bug #487815
4933         * configure: rebuilt from configure.in
4934         * Makefile.common.in: docdir changed, new path suffixes
4935         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
4936         * sdcc_vc_in.h: reflect changes from sdccconf.h
4937         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
4938         * src/SDCCutil.h: remove BINDIR hack
4939         * doc/sdccman.lyx: update new path hierarchy
4940
4941 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
4942
4943         * src/SDCCpeeph.c: added okToRemoveSLOC test
4944
4945 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
4946
4947         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
4948
4949 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
4950
4951         * src/SDCCpeeph.c: added labelIsReturnOnly test
4952         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
4953
4954 2003-04-05    <johan AT balder>
4955
4956         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
4957         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
4958         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
4959         * src/SDCCast.c: fixed a warning
4960         * src/SDCCast.h: fixed a warning
4961         * src/SDCCicode.c (operandFromAst): fixed a warning
4962
4963 2003-04-04    <johan AT balder>
4964
4965         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
4966         * src/SDCCast.c (decorateType): fixed bug #715076
4967         * src/SDCC.y: fixed bug #702907
4968
4969 2003-04-03    <johan AT balder>
4970
4971         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
4972         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
4973         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
4974         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
4975         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
4976
4977 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
4978
4979         * _decdptr.c: fix return values
4980         * _gptrget.c: fix return values
4981         * _gptrgetc.c: fix return values
4982         * _gptrput.c: fix return values
4983         * _mulint.c: fix return values
4984         * as/z80/Makefile: fix 'make -j' problem
4985
4986 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
4987
4988         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
4989         * configure.in: big cleanup, updated to autoconf 2.5x
4990         * configure: rebuilt from configure.in
4991         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
4992         * sdcc_vc_in.h: reflect changes from sdccconf.h
4993         * doc/Makefile: fixed a flaw in "make install"
4994
4995 2003-04-02    <johan AT balder>
4996
4997         * src/ds390/gen.c (genCmp): no comments
4998         * src/mcs51/gen.c (genCmp): no comments
4999         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
5000         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
5001
5002 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
5003
5004         * support/regression/generate-cases.py: place generated file in given sub directory
5005         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
5006         * support/regression/Makefile: improvements for 'make -j';
5007         side effect: it's simpler and faster now
5008
5009 2003-03-31  Borut Razem <borut.razem AT siol.net>
5010
5011         * src/z80/main.c: link-{port} and as-{port} defined without path
5012         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
5013
5014 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
5015
5016         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
5017
5018 2003-03-30  Borut Razem <borut.razem AT siol.net>
5019
5020         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
5021           changed type of list parameter to set
5022         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
5023         * src/port.h: changed type of do_assemble() parameter to set
5024         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
5025           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
5026           definition of "cppoutfilename" macro with NULL value in preProcess()
5027         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
5028         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
5029         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
5030           replaced with set *binPathSet
5031         * shash_add() deallocates the item, if allready exsists, before adding the new one
5032         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
5033
5034 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
5035
5036         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
5037           a nested for loop bug in the PIC port
5038         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
5039           for loops
5040
5041 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
5042
5043         * support/Util/dbuf.h: remove C++ stuff to make it portable
5044
5045 2003-03-28  Borut Razem <borut.razem AT siol.net>
5046
5047         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
5048           literal strings in stringLiteral()
5049         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
5050         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
5051           to the project
5052
5053 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
5054
5055         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
5056
5057 2003-03-26    <johan AT balder>
5058
5059         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
5060         * src/ds390/gen.c (saveRegisters): catched symbol abuse
5061         * src/SDCCast.c (decorateType): fixed " -v < 3"
5062
5063 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
5064
5065         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
5066         Added Lenny Story's debug infrastructure changes:
5067         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
5068         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
5069         * src/cdbFile.c: added
5070         * src/SDCCdebug.c: added
5071         * src/SDCCdebug.h: added
5072         * src/SDCCast.c (createFunction)
5073         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
5074         * src/SDCCmain.c (parseCmdLine, main)
5075         * src/SDCCmem.c (redoStackOffsets)
5076         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
5077         * src/SDCCsymt.h
5078         * src/common.h
5079         * src/avr/gen.c (genAVRCode)
5080         * src/ds390/gen.c (gen390Code)
5081         * src/mcs51/gen.c (gen51Code)
5082         * src/pic/gen.c (genpic14Code)
5083         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
5084         * src/xa51/gen.c (genXA51Code)
5085         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
5086
5087 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5088
5089         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
5090         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
5091
5092 2003-03-22    <johan AT balder>
5093
5094         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
5095
5096 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
5097
5098         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
5099         * doc/cdbfileformat.lyx: added, written by Lenny Story
5100         * doc/Makefile: added cdbfileformat.lyx
5101         * doc/clean.mk: added cdbfileformat.lyx
5102
5103 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
5104
5105         * src/mcs51/peeph.def: fix bug #705773
5106
5107 2003-03-20    <johan AT balder>
5108
5109         An sfr/sbit can have an "at #" AND an initializer
5110         * src/SDCCsymt.c (checkSClass):
5111         * src/SDCCmem.c (allocGlobal):
5112         * src/SDCCmem.c (allocLocal):
5113         * src/SDCCast.c (createBlock):
5114
5115 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
5116
5117         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
5118
5119 2003-03-16    <johan AT balder>
5120
5121         Undid the hackup of const and volatile, the problem is much bigger
5122         * src/SDCC.y:1.65
5123         * src/SDCCast.c:1.171
5124         * src/SDCCglue.c:1.138
5125         * src/SDCCicode.c:1.146
5126         * src/SDCCsymt.c:1.150
5127         * src/SDCCval.c:1.65
5128
5129 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
5130
5131         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
5132         * src/ds390/gen.c (genAddrOf): fixed bug #704087
5133
5134 2003-03-13    <johan AT balder>
5135
5136         Hackup const and volatile modifiers in type chains a bit:
5137         * src/SDCC.y:1.63
5138         * src/SDCCast.c:1.169
5139         * src/SDCCglue.c:1.136
5140         * src/SDCCicode.c:1.143
5141         * src/SDCCsymt.c1.146
5142         * src/SDCCsymt.h1.59
5143         * src/SDCCval.c:1.63
5144
5145 2003-03-12    <johan AT balder>
5146
5147         * src/SDCCBBlock.h: more LRH debugging junk
5148         * src/SDCCcflow.h: more LRH debugging junk
5149         * src/SDCCloop.c: more LRH debugging junk
5150         * src/SDCC.y (struct_declaration): fixed bug #697590
5151         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
5152         * src/ds390/gen.c (aopForRemat): fixed bug #700031
5153         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
5154
5155 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
5156         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
5157         test function names must now match exactly).
5158         * src/SDCCcse.c: added special case in findCheaperOp to allow
5159         extending a short integer. Makes less awful code for bug 700121 test case.
5160
5161 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5162
5163         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
5164         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
5165
5166 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
5167
5168         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
5169         actually called (operandsNotEqual() was called for all
5170         operandsNotEqualX tests).
5171
5172 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
5173
5174         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
5175         with shorter literals. Fixes bug 700121.
5176
5177 2003-03-11    <johan AT balder>
5178
5179         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
5180
5181 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
5182
5183         * src/SDCCloop.c (mergeRegions): an evil beast is dead
5184         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
5185
5186 2003-03-10  Borut Razem <borut.razem AT siol.net>
5187
5188         * src/SDCCmain.c: pipe preprocessor's output
5189         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
5190         * sdcc_vc_in.h: define pclose as _pclose for WIN32
5191         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
5192         which closes all pipes in pipeSet set
5193         * src/SDCCset.c: free deleted item in function deleteSetItem()
5194         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
5195         moved from z80 to src subproject
5196         * .version: increased version number to 2.3.4
5197
5198 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
5199
5200         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
5201         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
5202         * support/regression/ports/xa51/spec.mk: fix typo
5203
5204 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
5205
5206         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
5207
5208 2003-03-09  Borut Razem <borut.razem AT siol.net>
5209
5210         * src/SDCCmain.c: pipe preprocessor's output
5211         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
5212         * sdcc_vc_in.h: define pclose as _pclose for WIN32
5213         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
5214         which closes all pipes in pipeSet set
5215         * src/SDCCset.c: free deleted item in function deleteSetItem()
5216         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
5217         moved from z80 to src subproject
5218
5219 2003-03-09  Borut Razem <borut.razem AT siol.net>
5220
5221         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
5222         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
5223         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
5224         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
5225         * src/SDCCglobl.h: unification of WIN32 native definitions
5226
5227 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5228
5229         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
5230
5231 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
5232
5233         * src/configure.in:   check for endianess (even while cross-compiling)
5234         * src/configure:      check for endianess (even while cross-compiling)
5235         * src/configure_in.h: check for endianess (even while cross-compiling)
5236         * src/avr/gen.c:        remove old endianess stuff
5237         * src/mcs51/gen.c:      remove old endianess stuff
5238         * src/ds390/gen.c:      remove old endianess stuff
5239         * src/pic/gen.c:        remove old endianess stuff
5240         * src/pic/genarith.c:   remove old endianess stuff
5241         * src/pic/glue.c:       fix endianess check
5242         * src/pic16/gen.c:      remove old endianess stuff
5243         * src/pic16/genarith.c: remove old endianess stuff
5244         * src/pic16/glue.c:     fix endianess check
5245         * src/xa51/gen.c:       remove old endianess stuff
5246         * src/z80/gen.c:        fix endianess check
5247         * src/SDCCglue.c:       fix endianess check
5248         * src/ds390/peeph.def: fix bug 700036
5249
5250 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
5251
5252         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
5253         * src/configure: find appropriate data-types on host for SDCC's int and long
5254         * src/configure.in: find appropriate data-types on host for SDCC's int and long
5255         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
5256         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
5257
5258 2003-03-07    <johan AT balder>
5259
5260         Just a big NOOP:
5261                 some minor cleanups before the big shot
5262                 OP_DEFS and OP_USES now use Kevin's protection
5263                 new option --nolabelopt
5264
5265         * src/SDCCBBlock.c:
5266         * src/SDCCast.c,:
5267         * src/SDCCcflow.c:
5268         * src/SDCCcse.c:
5269         * src/SDCCicode.c:
5270         * src/SDCCicode.h:
5271         * src/SDCClabel.c:
5272         * src/SDCCloop.c:
5273         * src/SDCCmain.c:
5274         * src/ds390/ralloc.c:
5275         * src/mcs51/ralloc.c:
5276         * src/pic/ralloc.c:
5277         * src/xa51/ralloc.c:
5278         * src/z80/ralloc.c:
5279
5280 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
5281
5282         * src/pic/pcode.c (get_op): fix 64 bit warnings
5283         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
5284         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
5285         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
5286         * support/regression/tests/malloc.c: fix 64 bit warnings
5287
5288 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
5289
5290         * src/mcs51/gen.c (genMinus): fixed bug 696436
5291
5292 2003-03-02  Borut Razem <borut.razem AT siol.net>
5293
5294         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
5295
5296 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
5297
5298         * configure.in: test for mkstemp
5299         * sdccconf_in.h: add HAVE_MKSTEMP
5300
5301 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
5302
5303         * device/include/ctype.h: removed warning while using --stack-auto
5304         * device/include/malloc.h: removed warning while using --stack-auto
5305         * device/include/string.h: removed warning while using --stack-auto
5306
5307 2003-02-23  Borut Razem <borut.razem AT siol.net>
5308
5309         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
5310         because NDEBUG is defined (see man assert)
5311         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
5312
5313 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5314
5315         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
5316         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
5317
5318 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5319
5320         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
5321         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
5322
5323 2003-02-18    <johan AT balder>
5324
5325         * as/mcs51/asmain.c (asmbl): module can start with a digit
5326         * as/z80/asmain.c (asmbl): module can start with a digit
5327
5328 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
5329
5330         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
5331         * src/asm.c: fix pipe() for Mingw32
5332
5333 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
5334
5335         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
5336         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
5337         make -V work again; --c1mode reads now from stdin
5338         * doc/sdccman.lyx: added --c1mode
5339         * support/Util/SDCCerr.c: new messages for c1 mode
5340         * support/Util/SDCCerr.h: new messages for c1 mode
5341         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
5342
5343 2003-02-15    <johan AT balder>
5344
5345         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
5346
5347 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
5348
5349         * doc/sdccman.lyx: Environment variables, -o and other minor things
5350
5351 2003-02-14    <johan AT balder>
5352
5353         * src/xa51/main.c: before anyone really tries to use it :)
5354
5355         * Install doc's in share/sdcc/doc
5356         * removed some obsolete files
5357         * Do a proper make distclean and uninstall
5358         M Makefile.common.in
5359         R sdccbuild.sh
5360         M as/Makefile
5361         M device/include/Makefile.in
5362         M device/lib/Makefile.in
5363         M doc/sdccman.lyx
5364         M link/Makefile
5365         M sim/ucsim/doc/Makefile.in
5366         M src/clean.mk
5367         R src/avr/peeph.rul
5368         R src/xa51/peeph.rul
5369         M support/cpp2/Makefile.in
5370         M support/makebin/Makefile
5371
5372
5373 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
5374
5375         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
5376
5377 2003-02-10  Borut Razem <borut.razem AT siol.net>
5378
5379         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
5380         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
5381         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
5382         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
5383         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
5384         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
5385         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
5386         src/z80/Makefile.bcc: Borland Makefile cleanup
5387         * as/z80/Makefile.bcc: Added Borland Makefile
5388         * support/cpp2/borland.h: Removed
5389
5390 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
5391
5392         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
5393         * src/SDCC.lex: new pragma NOIV
5394         * src/SDCCglobl.h: new pragma NOIV
5395         * src/SDCCmem.c: new pragma NOIV
5396
5397 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
5398
5399         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
5400
5401 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
5402
5403         * src/SDCCmain.c: signal handling is switched off by --debug
5404         * doc/Makefile: small fix for install; use clean.mk again
5405         * doc/clean.mk: clean *.pdf and *.html too
5406
5407 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
5408
5409         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
5410         * device/lib/printfl.c: fix a ds390 bug by making it portable
5411         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
5412         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
5413         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
5414         * debugger/mcs51/cmd.c: converted multi-line string literals
5415         * sim/ucsim/globals.cc: converted multi-line string literals
5416         * src/SDCCmain.c: introduced signal handler to remove temp files
5417         * doc/Makefile: small tweaks, implement clean
5418         * doc: removed generated files
5419
5420 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5421
5422         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
5423         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
5424         Address Record is not correctly generated for DS390."
5425
5426 2003-02-02  Borut Razem <borut.razem AT siol.net>
5427
5428         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
5429         * as/mcs51/asm.h: fixed compilation with Borland C
5430         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
5431         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
5432         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
5433         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
5434         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
5435         src/z80/Makefile.bcc: delete $(LIB) only if exist
5436         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
5437
5438 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
5439
5440         * device/include/malloc.h: introduced NULL
5441         * device/include/string.h: introduced NULL
5442         * device/include/stdlib.h: introduced NULL
5443         * device/lib/_memcpy.c: removed NULL
5444         * device/lib/_strcat.c: removed NULL
5445         * device/lib/_strchr.c: removed NULL
5446         * device/lib/_strcmp.c: removed NULL
5447         * device/lib/_strcpy.c: removed NULL
5448         * device/lib/_strcspn.c: removed NULL
5449         * device/lib/_strlen.c: removed NULL
5450         * device/lib/_strncat.c: removed NULL
5451         * device/lib/_strncmp.c: removed NULL
5452         * device/lib/_strncpy.c: removed NULL
5453         * device/lib/_strpbrk.c: removed NULL
5454         * device/lib/_strrchr.c: removed NULL
5455         * device/lib/_strspn.c: removed NULL
5456         * device/lib/_strstr.c: removed NULL
5457         * device/lib/_strtok.c: removed NULL
5458         * device/lib/malloc.c: removed NULL, include own header
5459
5460 2003-02-02    <johan AT balder>
5461
5462         * 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
5463         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
5464         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
5465         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
5466         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
5467         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
5468
5469 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5470
5471         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
5472         area 'DATA'"
5473
5474 2003-02-01    <johan AT balder>
5475
5476         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
5477
5478 2003-01-31    <johan AT CP255758-A>
5479
5480         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
5481
5482 2003-01-30    <johan AT balder>
5483
5484         * src/SDCCBBlock.c: automatic bug detection
5485         * src/SDCCicode.c: automatic bug detection
5486
5487 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5488
5489         * src/SDCCglobl.h:   now --xram-size 0 works
5490         * src/SDCCmain.c:    now --xram-size 0 works
5491
5492 2003-01-29    <johan AT balder>
5493
5494         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
5495
5496 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5497
5498         * as/mcs51/aslink.h: Added options --xram-size and --code-size
5499         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
5500         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
5501         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
5502         * src/SDCCglobl.h:   Added options --xram-size and --code-size
5503         * src/SDCCmain.c:    Added options --xram-size and --code-size
5504
5505 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
5506
5507         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
5508         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
5509
5510 2003-01-27    <johan AT balder>
5511
5512         * src/SDCC.y: fixed bug #613764
5513
5514 2003-01-26    <johan AT balder>
5515
5516         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
5517         * src/SDCCsymt.h: fixed bug #673374
5518         * src/SDCCglue.c: fixed bug #661910
5519         * src/SDCCast.c: fixed bug #458099 and 673374
5520
5521 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
5522
5523         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
5524         * as/mcs51/strcmpi.h: added
5525         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
5526         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
5527         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
5528         * as/mcs51/assym.c: strcmpi -> as_strcmpi
5529         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
5530         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
5531         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
5532         * as/mcs51/Makefile.aslink: new module strcmpi
5533         * as/mcs51/Makefile.asx8051: new module strcmpi
5534         * as/mcs51/Makefil.bcc: new module strcmpi
5535         * as/mcs51/Makefile.in: new module strcmpi
5536         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
5537
5538 2003-01-26    <johan AT balder>
5539
5540         * src/SDCCglue.c: reverted back to 1.124
5541         * src/SDCCast.c: reverted back to 1.156
5542         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
5543
5544 2003-01-25    <johan AT balder>
5545
5546         * src/SDCCglue.c: A better fix for bug #661910
5547         * src/SDCCast.c: A better fix for bug #661910
5548         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
5549
5550 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
5551
5552         * src/Makefile.in: remove spawn.o
5553         * src/SDCCmain.c: remove spawn.h
5554         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
5555         * src/spawn.c: removed
5556         * src/spawn.h: removed
5557         * support/regression/ports/ds390/spec.mk: link with -r
5558
5559 2003-01-24    <johan AT CP255758-A>
5560
5561         * src/ds390/gen.c (aopOp): fixed bug #667458
5562         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
5563         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
5564         (createIvalCharPtr): an ival doesn't always have a storage class anymore
5565
5566 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
5567
5568         * src/mcs51/peeph.def: better assembler identation by Frieder
5569         * src/mcs51/gen.c: better assembler identation by Frieder
5570
5571 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
5572
5573         * as/z80/string.h: removed for gcc 3.2
5574         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
5575         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
5576
5577 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
5578
5579         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
5580         * src/SDCCpeeph.c (replaceRule): fix bug #663503
5581         * support/regression/Makefile: separate temp files for ports
5582         * support/regression/generate-cases.py: separate temp files for ports
5583         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
5584         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
5585
5586 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
5587
5588         * moved tinitalk to device/examples/ds390
5589
5590 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
5591
5592         * as/mcs51/lkmem.c: rflag is for DS390
5593         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
5594         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
5595                          (linkEdit): move mem- and map-files the same way as ihx-files
5596         * src/z80/main.c (_setDefaultOptions): removed --generic
5597         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
5598         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
5599         * src/pic/glue.c (picglue): --c1mode works again
5600         * src/pic16/glue.c (pic16glue): --c1mode works again
5601         * src/asm.c (printCLine): fix #660034
5602
5603 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
5604
5605         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
5606         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
5607         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
5608         * as/mcs51/lkmem (summary): better fix for sp problem
5609         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
5610         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
5611         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
5612                                               remove --stack-after-data
5613
5614 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
5615
5616         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
5617         * src/SDCCutil.c (join): ugly bug: missing '\0'
5618         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
5619
5620 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
5621
5622         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
5623         * src/port.h: typo
5624         * src/pic/main.c (_asmCmd): gpasm supports -o
5625         * src/z80/main.c: more general macros
5626         * device/lib/Makefile.in: remove intermediate files
5627
5628 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
5629
5630         * .version: Bumped version number to 2.3.3
5631         * src/SDCCBBlock.c: new option -o
5632         * src/SDCCglobl.h: new option -o
5633         * src/SDCCglue.c: new option -o
5634         * src/SDCCmain.c: new option -o
5635         * src/asm.c: new option -o
5636         * src/ds390/main.c: new option -o
5637         * src/pic/glue.c: new option -o
5638         * src/pic/pcode.c: new option -o
5639         * src/pic/ralloc.c: new option -o
5640         * src/pic16/glue.c: new option -o
5641         * src/pic16/pcode.c: new option -o
5642         * src/pic16/ralloc.c: new option -o
5643         * src/z80/main.c: new option -o
5644         * device/lib/Makefile.in: use -o
5645         * support/regression/ports/ds390/spec.mk: use -o
5646         * support/regression/ports/gbz80/spec.mk: use -o
5647         * support/regression/ports/mcs51/spec.mk: use -o
5648         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
5649         * support/regression/ports/z80/spec.mk: use -o
5650         * support/regression/ports/ucz80/spec.mk: use -o
5651         * support/regression/ports/xa51/spec.mk: use -o
5652         * support/regression/fwk/lib/timeout.c: fix usage string
5653
5654 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
5655         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
5656
5657 2003-01-07    <johan AT balder>
5658
5659         * src/SDCCast.c (decorateType): fixed bug #600035
5660
5661 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
5662         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
5663         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
5664         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
5665         * src/pic/pcode.c: outcommented unused variable to remove warnings
5666         * src/pic/ralloc.c: outcommented unused variable to remove warnings
5667
5668 2003-01-06    <karl AT turbobit.com>
5669         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
5670    regression tests.
5671
5672 2003-01-06    <johan AT balder>
5673
5674         * src/SDCCicode.c: fixed array add
5675
5676 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
5677         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
5678         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
5679
5680 2003-01-04    <johan AT balder>
5681
5682         * src/SDCCval.c (getNelements): fixed the initialized array of structures
5683
5684 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5685         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
5686
5687 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
5688         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
5689         * support/regression/tests/bug-524697.c: fit mem usage into 8032
5690
5691 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
5692         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
5693
5694 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
5695         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
5696
5697 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
5698         * src/mcs51/main.c: removed {bindir}{sep} from aslink
5699
5700 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5701
5702     * in \sdcc\as\mcs51\ changed these files in order to create an
5703     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
5704     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
5705     following files to include the previous two files: aslink.dsp,
5706     Makefile.aslink, Makefile.bcc, and Makefile.in.
5707
5708     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
5709     .adb instead of .cdb
5710
5711 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5712
5713         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
5714         value from option --iram-size.
5715
5716 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5717
5718         * \sdcc\as\mcs51\lklist.c: added boundary check before using
5719         dram[] array.
5720
5721 2002-09-18    <wiml AT hhhh.org>
5722
5723         * SDCClrange.h: exposed setFromRange() and setToRange()
5724         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
5725           packRegsForAccUse() (bug 542397)
5726         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
5727           multiple times and emitting the fetch operations more than once
5728           added aopGetUsesAcc() function to allow binary operators to
5729           fetch their operands in the correct order; made genMinus() emit
5730           compact code for X = LITERAL - Y
5731
5732 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5733         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
5734         sprintf() in line 1267.
5735
5736 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5737         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
5738         like ports.
5739
5740 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5741         Changes to aslink (All the changes are marked with 'JCF'):
5742
5743         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
5744         summary().
5745
5746         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
5747         area BSEG.  Also moves, if possible, the DATA area down into the internal
5748         ram so more space is available.
5749
5750         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
5751         sflag.
5752
5753         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
5754         not bytes.  Function summary() which creates a memory usage summary
5755         file with extension .mem.  Reports of overlaping stack and small stack
5756         size.  If the space for the stack is less than 16 bytes aslink trows a
5757         warning.
5758
5759         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
5760         the 8051.  Option 'y' for memory summary output file.
5761
5762         Changes to sdcc (All the changes are marked with 'JCF'):
5763
5764         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
5765
5766         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
5767         overlaying area for it (uses RegBankUsed[4]).
5768
5769         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
5770         bank zero as used by default.  By default aslink locates the stack
5771         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
5772         the creation of the .mem file.  Delegates the allocation of data area
5773         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
5774         the begining of the stack area to aslink.
5775
5776         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
5777         glue() in SDCCglue.c creates an area for it.
5778
5779 2002-09-03  Borut Razem <borut.razem AT siol.net>
5780         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
5781         sdcc/src/pic/glue.c:
5782         introduced atexit() handler for teporay files removal in case of
5783         errors, assertions, ...
5784
5785 2002-08-29  Borut Razem <borut.razem AT siol.net>
5786         * sdcc/support/cpp2/auto-host_vc_in.h:
5787         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
5788         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
5789         Maybe there is a similar problem with BORLANDC? It should be checked!
5790
5791         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
5792         corrected improper use of assert: the assignment to clr variable was done inside the assert.
5793         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
5794         was not executed, and the compiler (cl) launched a warning:
5795         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
5796
5797 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
5798         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
5799
5800 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
5801         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
5802
5803         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
5804           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
5805           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
5806           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
5807           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
5808           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
5809           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
5810         - added Release configuration in VS projects
5811         - review of compiler an linker options
5812         - VC .exe files are generated in bin_vc directory, not to interfere
5813           with binaries generated from other projects (cygwin, mingw, bcc ...)
5814
5815         * sdcc/src/yacc.dsp: added
5816
5817         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
5818         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
5819         and insert the version number definitions from .version
5820
5821         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
5822
5823         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
5824         added - genarate auto-host.h using auto-host_vc_in.h as template
5825
5826         * sdcc/sdcc_vc.h,
5827         removed from CVS, generated automatically
5828
5829 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
5830         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
5831
5832 2002-08-11  Borut Razem <borut.razem AT siol.net>
5833         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
5834
5835 2002-08-10  Borut Razem <borut.razem AT siol.net>
5836         * src/SDCCmain.c (main):
5837         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
5838         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
5839         The consequence was that some temporary files were not removed.
5840
5841         * src/SDCCglue.c:
5842         unification of code in functions tempfilename() and tempfile():
5843         function tempnam() is defined in Visual Studio 6.0 and .NET
5844
5845         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
5846
5847         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
5848           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
5849         - removed compiler command line option /WX: Treats all warnings as errors
5850         - update a list of source files, included into the project
5851
5852         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
5853           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
5854         changed project type to Generic Project so that can be correcly converted to VS.NET project
5855
5856         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
5857
5858         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
5859
5860         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
5861
5862         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
5863         added return 0 statements after assert() to make compiler happy
5864
5865         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
5866         added newline in the def file to keep MSC compiler satisfied
5867
5868         * sdcc/src/z80/gen.c:
5869         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
5870           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
5871         - solved MSC error in function aopDump()
5872
5873         * sdcc_vc.h: define PREFIX as "\\sdcc"
5874
5875 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
5876         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
5877
5878 2002-06-22  Scott Dattalo <scott AT dattalo.com>
5879         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
5880         - Rewrote the register banking algorithm.
5881         - Added pCode live-range analysis to registers (for now, only non-used and
5882         singly-used registers optimized away)
5883
5884         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
5885
5886         * 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.
5887
5888 2002-05-10  Scott Dattalo <scott AT dattalo.com>
5889         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
5890
5891 2002-04-22  Michael Hope  <michaelh AT vroom>
5892
5893         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
5894
5895         * configure.in (DD_COPT): Added include support required for gbdk.
5896
5897         * .version: Bumped version number just to increase it.
5898
5899         * src/SDCCmain.c: Added -nostdinc to the default options.
5900
5901 2002-04-15  Michael Hope  <michaelh AT vroom>
5902
5903         * device/lib/z80/printf.c (sprintf): Added.
5904
5905         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
5906
5907         * src/z80/peeph.def: Added transpose redundent load rule.
5908
5909         * src/z80/main.c: Added force callee saves for jaune.
5910
5911         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
5912
5913         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
5914
5915 2002-03-28  Johan Knol  <johan AT balder>
5916
5917         * src/SDCCval.c: fixed bug #532436
5918
5919 2002-03-14  Scott Dattalo <scott AT dattalo.com>
5920         * /src/port.h:
5921         Added "char *Processor" field to the port structure.
5922
5923         * /src/SDCCmain.c:
5924         Added -p option. Allows port dependent processor to be specified.
5925
5926         * all ports:
5927         Initialized the new field char *Processor field to NULL in all ports
5928
5929         * /src/pic/*:
5930         Compiler generated registers for interrupt context saving
5931         were not getting allocated.
5932
5933 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
5934
5935         * /src/SDCCast.c:
5936         Fixed left shift. Will promote the left side of a left shift
5937         if a) left shifting more than size of operand or b) when assigned
5938         to something size > size of left side
5939
5940 2002-03-14  Scott Dattalo <scott AT dattalo.com>
5941         * src/pic/*
5942         tons of changes. Register allocation has been
5943         rewritten. Added customization for the various PICs. Flow
5944         analysis is restructured. ...
5945
5946         * src/pic/device.h:
5947         Added
5948
5949         * src/pic/device.c:
5950         Added. device.c is a PIC port hack to accomodate variations
5951         in PIC devices.
5952
5953 2002-03-13  Michael Hope  <michaelh AT vroom>
5954
5955         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
5956
5957 2002-03-04  johanknol  <johanknol AT manik>
5958
5959         * /src/SDCCval.c: fixed
5960
5961         const unsigned char arr[][2] = { { 0, 1 } };
5962         t18.c:1: error: Initializer element is not constant
5963
5964 2002-03-04  bela  <bela AT manik>
5965
5966         * /device/include/mcs51reg.h:
5967         ds89c420 register definition update
5968
5969 2002-03-03    <johan AT FRIJA>
5970
5971         * support/Util/SDCCerr.c: did something, but don't no why anymore
5972
5973         * support/regression/tests/bug-524691.c: made it a little less shy
5974
5975         * src/SDCCast.c (decorateType): fixed bug #524697
5976
5977         * src/SDCCast.c: made some lineno improvements
5978
5979         * src/SDCCval.c (getNelements): changed warning to error
5980
5981         * src/SDCCglue.c (printIvalArray): changed warning to error
5982
5983         * src/SDCCicode.c: fixed a warning for mingw
5984
5985         * src/SDCCast.c (decorateType): fixed the << promotion for ops
5986
5987         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
5988
5989 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
5990
5991         * src/ds390/peeph.def:
5992         Added some more peephole rules
5993
5994         * src/ds390/gen.c: Various fixes & enhancements
5995
5996         * src/SDCClrange.c, src/SDCClrange.h:
5997         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
5998
5999         * src/ds390/ralloc.c:
6000         various fixes & enhancements (ds390) specific
6001
6002         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
6003         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
6004         from rallocs.
6005
6006         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
6007
6008 2002-03-02    <johan AT FRIJA>
6009
6010         * src/SDCCast.c (decorateType): fixed bug #524708
6011
6012         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
6013
6014         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
6015
6016 2002-03-01  Michael Hope  <michaelh AT vroom>
6017
6018         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
6019
6020         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
6021
6022 2002-03-01    <johan AT FRIJA>
6023
6024         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
6025
6026         * src/SDCCast.c (decorateType): fixed bug #524209
6027
6028         * src/SDCCval.c (valNot): fixed bug #524195
6029
6030 2002-02-26    <johan AT balder>
6031
6032         * src/xa51/gen.c: fixed a warning
6033
6034         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
6035
6036         * src/SDCCast.c (decorateType): fixed bug #522534
6037
6038 2002-02-23    <johan AT balder>
6039
6040         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
6041
6042 2002-02-22    <johan AT balder>
6043
6044         * src/SDCCast.c: fixed bug #514865
6045
6046         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
6047
6048 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
6049
6050         * sdcc/src/SDCCloop.c:
6051         Previous fix was not good. basic blocks that have "break" or "return" are
6052         not really partof a loop , but live ranges used in these blocks should
6053         be live thru the entire loop, so set partOfLoop but don't add them to
6054         loop region
6055
6056 2002-02-21    <johan AT FRIJA>
6057
6058         * src/SDCCcse.c: fixed bug #514308
6059
6060 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
6061
6062         * src/SDCCloop.c:
6063         Fixed BUG #519583. If a conditional block ended in a return/break
6064         statement inside a loop, it was not being considered part of the loop.
6065
6066         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
6067
6068 2002-02-10  Karl Bongers <karl AT turbobit.com>
6069
6070         * debugger/*:
6071         Fixed up SDCDB debugger somewhat.  Updated debugger/README
6072         with lots of comments and notes.
6073
6074         * device/examples/test2.c:
6075         Fix bug, "red" variable not being initialized(compiler complained).
6076
6077         * device/examples/Makefile, examples/test3.c:
6078         Add Makefile in device/examples folder, compiles test3.c
6079         for use as a multiple module SDCDB test case.
6080
6081         * sim/ucsim/cmd.src/cmdset.cc:
6082         Took out debug printfs in ucsim "next" command.
6083
6084         * sim/ucsim/xa.src:
6085         Karl and Johan start ucsim XA support.  Most dissassembly working,
6086         about 75% emulation done(plenty of work remaining).
6087
6088         * sim/ucsim/z80.src:
6089         Add Z80 support to ucsim, add test-ucz80 regression test,
6090         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
6091         Notice z80 compiler fails on examples/test3.c/crc code.
6092
6093 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
6094
6095         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
6096         Added support for --parms-in-bank1
6097
6098         * src/ds390/peeph.def:
6099         added a few more peephole optimzations
6100
6101         * src/ds390/main.c:
6102         1) added __builtin_inp & __builtin_outp used to read in data of given length
6103            from a memory mapped port
6104         2) added __builtin_memcmp
6105         3) added __builtin_swapw swap bytes of a short
6106
6107         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
6108         1) handle multiple send & receives from register bank1
6109         2) ralloc can now allocate DPTR1 to some liveRanges
6110
6111         * src/SDCCsymt.c, src/SDCCsymt.h:
6112         changes to handle multiple sends & receives
6113
6114         * src/SDCCptropt.h:
6115         added some pointer arithmetic optimization
6116
6117         * src/SDCCptropt.c:
6118         added some pointer arithmetic optimizations but not stable yet so not
6119         called from anywhere (will get this working shortly)
6120
6121         * src/SDCCopt.c: fixed for multiple sends & receives
6122
6123         * src/SDCCmain.c:
6124         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
6125         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
6126            set preprocessor defines (depending on options)
6127
6128         * src/SDCCicode.c, src/SDCCicode.h:
6129         changes made to handle multiple sends & receives
6130
6131         * src/SDCCglobl.h:
6132         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
6133
6134         * src/SDCCcse.c, src/SDCCcse.h:
6135         added function findbackward def (to be used in upcoming optimization)
6136
6137         * src/SDCCcflow.c, src/SDCCcflow.h:
6138         added function returnAtEnd - to determine if a basic block terminates with
6139         a RETURN iCode
6140
6141         * src/SDCCast.c, src/SDCCast.h:
6142         added option parms-in-bank1
6143
6144         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
6145         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
6146         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
6147         adjusted for --parms-in-bank1 option
6148
6149         * device/include/string.h:
6150         donot redefine "reentrant" keyword
6151
6152         * device/include/ds80c390.h: Added some more SFRs
6153
6154 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
6155
6156         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
6157
6158 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
6159
6160         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
6161
6162 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
6163
6164         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
6165
6166 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
6167
6168         * Added --xram-movc option
6169
6170 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
6171
6172         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
6173
6174 2002-01-11  Johan Knol
6175
6176         * Added math lib of Jesus Calvino-Fraga
6177
6178 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
6179
6180         * src/SDCCmain.c (processFile): fix processing of ../../src.c
6181         * support/regression/Makefile: new target test-mcs51-stack-auto
6182         * support/regression/ports/mcs51-stack-auto/spec.mk: added
6183
6184 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
6185
6186         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
6187
6188 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
6189
6190         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
6191
6192 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
6193
6194         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
6195
6196         * src/SDCCglue.h: add definition for printIvalChar()
6197
6198 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
6199
6200         * src/SDCCast.c: fix #498138 by Johan
6201
6202         * src/SDCCglue.c: fix #498138 by Johan
6203
6204 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
6205
6206         * support/regression/Makefile: fix clean
6207
6208         * support/regression/ports/ds390/support.c: fix transmission of last character
6209
6210 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
6211
6212         * /sdcc/src/ds390/gen.c:
6213         a) improved computing address of stack variable
6214         b) took out some #if 0 code
6215         c) improved parmBytes adjustment
6216         d) improved genPlusIncr & genMinusIncr
6217         e) genCmp could generate bad code (when left assigned to DPTR)
6218         f) Fixed bug in hasInc
6219
6220         * /sdcc/src/ds390/ralloc.c:
6221         a) packRegsForSupport could mess up live information (Fixed)
6222         b) packRegsDPTRuse could be incorrect for left & right shift
6223
6224         * /sdcc/src/mcs51/ralloc.c:
6225         packRegsForSupport could mess up the live information (Fixed)
6226
6227         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
6228
6229         * /sdcc/src/SDCCast.c:
6230         can reverse a loop even if function call is present as long
6231         as the loop control variable is local & is not passed as parameter
6232
6233 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
6234
6235         * /sdcc/ChangeLog: *** empty log message ***
6236
6237         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
6238         More builtin function additions for TININative
6239
6240         * /sdcc/src/ds390/ralloc.c:
6241         Had broken the regression testsuite
6242
6243         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
6244
6245         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
6246         Added funcattr hasStackParms will be set for reentrant functions when there
6247         are paramteres on the stack, this helps in minimizing frame pointer generation
6248         typeFromStr can handle function pointers now
6249
6250         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
6251         *** empty log message ***
6252
6253 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
6254
6255         * /src/ds390/gen.c, /src/ds390/main.c:
6256         More builtin function additions for TININative
6257
6258         * /src/ds390/ralloc.c:
6259         Had broken the regression testsuite
6260
6261         * /src/SDCCast.c: Fixed a bug in dumptree
6262
6263         * /src/SDCCsymt.c, /src/SDCCsymt.h:
6264         Added funcattr hasStackParms will be set for reentrant functions when there
6265         are paramteres on the stack, this helps in minimizing frame pointer generation
6266         typeFromStr can handle function pointers now
6267
6268         * /doc/builtins.txt, /doc/TININative.txt:
6269         *** empty log message ***
6270
6271
6272 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
6273
6274         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
6275         ALPHA version for -mTININative
6276
6277         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
6278         updated to reflect changes in the port structure
6279
6280         * /src/port.h:
6281         added function do_assemble (similar to do_link) if non-null this function
6282         will be called to do assembly (-mTININative) requires a multi command
6283         assembly
6284         added function genAssemblerEnd will be called to generate assembler Epilogue
6285
6286         * /src/SDCCsymt.c:
6287         added _JavaNative to debug info printing
6288
6289         * /src/SDCCmain.c: added option --tini-libid
6290         added port->do_assemble function (-mTININative) has a multi command assemble
6291
6292         * /src/SDCCglue.c: Disabled "constExpr" check
6293         added port->genAssemblerEnd function
6294
6295         * /src/SDCCglobl.h: Added option --tini-libid value
6296
6297         * /src/SDCCast.h:
6298         tookout optimizeCompare from the header (has no external references)
6299
6300         * /src/SDCCast.c: made one more function "static"
6301
6302 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
6303
6304         * src/z80/mappings.i: Added z80asm support.
6305
6306         * src/z80/main.c: Added z80asm support on --asm=z80asm
6307
6308         * src/z80/gen.c: Fixed asm portability issues.
6309
6310         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
6311
6312         * src/SDCCglue.c (printExterns): Added global/extern split.
6313
6314 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
6315
6316         * support/regression/Makefile: added test for mcs51 model large
6317
6318         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
6319
6320         * support/regression/ports/gbz80/spec.mk: added -mgbz80
6321
6322 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
6323
6324         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
6325
6326 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
6327
6328         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
6329
6330         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
6331
6332 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
6333
6334         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
6335
6336         * support/regression/tests/simplefloat.c: Port to mcs51.
6337
6338 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
6339         * support/regression/tests/bug-485362.c: Added.
6340
6341         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
6342
6343         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
6344
6345         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
6346
6347         * src/z80/gen.c (aopDump): Added a dump function.
6348
6349 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
6350         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
6351
6352         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
6353
6354         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
6355
6356         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
6357
6358         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
6359
6360         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
6361
6362         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
6363
6364         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
6365
6366         * support/regression/ports/ds390/support.c: Use tinibios.
6367
6368         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
6369
6370 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
6371
6372         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
6373         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
6374
6375         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
6376
6377         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
6378
6379 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
6380
6381         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
6382
6383         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
6384         (packRegsForIYUse): Created and optimised.
6385
6386 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
6387
6388         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
6389 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
6390
6391         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
6392
6393         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
6394
6395         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
6396
6397 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
6398
6399         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
6400
6401         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
6402
6403 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
6404
6405         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
6406
6407         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
6408
6409         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
6410
6411 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
6412
6413         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
6414         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
6415         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
6416
6417         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
6418
6419         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
6420         (genNotFloat): Added.
6421         (genUminusFloat): Added.
6422
6423         * device/lib/z80/Makefile: Added floating pt stubs.
6424
6425         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
6426
6427         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
6428
6429         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
6430
6431 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
6432
6433         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
6434
6435         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
6436
6437         * sdcc/support/regression/Makefile: Add port ds390.
6438
6439         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
6440
6441         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
6442
6443         * sdcc/support/regression/ports/ds390/spec.mk: Added.
6444
6445         * sdcc/support/regression/ports/ds390/support.c: Added.
6446
6447         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
6448
6449         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
6450
6451         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
6452
6453 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
6454
6455         * device/include/malloc.h: Added z80 and gbz80 support.
6456
6457         * device/lib/gbz80/heap.s: Added.
6458
6459         * device/lib/z80/heap.s: Added.
6460
6461         * device/lib/malloc.c: Added z80 and gbz80 support.
6462
6463         * support/regression/tests/malloc.c (testMalloc): Added.
6464
6465         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
6466
6467         * support/regression/tests/bug-478094.c: Added.
6468
6469         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
6470
6471 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
6472
6473         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
6474
6475         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
6476
6477         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
6478
6479         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
6480
6481         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
6482
6483 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
6484
6485         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
6486
6487 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
6488
6489         * support/regression/tests/bug-477927.c: Added.
6490
6491         * src/z80/peeph.def: Added minor rules.
6492
6493         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
6494
6495         * src/z80/peeph.def: Added jump optimisation modification.
6496
6497 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
6498
6499         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
6500
6501 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
6502
6503         * support/regression/tests/funptrs.c: Added.
6504
6505 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
6506
6507         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
6508
6509 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
6510
6511         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
6512
6513         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
6514
6515         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
6516         (movLeft2ResultLong): Created.
6517
6518         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
6519         (joinPushes): Added.  Joins two char pushes into a word push.
6520
6521 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
6522
6523         * support/cpp2/Makefile.in (install): Added creation of dest dir.
6524
6525         * support/makebin/Makefile (install): Added creation of dest dir.
6526
6527 2001-10-24 Karl Bongers <karl AT turbobit.com>
6528
6529         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
6530
6531 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
6532
6533         * src/z80/ralloc.c: Turned off faulty pack for one use.
6534
6535         * src/z80/peeph-gbz80.def: Removed redundent restart options.
6536
6537         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
6538
6539 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
6540
6541         * support/regression/Makefile: Improved clean
6542
6543         * support/regression/ports/gbz80/spec.mk: Added clean
6544
6545         * support/regression/ports/host/spec.mk: Added clean
6546
6547         * support/regression/ports/z80/spec.mk: Added clean
6548
6549         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
6550
6551         * support/regression/ports/mcs51/timeout.c: little improvements
6552
6553 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
6554
6555         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
6556
6557         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
6558
6559         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
6560
6561 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
6562
6563         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
6564
6565         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
6566
6567 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
6568         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
6569
6570         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
6571
6572         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
6573
6574         * src/mcs51/main.c (_linkCmd): Added bin path to command.
6575
6576         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
6577
6578         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
6579
6580         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
6581
6582         * support/regression/tests/longor.c: Added.
6583
6584 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
6585
6586         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
6587
6588         * as/mcs51/aslink.h: define PATH_MAX
6589
6590         * as/mcs51/asm.h: define PATH_MAX
6591
6592         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
6593
6594         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
6595
6596         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
6597
6598         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
6599
6600         * src/SDCCglobl.h: define PATH_MAX
6601
6602         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
6603
6604         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
6605
6606 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
6607
6608         * src/z80/gen.c (gencjneshort): Fixed
6609
6610         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
6611
6612 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
6613
6614         * support/regression/tests/bug-469671.c: Added.
6615
6616         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
6617
6618 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
6619
6620         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
6621
6622         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
6623
6624 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
6625
6626         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
6627
6628         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
6629
6630         * src/device/lib/_mullong.c : removed hint: nooverlay bug
6631
6632         * src/device/lib/_divuint.c : removed hint: nooverlay bug
6633
6634         * src/device/lib/_divulong.c: removed hint: nooverlay bug
6635
6636         * src/device/lib/_moduint.c : removed hint: nooverlay bug
6637
6638         * src/device/lib/_modulong.c: removed hint: nooverlay bug
6639
6640 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
6641
6642         * 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.
6643
6644         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
6645
6646         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
6647
6648 2001-10-07    <johan AT FRIJA>
6649
6650         * device/lib/gets.c (gets): fixed the return value.
6651
6652 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
6653         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
6654
6655         * 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.
6656
6657         * 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.
6658
6659         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
6660
6661         * src/pic/gen.c: Removed Safe_strdup.
6662
6663         * configure.in: Added option to enable libgc support.
6664
6665         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
6666         (bitVectUnion): Optimised.
6667         (bitVectIntersect): Optimised.
6668         (bitVectBitsInCommon): Optimised.
6669         (bitVectCplAnd): Optimised.
6670
6671         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
6672
6673 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
6674
6675         * src/SDCCmain.c: distinguish between assembler debug and plain options
6676
6677         * src/avr/main.c:   remove standard assembler options
6678
6679         * src/ds390/main.c: remove standard assembler options
6680
6681         * src/mcs51/main.c: remove standard assembler options
6682
6683         * src/port.h: removed "PENDING" comment
6684
6685 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
6686
6687         * src/device/lib/_mulint.c  : new, with assember functions
6688
6689         * src/device/lib/_mullong.c : new, with assember functions
6690
6691         * src/device/lib/_divuint.c : with assember functions
6692
6693         * src/device/lib/_divsint.c : with assember functions
6694
6695         * src/device/lib/_divulong.c: with assember functions
6696
6697         * src/device/lib/_divslong.c: with assember functions
6698
6699         * src/device/lib/_moduint.c : with assember functions
6700
6701         * src/device/lib/_modsint.c : with assember functions
6702
6703         * src/device/lib/_modulong.c: with assember functions
6704
6705         * src/device/lib/_modslong.c: with assember functions
6706
6707         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
6708
6709         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
6710
6711         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
6712                                       replaced _mululong.c and _mulslong.c by _mullong.c
6713
6714 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
6715
6716         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
6717
6718 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
6719
6720         * src/SDCCglue.c: test, if win32api is available for MINGW
6721
6722 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
6723
6724         * src/SDCCsymt.c: no more _modifier in printTypeChain()
6725         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
6726         * support/regression/ports/gbz80/spec.mk: removed GENERIC
6727         * support/regression/ports/host/spec.mk: removed GENERIC
6728         * support/regression/ports/mcs51/spec.mk: removed GENERIC
6729         * support/regression/ports/z80/spec.mk: removed GENERIC
6730
6731 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
6732
6733         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
6734
6735         * support/regression/tests/bug-467035.c: Created.
6736
6737 2001-10-01    <johan AT FRIJA>
6738
6739         * src/SDCC.y: fixed bug #466586 part 1
6740
6741 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
6742
6743         * SDCCicode.c: z80 has no generic pointers
6744         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
6745
6746 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
6747
6748         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
6749
6750 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
6751
6752         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
6753
6754         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
6755
6756 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
6757
6758         * configure.in: Fixed up so that ucsim is only configured once.
6759
6760         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
6761
6762         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
6763         (getPathDifference): As above.
6764
6765         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
6766
6767         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
6768
6769 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
6770         * .version: Updated to 2.3.1
6771
6772         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
6773         Added copyright header.
6774
6775         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
6776         (assemble): Added support for macro based assembler commands.
6777         (linkEdit): Added support for macro based linker commands.
6778         (preProcess): Changed the pre-processor to use macros.
6779         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
6780         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
6781
6782         * device/lib/z80/crt0.s: Added module name for debugging.
6783
6784 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
6785
6786         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
6787
6788         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
6789
6790         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
6791
6792         * src/Makefile.in: Added SDCCmacro and SDCCutil
6793
6794 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
6795
6796         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
6797
6798 2001-09-16    <johan AT FRIJA>
6799
6800         * 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.
6801
6802 2001-09-15    <johan AT FRIJA>
6803
6804         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
6805         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
6806
6807 2001-09-11    <johan AT FRIJA>
6808
6809         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
6810
6811 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
6812
6813         * support/regression/tests/bug-460444.c: Added test case.
6814
6815         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
6816         (genCast): Added justification for all of the asserts.
6817
6818 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
6819
6820         * support/regression/support.c: _xdata replaced by xdata
6821
6822         * support/regression/spec.mk: removed _generic
6823
6824 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
6825
6826         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
6827
6828         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
6829         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
6830
6831         * src/z80/peeph.def: Added a rule to optimise shift then compare.
6832
6833         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
6834
6835         * support/regression/tests/bug-460010.c: Added test case.
6836
6837         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
6838
6839 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
6840
6841         * support/regression/Makefile: inter-port-clean adjusted for mcs51
6842
6843         * support/regression/testfwk.c: removed workaround for bug #436344
6844
6845         * support/regression/tests/bp.c: use less memory with mcs51
6846
6847         * support/regression/tests/bug-441448.c: use less memory
6848
6849         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
6850
6851         * support/regression/collate-results.py: typo
6852
6853 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
6854
6855         * support/regression/tests/fetchoverlap.c: Added new test case.
6856
6857         * support/regression/tests/bp.c: Added new test case.
6858
6859         * support/regression/tests/bug-448984.c: Added new test case.
6860
6861         * support/regression/tests/pow2shifts.c: Added new test case.
6862
6863         * src/z80/gen.c: Turned off the noise it normally generates for the release.
6864         (genlshTwo): Fixed right shift for count > 8.
6865
6866         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
6867
6868 2001-09-08    <johan AT FRIJA>
6869
6870         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
6871
6872 2001-09-07    <johan AT FRIJA>
6873
6874         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
6875
6876         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
6877
6878 2001-09-06    <johan AT FRIJA>
6879
6880         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
6881         * bernhard noted me at this: "() equals to (void)" (1.38)
6882
6883 2001-09-05    <johan AT FRIJA>
6884
6885         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
6886
6887 2001-09-04    <johan AT FRIJA>
6888
6889         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
6890
6891
6892 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
6893
6894         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
6895
6896 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
6897
6898         * link/z80/aslink.h: Fixed path for PATH_MAX
6899
6900 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
6901
6902         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
6903
6904         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
6905
6906         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
6907
6908         * 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.
6909
6910 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
6911
6912         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
6913         (genCmp): Fixed up genCmp for the GB with longs.
6914
6915         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
6916
6917         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
6918
6919         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
6920
6921         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
6922
6923 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
6924
6925         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
6926
6927 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
6928
6929         * 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.
6930
6931         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
6932
6933 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
6934
6935         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
6936
6937         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
6938
6939 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
6940
6941   * sim/ucsim/configure:    little improvement of Cygwin-detection
6942   * sim/ucsim/configure.in: little improvement of Cygwin-detection
6943   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
6944   * support/regression/tests/bug-221100.c: small changes for mcs51
6945   * support/regression/tests/bug-221168.c: small changes for mcs51
6946   * support/regression/tests/bug-227710.c: small changes for mcs51
6947   * support/regression/tests/staticinit.c: small changes for mcs51
6948   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
6949   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
6950   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
6951
6952 $Revision$