Fixed bug #895763. Thanks to o_gloom.
[fw/sdcc] / ChangeLog
1 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2
3         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
4         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
5         --pack-iram.
6         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
7         * as/mcs51/lkaomf51.c: fixed bug #895763
8
9 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
10
11         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12
13 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14
15         * doc/sdccman.lyx: added details about the HC08 storage classes and
16         interrupts, fixed the register usage info for z80 & gbz80
17
18 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
19
20         * doc/sdccman.lyx: added more pic16 port documentation
21         * device/include/pic16/: added header pic18fregs.h
22
23 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
24
25         * doc/sdccman.lyx: added Vangelis' contribution
26
27 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
28
29         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
30         extend to the next CALL or PCALL, not just to the next CALL.
31
32 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
33
34         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
35
36 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
37
38         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
39         bug #895752 and a better fix for bug #716790
40
41 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
42
43         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
44
45 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
46
47         * doc/sdccman.lyx: minor changes, minor changed
48
49 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
50
51         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
52         which can't handle SDCC_NEWONEBYTEOPS,
53         (geniCodeMultiply): removed conversion from mult to shift for pic14
54         and pic16
55
56 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
57
58         * src/hc08/gen.h,
59         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
60         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
61         thus fixing bug #895406
62
63 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
64
65         * device/lib/_modsint.c,
66         * device/lib/_modslong.c: sign follows divisor only
67         * src/hc08/gen.c (genMultOneByte): if result size is 1,
68         signs or signedness can be ignored
69         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
70         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
71         added optimization for IFX,
72         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
73         arguments;
74         reenabled optimization for IFX, which was removed on 2004-01-11
75         * src/SDCCast.h: added return type IFX
76         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
77         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
78         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
79         SDCC_OLDONEBYTEOPS selects the old behaviour
80         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
81         changed again and commented promotion rule
82         * src/SDCCval.c (valDiv): promotion no longer necessary
83         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
84         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
85         rewritten
86         * support/regression/tests/onebyte.c: added
87
88 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
89
90         * gen.c (genInline): reverted to old code for assemnling inline
91         code because of bug reported James Chadd
92
93 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
94
95         * ralloc.h: missing declarations from previous patch,
96         seems that patch for ralloc.h was never applied, fixed
97         
98 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
99            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
100
101         * pcode.c,
102         * pcode.h,
103         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
104         indirect addressing. Marked FSR0 as deprecated
105         * gen.c (pointerCode): commented out, not needed now
106         (pic16_popGet2p): new MOVFF helper function
107         (genGenPointerGet),
108         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
109         (shiftRLong): removed duplicate debugging info
110
111 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
112
113         * src/ds390/gen.c (genNearPointerGet),
114         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
115         optimization with bits, but not bitfields.
116         * src/ds390/ralloc.c (packRegisters),
117         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
118
119 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
120
121         * src/SDCCcse.c (algebraicOpts): copy operands before modification
122
123 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
124
125         * src/SDCCsymt.h,
126         * src/SDCCicode.c (operandFromSymbol),
127         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
128         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
129         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
130         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
131         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
132         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
133         bug #892038
134         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
135         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
136         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
137         * src/SDCCsymt.c (newSymbol),
138         * src/SDCC.y (struct_or_union_specifier, enum_specifier, 
139         enumerator_list),
140         * src/SDCCval.h,
141         * src/SDCCval.c (newiList): fixed bug #885705
142
143 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
144
145         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
146         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
147
148 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
149
150         * device/include/c8051f120.h,
151         * device/include/c8051f300.h,
152         * device/include/c8051f310.h: added/updated header files for Silicon
153         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
154         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
155         in new section Submitting patches
156
157 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
158
159         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
160         genFarPointerGet, genCodePointerGet, genGenPointerGet,
161         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
162         genGenPointerSet),
163         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
164         genFarPointerGet, genCodePointerGet, genGenPointerGet,
165         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
166         genGenPointerSet),
167         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
168         genFarPointerGet, genCodePointerGet, genGenPointerGet,
169         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
170         genGenPointerSet),
171         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
172         genFarPointerGet, genCodePointerGet, genGenPointerGet,
173         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
174         genGenPointerSet): fixed bug #892400
175         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
176         to eliminate build warnings.
177         * src/SDCCast.c (processParms),
178         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
179         fixed bug 751859
180         * support/valdiag/valdiag.py: added GCC to the list of defines active
181         when compiling with gcc
182
183 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
184
185         * support/Util/SDCCerr.h,
186         * support/Util/SDCCerr.c,
187         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
188         with an incomplete type (fixed bug #883734)
189         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
190
191 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
192
193         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
194
195 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
196
197         * src/SDCCast.c (decorateType),
198         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
199         function pointer implementation
200         * support/regression/tests/funptrs.c: added tests to verify both forms
201         of function pointers work correctly. Added tests to verify parameters
202         are passed in the correct order.
203
204 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
205
206         * device.c (regCompare): registers are sorted by ascending
207         address and increasing size,
208         * main.c (_pic16_finaliseOptions): removed the declaration
209         of compiler macro MCU. Now a macro of the format pic18fxxxx
210         will be defined from the command line
211
212 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
213             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
214
215         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
216         PCOP_RLCF was overwritten!
217         * gen.c (genSkip): commented out calls to pic16_emitcode,
218         * (genCmpEQ): fixed "long" compares, only high word did get compared,
219         * (genlshTwo),
220         * (genRRC): added debugging info,
221         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
222         overwritten while shifting,
223         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
224         overwritten while shifting,
225         * (AccLsh),
226         * (AccRsh),
227         * (shiftLLeftOrResult),
228         * (shiftRLeftOrResult),
229         * (shiftRLong),
230         * (shiftLLong): Implemented with pic16_emitpcode
231         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
232         * (genLeftShift): Fixed bug, operand for shift by variable always
233         was "and"ed with 0x0f,
234         * (genLeftShiftLiteral),
235         * (genrshTwo),
236         * (genRightShiftLiteral): added debugging info,
237         * (genrshFour): added comment,
238         * (genRightShift): determined signedness from operand "left"
239         instead of "result"
240
241 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
242
243         * src/SDCCicode.c (geniCodeParms),
244         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
245         function pointers, fixed function pointer bugs #861242 and #861896
246
247 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
248
249         * device/include/c8051f000.h,
250         * device/include/c8051f120.h,
251         * device/include/c8051f300.h: added header files for Silicon
252         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
253
254 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
255
256         * src/SDCCast.c (processParams): added new type flow and restructured
257         (gatherAutoInit): added new type flow
258         (addCast): cosmetic changes
259         (getLeftResultType): added new type flow for array indices, patch
260         provided by Stas, see FR #877103
261         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
262         array index patch by Stas
263         * src/SDCCast.h: added prototype getResultTypeFromType()
264         * src/SDCCval.h,
265         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
266         * src/pic/glue.c (pic14emitStaticSeg),
267         * src/pic16/glue.c (pic16emitStaticSeg),
268         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
269         for initialization of symbols
270         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
271         * support/Util/SDCCerr.h:
272         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
273         * .version: bumped version number to 2.3.8
274         * device/include/Makefile.in (install),
275         * doc/Makefile (install): changed to 'rm `find ...`' construct to
276         avoid warnings
277
278 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
279
280         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
281         Slade Rich fixed an optimization bug
282         * src/pic/pcodepeep.c,
283         * src/pic/pcoderegs.c
284         * doc/Makefile (install): added test for directory
285
286 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
287
288         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
289         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
290         * src/pic/ralloc.c (getRegPtr, getRegGpr),
291         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
292         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
293         * as/mcs51/asexpr.c (term),
294         * as/hc08/asexpr.c (term): fixed bug #887146
295
296 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
297
298         * src/z80/gen.c (genMult): handle single byte result product
299         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
300         DUMMY_READ_VOLATILE (fixed bug #886367)
301
302 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
303
304         * support/regression/tests/libmullong.c: fixed logic, on little endian
305         hosts we ended without a mullong_wrapper()
306
307 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
308
309         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
310         virus/worm forged address usage.
311
312 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
313
314         Fixed promotion, it should be done on AST level:
315         * src/SDCCast.c (addCast): added promotion to int
316         (decorateType): updated call to upCast()
317         * src/SDCCicode.c (geniCodeLeftShift): removed call to
318         usualUnaryConversions()
319
320 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
321
322         * support/regression/tests/literalop.c (mulWrapper): Added a
323         wrapper to remove integer overflow warnings.
324
325         * support/regression/tests/float_trans.c: Made work on host.
326
327         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
328         location of sz80.
329
330         * support/regression/generate-cases.py (main): Changed from inline
331         to a main method.
332
333         * doc/Makefile (install): Changed to depth first to get rid of
334         missing directory install warning.
335
336         * as/Makefile (install-doc): Made work on Mac.
337
338 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
339
340         * src/SDCCast.c: added an additional type flow in decorateType() of
341         opposite direction, see feature request #860006; it's enabled at runtime
342         by setting the environment variable SDCC_NEWTYPEFLOW
343         * src/SDCCast.h: changed prototype of decorateType()
344         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
345         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
346         'char' to 'int' can be omitted, if both operands are 'unsigned char';
347         see feature request #877103
348         * src/SDCCval.c: updated call of decorateType()
349         (valBitwise): fixed bug #882876
350         (valMinus): added promotion
351         (valLogicAndOr): result is unsigned
352         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
353         * src/SDCCsymt.c (computeType),
354         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
355         must not cause an unsigned operation
356         * src/pic/glue (pic14emitRegularMap),
357         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
358
359 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
360
361         * src/pic/pcode.c (PCodeID): commented out left over debug code
362
363 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
364
365         * support/valdiag/tests/overflow.c: added shift tests
366         * src/pic/device.c,
367         * src/pic/gen.c,
368         * src/pic/gen.h,
369         * src/pic/glue.c,
370         * src/pic/main.c,
371         * src/pic/pcode.c,
372         * src/pic/pcode.h,
373         * src/pic/pcodepeep.c,
374         * src/pic/pcoderegs.c,
375         * src/pic/ralloc.c,
376         * src/pic/ralloc.h: applied patch from Slade Rich;
377         added support for multiple code pages and multiple RAM banks on the
378         PIC 14 port. The ASM files now no longer simply assume all the
379         code / RAM are in the same page / bank. This means the linker can
380         safely allocate code/RAM of separate ASM files to different pages/banks.
381         * doc/sdccman.lyx: added Slade's tips
382         * src/mcs51/peeph.def: fixed bug #880768
383
384 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
385
386         * src/hc08/ralloc.c (rematStr): fixed bug #879282
387         * src/SDCCast.c (decorateType): fixed bug #880197
388
389 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
390
391         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
392         getopt.h.
393
394         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
395         strtof is not part of C89 and isn't included with Mac OS X.
396
397 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
398
399         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
400         shiftL2Left2Result): fixed bug #879326
401         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
402         (genMultOneByte): fixed bug in signed vs unsigned multiplication
403         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
404         address fetch for clr instruction
405         * device/lib/hc08/_mulint.c: created optimized assembly version
406         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
407
408 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
409
410         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
411         proposed in FR #877103
412
413 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
414
415         * src/SDCCval.c (cheapestVal): added missing checks
416         * src/SDCCicode.c (usualBinaryConversions): fixed condition
417         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
418
419 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
420
421         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
422         equal operands
423
424 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
425
426         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
427         loaded with the linker search paths (-L arguments) and the libraries
428         to be linked with the current source (-l arguments). Changes
429         currently will affect only the pic16 port.
430         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
431         include path the port specific paths and port specific libraries,
432         * gplink command now contains the $3 argument,
433         * src/pic16/device.h,
434         * src/pic16/device.c,: structure PIC_device is made public and
435         renamed to PIC16_device, the same for variable Pics which is renamed
436         to Pics16. Updated all references to them.
437         * src/pic16/glue.c (pic16glue): corrected bug with code
438         initialization which bypassed the variable initializations block.
439
440         * device/lib/pic16/Makefile.rules: removed --penable-stack from
441         COMPILE_FLAGS and added the --nostdinc option
442
443 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
444
445         * device/include/mc68hc908jb8.h: Register defs for another member
446         of the hc08 family. Contributed by Bjorn Bringert - thanks!
447
448 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
449
450         Documenting changes from previous commits.
451         * configure.in (version 1.56),
452         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
453         when generating output files to configure the pic16 library,
454         but now I've commented it out, since gputils aren't installed in the
455         SF compile farm, so library won't compile
456
457         * device/lib/Makefile.in (version 1.56): initially I've added in
458         target 'all' the prerequestive 'model-pic16' so it compiled the
459         pic16 library, but now I've commented it out for the same reasons
460         above,
461         * added targets 'model-pic16' and 'objects-pic16' to compile the
462         library
463         * added target 'port-specific-objects-pic16' to handle the
464         generated libraries and copy them into the build/ directory
465         * added target 'clean-intermediate-pic16' to clean intermediate
466         files into pic16 directory
467         * in target 'installdirs' added line to create directory pic16 in
468         the installation path
469
470         * device/include/Makefile.in (version 1.11): in target 'install'
471         added lines to copy all header files to installation path,
472         * in target 'installdirs' added line create directory for pic16
473         headers in the installation path
474
475 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
476
477         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
478          a function call
479
480 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
481
482         * configure,
483         * device/lib/configure.in,
484         * device/lib/configure: fixed for autoconf 2.57
485
486 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
487
488         * src/z80/main.c (_parseOptions): fixed the portmode= command line
489         option so that it actually works. Made it specific to the z80, since
490         the gbz80 doesn't have these kinds of I/O ports.
491
492 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
493
494         * device/include/z180.h,
495         * device/lib/_memcpy.c,
496         * device/lib/_memmove.c,
497         * device/lib/_mulint.c,
498         * device/lib/ser_ir.c,
499         * device/lib/ser_ir_cts_rts.c,
500         * device/lib/_strcmp.c,
501         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
502         * src/z80/main.c (_process_pragma): add support for pragmas bank and
503         portmode; added deprecation warning for bank= and protmode= forms.
504         Also, guard against buffer overflow.
505         * src/z80/gen.c (aopGet): generate better code for sfr banked read
506
507 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
508
509         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
510         changed interrupt vector table generation to only emit declared vectors.
511         * device/include/Makefile.in: added missing backslash
512         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
513
514 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
515
516         Mainly changes to support compilation of the device libraries
517         * src/pic16/device.c: stack is allocated via symbol and not
518         via literal number. The symbol is placed in the corresponding
519         position of the data ram
520         * (pic16_dump_section): relocatable and absolute uninitialized
521         data are now emitted in sorted order to reduce section naming,
522         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
523         weren't marked as being in the access bank,
524
525 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
526
527         Added portion of GNU PIC Library under the directory
528         device/include/pic16 and device/lib/pic16. These files
529         contain the declarations of SFRs for the PIC18Fxx2 devices.
530         The directory is initialized via configure from toplevel.
531         
532 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
533
534         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
535         the spilllocations to be compared correctly
536
537 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
538
539         * src/SDCCast.c (decorateType): fixed bug introduced today
540
541 2004-01-12  Borut Razem <borut.razem AT siol.net>
542
543         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
544         doc/sdccman.lyx: upper case pragmas are deprecated
545
546 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
547
548         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
549         in simpler and even better code
550
551 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
552
553         * src/SDCCicode.c (operandOperation): fixed bug #874819
554         * src/SDCCast.c (decorateType): fixed
555         char foo (unsigned long ul) { return ul > 0; }
556
557 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
558
559         * doc/sdccman.lyx: Moved and added some sections, small changes
560         all over. Telling LaTeX to be less strict with word spacing
561         to better keep the right margin. Changed some notes about
562         maintainance of the ports in section 3.2.1 - is it OK like this?
563
564 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
565
566         SDCC source changes:
567         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
568         convilong): modified to inform the pic16 port that builtin functions
569         are external
570
571         PIC16 PORT specific changes:
572         * src/pic16/device.c pic16_dump_equates() added,
573         processor registers declared internally by the port are emitted in
574         the translation as equates,
575         * src/pic16/gen.c: inline code is passed unprocessed to the
576         translation,
577         * (pic16_popGetLit2): fnuction modified to take second operand as
578         pCodeOp pointer and not as literal,
579         * (popRegFromIdx): prefixed with pic16_,
580         * (pic16_popCombine2): modified to receive already allocated pCode
581         operands,
582         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
583         * (genFunction): initializes local stack frame and pushes on stack
584         all the registers used by this function,
585         * (genEndFunction): restores all registers from stack and restores
586         stack frame,
587         * src/pic16/glue.c (pic16emitRegularMap): various changes and
588         improvements,
589         * (pic16glue): changed the program startup sequence,
590         * added new dbName code 'A' for functions placed in absolute section
591         * src/pic16/main.c: added function attribute _naked,
592         * added pragma 'code' to place a fnuction at an absolute address,
593         * added command line arguments --debug-ralloc and --pcode-verbose,
594         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
595         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
596         * (pic16_newpCodeOpLit2): modified to take the second operand as
597         pCodeOp pointer,
598         * (pic16_printpBlock): modified to emit each function in a separate
599         section,
600         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
601         UPPER for immediate operands,
602         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
603         instruction,
604         * src/pic16/peeph.def: all peepholes with movff are commented out,
605         because there is a problem in the pcode peep optimizer,
606         * src/pic16/ralloc.c: the register allocator can now reuse local
607         function symbols for another function. This saves register usage.
608         * src/pic16/ralloc.h: added flag isLocal in structure regs,
609
610         Added file src/pic16/NOTES with information about program writing on
611         the current port version.
612
613 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
614
615         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
616         and peephole 252 (array access)
617
618 2004-01-09  Borut Razem <borut.razem AT siol.net>
619
620         * src/SDCCmain.c : fixed #872250: -l command line defined library
621           files are scanned before standard library files
622
623 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
624
625         * src/SDCCast.c (decorateType): fixed bug #874046
626
627 2004-01-09  Borut Razem <borut.razem AT siol.net>
628
629         * support/scripts/sdcc.nsi: remove previous installation
630
631 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
632
633         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
634         bytes for last interrupt vector (mcs51)
635         * sdcc.spec: fixed typo
636
637 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
638
639         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
640         gen51Code): more efficient parameter receive for --model-large
641         ("bug" #845294)
642
643 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
644
645         * src/ds390/main.c,
646         * src/z80/main.c: added missed needLinkerScript flags (more than
647         one port structure defined in these file)
648         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
649         bug #795325
650
651 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
652
653         * src/SDCCmain.c: removed various references to DEFAULT_PORT
654         * src/port.h: added flag needLinkerScript in port->linker
655         structure to inform whether to create a .lnk file or not,
656         * src/avr/main.c,
657         * src/ds390/main.c,
658         * src/hc08/main.c,
659         * src/mcs51/main.c,
660         * src/pic/main.c,
661         * src/pic16/main.c,
662         * src/xa51/main.c,
663         * src/z80/main.c: changed appropriately to configure
664         needLinkerScript flag
665         * src/pic/gen.c,
666         * src/pic16/gen.c (genAddrOf): fixed bug #863624
667         * src/pic/glue.c: added variable udata_section_name to
668         override default uninitialized data segment definition for
669         devices only with SHAREBANK memory (reported from Erik Epetrich)
670         * (pic14emitOverlay): modified to emit a commented overlay segment
671         directive when no overlay data exist
672         * (picglue): modified to emit uninitialized data segment
673         according to udata_section_name
674         * src/pic/main.c (_pic14_parseOptions): added command line
675         options --udata-section-name=[name] to override default
676         udata definition name
677         * modified _linkCmd and _asmCmd to include compiler passed
678         arguments via -W option
679         * src/pic16/main.c: added $l in _asmCmd, changed extension for
680         object file from '.rel' to '.o' in port->linker structure,
681         changed size of fptr from 2 to 3 in port structure
682
683 2004-01-07  Borut Razem <borut.razem AT siol.net>
684
685         * support/scripts/sdcc.nsi: update PATH
686         * support/scripts/sdcc.ico: craeted
687
688 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
689
690         * device/include/Makefile.in: fix install
691         * doc/Makefile: fix install
692
693 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
694
695         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
696         in bug #860505
697         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
698         how the function variable allocation summary is displayed; also
699         include information about variables allocated to the overlay
700         segment
701
702 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
703
704         * as/mcs51/lkmain.c: Help about -Y option
705         * as/mcs51/lkarea.c: Fixed gcc warnings
706
707 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
708
709         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
710         fixed warning
711         * support/valdiag/tests/overflow.c: added
712         * src/SDCCast.c (decorateType),
713         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
714         LEFT_OP (left shift)
715
716 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
717
718         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
719         (default behaviour).
720
721 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
722
723         A python script to validate compiler diagnostic messages. It can be
724         used to verify that sdcc complains about bad c source code and
725         gives a good location of the error.
726         * support/valdiag/Makefile,
727         * support/valdiag/valdiag.py,
728         * support/valdiag/tests/*
729
730 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
731
732         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
733         * src/SDCCsymt.c (newEnumType),
734         * src/SDCCsymt.h
735         * support/Util/SDCCerr.c,
736         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
737         enum related bugs.
738         * support/regression/tests/enum.c: added test for enum values that
739         require at least 2 bytes of storage.
740
741 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
742
743         * src/common.h: added ifndef/define/endif macros
744         around the header file.
745         Bug reported from Jesus Calvino-Fraga
746
747 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
748
749         * sdcc.spec: updated
750         * device/include/Makefile.in: don't install CVS directories
751         * device/lib/Makefile.in: added removal of CVS directories after install
752         * doc/Makefile: fixed install, added local_icons
753         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
754         * src/mcs51/gen.c (genRightShift): fixed bug #870788
755         * src/ds390/gen.c (genRightShift): fixed bug #870788
756         * src/SDCCast.c (decorateType): fixed bug #870781
757
758 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
759
760         PIC16 port related changes:
761         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
762         added variable stackPos,
763
764         * gen.c: genCall, assignResultValue: added support for
765         pushing/retrieving function parameters to/from stack,
766         genFunction,genEndFunction: setup stack frame for the
767         generated function,
768         genAddrOf: will be changed according to bug 863624
769
770         * added files genutils.c and genutils.h which contain gen*
771         debugged and optimised functions extracted from gen.c
772         
773         * glue.c: added variable 'externs' which holds extern symbols,
774         pic16emitRegularMap: is modified to properly handle relocatable
775          symbols under the new scheme,
776         pic16createInterruptVect: is modified
777         pic16printPublics: is modified to emit 'global' assembler directives,
778         added pic16_printExterns to print extern symbols,
779         pic16glue: initializes stack/frame pointer in the beginning of
780         the assembly output. Temporary hack, will be corrected later,
781         because gplink yet does not support stack and SDCC does not
782         yet support a type of crt0.o object to create the final binary.
783         
784         * Removed many lines that contain 8051 legacy code.
785         * The code is finally placed under a 'code' directive.
786         * Added port specific options.
787         
788         * _process_pragma: simplified since now we do not need *special*
789         include file to define SFR registers. But a separate header
790         will be needed. This will be developed later.
791         * _pic16_parseOptions: added, parses port specific options:
792         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
793         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
794         --preplace-udata-with=
795         
796         * _pic16_setDefaultOptions: modified to initialize section names,
797         but hack is temporarly out of order since it needs improvement.
798         * _pic16_genAssemblerPreamble: configuration words are emitted by
799         their address instead of their name. This part is incomplete and
800         supports only the 18Fxx2 devices. Other devices will emit an error
801         during assembly since they do not contain the same set of config
802         registers
803         * _pic16_genIVT: is modified,
804         
805         * pcode.c: added definitions for some hardware registers that are needed
806         for stack support
807         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
808         All PCI entries are updated. Now LFSR is supported.
809         * Removed pic16_pciTRIS is mentioned by mdubuc in source
810         * added pic16_newpCodeOpLit2 to support instructions with
811         two literal arguments
812         * pic16_pCode2str: corrected code that emits assembler instructions
813         with two literal operands and those that have an access bit modifier
814         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
815         this fixes a bug which caused some labels to be lost, when an
816         assembler directive was added, i.e. banksel,
817         * pic16_FixRegisterBanking: improved logic that causes the insertion
818         of bank switching,
819         * InlineFunction: functions that are called once, are not any more
820         inlined. This can be a port option in the future,
821         
822         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
823         
824         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
825         hold the corresponding uninitialized symbols,
826         * pic16_allocProcessorRegister: registers have explicit marked the
827         accessBank field,
828         * pic16_allocInternalRegister: registers are explicit marked as
829         not used,
830         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
831         processing list, so bit registers were lost,
832         * 
833
834         * ralloc.h: added field 'accessBank' and original symbol operand
835         in register definition,
836         * removed the field isMapped from register definition,
837
838         ** Several functions have been removed from various sources:
839         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
840         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
841         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
842         pic16_assignRelocatableRegisters
843         
844         ** others have been introduced:
845         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
846         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
847         
848 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
849
850         * support/scripts/inc2h.pl: changed definition of BIT_AT
851         to emit 'sbit at' instead of 'bit at'. This was a request.
852
853         PIC16 port related preliminary changes:
854         * gen.c: prefixed function popRegFromString with
855         pic16_ and all references to it corrected
856         * pcode.c: all pic16_pc_* hardware registers prefixed
857         with underscore (_),
858         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
859         * ralloc.c: newReg(): when register is REG_SFR then
860         set address to rIdx,
861         pic16_allocProcessorRegister(): marks register wasUsed=0
862         pic16_writeUsedRegs(): added a call to assign processor
863         registers via pic16_assignFixedRegisters
864
865 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
866
867         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
868         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
869         variables in unused register banks.  Also the SSEG is placed
870         wherever there is enough space for it, and IDATA can be anywhere
871         in internal RAM.  For now compile using -Wl-Y[stack_size].
872         The mem file is different for this option as well, since it
873         makes no sense of talking about DSEG lenght.
874
875 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
876
877         * src/SDCClrange.c: fixed bug 869095 that caused segfault
878         in certain cases, e.g. when ROM assignment, patch provided
879         from Albert den Haan.
880
881 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
882
883         Many signedness and type propagation fixes:
884         * src/SDCCicode.c: made geniCodeCast() static
885         replaced SPEC_ by IS_ (cosmetic)
886         (operandOperation): fixed div and mod operation
887         (usualBinaryConversions): added support for promotion of char
888         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
889         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
890         (geniCodeAdd): an array index will stay unsigned, even if promoted
891         from char to int
892         (geniCodeArray): ditto
893         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
894         * src/SDCCsymt.c (computeType): added more support for char;
895         promotion of char is selectable by promoteCharToInt, fixed signedness
896         for all cases
897         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
898         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
899         * src/SDCCval (val*): replaced signedness calculation by
900         computeType()
901         rearranged if-branches (cosmetic)
902         (valShift): added warning W_SHIFT_CHANGED
903         (valCompare): fixed problem with different types
904         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
905         * support/regression/tests/literalop.c: added many cases
906         * support/regression/tests/ast_constant_folding.c: changed finally to
907         'unsigned int'
908         * .version: new year, new version: 2.3.7
909         * src/SDCCmain.c (main): applied patch #866468
910         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
911         provided by Scott Bronson
912         * doc/sdccman.lyx: updated documentation for sdcdb
913         updated and added chapter tips
914
915 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
916
917         * src/SDCCsymt.h: missing from yesterday's commits
918
919 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
920
921         * src/SDCC.y (struct_or_union_specifier),
922         * support/Util/SDCCerr.c,
923         * support/Util/SDCCerr.h: verify that struct & union tags are used
924         as declared.
925
926 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
927
928         * src/SDCCglobl.h: missing from yesterday's commits
929
930 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
931
932         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
933         sft_attributes, struct_declaration, parameter_declaration,
934         type_name, start_block, declaration_list),
935         * src/SDCC.lex (check_type): support redefinition of typedef names
936
937 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
938
939         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
940         aligned xdata arrays. Erik helped me with the if clause.
941
942 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
943
944         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
945         warning
946
947 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
948
949         * src/SDCCast.h,
950         * src/SDCCast.c (newAst_),
951         * src/SDCCicode.h,
952         * src/SDCCicode.c (ast2iCode, newiCode),
953         * src/SDCCglobl.h,
954         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
955         expr, statement, expression_statement, selection_statement,
956         iteration_statement, expr_opt, jump_statement): foundation for tracking
957         sequence points
958         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
959         point code too)
960
961 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
962
963         * support/Util/SDCCerr.c,
964         * src/SDCCast.h,
965         * src/SDCCast.c (createCase, createDefault, decorateType),
966         * src/SDCClabel.c (labelUnreach),
967         * src/SDCC.y (labeled_statement, jump_statement): More improvements
968         to error messages.
969         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
970         (with thanks to Stas Sergeev)
971         * device/include/time.h,
972         * device/lib/time.c (CheckTime): suppress unreachable code warning
973
974 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
975
976         * src/SDCCast.c (createIvalCharPtr),
977         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
978         bug #753752)
979         * support/regression/tests/nullstring.c: tests for these two bugs
980
981 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
982
983         * support/Util/SDCCerr.h,
984         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
985         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
986         about storage class and 'at' used inside struct or union
987         * src/SDCCBBlock.c (iCodeFromeBBlock),
988         * src/SDCCcse.c (ifxOptimize),
989         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
990         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
991         printIval, emitStaticSeg, emitOverlay),
992         * src/SDCClabel.c (deleteIfx),
993         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
994         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
995         gatherAutoInit, processParms),
996         * support/Util/SDCCerr.h,
997         * support/Util/SDCCerr.c (werrorfl): Support for better error location
998         reporting for post-parse errors.
999
1000 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1001
1002         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
1003         implicit casts via union; they don't work on big endian systems
1004         (possible fix for bug #861138)
1005
1006 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1007
1008         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
1009         * src/mcs51/main.c: fixed the fix for bug #737001
1010
1011 2003-12-15  Borut Razem <borut.razem AT siol.net>
1012
1013         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
1014
1015 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1016
1017         * support/makebin/makebin.c: put output in binary mode
1018
1019 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1020
1021         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
1022         xdata and data memory on startup. Set the environment variable
1023         SDCC_NOGENRAMCLEAR to disable this.
1024         * src/mcs51/peephole.def,
1025         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
1026         (allows non-interrupt and interrupt code to safely compete for a resource
1027         without the non-interrupt code having to disable interrupts)
1028
1029 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1030
1031         * src/SDCCicode.c (geniCodeAdd),
1032         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
1033         with valFromType if type might be a pointer and host is big endian).
1034         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
1035         types, not just integer types.
1036         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
1037         multiply defined with mismatching "at" address.
1038
1039 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1040
1041         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
1042         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
1043         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
1044         with embedded nulls (fixed bug #753752)
1045
1046 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1047
1048         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
1049         Apparently this did not see much testing (endless loop)
1050
1051 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1052
1053         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
1054
1055 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1056
1057         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
1058         gracefully handle NULL memmap pointers
1059
1060 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1061
1062         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
1063         instead of deleting the iCode when an operand is volatile
1064         * src/z80/gen.c (genDummyRead),
1065         * src/mcs51/gen.c (genDummyRead),
1066         * src/ds390/gen.c (genDummyRead),
1067         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
1068         not just IC_RIGHT
1069         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
1070         * src/SDCC.y: fixed bug #850420
1071
1072 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1073
1074         Applied z80 i/o port patch from Peter Townson and fixed some operators
1075         to better handle operands in A register.
1076         * device/include/z180.h
1077         * src/SDCC.y
1078         * src/SDCCglue.c
1079         * src/z80/gen.c
1080         * src/z80/gen.h
1081         * src/z80/main.c
1082         * src/z80/peeph-z80.def
1083         * src/z80/peeph.def
1084         * src/z80/z80.h
1085
1086 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1087
1088         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
1089
1090 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1091
1092         * device/lib/hc08/_mullong.c: Removed extra #endif
1093
1094 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1095
1096         * sim/ucsim/hc08.src/inst.cc,
1097         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
1098         carries from x to h
1099         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
1100         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
1101         * device/include/stdarg.h: fixed varargs for hc08
1102         * device/lib/Makefile.in,
1103         * device/lib/hc08/Makefile,
1104         * device/lib/hc08/_mulint.c,
1105         * device/lib/hc08/_mullong.c: fixed some endian problems
1106
1107 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1108
1109         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
1110         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
1111         * device/lib/_gptrget.c,
1112         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
1113
1114 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1115
1116         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
1117         * src/SDCCast.c (astErrors): fixed bug #846007
1118         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
1119
1120 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1121
1122         * src/SDCCast.c (decorateType): disabled a transformation I added in
1123         revision 1.188 (access to fields of a structure at an absolute address);
1124         it breaks with bitfields, extern declarations, and gcse analysis.
1125         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
1126         could be assigned through a pointer, so don't complain.
1127         * src/SDCCast.c (astErrors),
1128         * src/SDCCast.h,
1129         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
1130
1131 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
1132         
1133         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
1134         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
1135         output of __config directives, since gpasm now supports them
1136         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
1137         pre-processor macro, i.e. -DMCU=p18f452
1138         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
1139         and modified to handle 'cast' icode similarly to '=' icode
1140         * src/pic16/device.h (typedef struct PIC_device): added field
1141         'extMIface' to indicate that chip has external memory interface
1142         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
1143         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
1144         18F8720
1145
1146 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1147
1148         * src/SDCC.y (pointer): fixed bug #846006
1149         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
1150         * src/SDCCast.c (decorateType): fixed bug #846009
1151         * src/ds390/peeph.def,        
1152         * src/ds390/gen.c (genAnd, genOr),
1153         * src/mcs51/peeph.def,        
1154         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
1155
1156 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1157
1158         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
1159         * src/SDCCdflow.c
1160         * src/SDCCcse.c
1161         * src/SDCCcse.h
1162         * src/SDCCBBlock.h
1163         * src/SDCCBBlock.c
1164
1165 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
1166
1167         fixed bug #845089
1168         * src/SDCCbitv.h,
1169         * src/SDCCbitv.c: added function to free a bitvector
1170         * src/SDCClrange.h,
1171         * src/SDCClrange.c: added function to recompute the liveranges
1172         * src/avr/ralloc.c,
1173         * src/ds390/ralloc.c,
1174         * src/hc08/ralloc.c,
1175         * src/mcs51/ralloc.c,
1176         * src/pic/ralloc.c,
1177         * src/pic16/ralloc.c,
1178         * src/xa51/ralloc.c,
1179         * src/z80/ralloc.c: recompute the liveranges after register packing
1180
1181 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
1182
1183         * src/SDCCloop.c (newInduction): fixed bug #845630
1184
1185 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1186
1187         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
1188         inadvertantly left behind from my 2003-11-12 change
1189
1190 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1191
1192         Updated headers I neglected to commit yesterday.
1193         * src/SDCClrange.h,
1194         * src/SDCCicode.h
1195
1196 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1197
1198         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
1199         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
1200         * src/SDCCopt.c (eBBlockFromiCode),
1201         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
1202         the creation of the key hash table from the sequencing so it can be used
1203         earlier (for some GCSE bug fixes still pending)
1204
1205 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1206
1207         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
1208         * support/regression/tests/addsub.c: testing genPlus shortcut
1209
1210 2003-11-15  Borut Razem <borut.razem AT siol.net>
1211
1212         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
1213
1214 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1215
1216         * src/SDCCcse.c (cseBBlock): fixed bug #527779
1217         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
1218         ordering is immaterial.
1219         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
1220
1221 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1222         
1223         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
1224         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
1225         (SIGSEV) of bug #840381
1226         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
1227         unlink new file before rename if new and old filenames are the same)
1228
1229 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1230
1231         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
1232         uninitialized variables) for the mcs51. Set environment variable 
1233         SDCC_GENRAMCLEAR to test. 
1234         xdata initialization slightly shorter
1235
1236 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1237
1238         * src/SDCCsymt.h,
1239         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
1240         #838241 & 780691 (basicly the same bug)
1241         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
1242         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
1243
1244 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
1245
1246         * src/SDCCmain.c (linkEdit): "fix" #834252
1247
1248 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1249
1250         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
1251         * src/SDCCast.h,
1252         * src/SDCC.y: fixed bug #819403
1253
1254 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1255
1256         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
1257         the reentrant attribute.
1258         * src/hc08/gen.c (genPackBits): added missing stack readjustment
1259         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
1260         simulation
1261         * src/SDCCast.c (decorateType): fixed bug with storage class not being
1262         updated during pointer dereference; f.e. ~(((char *)1)*) was being
1263         erroneously reduced to a literal.
1264         * src/hc08/ralloc.c (packRegisters, rematStr),
1265         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
1266         some cases
1267
1268 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1269
1270         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
1271         * doc/sdccman.lyx: changed from 'article' to 'book'
1272         * doc/Makefile: readded test_suite_spec and cdbfileformat
1273
1274 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
1275
1276         * device/include/stdlib.h: include malloc.h to comply with ANSI
1277         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
1278
1279 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1280
1281         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
1282         * doc/clean.mk: also remove *.out files
1283         * doc/sdccman.lyx: some additions, larger top/bottom margins
1284
1285 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1286
1287         * src/SDCC.y: fixed bug #837365
1288         * support/regression/tests/bitopcse.c
1289         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
1290         a symbol (might be valop instead)
1291         * device/lib/Makefile.in: added errno.c to HC08SOURCES
1292         * device/lib/clean.mk: added hc08 to the cleaning list
1293
1294 2003-11-04  Borut Razem <borut.razem AT siol.net>
1295
1296         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
1297           made 2003-11-04
1298         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1299           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
1300           malloc is declared in standard stdlib.h
1301
1302 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1303
1304         * device/lib/hc08/Makefile: need to clean .rel not .o files
1305         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
1306
1307 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1308
1309         * src/port.h,
1310         * src/hc08/main.c,
1311         * src/mcs51/main.c,
1312         * src/ds390/main.c,
1313         * src/z80/main.c,
1314         * src/avr/main.c,
1315         * src/pic/main.c,
1316         * src/pic16/main.c,
1317         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
1318         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
1319         tests (which uses the port's oclsExpense function)
1320         * src/SDCC.y,
1321         * src/SDCCast.c,
1322         * src/SDCCicode.c,
1323         * src/hc08/gen.c,
1324         * src/ds390/gen.c,
1325         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
1326
1327 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1328
1329         * src/SDCCcse.c (ifxOptimize),
1330         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
1331         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
1332         deleting the IFX iCode.
1333         * src/hc08/ralloc.c: reduced unneeded slocs
1334         * src/hc08/gen.c: fixed bug in asmopToBoolean
1335
1336 2003-11-04  Borut Razem <borut.razem AT siol.net>
1337
1338         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
1339           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1340           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
1341           transferred to configure
1342
1343 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
1344
1345         Use headers defined in the C[++] standards:
1346         * sim/ucsim/gui.src/serio.src/fileio.cc
1347         * sim/ucsim/gui.src/serio.src/frontend.cc
1348         * sim/ucsim/gui.src/serio.src/main.cc
1349         * sim/ucsim/gui.src/serio.src/posix_signal.cc
1350         * support/Util/NewAlloc.c
1351         * as/hc08/lklibr.c
1352         * as/mcs51/lklibr.c
1353         * as/z80/aslist.c
1354         * as/z80/assym.c
1355
1356 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1357
1358         * Added MSVC projects for hc08 assembler and linker:
1359         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
1360         /as/hc08/link_hc08.dsp
1361
1362 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
1363
1364         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
1365
1366 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
1367
1368         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
1369
1370 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1371
1372         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
1373
1374 2003-10-31  Borut Razem <borut.razem AT siol.net>
1375
1376         * support/cpp2/cpplib.h,
1377           support/cpp2/cpplib.c,
1378           support/cpp2/cpplex.c,
1379           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
1380           to switch _asm block preprocessing on / off. Default is
1381           #pragma preproc_asm +
1382
1383 2003-10-31  Borut Razem <borut.razem AT siol.net>
1384
1385         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
1386           when outputting comment blocks (when executed with -C option) and
1387           _asm (SDCPP specific) blocks
1388
1389 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1390         
1391         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
1392
1393 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
1394
1395         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
1396
1397 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
1398
1399         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
1400         * src/SDCCast.c (decorateType): fixed bug #832664
1401
1402 2003-10-31  Borut Razem <borut.razem AT siol.net>
1403
1404         * support\cpp2\cpplex.c: fixed for SDCPP:
1405           comments(when executed with -C option) and _asm blocks
1406           were included even if they where in skipped #if block.
1407           Applied solution from GCC cpp 3.3.2
1408
1409 2003-10-31  Borut Razem <borut.razem AT siol.net>
1410
1411         * src/SDCC.lex: sdcc now understands both formats:
1412           '# <line_number> <file_name>' and
1413           '#line <line_number> <file_name>'
1414         * support/cpp2/cppmain.c: sdcpp now generates the standard
1415           '# <line_number> <file_name>' instead of former
1416           '#line <line_number> <file_name>'
1417
1418 2003-10-30  Borut Razem <borut.razem AT siol.net>
1419
1420         * support/cpp2/cpphash.h,
1421         * support/cpp2/cpplib.h
1422         * support/cpp2/cpplex.c,
1423         * support/cpp2/cppmain.c,
1424         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
1425
1426 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1427
1428         Fixed a number of problems revealed by bug #827883.
1429         * src/SDCCloop.c (loopInvariants): Spill location of the
1430         result operand should be recomputed if extracted from
1431         a loop. Also, don't extract assignments of an iTemp
1432         from a literal.
1433         * src/SDCCast.c (isConformingBody): loop reversal should
1434         not occur if the control variable is involved with a
1435         relational operator.
1436
1437 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1438
1439         * .version: bumped to 2.3.6 to reflect the big improvements
1440         made by Erik and Klaus. Thanks!
1441
1442 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
1443
1444         Replaced the livrange code.
1445         * src/SDCClrange.c: added new LR code
1446         * src/SDCCloop.c,
1447         * src/SDCCBBlock.h: removed remainig parts from old LR code
1448         * src/ds390/ralloc.c,
1449         * src/ds390/gen.c: minor fixes to make it work with new code
1450
1451 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1452
1453         * as/hc08/asm.h,
1454         * as/hc08/lkrloc.c,
1455         * src/hc08/gen.c,
1456         * src/hc08/ralloc.c: Fix various warnings related to the hc08
1457         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
1458         (tweaked fix for bug #818696)
1459
1460 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1461
1462         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
1463
1464 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1465
1466         * src/SDCCmain.c,
1467         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
1468         * src/mcs51/gen.c (gencjneshort),
1469         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
1470         more efficient (per Scott Bronson's suggestion)
1471
1472 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1473
1474         Extended the semantics of the critical keyword to include
1475         individual statements. See RFE #827755 and #799831
1476         * src/SDCC.y
1477         * src/SDCCicode.c
1478         * src/SDCCopt.c
1479         * src/SDCCast.c
1480         * support/Util/SDCCerr.c
1481         * support/Util/SDCCerr.h
1482         * src/mcs51/gen.c
1483         * src/ds390/gen.c
1484         * src/hc08/gen.c
1485
1486 2003-10-19  Borut Razem <borut.razem AT siol.net>
1487
1488         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
1489
1490 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1491
1492         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
1493         Fixed bug #818696
1494         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
1495         and predecrement operand is displayed
1496
1497 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1498
1499         * src/SDCCval.c (valMinus): fixed bug #826041
1500
1501 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1502
1503         Some hc08 related updates that I missed earlier
1504         * sim/ucsim/stypes.h
1505         * support/regression/ports/hc08/spec.mk
1506
1507 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1508
1509         New target "hc08" for the Motorola 68hc08 family of micros
1510
1511         * configure
1512         * configure.in
1513         * Makefile
1514         * src/hc08/*
1515         * src/SDCCmain.c
1516         * src/port.h
1517         * sim/ucsim/hc08.src/*
1518         * sim/ucsim/configure.in
1519         * src/ucsim/configure
1520         * sim/ucsim/packages_in.mk
1521         * as/hc08/*
1522         * as/Makefile
1523         * device/include/mc68hc908qy.h
1524         * device/lib/hc08/*
1525         * device/lib/Makefile.in
1526         * support/regression/ports/hc08/*
1527         * support/regression/Makefile
1528
1529 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1530
1531         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
1532         regression test
1533         * src/ds390/gen.c (genCast): fixed bug #821957
1534
1535 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1536
1537         * device/lib/logf.c: "fixed" overlay bug
1538         * support/regression/ports/host/spec.mk: added m library
1539         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
1540         * support/regression/tests/float_trans: added (for Eric)
1541
1542 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
1543
1544         * src/mcs51/gen.c (genCpl): fixed bug
1545         http://sf.net/mailarchive/message.php?msg_id=6263915
1546
1547 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
1548
1549         * src/SDCCast.c (decorateType): added extended constant folding
1550         * src/SDCCsymt.c (computeType): cleanup
1551         * src/SDCCval.c (valShift): minor optimization
1552         * support/regression/tests/ast_constant_folding.c: added
1553
1554 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1555
1556         * src/SDCCmain.c: removed some unintended changes
1557
1558 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1559
1560         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
1561         * src/z80/gen.c: fixed part of bug #817589
1562         * src/SDCCsymt.c (checkFunction): fixed bug #817895
1563
1564 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
1565
1566         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
1567         * src/SDCCcflow.c
1568         * src/SDCCcse.c
1569         * src/SDCCdflow.c
1570         * src/SDCClabel.c
1571         * src/SDCClrange.c
1572         * src/SDCCmem.c
1573         * src/SDCCopt.c
1574         * src/SDCCpeeph.c
1575         * src/SDCCset.c
1576         * src/avr/ralloc.c
1577         * src/ds390/ralloc.c
1578         * src/izt/ralloc.c
1579         * src/mcs51/ralloc.c
1580         * src/pic/ralloc.c
1581         * src/pic16/ralloc.c
1582         * src/xa51/ralloc.c
1583         * src/z80/ralloc.c
1584         * src/z80/gen.c: removed unused label "release:"
1585
1586 2003-10-06  Borut Razem <borut.razem AT siol.net>
1587
1588         * src/SDCC.lex: removed definition of unused variables
1589           save_optimize and save_options
1590
1591 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1592
1593         * clean.mk: removed '=' in "-maxdepth=1"
1594         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
1595         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
1596
1597 2003-10-06  Borut Razem <borut.razem AT siol.net>
1598
1599         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
1600           my_unput() replaced by unput()
1601
1602 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
1603
1604         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
1605         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
1606         type-punned pointer will break strict-aliasing rules"
1607         Old LR behaviour is again default; Klaus' LR can be choosen by
1608         defining the environment variable LRKLAUS
1609         * src/SDCCBBlock.h
1610         * src/SDCCloop.c
1611         * src/SDCClrange.c
1612         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
1613         * clean.mk: fixed removal of files in bin/CVS/
1614         * device/lib/clean.mk: fixed removal of directories small and large
1615         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
1616         * src/SDCCicode.c,
1617         * src/SDCCval.c: removed superflous test for pedantic
1618
1619 2003-10-05  Borut Razem <borut.razem AT siol.net>
1620
1621         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
1622           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
1623           message "unmatched #pragma SAVE and #pragma RESTORE"
1624
1625 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1626
1627         * doc/sdccman.lyx: various additions and updates (interrupts, inline
1628           assembly, critical functions, atomic, nojtbound)
1629
1630 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
1631
1632         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
1633         * src/SDCCBBlock.h
1634         * src/SDCCloop.c
1635         * src/SDCCloop.h
1636         * src/SDCClrange.c
1637
1638 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1639
1640         * src/z80/gen.h,
1641         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1642         * src/mcs51/gen.h
1643         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1644         * src/ds390/gen.h
1645         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1646         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
1647         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
1648
1649 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1650
1651         * src/z80/gen.c (genRet): fixed bug #524753
1652         * src/z80/gen.c (genCast): fixed internal error on cast from
1653         pointer to long
1654         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
1655         fix for bug #477835 to the z80
1656         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
1657         for tracking iCodes in the peephole optimizer for z80
1658
1659 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1660
1661         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
1662         the other part of bug #814548
1663         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
1664
1665 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
1666
1667         * src/SDCCcse.c: fixed part of bug #814548
1668
1669 2003-09-28  Borut Razem <borut.razem AT siol.net>
1670
1671         * src/asm.c: rewrite of printILine() to use temporary file instead
1672           a pipe
1673         * src/xa51/main.c: commented out declaration of int rewinds
1674
1675 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1676
1677         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
1678
1679 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1680
1681         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
1682         * src/asm.c (printILine): Fixed bug #811015
1683
1684 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1685
1686         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
1687         freeing.
1688
1689 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1690
1691         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
1692         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
1693         to correctly handle general case of AOP_PAIRPTR
1694         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
1695
1696 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1697
1698         * src/mcs51/ralloc.c (fillGaps),
1699         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
1700         register positioning bug)
1701
1702 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
1703
1704         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
1705
1706 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1707
1708         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
1709         genCodePointerGet, genGenPointerGet, genFarPointerSet,
1710         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
1711         (ralloc doesn't intentionally do this now, but perhaps later)
1712         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
1713         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
1714         register positioning bugs (Fixed bug #762602 and #795325)
1715         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
1716         (Fixed bug #808779)
1717         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
1718         lines that --i-code-in-asm generates
1719
1720 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1721
1722         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
1723         trying to fclose a FILE* that was already closed.
1724
1725 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1726
1727         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
1728         of const struct should be treated as if const themselves)
1729
1730 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
1731
1732         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
1733
1734 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1735
1736         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
1737         Unix (/n) and DOS (/r/n) line terminations.
1738
1739 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1740
1741         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
1742         bug #613775
1743
1744 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1745
1746         * src/mcs51/gen.c (genFunction, genEndFunction),
1747         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
1748         and restore of EA so that stack offsets to parameters are
1749         correct when using both critical and reentrant/stack-auto.
1750         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
1751         size (can be triggered in error if sloc is shared between
1752         different sized objects)
1753         * device/include/float.h: fixed macros to explicitly use
1754         unsigned long where needed
1755
1756 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
1757
1758         Feature req. 799831: added code to allow nesting of critical functions
1759         * src/mcs51/gen.c (genFunction, genEndFunction)
1760         * src/ds390/gen.c (genFunction, genEndFunction)
1761
1762 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1763
1764         * src/SDCCsymt.c (sclsFromPtr),
1765         * src/SDCCsymt.h,
1766         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
1767         support for standard C idiom of memory mapped variables; for
1768         example, *((xdata int*)0x1234) = 1 is now internally equivalent
1769         to xdata int at 0x1234 tempvar = 1.
1770         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
1771         provided by Akiya ISHIDA
1772
1773 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
1774
1775         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
1776         * src/SDCCval.c (constVal): added reduction from int to char
1777         * src/SDCCval.c (valMult, valDiv): fixed sign handling
1778         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
1779         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
1780         to ignore the sign
1781         * support/regression/tests/shifts.c: fixed
1782
1783 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1784
1785         * src/z80/gen.c (genXor): Fixed bug #805445
1786
1787 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1788
1789         Fixed bug #621531 (const & volatile confusion in the type chain).
1790         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
1791         refer to the const or volatile state of the pointer itself.
1792
1793         * src/SDCCast.c
1794         * src/SDCCglue.c
1795         * src/SDCCicode.c
1796         * src/SDCCsymt.c
1797         * src/SDCCval.c
1798         * src/SDCC.y
1799         * src/SDCCsymt.h
1800         * src/pic/gen.c
1801         * src/pic/ralloc.c
1802         * src/pic16/gen.c
1803         * src/pic16/ralloc.c
1804         * support/regression/tests/const.c
1805
1806 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1807
1808         When checking for duplicated modules, use absolute paths
1809         instead of relative paths.  Files changed:
1810
1811         * as/mcs51/lklib.c
1812         * link/z80/lklib.c
1813
1814 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1815
1816         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
1817
1818 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1819
1820         * device/include/string.h: added size_t typedef, changed
1821         prototypes to use size_t, eliminated separate reentrant and
1822         non-reentrant declarations, added _memmove declaration
1823         * device/lib/_memcpy.c: changed to use size_t instead of int,
1824         changed /4 to >>2 to avoid division library call
1825         * device/lib/_memcmp.c,
1826         * device/lib/_memset.c,
1827         * device/lib/_strncat.c,
1828         * device/lib/_strncpy.c,
1829         * device/lib/_strncmp.c: changed to use size_t instead of int
1830         * device/lib/_memmove.c: new file (fixed bug #772294)
1831         * device/lib/Makefile.in: added _memmove.c
1832         * device/lib/z80/asm_strings.s: fixed bug #772290
1833         * support/regression/tests/bitfields.c: attempt to fix host assertion
1834         failure on amd64-unknown-linux2.2
1835
1836 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1837
1838         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
1839         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
1840         * as/z80/asmain.c (main): fixed bug #801766
1841
1842 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
1843
1844         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
1845         compilers
1846
1847 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1848
1849         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
1850         reported in bug #800609
1851
1852 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
1853
1854         * Top header beautifications in src/pic16 directory:
1855           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
1856           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
1857           pcoderegs.h, ralloc.c, ralloc.h
1858         * main.c: added top header and GPL license notice
1859         * pcode.c: fixed the if-conditional warning
1860  
1861 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
1862
1863         * device/lib/_mullong.c: replaced int by short for gcc
1864
1865 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1866
1867         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
1868         and JUMPTABLE iCodes properly now (worked by accident before)
1869         * src/mcs51/gen.c (leftRightUseAcc),
1870         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
1871         iCode properly now. Use getSize instead of nRegs since a & b
1872         aren't part of the nRegs tally.
1873
1874 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
1875
1876         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
1877         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
1878           before instructions that use the _STATUS register
1879
1880 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
1881
1882         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
1883         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
1884         fetching of the pointer
1885         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
1886         copied from genNearPointerSet()
1887         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
1888         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
1889         If they pop r0/r1 they must be called in the opposite order than aopOp().
1890         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
1891         (resp. --stack-auto), prepared for --xstack
1892
1893 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1894
1895         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
1896
1897 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
1898
1899         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
1900         these ports have their own __sdcc_external_start()
1901
1902 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
1903
1904         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
1905         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
1906         type for bits was changed. It resulted in bit variables becoming
1907         global, which is not permitted in PIC 14 assembly output.
1908
1909 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1910
1911         * doc/sdccman.lyx: various additions and updates. Rearranged sections
1912
1913 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1914
1915         Z80 and MCS51 linkers complaint if a public symbol is defined
1916         in more than one library module:
1917
1918         * as/mcs51/lklib.c
1919         * link/z80/lklib.c
1920         * as/mcs51/Makefile.in
1921
1922 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1923
1924         A few small changes that speed up the peephole optimizer.
1925
1926         * src/SDCCpeeph.c
1927
1928 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1929
1930         Try to make the peephole optimizer smarter by maintaining
1931         an association between the assembly source code and the
1932         iCodes that originated them. Put this information to use
1933         with a new peephole rule condition "notVolatile" so that
1934         the rules can be aggressive yet still safe.
1935
1936         * src/SDCCpeeph.c
1937         * src/SDCCpeeph.h
1938         * src/mcs51/gen.c
1939         * src/mcs51/peeph.def
1940
1941 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1942
1943         Fixed bug #741761
1944
1945         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
1946         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
1947         if the left or right operand symbols have the accuse flag set.
1948
1949 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1950
1951         Changed the type of the result of the ! (NOT) operator to char;
1952         previously it returned the same type as the source. This allows
1953         us to eliminate all the genFloatNot functions (all of its target
1954         implementations were very buggy) since !float can use the same
1955         code as !long now.
1956
1957         * src/SDCCicode.c (ast2iCode): ! returns char
1958         * src/mcs51/gen.c (genNot, genNotFloat),
1959         * src/ds390/gen.c (genNot, genNotFloat),
1960         * src/z80/gen.c (genNot, genNotFloat),
1961         * src/pic/gen.c (genNot, genNotFloat),
1962         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
1963
1964 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
1965
1966         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
1967         1. Interrupt would not compile properly. Ensure PCLATH register is saved
1968            during interrupts. Ensure WSAVE is located at a shared bank address.
1969         2. Fixed page selection in some places
1970         3. Fixed BTFSS/C to where necessary use registers directly and not simply
1971            the registers name strings.
1972         4. Fixed "signed / unsigned compare" compiler warnings.
1973         5. The PIC port manages its own allocation of the general purpose
1974            registers, but makes no attempt to reuse them. As a result when
1975            compiling it soon runs out of general purpose registers. Some
1976            additional code was added to the files pcode.c and device.c to walk
1977            through the function call tree and rename the registers so that they
1978            get reused.
1979
1980         * src/pic/device.c
1981         * src/pic/gen.c
1982         * src/pic/glue.c
1983         * src/pic/pcode.c
1984         * src/pic/pcode.h
1985         * src/pic/ralloc.c
1986         * src/pic/ralloc.h
1987         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
1988         genPlus() & genMinus() when the result is the same as left or right
1989
1990 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1991
1992         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
1993
1994 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1995
1996         Made bitfield a distinct type from bit so that bitfields
1997         convert as per ANSI C and bits retain their traditional
1998         boolean style behaviour. Implemented bitfield support in
1999         the z80 port.
2000
2001         * src/SDCCsymt.h,
2002         * src/SDCCsymt.c,
2003         * src/SDCCast.c,
2004         * src/cdbFile.c,
2005         * src/mcs51/gen.c,
2006         * src/ds390/gen.c: bit v bitfield split
2007         * src/z80/gen.c: New support for bitfields
2008         * support/regression/tests/bitfields.c: reenabled z80,
2009         added more tests
2010
2011 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2012
2013         Rules 246.x, 247.x relate to bitfields, the others speed up
2014         access to xdata mapped I/O devices.
2015
2016         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
2017
2018 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2019
2020         Cleaned up genPackBits and genUnpackBits and added two helper
2021         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
2022         for literal assignments in genPackBits (thanks to Frieder for
2023         reminding me).
2024
2025         * src/mcs51/gen.c
2026         * src/ds390/gen.c
2027
2028 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2029
2030         Fixed bug #748310 (pointer to function type mishandled when the
2031         function name is omitted). Also fixed a SIGSEGV when a function
2032         attribute (reentrant, etc) is used on a non-function or on a
2033         function but misplaced before the parameter list.
2034
2035         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
2036         bug #748310
2037         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
2038         * support/Util/SDCCerr.h,
2039         * support/Util/SDCCerr.c: Added func attr misuse error msg
2040
2041 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
2042
2043         Fixed bug #787649 by anonymous
2044         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
2045         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
2046
2047 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2048
2049         Fixed numerous bitfield problems.
2050
2051         * src/SDCC.y: More bitfield related error checking
2052         * src/SDCCsymt.h,
2053         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
2054         * support/Util/SDCCerr.h,
2055         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
2056         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2057         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2058         * support/regression/tests/bitfields.c: tests added
2059
2060 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2061
2062         Made the constant following the "interrupt" keyword optional. If
2063         omitted, the function will not automatically be given an entry
2064         in the interrupt vector table (similar to #pragma NOIV, but
2065         less syntacticly kludgy). The interrupt number is also now
2066         range checked. Also fixed a bug in the high order bit example
2067         in the manual.
2068
2069         * src/SDCC.y
2070         * src/SDCCmem.c
2071         * src/SDCCglue.c
2072         * src/SDCCsymt.h
2073         * support/Util/SDCCerr.c
2074         * support/Util/SDCCerr.h
2075         * doc/sdccman.lyx
2076
2077 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
2078
2079         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
2080         * src/SDCCicode.c (operandOperation): rewritten some ops
2081         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
2082         * src/SDCCsymt.c (computeType): literals are handled the same way as any
2083         other type
2084         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
2085         be re-activated by defining REDUCE_LITERALS)
2086         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
2087         unsigned, but are signed by default
2088         * src/SDCCval.c (constVal): rearranged
2089         * src/SDCCval.c (valMod): preliminary fix
2090         * src/SDCCval.c (valCastLiteral): use TYPE_* types
2091         * support/regression/literalop.c: added, work in progress
2092
2093 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2094
2095         Generate warnings for useless declarations like "char data;"
2096         that don't do what new users expect.
2097
2098         * src/SDCC.y
2099         * support/Util/SDCCerr.h
2100         * support/Util/SDCCerr.c
2101
2102 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
2103
2104         * src/SDCCval.c (valMult): fix overflow detection of negative int
2105
2106 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2107
2108         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
2109
2110         Changes to support big endian targets:
2111
2112         * src/ports.h
2113         * src/SDCCglue.c
2114         * src/avr/main.c
2115         * src/ds390/main.c
2116         * src/izt/i186.c
2117         * src/mcs51/main.c
2118         * src/pic/main.c
2119         * src/pic16/main.c
2120         * src/xa51/main.c
2121         * src/z80/main.c
2122
2123 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
2124
2125         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
2126         * device/lib/time.c: fixed warning "integer overflow in expression"
2127
2128 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
2129
2130         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
2131         * src/SDCCval.c (constVal): changed default to signed; hex and octal
2132         constants are unsigned; added recognition of "u" flag for unsigned
2133         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
2134         * src/SDCCval.c (valDiv, valMod): fixed signdness
2135         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
2136         signedness of modulo, left and right shift
2137         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
2138         * support/Util/SDCCerr.h: added warning W_INT_OVL
2139         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
2140         * src/SDCCast.c (ast_print): improved output of constants
2141
2142 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2143
2144         Fixed some warnings when building with MSVC:
2145
2146         * as\mcs51\asdata.c
2147         * as\z80\asdata.c
2148         * as\mcs51\asm.h
2149         * as\z80\asm.h
2150         * link\z80\aslink.h
2151         * link\z80\lkdata.c
2152         * link\z80\lkeval.c
2153         * link\z80\lkgb.c
2154         * link\z80\lkihx.c
2155         * link\z80\lks19.c
2156         * link\z80\lksym.c
2157         * support\cpp2\cpplib.c
2158         * src\ds390\gen.c
2159         * src\mcs51\gen.c
2160     
2161 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
2162
2163         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
2164
2165 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2166
2167         * support\librarian\clean.mk: Do not remove Makefile.
2168         * support\librarian\Makefile: added.
2169
2170 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2171
2172         Added librarian to MSVC build:
2173         * all.dsp
2174         * sdcc.dsw
2175         * support\librarian\librarian.dsp
2176
2177         'configure' not needed for librarian, removed:
2178         * support\librarian\configure
2179         * support\librarian\configure.in
2180         * support\librarian\config_in.h
2181         * support\librarian\Makefile.in
2182
2183         Hopefully these ones built the librarian and the rest of sdcc properly:
2184         * Makefile
2185         * Makefile.common.in
2186
2187         Messed up 'configure', so revert to previous version:
2188         * configure
2189         * configure.in
2190
2191 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
2192
2193         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
2194         there, while the mantissa of a double is "only" 53 bits wide.
2195
2196 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2197
2198         Adding sdcclib to the build.  MSVC project coming soon.
2199         Files added/changed:
2200
2201         * support\librarian\clean.mk
2202         * support\librarian\configure
2203         * support\librarian\configure.in
2204         * support\librarian\config_in.h
2205         * support\librarian\Makefile.bcc
2206         * support\librarian\Makefile.in
2207         * support\librarian\sdcclib.c
2208         * Makefile.bcc
2209         * Makefile
2210         * Makefile.common.in
2211         * configure
2212         * configure.in
2213
2214 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2215
2216         Linker now complaints if linked modules have conflicting options, for
2217         example, one compiled using --model-large and another one compiled with
2218         --model-small.  The following files were modified:
2219
2220         * as\mcs51\asdata.c
2221         * as\mcs51\aslink.h
2222         * as\mcs51\asm.h
2223         * as\mcs51\asmain.c
2224         * as\mcs51\asout.c
2225         * as\mcs51\i51pst.c
2226         * as\mcs51\lkdata.c
2227         * as\mcs51\lklibr.c
2228         * as\mcs51\lkmain.c
2229         * as\z80\asdata.c
2230         * as\z80\asm.h
2231         * as\z80\asmain.c
2232         * as\z80\asout.c
2233         * as\z80\z80pst.c
2234         * link\z80\aslink.h
2235         * link\z80\lkdata.c
2236         * link\z80\lklibr.c
2237         * link\z80\lkmain.c
2238         * src\SDCCglue.c
2239
2240 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2241
2242         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
2243         as/mcs51/lklibr.c: Generate a warning when a library is not found.
2244
2245 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
2246
2247         * src/z80/mappings.i: fix _mul[us][int,long] entries
2248
2249 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2250
2251         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
2252
2253 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
2254
2255         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
2256         * support/regression/tests/bitopcse.c: added
2257         fixed warning:
2258         * src/avr/gen.c:
2259         * src/pic/gen.c:
2260         * src/pic16/gen.c:
2261         * src/z80/gen.c:
2262         * src/xa51/gen.c:
2263
2264 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2265
2266         added support for new library format to z80, gbz80 linkers:
2267         *link/z80/aslink.h
2268         *link/z80/lklex.c
2269         *link/z80/lklib.c
2270         *link/z80/lklist.c
2271
2272 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
2273
2274         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
2275         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
2276
2277 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
2278
2279         added DUMMY_READ_VOLATILE:
2280         * src/SDCC.y:
2281         * src/avr/gen.c:
2282         * src/xa51/gen.c:
2283         * src/z80/gen.c:
2284         * src/pic/gen.c:
2285         * src/pic16/gen.c:
2286         * src/mcs51/gen.c:
2287         * src/ds390/gen.c:
2288         * src/SDCCcse.c (algebraicOpts): many improvements
2289         * src/SDCCcse.h: removed algebraicOpts()
2290         * src/SDCCicode.c (picDummyRead): added
2291
2292 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2293
2294         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
2295         "Insufficient space in data memory".
2296
2297 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2298
2299         * src/mcs51/gen.c: fixed bug #771358
2300         * src/z80/gen.c: fixed bug #759087
2301
2302 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
2303
2304         * src/pic16/glue.c: minor cleanup by Vangelis
2305
2306 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2307
2308         * device/include/regc515c.h: fixed #758477
2309         * device/lib/_gptrget.c: saving some cycles in generic pointer get
2310         * device/lib/_gptrput.c: saved a few bytes
2311         * my tab spacing is 8, yours too?)
2312         * device/lib/_ser.c: process RX bytes earlier than TX bytes
2313         * device/lib/serial.c: process RX bytes earlier than TX bytes
2314         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
2315
2316 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2317
2318         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
2319
2320 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2321
2322     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
2323
2324 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
2325
2326         * device/lib/Makefile.in: bad fix, reverted to 1.43
2327
2328 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
2329
2330         * device/lib/Makefile.in: added missing z80 object files
2331
2332 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
2333
2334         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
2335         pic16 progress by Vangelis:
2336         * src/SDCCglobl.h:
2337         * src/SDCCmain.c:
2338         * src/pic/Makefile:
2339         * src/pic:
2340         * pic/Makefile:
2341         * pic16/device.c:
2342         * pic16/device.h:
2343         * pic16/gen.c:
2344         * pic16/gen.h:
2345         * pic16/genarith.c:
2346         * pic16/glue.c:
2347         * pic16/main.c:
2348         * pic16/pcode.c:
2349         * pic16/pcode.h:
2350         * pic16/pcodepeep.c:
2351         * pic16/peeph.def:
2352
2353 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2354
2355     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
2356
2357 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2358
2359     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
2360     added gbz80 build to MSVC project.
2361     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
2362     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
2363     from 8051 stuff and setup so it links using a .lnk file.
2364
2365 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2366
2367     * support/librarian/sdcclib.c: sdcc librarian.
2368     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
2369     with sdcclib.
2370
2371 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2372
2373     * as/mcs51/lkmain.c: properly handle extensions in function afile.
2374
2375 2003-07-02  Borut Razem <borut.razem AT siol.net>
2376
2377         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
2378         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
2379         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
2380         src/xa51/main.c, src/z80/main.c:
2381         virtualization of glue() function: each port has it's own glue function,
2382         which is accessed by do_glue function pointer in PORT.general structure
2383
2384 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
2385
2386         * DS800C400 fun, improved ROM interface and tinibios.
2387
2388 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
2389
2390         * More support for DS80C400. Now includes beginning of interface to ROM.
2391
2392 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
2393
2394         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
2395
2396 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2397
2398         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
2399
2400 2003-06-19  Borut Razem <borut.razem AT siol.net>
2401
2402         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
2403
2404 2003-06-19  Borut Razem <borut.razem AT siol.net>
2405
2406         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
2407         fixed Z80 port - crt0.o: cannot open.
2408
2409 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
2410
2411         * support/Util/MySystem.c (merge_command): revert bad fix
2412
2413 2003-06-18  Borut Razem <borut.razem AT siol.net>
2414
2415         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
2416
2417 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2418
2419         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2420         option --use-stdout sends errors to stdout instead of stderr.
2421
2422 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
2423
2424         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
2425
2426 2003-06-15  Borut Razem <borut.razem AT siol.net>
2427
2428         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
2429         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
2430         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
2431         fixed width array of pointers replaced with sets;
2432         multiple include and lib paths ared transferred to preprocessor and linker
2433         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
2434         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
2435         fixed width array of pointers
2436         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
2437         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
2438         fixupPath(), getPathDifference()
2439         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
2440         fixed width array of pointers
2441
2442 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
2443
2444         * src/pic16/ralloc.c: fix warnings
2445         * src/pic16/pcode.c: fix warning
2446
2447 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
2448
2449          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
2450         know all the details, but essentially this set of changes enable
2451         the pic16 port to generate movff instructions and generate assembler
2452         directives,
2453         * src/SDCCmain.c:
2454         * src/pic16/gen.c:
2455         * src/pic16/glue.c:
2456         * src/pic16/pcode.c:
2457         * src/pic16/device.c:
2458         * src/pic16/main.c:
2459         * src/pic16/pcode.h:
2460         * src/pic16/pcoderegs.c:
2461         * src/pic16/ralloc.c:
2462         * src/pic16/ralloc.h:
2463
2464 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2465
2466         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2467         added option --vc, so sdcc errors and warnings are compatible with
2468         Microsoft Visual Studio.
2469
2470 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2471
2472         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
2473           device/lib/libfloat.lib: added atof function.
2474
2475 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
2476
2477         * doc/sdccman.lyx: updated to Lyx 1.3
2478         * doc/cdbfileformat.lyx: updated to Lyx 1.3
2479         * doc/test_suite_spec.lyx: updated to Lyx 1.3
2480         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
2481
2482 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
2483
2484         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
2485
2486 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2487
2488         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
2489           additions to the "related tools/documentation" section
2490
2491 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
2492
2493         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
2494
2495 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
2496
2497         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
2498         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
2499
2500 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
2501
2502         * doc/sdccman.lyx: fix double dash and other minor things
2503         * doc/Makefile: fix double dash
2504
2505 2003-05-28  Karl Bongers(patches from Martin Helmling)
2506         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
2507           condition and ignore commands.
2508
2509 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2510
2511         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
2512           is in parts still quite out of date, I did changes as far as I felt makes sense
2513           for a non-native english speaker.
2514           Please feel free to add to the manual or to correct my changes.
2515         * doc/Makefile: undid touching the date of intermediate tex files.
2516
2517 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2518
2519         * doc/sdccman.lyx: Manual has an index now
2520
2521 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
2522
2523         Finalize muluint/mulsint and mululong/mulslong merging:
2524         * device/lib/_mulint.c
2525         * device/lib/_mullong.c
2526         * device/lib/gbz80/mul.s
2527         * device/lib/gbz80/stubs.s
2528         * device/lib/z80/mul.s
2529         * device/lib/z80/stubs.s
2530         * src/SDCCsymt.c (initCSupport)
2531
2532 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2533
2534         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
2535         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
2536           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
2537           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
2538           instead of /Zm500.
2539
2540 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2541
2542         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
2543           the regression tests I'm not brave enough to enable 245.b, 245.c
2544         * doc/sdccman.lyx: added latex preamble for hyperref package.
2545           Using pdflatex this will give you a hyperlinked pdf file with
2546           bookmarks. (prepend '%' before /usepackage if this breaks something)
2547
2548 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2549
2550          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
2551          
2552 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
2553
2554         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
2555
2556 2003-05-21    <johan AT balder>
2557
2558         * src/SDCCglue.c (printIval): fixed bug #739934
2559
2560 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
2561
2562         Applied patch from bug 737905 (renamed yylineo to mylineno):
2563         * src/altlex.c
2564         * src/SDCCast.c
2565         * src/SDCglobl.h
2566         * src/SDCC.lex
2567         * src/SDCCsymt.c
2568         * src/SDCCval.c 
2569         * src/pic16/pcode.c: Cleaned warnings
2570         * src/pic16/pcodeflow.c: Cleaned warnings
2571         * src/pic16/pcoderegs.c: Cleaned warnings
2572
2573 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
2574
2575         * src/pic16/pcode.c: Cleaned warnings
2576         * src/pic16/pcodepeep.c: Cleaned warnings
2577         * src/pic16/ralloc.c: Cleaned warnings
2578
2579 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
2580
2581         * doc/sdccman.lyx: fixed bug 739745
2582         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
2583
2584 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
2585
2586         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
2587         it can be defined with CFLAGS when running configure
2588         * src/SDCCmain.c: fixed compiling + linking with object files
2589
2590 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
2591
2592         * configure.in: configure for pic16 port,
2593             added --disable-pic16-port
2594         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
2595         * src/SDCCmain.c: linkOptions is changed to set *,
2596             added if/endif conditional macros to remove options help
2597             messages from optionsTable when a port is not configured, added
2598             support for the PIc16 port in the ports table, when executing
2599             the compiler with no port specified on command line, a default
2600             port is selected with the new macro DEFAULT_PORT which is
2601             defined in port.h, in setDefaultOptions() linkOptions is removed
2602             from initialization assignment, since now it is a set,
2603             parseCmdLine uses setParseWithComma for linkOptions, in
2604             linkEdit() linkOptions are accessed with new function indexSet()
2605             which returns the i'th item of a set variable. See SDCCset.c, in
2606             linkEdit() when calling buildCmdLine(), added linkOptions as
2607             last argument. Now users can pass arguments to gplink via the
2608             -Wl option, main() uses pic16glue() to glue up pic16 programs
2609         * src/SDCCpeeph.c: various changes to support pic16
2610         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
2611             return the i'th item of the set
2612         * src/SDCCset.h: added function prototype for indexSet()
2613         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
2614         * src/clean.mk: added pic16 in CLEANALLPORTS variable
2615         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
2616             added macro DEFAULT_PORT
2617         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
2618         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
2619             generated
2620         * src/pic16/glue.c: commented out some error producing lines
2621         * src/pic16/main.c: __config directives are commented out to stop
2622             gpasm complaining and test the linkage with gplink, _linkCmd and
2623             _asmCmd changed to be more gplink and gpasm friendly
2624         * src/pic16/peeph.def: peep rule 3 is commented out, since it
2625             produced an error when parsed, peep rule 12 is added to utilize
2626             movff, but it is commented out since the pCode does not support
2627             yet a command with 2 address arguments
2628
2629 2003-05-18    <johan AT balder>
2630
2631         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2632         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2633 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
2634
2635         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
2636   Added feature to script commands from file.
2637
2638 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
2639
2640         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
2641         * src/SDCCutil.c: include ctype.h for win32
2642
2643 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
2644
2645         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
2646
2647 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
2648
2649         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
2650   Fixed so you can set breakpoints prior to run, run does not stop
2651   on entry now.  Add tbreak.  Other enhancements and fixes for use
2652   with ddd.
2653
2654 2003-05-12  Borut Razem <borut.razem AT siol.net>
2655
2656         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
2657
2658 2003-05-11  Borut Razem <borut.razem AT siol.net>
2659
2660         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
2661         the path of bin directory, so that PATH is the only env. variable, which has to be set
2662         in case of standard installation.
2663         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
2664         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
2665         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
2666
2667 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
2668
2669         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
2670         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
2671         temp files are in the port dir; clean the gen/test directory when
2672         generating new test.c
2673         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
2674         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
2675         * support/regression/tests/zeropad.c: added
2676
2677 2003-05-09    <johan AT balder>
2678
2679         * src/SDCCglue.c: fixed bug #597940
2680
2681 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
2682
2683         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2684   cache sfr, optimize next,step, fix off by one sourceline,
2685   support ddd list function.
2686         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
2687
2688 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
2689
2690         * support/regression/HTMLgen.py: added compare_s2f()
2691         * support/regression/Makefile: redo 1.27
2692         * support/regression/generate-cases.py: redo 1.5
2693
2694 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
2695
2696         * support/regression/tests/float.c: workaround 33 bit hex constant
2697         * support/regression/tests/simplefloat.c: fix division for host
2698
2699 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
2700
2701         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
2702         that tame's the PIC's over-aggressive optimizer.
2703
2704 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2705
2706          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
2707          support for MSVC.
2708          
2709 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
2710
2711         Initial support for DS80C400. "Hello world" runs on TINIm400
2712         (with polled I/O).
2713
2714 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
2715
2716          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2717          * Some notes on ddd usage added in debugger/README
2718          Martin Helmling adding more features and fixes for ddd GUI debugger.
2719          Code added for nexti, stepi, up, down, and other adjustments.
2720
2721 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
2722
2723         * src/pic/pCodepeep.c non-wildcard asmops are now handled
2724         * src/pic/peeph.def Added two rules to optimize carry manipulation
2725         * src/pic/* removed debug printfs
2726
2727 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
2728
2729         * debugger/mcs51/cmd.c: added header newalloc.h
2730
2731 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
2732
2733         * as/Makefile: new EXEEXT
2734         * as/z80/Makefile: remove trailing slash of BUILDIR
2735         * as/z80/clean.mk: new EXEEXT
2736         * Makefile.common.in: add to CFLAGS (and others), don't replace it
2737         * support/cpp2/Makefile.in: new EXEEXT
2738         * src/pic/glue.c (pic14emitRegularMap): fixed warning
2739
2740 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
2741
2742         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
2743         EXEEXT was introduced to fix all related problems with targets
2744         "clean", "install" and "uninstall"; a couple of further flaws
2745         especially with "clean" have been fixed too
2746         * as/mcs51/Makefile.in
2747         * as/mcs51/clean.mk
2748         * as/z80/Makefile
2749         * Makefile
2750         * clean.mk
2751         * debugger/mcs51/Makefile.in
2752         * debugger/mcs51/clean.mk
2753         * link/z80/Makefile
2754         * link/z80/Makefile.in
2755         * link/z80/clean.mk
2756         * link/Makefile
2757         * packihx/Makefile.in
2758         * packihx/clean.mk
2759         * sim/ucsim/Makefile
2760         * sim/ucsim/clean.mk
2761         * sim/ucsim/avr.src/Makefile.in
2762         * sim/ucsim/avr.src/clean.mk
2763         * sim/ucsim/s51.src/Makefile.in
2764         * sim/ucsim/s51.src/clean.mk
2765         * sim/ucsim/xa.src/Makefile.in
2766         * sim/ucsim/xa.src/clean.mk
2767         * sim/ucsim/z80.src/Makefile.in
2768         * sim/ucsim/z80.src/clean.mk
2769         * sim/ucsim/main_in.mk
2770         * sim/ucsim/packages_in.mk
2771         * sim/ucsim/gui.src/Makefile.in
2772         * sim/ucsim/gui.src/serio.src/Makefile.in
2773         * sim/ucsim/gui.src/serio.src/clean.mk
2774         * src/Makefile.in
2775         * src/clean.mk
2776         * support/cpp2/Makefile.in
2777         * support/cpp2/clean.mk
2778         * support/makebin/Makefile
2779         * support/makebin/clean.mk
2780         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
2781         * doc/sdccman.lyx: --program-suffix no longer needed
2782
2783 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
2784
2785          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
2786          Martin Helmling added support for ddd GUI debugger.
2787          Code added to display assembly, set variables, and other commands
2788          to interface to ddd.
2789
2790 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
2791
2792         * as/Makefile: fix target clean
2793         * as/clean.mk: fix target clean
2794         * as/z80/clean.mk: fix target clean
2795
2796 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
2797
2798         * Makefile.common.in: added  AT EXEEXT AT 
2799         * configure.in: removed all mingw32 stuff
2800         * configure: rebuilt from configure.in
2801         * doc/sdccman.lyx: updated section "installation"
2802         * support/scripts/sdcc_mingw32: adapted to configure
2803         * support/scripts/sdcc_cygwin_mingw32: added
2804
2805 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
2806
2807         * src/pic Added object file support for the PIC port
2808         * src/pic Applied patch from Craig Franklin (this started the object file support)
2809         * src/regression Updated the PIC regression tests for object files
2810
2811 2003-04-20  Borut Razem <borut.razem AT siol.net>
2812
2813         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
2814           lklex.c: In function `getfid':
2815           lklex.c:203: warning: array subscript has type `char'
2816         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
2817           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
2818         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
2819           stack handling macros
2820
2821 2003-04-19  Borut Razem <borut.razem AT siol.net>
2822
2823         * "handling space characters in file path" task:
2824         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
2825         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
2826         * support/Util/MySystem.h: make it self-sufficient
2827         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
2828           src/z80/main.c, sdcc/as/mcs51/lklex.c:
2829           handling space characters in file path
2830         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
2831           (it will be used by assemblers, which have their own includes, e.g. gpasm)
2832         * support/Util/MySystem.c: handling space characters in executable's path
2833
2834 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
2835
2836         * as/z80/Makefile: fix permanent rebuild of z80
2837         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
2838         * support/regression/tests/bitfields.c: added Johan's bitfields.c
2839
2840 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
2841
2842         * src/SDCCopt.c: add special case optimization to replace modulo by
2843           a power of two with a bitwise AND.
2844
2845 2003-04-18    <johan AT balder>
2846
2847         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
2848
2849 2003-04-17    <johan AT balder>
2850
2851         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
2852         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
2853
2854 2003-04-13  Borut Razem <borut.razem AT siol.net>
2855
2856         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
2857         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
2858           fixed mingw problem in adl_NORMALIZE_PATH
2859
2860 2003-04-12  Borut Razem <borut.razem AT siol.net>
2861
2862         * fixed "#pragma SAVE/RESTORE can not be nested":
2863         * src/SDCC.lex: reworked pragma handling functions
2864         * sdcc/src/SDCCglobl.h: reworked stack handling macros
2865         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
2866
2867 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
2868
2869         * src/SDCCutil.c (pathEquivalent): defined but not used
2870         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
2871         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
2872         * configure: rebuilt from configure.in
2873         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2874         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2875         * device/include/Makefile.in: replace sdcc_datadir
2876         * device/lib/Makefile.in: replace sdcc_datadir
2877         * Makefile.common.in: add LDFLAGS from configure
2878         * packihx/Makefile.in: use LDFLAGS
2879         * src/Makefile.in: use LDFLAGS
2880         * support/cpp2/Makefile.in: add LDFLAGS from configure
2881         * support/makebin/Makefile: use LDFLAGS
2882         * .version: bumped version number to 2.3.5
2883
2884 2003-04-12  Borut Razem <borut.razem AT siol.net>
2885
2886         * completed "different paths" task:
2887         * src/SDCCmacro.c: fixed bug in handling quotes
2888         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
2889         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
2890
2891 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
2892
2893         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
2894
2895 2003-04-11 kevin Vigor <kevin AT vigor.nu>
2896
2897         * ds390/gen.c ds390/peeph.def: fix bug 706781
2898
2899 2003-04-11  Borut Razem <borut.razem AT siol.net>
2900
2901         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
2902
2903 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
2904
2905         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
2906         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
2907          set - this bit used to not be set...).
2908         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated 
2909           bad code in PIC Port
2910         * src/regression/and2.c added to test bug 609268
2911         * src/regression/Makefile added and2.c to regression test
2912
2913
2914 2003-04-08    <johan AT CP255758-A>
2915
2916         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
2917         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
2918         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
2919
2920 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
2921
2922         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
2923         fix bug #487815
2924         * support/cpp2/Makefile.in: fix bug #487815
2925         * configure: rebuilt from configure.in
2926         * Makefile.common.in: docdir changed, new path suffixes
2927         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2928         * sdcc_vc_in.h: reflect changes from sdccconf.h
2929         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
2930         * src/SDCCutil.h: remove BINDIR hack
2931         * doc/sdccman.lyx: update new path hierarchy
2932
2933 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
2934
2935         * src/SDCCpeeph.c: added okToRemoveSLOC test
2936
2937 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
2938
2939         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
2940
2941 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
2942
2943         * src/SDCCpeeph.c: added labelIsReturnOnly test
2944         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
2945
2946 2003-04-05    <johan AT balder>
2947
2948         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
2949         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
2950         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
2951         * src/SDCCast.c: fixed a warning
2952         * src/SDCCast.h: fixed a warning
2953         * src/SDCCicode.c (operandFromAst): fixed a warning
2954
2955 2003-04-04    <johan AT balder>
2956
2957         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
2958         * src/SDCCast.c (decorateType): fixed bug #715076
2959         * src/SDCC.y: fixed bug #702907
2960
2961 2003-04-03    <johan AT balder>
2962
2963         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
2964         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
2965         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
2966         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
2967         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
2968
2969 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
2970
2971         * _decdptr.c: fix return values
2972         * _gptrget.c: fix return values
2973         * _gptrgetc.c: fix return values
2974         * _gptrput.c: fix return values
2975         * _mulint.c: fix return values
2976         * as/z80/Makefile: fix 'make -j' problem
2977
2978 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
2979
2980         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
2981         * configure.in: big cleanup, updated to autoconf 2.5x
2982         * configure: rebuilt from configure.in
2983         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2984         * sdcc_vc_in.h: reflect changes from sdccconf.h
2985         * doc/Makefile: fixed a flaw in "make install"
2986
2987 2003-04-02    <johan AT balder>
2988
2989         * src/ds390/gen.c (genCmp): no comments
2990         * src/mcs51/gen.c (genCmp): no comments
2991         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
2992         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
2993
2994 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
2995
2996         * support/regression/generate-cases.py: place generated file in given sub directory
2997         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
2998         * support/regression/Makefile: improvements for 'make -j';
2999         side effect: it's simpler and faster now
3000
3001 2003-03-31  Borut Razem <borut.razem AT siol.net>
3002
3003         * src/z80/main.c: link-{port} and as-{port} defined without path
3004         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
3005
3006 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
3007
3008         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
3009
3010 2003-03-30  Borut Razem <borut.razem AT siol.net>
3011
3012         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
3013           changed type of list parameter to set
3014         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
3015         * src/port.h: changed type of do_assemble() parameter to set
3016         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
3017           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
3018           definition of "cppoutfilename" macro with NULL value in preProcess()
3019         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
3020         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
3021         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
3022           replaced with set *binPathSet
3023         * shash_add() deallocates the item, if allready exsists, before adding the new one
3024         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
3025
3026 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
3027
3028         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
3029           a nested for loop bug in the PIC port
3030         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
3031           for loops
3032
3033 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
3034
3035         * support/Util/dbuf.h: remove C++ stuff to make it portable
3036
3037 2003-03-28  Borut Razem <borut.razem AT siol.net>
3038
3039         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
3040           literal strings in stringLiteral()
3041         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
3042         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
3043           to the project
3044
3045 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
3046
3047         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
3048
3049 2003-03-26    <johan AT balder>
3050
3051         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
3052         * src/ds390/gen.c (saveRegisters): catched symbol abuse
3053         * src/SDCCast.c (decorateType): fixed " -v < 3"
3054
3055 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
3056
3057         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
3058         Added Lenny Story's debug infrastructure changes:
3059         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
3060         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
3061         * src/cdbFile.c: added
3062         * src/SDCCdebug.c: added
3063         * src/SDCCdebug.h: added
3064         * src/SDCCast.c (createFunction)
3065         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
3066         * src/SDCCmain.c (parseCmdLine, main)
3067         * src/SDCCmem.c (redoStackOffsets)
3068         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
3069         * src/SDCCsymt.h
3070         * src/common.h
3071         * src/avr/gen.c (genAVRCode)
3072         * src/ds390/gen.c (gen390Code)
3073         * src/mcs51/gen.c (gen51Code) 
3074         * src/pic/gen.c (genpic14Code)
3075         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
3076         * src/xa51/gen.c (genXA51Code)
3077         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
3078
3079 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3080
3081         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
3082         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
3083
3084 2003-03-22    <johan AT balder>
3085
3086         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
3087
3088 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
3089
3090         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
3091         * doc/cdbfileformat.lyx: added, written by Lenny Story
3092         * doc/Makefile: added cdbfileformat.lyx
3093         * doc/clean.mk: added cdbfileformat.lyx
3094
3095 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
3096
3097         * src/mcs51/peeph.def: fix bug #705773
3098
3099 2003-03-20    <johan AT balder>
3100
3101         An sfr/sbit can have an "at #" AND an initializer
3102         * src/SDCCsymt.c (checkSClass): 
3103         * src/SDCCmem.c (allocGlobal): 
3104         * src/SDCCmem.c (allocLocal):
3105         * src/SDCCast.c (createBlock): 
3106
3107 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
3108
3109         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
3110
3111 2003-03-16    <johan AT balder>
3112
3113         Undid the hackup of const and volatile, the problem is much bigger
3114         * src/SDCC.y:1.65
3115         * src/SDCCast.c:1.171
3116         * src/SDCCglue.c:1.138
3117         * src/SDCCicode.c:1.146
3118         * src/SDCCsymt.c:1.150
3119         * src/SDCCval.c:1.65
3120
3121 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
3122
3123         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
3124         * src/ds390/gen.c (genAddrOf): fixed bug #704087
3125
3126 2003-03-13    <johan AT balder>
3127
3128         Hackup const and volatile modifiers in type chains a bit:
3129         * src/SDCC.y:1.63
3130         * src/SDCCast.c:1.169
3131         * src/SDCCglue.c:1.136
3132         * src/SDCCicode.c:1.143
3133         * src/SDCCsymt.c1.146
3134         * src/SDCCsymt.h1.59
3135         * src/SDCCval.c:1.63
3136
3137 2003-03-12    <johan AT balder>
3138
3139         * src/SDCCBBlock.h: more LRH debugging junk
3140         * src/SDCCcflow.h: more LRH debugging junk
3141         * src/SDCCloop.c: more LRH debugging junk
3142         * src/SDCC.y (struct_declaration): fixed bug #697590
3143         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
3144         * src/ds390/gen.c (aopForRemat): fixed bug #700031
3145         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
3146
3147 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3148         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
3149         test function names must now match exactly).
3150         * src/SDCCcse.c: added special case in findCheaperOp to allow
3151         extending a short integer. Makes less awful code for bug 700121 test case.
3152
3153 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3154
3155         * as/mcs51/lkmain.c: Added ASlink-Warning to messages 
3156         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
3157
3158 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3159
3160         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
3161         actually called (operandsNotEqual() was called for all 
3162         operandsNotEqualX tests).
3163
3164 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3165
3166         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
3167         with shorter literals. Fixes bug 700121.
3168
3169 2003-03-11    <johan AT balder>
3170
3171         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
3172
3173 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
3174
3175         * src/SDCCloop.c (mergeRegions): an evil beast is dead
3176         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
3177
3178 2003-03-10  Borut Razem <borut.razem AT siol.net>
3179
3180         * src/SDCCmain.c: pipe preprocessor's output
3181         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3182         * sdcc_vc_in.h: define pclose as _pclose for WIN32
3183         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3184         which closes all pipes in pipeSet set
3185         * src/SDCCset.c: free deleted item in function deleteSetItem()
3186         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3187         moved from z80 to src subproject
3188         * .version: increased version number to 2.3.4
3189
3190 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
3191
3192         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
3193         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
3194         * support/regression/ports/xa51/spec.mk: fix typo
3195
3196 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
3197
3198         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
3199
3200 2003-03-09  Borut Razem <borut.razem AT siol.net>
3201
3202         * src/SDCCmain.c: pipe preprocessor's output
3203         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3204         * sdcc_vc_in.h: define pclose as _pclose for WIN32
3205         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3206         which closes all pipes in pipeSet set
3207         * src/SDCCset.c: free deleted item in function deleteSetItem()
3208         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3209         moved from z80 to src subproject
3210
3211 2003-03-09  Borut Razem <borut.razem AT siol.net>
3212
3213         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
3214         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
3215         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
3216         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
3217         * src/SDCCglobl.h: unification of WIN32 native definitions
3218
3219 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3220
3221         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
3222
3223 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
3224
3225         * src/configure.in:   check for endianess (even while cross-compiling)
3226         * src/configure:      check for endianess (even while cross-compiling)
3227         * src/configure_in.h: check for endianess (even while cross-compiling)
3228         * src/avr/gen.c:        remove old endianess stuff
3229         * src/mcs51/gen.c:      remove old endianess stuff
3230         * src/ds390/gen.c:      remove old endianess stuff
3231         * src/pic/gen.c:        remove old endianess stuff
3232         * src/pic/genarith.c:   remove old endianess stuff
3233         * src/pic/glue.c:       fix endianess check
3234         * src/pic16/gen.c:      remove old endianess stuff
3235         * src/pic16/genarith.c: remove old endianess stuff
3236         * src/pic16/glue.c:     fix endianess check
3237         * src/xa51/gen.c:       remove old endianess stuff
3238         * src/z80/gen.c:        fix endianess check
3239         * src/SDCCglue.c:       fix endianess check
3240         * src/ds390/peeph.def: fix bug 700036
3241
3242 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
3243
3244         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
3245         * src/configure: find appropriate data-types on host for SDCC's int and long
3246         * src/configure.in: find appropriate data-types on host for SDCC's int and long
3247         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
3248         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
3249
3250 2003-03-07    <johan AT balder>
3251
3252         Just a big NOOP:
3253                 some minor cleanups before the big shot
3254                 OP_DEFS and OP_USES now use Kevin's protection
3255                 new option --nolabelopt
3256
3257         * src/SDCCBBlock.c:
3258         * src/SDCCast.c,:
3259         * src/SDCCcflow.c:
3260         * src/SDCCcse.c:
3261         * src/SDCCicode.c:
3262         * src/SDCCicode.h:
3263         * src/SDCClabel.c:
3264         * src/SDCCloop.c:
3265         * src/SDCCmain.c:
3266         * src/ds390/ralloc.c:
3267         * src/mcs51/ralloc.c:
3268         * src/pic/ralloc.c:
3269         * src/xa51/ralloc.c:
3270         * src/z80/ralloc.c:
3271
3272 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
3273
3274         * src/pic/pcode.c (get_op): fix 64 bit warnings
3275         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
3276         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
3277         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
3278         * support/regression/tests/malloc.c: fix 64 bit warnings
3279
3280 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
3281
3282         * src/mcs51/gen.c (genMinus): fixed bug 696436
3283
3284 2003-03-02  Borut Razem <borut.razem AT siol.net>
3285
3286         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
3287
3288 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
3289
3290         * configure.in: test for mkstemp
3291         * sdccconf_in.h: add HAVE_MKSTEMP
3292
3293 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
3294
3295         * device/include/ctype.h: removed warning while using --stack-auto
3296         * device/include/malloc.h: removed warning while using --stack-auto
3297         * device/include/string.h: removed warning while using --stack-auto
3298
3299 2003-02-23  Borut Razem <borut.razem AT siol.net>
3300
3301         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
3302         because NDEBUG is defined (see man assert)
3303         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
3304
3305 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3306
3307         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
3308         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
3309
3310 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3311
3312         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
3313         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
3314
3315 2003-02-18    <johan AT balder>
3316
3317         * as/mcs51/asmain.c (asmbl): module can start with a digit
3318         * as/z80/asmain.c (asmbl): module can start with a digit
3319
3320 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
3321
3322         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
3323         * src/asm.c: fix pipe() for Mingw32
3324
3325 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
3326
3327         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
3328         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
3329         make -V work again; --c1mode reads now from stdin
3330         * doc/sdccman.lyx: added --c1mode
3331         * support/Util/SDCCerr.c: new messages for c1 mode
3332         * support/Util/SDCCerr.h: new messages for c1 mode
3333         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
3334
3335 2003-02-15    <johan AT balder>
3336
3337         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
3338
3339 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
3340
3341         * doc/sdccman.lyx: Environment variables, -o and other minor things
3342
3343 2003-02-14    <johan AT balder>
3344
3345         * src/xa51/main.c: before anyone really tries to use it :)
3346
3347         * Install doc's in share/sdcc/doc
3348         * removed some obsolete files
3349         * Do a proper make distclean and uninstall
3350         M Makefile.common.in
3351         R sdccbuild.sh
3352         M as/Makefile
3353         M device/include/Makefile.in
3354         M device/lib/Makefile.in
3355         M doc/sdccman.lyx
3356         M link/Makefile
3357         M sim/ucsim/doc/Makefile.in
3358         M src/clean.mk
3359         R src/avr/peeph.rul
3360         R src/xa51/peeph.rul
3361         M support/cpp2/Makefile.in
3362         M support/makebin/Makefile
3363
3364
3365 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
3366
3367         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
3368
3369 2003-02-10  Borut Razem <borut.razem AT siol.net>
3370
3371         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
3372         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
3373         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
3374         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
3375         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
3376         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
3377         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
3378         src/z80/Makefile.bcc: Borland Makefile cleanup
3379         * as/z80/Makefile.bcc: Added Borland Makefile
3380         * support/cpp2/borland.h: Removed
3381
3382 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
3383
3384         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
3385         * src/SDCC.lex: new pragma NOIV
3386         * src/SDCCglobl.h: new pragma NOIV
3387         * src/SDCCmem.c: new pragma NOIV
3388
3389 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
3390
3391         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
3392
3393 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
3394
3395         * src/SDCCmain.c: signal handling is switched off by --debug
3396         * doc/Makefile: small fix for install; use clean.mk again
3397         * doc/clean.mk: clean *.pdf and *.html too
3398
3399 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
3400
3401         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
3402         * device/lib/printfl.c: fix a ds390 bug by making it portable
3403         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
3404         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
3405         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
3406         * debugger/mcs51/cmd.c: converted multi-line string literals
3407         * sim/ucsim/globals.cc: converted multi-line string literals
3408         * src/SDCCmain.c: introduced signal handler to remove temp files
3409         * doc/Makefile: small tweaks, implement clean
3410         * doc: removed generated files
3411
3412 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3413
3414         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
3415         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
3416         Address Record is not correctly generated for DS390."
3417
3418 2003-02-02  Borut Razem <borut.razem AT siol.net>
3419
3420         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
3421         * as/mcs51/asm.h: fixed compilation with Borland C
3422         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
3423         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
3424         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
3425         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
3426         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
3427         src/z80/Makefile.bcc: delete $(LIB) only if exist
3428         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
3429
3430 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
3431
3432         * device/include/malloc.h: introduced NULL
3433         * device/include/string.h: introduced NULL
3434         * device/include/stdlib.h: introduced NULL
3435         * device/lib/_memcpy.c: removed NULL
3436         * device/lib/_strcat.c: removed NULL
3437         * device/lib/_strchr.c: removed NULL
3438         * device/lib/_strcmp.c: removed NULL
3439         * device/lib/_strcpy.c: removed NULL
3440         * device/lib/_strcspn.c: removed NULL
3441         * device/lib/_strlen.c: removed NULL
3442         * device/lib/_strncat.c: removed NULL
3443         * device/lib/_strncmp.c: removed NULL
3444         * device/lib/_strncpy.c: removed NULL
3445         * device/lib/_strpbrk.c: removed NULL
3446         * device/lib/_strrchr.c: removed NULL
3447         * device/lib/_strspn.c: removed NULL
3448         * device/lib/_strstr.c: removed NULL
3449         * device/lib/_strtok.c: removed NULL
3450         * device/lib/malloc.c: removed NULL, include own header
3451
3452 2003-02-02    <johan AT balder>
3453
3454         * 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
3455         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
3456         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
3457         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
3458         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
3459         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
3460
3461 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3462
3463         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
3464         area 'DATA'"
3465
3466 2003-02-01    <johan AT balder>
3467
3468         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
3469
3470 2003-01-31    <johan AT CP255758-A>
3471
3472         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
3473
3474 2003-01-30    <johan AT balder>
3475
3476         * src/SDCCBBlock.c: automatic bug detection
3477         * src/SDCCicode.c: automatic bug detection
3478
3479 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3480
3481         * src/SDCCglobl.h:   now --xram-size 0 works
3482         * src/SDCCmain.c:    now --xram-size 0 works
3483
3484 2003-01-29    <johan AT balder>
3485
3486         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
3487
3488 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3489
3490         * as/mcs51/aslink.h: Added options --xram-size and --code-size 
3491         * as/mcs51/lkdata.c: Added options --xram-size and --code-size 
3492         * as/mcs51/lkmain.c: Added options --xram-size and --code-size 
3493         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size 
3494         * src/SDCCglobl.h:   Added options --xram-size and --code-size 
3495         * src/SDCCmain.c:    Added options --xram-size and --code-size 
3496
3497 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
3498
3499         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
3500         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
3501
3502 2003-01-27    <johan AT balder>
3503
3504         * src/SDCC.y: fixed bug #613764
3505
3506 2003-01-26    <johan AT balder>
3507
3508         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
3509         * src/SDCCsymt.h: fixed bug #673374
3510         * src/SDCCglue.c: fixed bug #661910
3511         * src/SDCCast.c: fixed bug #458099 and 673374
3512
3513 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
3514
3515         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
3516         * as/mcs51/strcmpi.h: added
3517         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
3518         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
3519         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
3520         * as/mcs51/assym.c: strcmpi -> as_strcmpi
3521         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
3522         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
3523         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
3524         * as/mcs51/Makefile.aslink: new module strcmpi
3525         * as/mcs51/Makefile.asx8051: new module strcmpi
3526         * as/mcs51/Makefil.bcc: new module strcmpi
3527         * as/mcs51/Makefile.in: new module strcmpi
3528         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
3529
3530 2003-01-26    <johan AT balder>
3531
3532         * src/SDCCglue.c: reverted back to 1.124
3533         * src/SDCCast.c: reverted back to 1.156
3534         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
3535
3536 2003-01-25    <johan AT balder>
3537
3538         * src/SDCCglue.c: A better fix for bug #661910
3539         * src/SDCCast.c: A better fix for bug #661910
3540         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
3541
3542 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
3543
3544         * src/Makefile.in: remove spawn.o
3545         * src/SDCCmain.c: remove spawn.h
3546         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
3547         * src/spawn.c: removed
3548         * src/spawn.h: removed
3549         * support/regression/ports/ds390/spec.mk: link with -r
3550
3551 2003-01-24    <johan AT CP255758-A>
3552
3553         * src/ds390/gen.c (aopOp): fixed bug #667458
3554         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
3555         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
3556         (createIvalCharPtr): an ival doesn't always have a storage class anymore
3557
3558 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
3559
3560         * src/mcs51/peeph.def: better assembler identation by Frieder
3561         * src/mcs51/gen.c: better assembler identation by Frieder
3562
3563 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
3564
3565         * as/z80/string.h: removed for gcc 3.2
3566         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
3567         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
3568
3569 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
3570
3571         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
3572         * src/SDCCpeeph.c (replaceRule): fix bug #663503
3573         * support/regression/Makefile: separate temp files for ports
3574         * support/regression/generate-cases.py: separate temp files for ports
3575         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3576         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3577
3578 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
3579
3580         * moved tinitalk to device/examples/ds390
3581
3582 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
3583
3584         * as/mcs51/lkmem.c: rflag is for DS390
3585         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
3586         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
3587                          (linkEdit): move mem- and map-files the same way as ihx-files
3588         * src/z80/main.c (_setDefaultOptions): removed --generic
3589         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
3590         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
3591         * src/pic/glue.c (picglue): --c1mode works again
3592         * src/pic16/glue.c (pic16glue): --c1mode works again
3593         * src/asm.c (printCLine): fix #660034
3594
3595 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
3596
3597         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
3598         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
3599         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
3600         * as/mcs51/lkmem (summary): better fix for sp problem
3601         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
3602         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
3603         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
3604                                               remove --stack-after-data
3605
3606 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
3607
3608         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
3609         * src/SDCCutil.c (join): ugly bug: missing '\0'
3610         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
3611
3612 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
3613
3614         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
3615         * src/port.h: typo
3616         * src/pic/main.c (_asmCmd): gpasm supports -o
3617         * src/z80/main.c: more general macros
3618         * device/lib/Makefile.in: remove intermediate files
3619
3620 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
3621
3622         * .version: Bumped version number to 2.3.3
3623         * src/SDCCBBlock.c: new option -o
3624         * src/SDCCglobl.h: new option -o
3625         * src/SDCCglue.c: new option -o
3626         * src/SDCCmain.c: new option -o
3627         * src/asm.c: new option -o
3628         * src/ds390/main.c: new option -o
3629         * src/pic/glue.c: new option -o
3630         * src/pic/pcode.c: new option -o
3631         * src/pic/ralloc.c: new option -o
3632         * src/pic16/glue.c: new option -o
3633         * src/pic16/pcode.c: new option -o
3634         * src/pic16/ralloc.c: new option -o
3635         * src/z80/main.c: new option -o
3636         * device/lib/Makefile.in: use -o
3637         * support/regression/ports/ds390/spec.mk: use -o
3638         * support/regression/ports/gbz80/spec.mk: use -o
3639         * support/regression/ports/mcs51/spec.mk: use -o
3640         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
3641         * support/regression/ports/z80/spec.mk: use -o
3642         * support/regression/ports/ucz80/spec.mk: use -o
3643         * support/regression/ports/xa51/spec.mk: use -o
3644         * support/regression/fwk/lib/timeout.c: fix usage string
3645
3646 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
3647         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
3648         
3649 2003-01-07    <johan AT balder>
3650
3651         * src/SDCCast.c (decorateType): fixed bug #600035
3652
3653 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
3654         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
3655         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
3656         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
3657         * src/pic/pcode.c: outcommented unused variable to remove warnings
3658         * src/pic/ralloc.c: outcommented unused variable to remove warnings
3659
3660 2003-01-06    <karl AT turbobit.com>
3661         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
3662    regression tests.
3663
3664 2003-01-06    <johan AT balder>
3665
3666         * src/SDCCicode.c: fixed array add
3667
3668 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
3669         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
3670         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
3671
3672 2003-01-04    <johan AT balder>
3673
3674         * src/SDCCval.c (getNelements): fixed the initialized array of structures
3675
3676 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3677         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
3678
3679 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
3680         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
3681         * support/regression/tests/bug-524697.c: fit mem usage into 8032
3682
3683 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
3684         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
3685
3686 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
3687         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
3688
3689 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
3690         * src/mcs51/main.c: removed {bindir}{sep} from aslink
3691
3692 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3693
3694     * in \sdcc\as\mcs51\ changed these files in order to create an
3695     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
3696     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the 
3697     following files to include the previous two files: aslink.dsp,
3698     Makefile.aslink, Makefile.bcc, and Makefile.in.
3699
3700     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
3701     .adb instead of .cdb
3702     
3703 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3704
3705         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
3706         value from option --iram-size.
3707
3708 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3709
3710         * \sdcc\as\mcs51\lklist.c: added boundary check before using
3711         dram[] array.
3712
3713 2002-09-18    <wiml AT hhhh.org>
3714
3715         * SDCClrange.h: exposed setFromRange() and setToRange()
3716         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
3717           packRegsForAccUse() (bug 542397)
3718         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
3719           multiple times and emitting the fetch operations more than once
3720           added aopGetUsesAcc() function to allow binary operators to
3721           fetch their operands in the correct order; made genMinus() emit
3722           compact code for X = LITERAL - Y 
3723
3724 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3725         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
3726         sprintf() in line 1267.
3727
3728 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3729         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
3730         like ports.
3731
3732 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3733         Changes to aslink (All the changes are marked with 'JCF'):
3734
3735         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
3736         summary().
3737
3738         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
3739         area BSEG.  Also moves, if possible, the DATA area down into the internal
3740         ram so more space is available.
3741
3742         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
3743         sflag.
3744
3745         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
3746         not bytes.  Function summary() which creates a memory usage summary
3747         file with extension .mem.  Reports of overlaping stack and small stack
3748         size.  If the space for the stack is less than 16 bytes aslink trows a
3749         warning.
3750         
3751         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
3752         the 8051.  Option 'y' for memory summary output file.
3753
3754         Changes to sdcc (All the changes are marked with 'JCF'):
3755
3756         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
3757
3758         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
3759         overlaying area for it (uses RegBankUsed[4]).
3760
3761         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
3762         bank zero as used by default.  By default aslink locates the stack
3763         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
3764         the creation of the .mem file.  Delegates the allocation of data area
3765         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
3766         the begining of the stack area to aslink.
3767
3768         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
3769         glue() in SDCCglue.c creates an area for it.
3770         
3771 2002-09-03  Borut Razem <borut.razem AT siol.net>
3772         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
3773         sdcc/src/pic/glue.c:
3774         introduced atexit() handler for teporay files removal in case of
3775         errors, assertions, ...
3776
3777 2002-08-29  Borut Razem <borut.razem AT siol.net>
3778         * sdcc/support/cpp2/auto-host_vc_in.h:
3779         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
3780         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
3781         Maybe there is a similar problem with BORLANDC? It should be checked!
3782
3783         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
3784         corrected improper use of assert: the assignment to clr variable was done inside the assert.
3785         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
3786         was not executed, and the compiler (cl) launched a warning:
3787         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
3788
3789 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
3790         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
3791
3792 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
3793         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
3794
3795         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3796           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
3797           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
3798           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3799           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
3800           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
3801           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
3802         - added Release configuration in VS projects
3803         - review of compiler an linker options
3804         - VC .exe files are generated in bin_vc directory, not to interfere
3805           with binaries generated from other projects (cygwin, mingw, bcc ...)
3806
3807         * sdcc/src/yacc.dsp: added
3808
3809         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
3810         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
3811         and insert the version number definitions from .version 
3812
3813         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
3814
3815         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
3816         added - genarate auto-host.h using auto-host_vc_in.h as template
3817
3818         * sdcc/sdcc_vc.h,
3819         removed from CVS, generated automatically
3820
3821 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
3822         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
3823
3824 2002-08-11  Borut Razem <borut.razem AT siol.net>
3825         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
3826
3827 2002-08-10  Borut Razem <borut.razem AT siol.net>
3828         * src/SDCCmain.c (main):
3829         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
3830         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
3831         The consequence was that some temporary files were not removed.
3832
3833         * src/SDCCglue.c:
3834         unification of code in functions tempfilename() and tempfile():
3835         function tempnam() is defined in Visual Studio 6.0 and .NET
3836
3837         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
3838
3839         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3840           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
3841         - removed compiler command line option /WX: Treats all warnings as errors
3842         - update a list of source files, included into the project
3843
3844         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3845           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
3846         changed project type to Generic Project so that can be correcly converted to VS.NET project
3847
3848         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
3849
3850         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
3851
3852         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
3853
3854         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
3855         added return 0 statements after assert() to make compiler happy
3856
3857         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
3858         added newline in the def file to keep MSC compiler satisfied
3859
3860         * sdcc/src/z80/gen.c:
3861         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
3862           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
3863         - solved MSC error in function aopDump()
3864
3865         * sdcc_vc.h: define PREFIX as "\\sdcc"
3866
3867 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
3868         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
3869
3870 2002-06-22  Scott Dattalo <scott AT dattalo.com>
3871         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced. 
3872         - Rewrote the register banking algorithm. 
3873         - Added pCode live-range analysis to registers (for now, only non-used and 
3874         singly-used registers optimized away)
3875
3876         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
3877
3878         * 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.
3879         
3880 2002-05-10  Scott Dattalo <scott AT dattalo.com>
3881         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
3882         
3883 2002-04-22  Michael Hope  <michaelh AT vroom>
3884
3885         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
3886
3887         * configure.in (DD_COPT): Added include support required for gbdk.
3888
3889         * .version: Bumped version number just to increase it.
3890
3891         * src/SDCCmain.c: Added -nostdinc to the default options.
3892
3893 2002-04-15  Michael Hope  <michaelh AT vroom>
3894
3895         * device/lib/z80/printf.c (sprintf): Added.
3896
3897         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
3898
3899         * src/z80/peeph.def: Added transpose redundent load rule.
3900
3901         * src/z80/main.c: Added force callee saves for jaune.
3902
3903         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
3904
3905         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
3906
3907 2002-03-28  Johan Knol  <johan AT balder>
3908
3909         * src/SDCCval.c: fixed bug #532436
3910
3911 2002-03-14  Scott Dattalo <scott AT dattalo.com>
3912         * /src/port.h:
3913         Added "char *Processor" field to the port structure.
3914
3915         * /src/SDCCmain.c:
3916         Added -p option. Allows port dependent processor to be specified.
3917
3918         * all ports:
3919         Initialized the new field char *Processor field to NULL in all ports
3920
3921         * /src/pic/*:
3922         Compiler generated registers for interrupt context saving
3923         were not getting allocated.
3924                 
3925 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
3926
3927         * /src/SDCCast.c:
3928         Fixed left shift. Will promote the left side of a left shift
3929         if a) left shifting more than size of operand or b) when assigned
3930         to something size > size of left side
3931
3932 2002-03-14  Scott Dattalo <scott AT dattalo.com>
3933         * src/pic/*
3934         tons of changes. Register allocation has been 
3935         rewritten. Added customization for the various PICs. Flow
3936         analysis is restructured. ...
3937
3938         * src/pic/device.h:
3939         Added
3940
3941         * src/pic/device.c:
3942         Added. device.c is a PIC port hack to accomodate variations
3943         in PIC devices.
3944
3945 2002-03-13  Michael Hope  <michaelh AT vroom>
3946
3947         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
3948
3949 2002-03-04  johanknol  <johanknol AT manik>
3950
3951         * /src/SDCCval.c: fixed
3952
3953         const unsigned char arr[][2] = { { 0, 1 } };
3954         t18.c:1: error: Initializer element is not constant
3955
3956 2002-03-04  bela  <bela AT manik>
3957
3958         * /device/include/mcs51reg.h:
3959         ds89c420 register definition update
3960
3961 2002-03-03    <johan AT FRIJA>
3962
3963         * support/Util/SDCCerr.c: did something, but don't no why anymore
3964
3965         * support/regression/tests/bug-524691.c: made it a little less shy 
3966
3967         * src/SDCCast.c (decorateType): fixed bug #524697
3968
3969         * src/SDCCast.c: made some lineno improvements
3970
3971         * src/SDCCval.c (getNelements): changed warning to error
3972
3973         * src/SDCCglue.c (printIvalArray): changed warning to error
3974
3975         * src/SDCCicode.c: fixed a warning for mingw
3976
3977         * src/SDCCast.c (decorateType): fixed the << promotion for ops
3978
3979         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
3980
3981 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
3982
3983         * src/ds390/peeph.def:
3984         Added some more peephole rules
3985
3986         * src/ds390/gen.c: Various fixes & enhancements
3987
3988         * src/SDCClrange.c, src/SDCClrange.h:
3989         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
3990
3991         * src/ds390/ralloc.c:
3992         various fixes & enhancements (ds390) specific
3993
3994         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
3995         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
3996         from rallocs.
3997
3998         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
3999
4000 2002-03-02    <johan AT FRIJA>
4001
4002         * src/SDCCast.c (decorateType): fixed bug #524708
4003
4004         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
4005
4006         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
4007
4008 2002-03-01  Michael Hope  <michaelh AT vroom>
4009
4010         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
4011
4012         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
4013
4014 2002-03-01    <johan AT FRIJA>
4015
4016         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
4017
4018         * src/SDCCast.c (decorateType): fixed bug #524209
4019
4020         * src/SDCCval.c (valNot): fixed bug #524195
4021
4022 2002-02-26    <johan AT balder>
4023
4024         * src/xa51/gen.c: fixed a warning
4025
4026         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
4027
4028         * src/SDCCast.c (decorateType): fixed bug #522534
4029
4030 2002-02-23    <johan AT balder>
4031
4032         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
4033
4034 2002-02-22    <johan AT balder>
4035
4036         * src/SDCCast.c: fixed bug #514865
4037
4038         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
4039
4040 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
4041
4042         * sdcc/src/SDCCloop.c:
4043         Previous fix was not good. basic blocks that have "break" or "return" are
4044         not really partof a loop , but live ranges used in these blocks should
4045         be live thru the entire loop, so set partOfLoop but don't add them to
4046         loop region
4047
4048 2002-02-21    <johan AT FRIJA>
4049
4050         * src/SDCCcse.c: fixed bug #514308
4051
4052 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
4053
4054         * src/SDCCloop.c:
4055         Fixed BUG #519583. If a conditional block ended in a return/break
4056         statement inside a loop, it was not being considered part of the loop.
4057
4058         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
4059
4060 2002-02-10  Karl Bongers <karl AT turbobit.com>
4061
4062         * debugger/*:
4063         Fixed up SDCDB debugger somewhat.  Updated debugger/README
4064         with lots of comments and notes.
4065
4066         * device/examples/test2.c:
4067         Fix bug, "red" variable not being initialized(compiler complained).
4068
4069         * device/examples/Makefile, examples/test3.c:
4070         Add Makefile in device/examples folder, compiles test3.c
4071         for use as a multiple module SDCDB test case.
4072
4073         * sim/ucsim/cmd.src/cmdset.cc:
4074         Took out debug printfs in ucsim "next" command.
4075
4076         * sim/ucsim/xa.src:
4077         Karl and Johan start ucsim XA support.  Most dissassembly working,
4078         about 75% emulation done(plenty of work remaining).
4079
4080         * sim/ucsim/z80.src:
4081         Add Z80 support to ucsim, add test-ucz80 regression test,
4082         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
4083         Notice z80 compiler fails on examples/test3.c/crc code.
4084
4085 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
4086
4087         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
4088         Added support for --parms-in-bank1
4089
4090         * src/ds390/peeph.def:
4091         added a few more peephole optimzations
4092
4093         * src/ds390/main.c:
4094         1) added __builtin_inp & __builtin_outp used to read in data of given length
4095            from a memory mapped port
4096         2) added __builtin_memcmp
4097         3) added __builtin_swapw swap bytes of a short
4098
4099         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
4100         1) handle multiple send & receives from register bank1
4101         2) ralloc can now allocate DPTR1 to some liveRanges
4102
4103         * src/SDCCsymt.c, src/SDCCsymt.h:
4104         changes to handle multiple sends & receives
4105
4106         * src/SDCCptropt.h:
4107         added some pointer arithmetic optimization
4108
4109         * src/SDCCptropt.c:
4110         added some pointer arithmetic optimizations but not stable yet so not
4111         called from anywhere (will get this working shortly)
4112
4113         * src/SDCCopt.c: fixed for multiple sends & receives
4114
4115         * src/SDCCmain.c:
4116         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
4117         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
4118            set preprocessor defines (depending on options)
4119
4120         * src/SDCCicode.c, src/SDCCicode.h:
4121         changes made to handle multiple sends & receives
4122
4123         * src/SDCCglobl.h:
4124         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
4125
4126         * src/SDCCcse.c, src/SDCCcse.h:
4127         added function findbackward def (to be used in upcoming optimization)
4128
4129         * src/SDCCcflow.c, src/SDCCcflow.h:
4130         added function returnAtEnd - to determine if a basic block terminates with
4131         a RETURN iCode
4132
4133         * src/SDCCast.c, src/SDCCast.h:
4134         added option parms-in-bank1
4135
4136         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c 
4137         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c 
4138         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
4139         adjusted for --parms-in-bank1 option
4140
4141         * device/include/string.h:
4142         donot redefine "reentrant" keyword
4143
4144         * device/include/ds80c390.h: Added some more SFRs
4145
4146 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
4147
4148         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4 
4149
4150 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
4151
4152         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
4153
4154 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
4155
4156         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
4157
4158 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
4159
4160         * Added --xram-movc option
4161
4162 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
4163
4164         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
4165
4166 2002-01-11  Johan Knol
4167
4168         * Added math lib of Jesus Calvino-Fraga
4169
4170 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
4171
4172         * src/SDCCmain.c (processFile): fix processing of ../../src.c
4173         * support/regression/Makefile: new target test-mcs51-stack-auto
4174         * support/regression/ports/mcs51-stack-auto/spec.mk: added
4175
4176 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
4177
4178         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
4179
4180 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
4181
4182         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
4183
4184 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
4185
4186         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
4187
4188         * src/SDCCglue.h: add definition for printIvalChar()
4189
4190 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
4191
4192         * src/SDCCast.c: fix #498138 by Johan
4193
4194         * src/SDCCglue.c: fix #498138 by Johan
4195
4196 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
4197
4198         * support/regression/Makefile: fix clean
4199
4200         * support/regression/ports/ds390/support.c: fix transmission of last character
4201
4202 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
4203
4204         * /sdcc/src/ds390/gen.c:
4205         a) improved computing address of stack variable
4206         b) took out some #if 0 code
4207         c) improved parmBytes adjustment
4208         d) improved genPlusIncr & genMinusIncr
4209         e) genCmp could generate bad code (when left assigned to DPTR)
4210         f) Fixed bug in hasInc
4211
4212         * /sdcc/src/ds390/ralloc.c:
4213         a) packRegsForSupport could mess up live information (Fixed)
4214         b) packRegsDPTRuse could be incorrect for left & right shift
4215
4216         * /sdcc/src/mcs51/ralloc.c:
4217         packRegsForSupport could mess up the live information (Fixed)
4218
4219         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
4220
4221         * /sdcc/src/SDCCast.c:
4222         can reverse a loop even if function call is present as long
4223         as the loop control variable is local & is not passed as parameter
4224
4225 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
4226
4227         * /sdcc/ChangeLog: *** empty log message ***
4228
4229         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
4230         More builtin function additions for TININative
4231
4232         * /sdcc/src/ds390/ralloc.c:
4233         Had broken the regression testsuite
4234
4235         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
4236
4237         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
4238         Added funcattr hasStackParms will be set for reentrant functions when there
4239         are paramteres on the stack, this helps in minimizing frame pointer generation
4240         typeFromStr can handle function pointers now
4241
4242         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
4243         *** empty log message ***
4244
4245 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
4246
4247         * /src/ds390/gen.c, /src/ds390/main.c:
4248         More builtin function additions for TININative
4249
4250         * /src/ds390/ralloc.c:
4251         Had broken the regression testsuite
4252
4253         * /src/SDCCast.c: Fixed a bug in dumptree
4254
4255         * /src/SDCCsymt.c, /src/SDCCsymt.h:
4256         Added funcattr hasStackParms will be set for reentrant functions when there
4257         are paramteres on the stack, this helps in minimizing frame pointer generation
4258         typeFromStr can handle function pointers now
4259
4260         * /doc/builtins.txt, /doc/TININative.txt:
4261         *** empty log message ***
4262
4263
4264 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
4265
4266         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
4267         ALPHA version for -mTININative
4268
4269         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
4270         updated to reflect changes in the port structure
4271
4272         * /src/port.h:
4273         added function do_assemble (similar to do_link) if non-null this function
4274         will be called to do assembly (-mTININative) requires a multi command
4275         assembly
4276         added function genAssemblerEnd will be called to generate assembler Epilogue
4277
4278         * /src/SDCCsymt.c:
4279         added _JavaNative to debug info printing
4280
4281         * /src/SDCCmain.c: added option --tini-libid
4282         added port->do_assemble function (-mTININative) has a multi command assemble
4283
4284         * /src/SDCCglue.c: Disabled "constExpr" check
4285         added port->genAssemblerEnd function
4286
4287         * /src/SDCCglobl.h: Added option --tini-libid value
4288
4289         * /src/SDCCast.h:
4290         tookout optimizeCompare from the header (has no external references)
4291
4292         * /src/SDCCast.c: made one more function "static"
4293
4294 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
4295
4296         * src/z80/mappings.i: Added z80asm support.
4297
4298         * src/z80/main.c: Added z80asm support on --asm=z80asm
4299
4300         * src/z80/gen.c: Fixed asm portability issues.
4301
4302         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
4303
4304         * src/SDCCglue.c (printExterns): Added global/extern split.
4305
4306 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
4307
4308         * support/regression/Makefile: added test for mcs51 model large
4309
4310         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
4311
4312         * support/regression/ports/gbz80/spec.mk: added -mgbz80
4313
4314 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
4315
4316         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
4317
4318 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
4319
4320         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
4321
4322         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
4323
4324 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
4325
4326         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
4327
4328         * support/regression/tests/simplefloat.c: Port to mcs51.
4329
4330 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
4331         * support/regression/tests/bug-485362.c: Added.
4332
4333         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
4334
4335         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
4336
4337         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
4338
4339         * src/z80/gen.c (aopDump): Added a dump function.
4340
4341 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
4342         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
4343
4344         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
4345
4346         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
4347
4348         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
4349
4350         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
4351
4352         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
4353
4354         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
4355
4356         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
4357
4358         * support/regression/ports/ds390/support.c: Use tinibios.
4359
4360         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
4361
4362 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
4363
4364         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
4365         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
4366
4367         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
4368
4369         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
4370
4371 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
4372
4373         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
4374
4375         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
4376         (packRegsForIYUse): Created and optimised.
4377
4378 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
4379
4380         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
4381 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
4382
4383         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
4384
4385         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
4386
4387         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
4388
4389 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
4390
4391         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
4392
4393         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
4394
4395 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
4396
4397         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
4398
4399         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
4400
4401         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
4402
4403 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
4404
4405         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
4406         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
4407         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
4408
4409         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
4410
4411         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
4412         (genNotFloat): Added.
4413         (genUminusFloat): Added.
4414
4415         * device/lib/z80/Makefile: Added floating pt stubs.
4416
4417         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
4418
4419         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
4420
4421         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
4422
4423 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
4424
4425         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
4426
4427         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
4428
4429         * sdcc/support/regression/Makefile: Add port ds390.
4430
4431         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
4432
4433         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
4434
4435         * sdcc/support/regression/ports/ds390/spec.mk: Added.
4436
4437         * sdcc/support/regression/ports/ds390/support.c: Added.
4438
4439         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
4440
4441         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
4442
4443         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
4444
4445 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
4446
4447         * device/include/malloc.h: Added z80 and gbz80 support.
4448
4449         * device/lib/gbz80/heap.s: Added.
4450
4451         * device/lib/z80/heap.s: Added.
4452
4453         * device/lib/malloc.c: Added z80 and gbz80 support.
4454
4455         * support/regression/tests/malloc.c (testMalloc): Added.
4456
4457         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
4458
4459         * support/regression/tests/bug-478094.c: Added.
4460
4461         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
4462
4463 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
4464
4465         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
4466
4467         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
4468
4469         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
4470
4471         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
4472
4473         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
4474
4475 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
4476
4477         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
4478
4479 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
4480
4481         * support/regression/tests/bug-477927.c: Added.
4482
4483         * src/z80/peeph.def: Added minor rules.
4484
4485         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
4486
4487         * src/z80/peeph.def: Added jump optimisation modification.
4488
4489 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
4490
4491         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
4492
4493 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
4494
4495         * support/regression/tests/funptrs.c: Added.
4496
4497 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
4498
4499         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
4500
4501 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
4502
4503         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
4504
4505         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
4506
4507         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
4508         (movLeft2ResultLong): Created.
4509
4510         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
4511         (joinPushes): Added.  Joins two char pushes into a word push.
4512
4513 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
4514
4515         * support/cpp2/Makefile.in (install): Added creation of dest dir.
4516
4517         * support/makebin/Makefile (install): Added creation of dest dir.
4518
4519 2001-10-24 Karl Bongers <karl AT turbobit.com>
4520
4521         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
4522
4523 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
4524
4525         * src/z80/ralloc.c: Turned off faulty pack for one use.
4526
4527         * src/z80/peeph-gbz80.def: Removed redundent restart options.
4528
4529         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
4530
4531 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
4532
4533         * support/regression/Makefile: Improved clean
4534
4535         * support/regression/ports/gbz80/spec.mk: Added clean
4536
4537         * support/regression/ports/host/spec.mk: Added clean
4538
4539         * support/regression/ports/z80/spec.mk: Added clean
4540
4541         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
4542
4543         * support/regression/ports/mcs51/timeout.c: little improvements
4544
4545 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
4546
4547         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
4548
4549         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
4550
4551         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
4552
4553 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
4554
4555         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
4556
4557         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
4558
4559 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
4560         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
4561
4562         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
4563
4564         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
4565
4566         * src/mcs51/main.c (_linkCmd): Added bin path to command.
4567
4568         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
4569
4570         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
4571
4572         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
4573
4574         * support/regression/tests/longor.c: Added.
4575
4576 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
4577
4578         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
4579
4580         * as/mcs51/aslink.h: define PATH_MAX
4581
4582         * as/mcs51/asm.h: define PATH_MAX
4583
4584         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
4585
4586         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
4587
4588         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
4589
4590         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
4591
4592         * src/SDCCglobl.h: define PATH_MAX
4593
4594         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
4595
4596         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
4597
4598 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
4599
4600         * src/z80/gen.c (gencjneshort): Fixed
4601
4602         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
4603
4604 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
4605
4606         * support/regression/tests/bug-469671.c: Added.
4607
4608         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
4609
4610 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
4611
4612         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
4613
4614         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
4615
4616 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
4617
4618         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
4619
4620         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
4621
4622         * src/device/lib/_mullong.c : removed hint: nooverlay bug
4623
4624         * src/device/lib/_divuint.c : removed hint: nooverlay bug
4625
4626         * src/device/lib/_divulong.c: removed hint: nooverlay bug
4627
4628         * src/device/lib/_moduint.c : removed hint: nooverlay bug
4629
4630         * src/device/lib/_modulong.c: removed hint: nooverlay bug
4631
4632 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
4633
4634         * 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.
4635
4636         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
4637
4638         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
4639
4640 2001-10-07    <johan AT FRIJA>
4641
4642         * device/lib/gets.c (gets): fixed the return value.
4643
4644 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
4645         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
4646
4647         * 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.
4648
4649         * 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.
4650
4651         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
4652
4653         * src/pic/gen.c: Removed Safe_strdup.
4654
4655         * configure.in: Added option to enable libgc support.
4656
4657         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
4658         (bitVectUnion): Optimised.
4659         (bitVectIntersect): Optimised.
4660         (bitVectBitsInCommon): Optimised.
4661         (bitVectCplAnd): Optimised.
4662
4663         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
4664
4665 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4666
4667         * src/SDCCmain.c: distinguish between assembler debug and plain options
4668
4669         * src/avr/main.c:   remove standard assembler options
4670
4671         * src/ds390/main.c: remove standard assembler options
4672
4673         * src/mcs51/main.c: remove standard assembler options
4674
4675         * src/port.h: removed "PENDING" comment
4676
4677 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4678
4679         * src/device/lib/_mulint.c  : new, with assember functions
4680
4681         * src/device/lib/_mullong.c : new, with assember functions
4682
4683         * src/device/lib/_divuint.c : with assember functions
4684
4685         * src/device/lib/_divsint.c : with assember functions
4686
4687         * src/device/lib/_divulong.c: with assember functions
4688
4689         * src/device/lib/_divslong.c: with assember functions
4690
4691         * src/device/lib/_moduint.c : with assember functions
4692
4693         * src/device/lib/_modsint.c : with assember functions
4694
4695         * src/device/lib/_modulong.c: with assember functions
4696
4697         * src/device/lib/_modslong.c: with assember functions
4698
4699         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
4700
4701         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
4702
4703         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
4704                                       replaced _mululong.c and _mulslong.c by _mullong.c
4705
4706 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4707
4708         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
4709
4710 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4711
4712         * src/SDCCglue.c: test, if win32api is available for MINGW
4713
4714 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4715
4716         * src/SDCCsymt.c: no more _modifier in printTypeChain()
4717         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
4718         * support/regression/ports/gbz80/spec.mk: removed GENERIC
4719         * support/regression/ports/host/spec.mk: removed GENERIC
4720         * support/regression/ports/mcs51/spec.mk: removed GENERIC
4721         * support/regression/ports/z80/spec.mk: removed GENERIC
4722
4723 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
4724
4725         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
4726
4727         * support/regression/tests/bug-467035.c: Created.
4728
4729 2001-10-01    <johan AT FRIJA>
4730
4731         * src/SDCC.y: fixed bug #466586 part 1
4732
4733 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
4734
4735         * SDCCicode.c: z80 has no generic pointers
4736         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
4737         
4738 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
4739
4740         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
4741
4742 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
4743
4744         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
4745
4746         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
4747
4748 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
4749
4750         * configure.in: Fixed up so that ucsim is only configured once.
4751
4752         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
4753
4754         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
4755         (getPathDifference): As above.
4756
4757         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
4758
4759         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
4760
4761 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
4762         * .version: Updated to 2.3.1
4763
4764         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
4765         Added copyright header.
4766
4767         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
4768         (assemble): Added support for macro based assembler commands.
4769         (linkEdit): Added support for macro based linker commands.
4770         (preProcess): Changed the pre-processor to use macros.
4771         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
4772         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
4773
4774         * device/lib/z80/crt0.s: Added module name for debugging.
4775
4776 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
4777
4778         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4779
4780         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
4781
4782         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
4783
4784         * src/Makefile.in: Added SDCCmacro and SDCCutil
4785
4786 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
4787
4788         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4789
4790 2001-09-16    <johan AT FRIJA>
4791
4792         * 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.
4793
4794 2001-09-15    <johan AT FRIJA>
4795
4796         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
4797         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
4798
4799 2001-09-11    <johan AT FRIJA>
4800
4801         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
4802
4803 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
4804
4805         * support/regression/tests/bug-460444.c: Added test case.
4806
4807         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
4808         (genCast): Added justification for all of the asserts.
4809
4810 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
4811
4812         * support/regression/support.c: _xdata replaced by xdata
4813
4814         * support/regression/spec.mk: removed _generic
4815
4816 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
4817
4818         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
4819
4820         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
4821         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
4822
4823         * src/z80/peeph.def: Added a rule to optimise shift then compare.
4824
4825         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
4826
4827         * support/regression/tests/bug-460010.c: Added test case.
4828
4829         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
4830
4831 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
4832
4833         * support/regression/Makefile: inter-port-clean adjusted for mcs51
4834
4835         * support/regression/testfwk.c: removed workaround for bug #436344
4836
4837         * support/regression/tests/bp.c: use less memory with mcs51
4838
4839         * support/regression/tests/bug-441448.c: use less memory
4840
4841         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
4842
4843         * support/regression/collate-results.py: typo
4844
4845 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
4846
4847         * support/regression/tests/fetchoverlap.c: Added new test case.
4848
4849         * support/regression/tests/bp.c: Added new test case.
4850
4851         * support/regression/tests/bug-448984.c: Added new test case.
4852
4853         * support/regression/tests/pow2shifts.c: Added new test case.
4854
4855         * src/z80/gen.c: Turned off the noise it normally generates for the release.
4856         (genlshTwo): Fixed right shift for count > 8.
4857
4858         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
4859
4860 2001-09-08    <johan AT FRIJA>
4861
4862         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
4863
4864 2001-09-07    <johan AT FRIJA>
4865
4866         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
4867
4868         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
4869
4870 2001-09-06    <johan AT FRIJA>
4871
4872         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
4873         * bernhard noted me at this: "() equals to (void)" (1.38)
4874
4875 2001-09-05    <johan AT FRIJA>
4876
4877         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
4878
4879 2001-09-04    <johan AT FRIJA>
4880
4881         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
4882
4883
4884 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
4885
4886         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
4887
4888 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
4889
4890         * link/z80/aslink.h: Fixed path for PATH_MAX
4891
4892 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
4893
4894         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
4895
4896         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
4897
4898         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
4899
4900         * 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.
4901
4902 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
4903
4904         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
4905         (genCmp): Fixed up genCmp for the GB with longs.
4906
4907         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
4908
4909         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
4910
4911         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
4912
4913         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
4914
4915 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
4916
4917         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
4918
4919 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
4920
4921         * 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.
4922
4923         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
4924
4925 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
4926
4927         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
4928
4929         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
4930
4931 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
4932
4933   * sim/ucsim/configure:    little improvement of Cygwin-detection      
4934   * sim/ucsim/configure.in: little improvement of Cygwin-detection      
4935   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
4936   * support/regression/tests/bug-221100.c: small changes for mcs51
4937   * support/regression/tests/bug-221168.c: small changes for mcs51
4938   * support/regression/tests/bug-227710.c: small changes for mcs51
4939   * support/regression/tests/staticinit.c: small changes for mcs51
4940   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
4941   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
4942   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601