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