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