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