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