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