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