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