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