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