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