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