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