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