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