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