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