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