1 2003-09-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
3 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
5 2003-09-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
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
23 2003-09-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
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
29 2003-09-06 Bernhard Held <bernhard@bernhardheld.de>
31 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
34 2003-09-05 Erik Petrich <epetrich@ivorytower.norman.ok.us>
36 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
37 reported in bug #800609
39 2003-09-04 Vangelis Rokas <vrokas@otenet.gr>
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
48 2003-09-04 Bernhard Held <bernhard@bernhardheld.de>
50 * device/lib/_mullong.c: replaced int by short for gcc
52 2003-08-31 Erik Petrich <epetrich@ivorytower.norman.ok.us>
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.
61 2003-08-31 Vangelis Rokas <vrokas@otenet.gr>
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
67 2003-08-31 Bernhard Held <bernhard@bernhardheld.de>
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
80 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
82 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
84 2003-08-28 Bernhard Held <bernhard@bernhardheld.de>
86 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
87 these ports have their own __sdcc_external_start()
89 2003-08-26 Bernhard Held <bernhard@bernhardheld.de>
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.
96 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
98 * doc/sdccman.lyx: various additions and updates. Rearranged sections
100 2003-08-22 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
102 Z80 and MCS51 linkers complaint if a public symbol is defined
103 in more than one library module:
107 * as/mcs51/Makefile.in
109 2003-08-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
111 A few small changes that speed up the peephole optimizer.
115 2003-08-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
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.
126 * src/mcs51/peeph.def
128 2003-08-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
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.
136 2003-08-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
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
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
151 2003-08-19 Bernhard Held <bernhard@bernhardheld.de>
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
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
177 2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
179 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
181 2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
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
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,
198 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann@web.de>
200 Rules 246.x, 247.x relate to bitfields, the others speed up
201 access to xdata mapped I/O devices.
203 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
205 2003-08-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
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
215 2003-08-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
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.
222 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
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
228 2003-08-13 Bernhard Held <bernhard@bernhardheld.de>
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
234 2003-08-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
236 Fixed numerous bitfield problems.
238 * src/SDCC.y: More bitfield related error checking
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
247 2003-08-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
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
260 * support/Util/SDCCerr.c
261 * support/Util/SDCCerr.h
264 2003-08-13 Bernhard Held <bernhard@bernhardheld.de>
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
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
280 2003-08-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
282 Generate warnings for useless declarations like "char data;"
283 that don't do what new users expect.
286 * support/Util/SDCCerr.h
287 * support/Util/SDCCerr.c
289 2003-08-09 Bernhard Held <bernhard@bernhardheld.de>
291 * src/SDCCval.c (valMult): fix overflow detection of negative int
293 2003-08-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
295 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
297 Changes to support big endian targets:
310 2003-08-06 Bernhard Held <bernhard@bernhardheld.de>
312 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
313 * device/lib/time.c: fixed warning "integer overflow in expression"
315 2003-08-05 Bernhard Held <bernhard@bernhardheld.de>
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
329 2003-08-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
331 Fixed some warnings when building with MSVC:
344 * support\cpp2\cpplib.c
348 2003-08-03 Bernhard Held <bernhard@bernhardheld.de>
350 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth@isi.edu>
352 2003-08-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
354 * support\librarian\clean.mk: Do not remove Makefile.
355 * support\librarian\Makefile: added.
357 2003-08-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
359 Added librarian to MSVC build:
362 * support\librarian\librarian.dsp
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
370 Hopefully these ones built the librarian and the rest of sdcc properly:
374 Messed up 'configure', so revert to previous version:
378 2003-07-31 Bernhard Held <bernhard@bernhardheld.de>
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.
383 2003-07-31 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
385 Adding sdcclib to the build. MSVC project coming soon.
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
401 2003-07-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
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:
427 2003-07-28 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
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.
432 2003-07-28 Bernhard Held <bernhard@bernhardheld.de>
434 * src/z80/mappings.i: fix _mul[us][int,long] entries
436 2003-07-26 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
438 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
440 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
442 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
443 * support/regression/tests/bitopcse.c: added
451 2003-07-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
453 added support for new library format to z80, gbz80 linkers:
459 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
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)
464 2003-07-23 Bernhard Held <bernhard@bernhardheld.de>
466 added DUMMY_READ_VOLATILE:
475 * src/SDCCcse.c (algebraicOpts): many improvements
476 * src/SDCCcse.h: removed algebraicOpts()
477 * src/SDCCicode.c (picDummyRead): added
479 2003-07-23 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
481 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
482 "Insufficient space in data memory".
484 2003-07-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
486 * src/mcs51/gen.c: fixed bug #771358
487 * src/z80/gen.c: fixed bug #759087
489 2003-07-20 Bernhard Held <bernhard@bernhardheld.de>
491 * src/pic16/glue.c: minor cleanup by Vangelis
493 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann@web.de>
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
503 2003-07-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
505 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
507 2003-07-17 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
509 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
511 2003-07-17 Bernhard Held <bernhard@bernhardheld.de>
513 * device/lib/Makefile.in: bad fix, reverted to 1.43
515 2003-07-16 Bernhard Held <bernhard@bernhardheld.de>
517 * device/lib/Makefile.in: added missing z80 object files
519 2003-07-14 Bernhard Held <bernhard@bernhardheld.de>
521 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
522 pic16 progress by Vangelis:
540 2003-07-13 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
542 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
544 2003-07-12 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
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.
552 2003-07-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
554 * support/librarian/sdcclib.c: sdcc librarian.
555 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
558 2003-07-03 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
560 * as/mcs51/lkmain.c: properly handle extensions in function afile.
562 2003-07-02 Borut Razem <borut.razem@siol.net>
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
571 2003-07-01 Kevin Vigor <kevin@vigor.nu>
573 * DS800C400 fun, improved ROM interface and tinibios.
575 2003-06-27 Kevin Vigor <kevin@vigor.nu>
577 * More support for DS80C400. Now includes beginning of interface to ROM.
579 2003-06-25 Bernhard Held <bernhard@bernhardheld.de>
581 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
583 2003-06-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
585 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
587 2003-06-19 Borut Razem <borut.razem@siol.net>
589 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
591 2003-06-19 Borut Razem <borut.razem@siol.net>
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.
596 2003-06-19 Bernhard Held <bernhard@bernhardheld.de>
598 * support/Util/MySystem.c (merge_command): revert bad fix
600 2003-06-18 Borut Razem <borut.razem@siol.net>
602 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
604 2003-06-18 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
606 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
607 option --use-stdout sends errors to stdout instead of stderr.
609 2003-06-18 Bernhard Held <bernhard@bernhardheld.de>
611 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
613 2003-06-15 Borut Razem <borut.razem@siol.net>
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
629 2003-06-11 Bernhard Held <bernhard@bernhardheld.de>
631 * src/pic16/ralloc.c: fix warnings
632 * src/pic16/pcode.c: fix warning
634 2003-06-10 Scott Dattalo <scott@dattalo.com>
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
644 * src/pic16/device.c:
647 * src/pic16/pcoderegs.c:
648 * src/pic16/ralloc.c:
649 * src/pic16/ralloc.h:
651 2003-06-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
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.
657 2003-06-07 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
659 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
660 device/lib/libfloat.lib: added atof function.
662 2003-06-04 Bernhard Held <bernhard@bernhardheld.de>
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
669 2003-06-03 Bernhard Held <bernhard@bernhardheld.de>
671 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas@otenet.gr>
673 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann@web.de>
675 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
676 additions to the "related tools/documentation" section
678 2003-06-02 Bernhard Held <bernhard@bernhardheld.de>
680 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
682 2003-05-29 Bernhard Held <bernhard@bernhardheld.de>
684 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn@vt.edu>
685 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
687 2003-05-28 Bernhard Held <bernhard@bernhardheld.de>
689 * doc/sdccman.lyx: fix double dash and other minor things
690 * doc/Makefile: fix double dash
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.
696 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
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.
704 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann@web.de>
706 * doc/sdccman.lyx: Manual has an index now
708 2003-05-25 Bernhard Held <bernhard@bernhardheld.de>
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)
719 2003-05-25 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
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
727 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann@web.de>
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)
735 2003-05-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
737 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
739 2003-05-22 Bernhard Held <bernhard@bernhardheld.de>
741 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
743 2003-05-21 <johan@balder>
745 * src/SDCCglue.c (printIval): fixed bug #739934
747 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
749 Applied patch from bug 737905 (renamed yylineo to mylineno):
756 * src/pic16/pcode.c: Cleaned warnings
757 * src/pic16/pcodeflow.c: Cleaned warnings
758 * src/pic16/pcoderegs.c: Cleaned warnings
760 2003-05-19 Scott Dattalo <scott@dattalo.com>
762 * src/pic16/pcode.c: Cleaned warnings
763 * src/pic16/pcodepeep.c: Cleaned warnings
764 * src/pic16/ralloc.c: Cleaned warnings
766 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
768 * doc/sdccman.lyx: fixed bug 739745
769 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
771 2003-05-18 Bernhard Held <bernhard@bernhardheld.de>
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
777 2003-05-18 Vangelis Rokas (vrokas@otenet.gr)
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
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
816 2003-05-18 <johan@balder>
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)
822 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
823 Added feature to script commands from file.
825 2003-05-14 Bernhard Held <bernhard@bernhardheld.de>
827 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
828 * src/SDCCutil.c: include ctype.h for win32
830 2003-05-13 Bernhard Held <bernhard@bernhardheld.de>
832 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
834 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
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
841 2003-05-12 Borut Razem <borut.razem@siol.net>
843 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
845 2003-05-11 Borut Razem <borut.razem@siol.net>
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
854 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
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
864 2003-05-09 <johan@balder>
866 * src/SDCCglue.c: fixed bug #597940
868 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
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.
875 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
877 * support/regression/HTMLgen.py: added compare_s2f()
878 * support/regression/Makefile: redo 1.27
879 * support/regression/generate-cases.py: redo 1.5
881 2003-04-30 Bernhard Held <bernhard@bernhardheld.de>
883 * support/regression/tests/float.c: workaround 33 bit hex constant
884 * support/regression/tests/simplefloat.c: fix division for host
886 2003-04-29 Scott Dattalo <scott@dattalo.com>
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.
891 2003-04-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
893 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
896 2003-04-29 Kevin Vigor <kevin@vigor.nu>
898 Initial support for DS80C400. "Hello world" runs on TINIm400
901 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
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.
908 2003-04-28 Scott Dattalo <scott@DATTALO.COM>
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
914 2003-04-28 Bernhard Held <bernhard@bernhardheld.de>
916 * debugger/mcs51/cmd.c: added header newalloc.h
918 2003-04-26 Bernhard Held <bernhard@bernhardheld.de>
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
927 2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
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
938 * debugger/mcs51/Makefile.in
939 * debugger/mcs51/clean.mk
941 * link/z80/Makefile.in
944 * packihx/Makefile.in
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
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
970 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
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
977 2003-04-23 Bernhard Held <bernhard@bernhardheld.de>
979 * as/Makefile: fix target clean
980 * as/clean.mk: fix target clean
981 * as/z80/clean.mk: fix target clean
983 2003-04-22 Bernhard Held <bernhard@bernhardheld.de>
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
992 2003-04-22 Scott Dattalo <scott@dattalo.com>
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
998 2003-04-20 Borut Razem <borut.razem@siol.net>
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
1008 2003-04-19 Borut Razem <borut.razem@siol.net>
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
1021 2003-04-19 Bernhard Held <bernhard@bernhardheld.de>
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
1027 2003-04-18 Kevin Vigor <kevin@vigor.nu>
1029 * src/SDCCopt.c: add special case optimization to replace modulo by
1030 a power of two with a bitwise AND.
1032 2003-04-18 <johan@balder>
1034 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
1036 2003-04-17 <johan@balder>
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
1041 2003-04-13 Borut Razem <borut.razem@siol.net>
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
1047 2003-04-12 Borut Razem <borut.razem@siol.net>
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
1054 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
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
1071 2003-04-12 Borut Razem <borut.razem@siol.net>
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()
1078 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
1080 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
1082 2003-04-11 kevin Vigor <kevin@vigor.nu>
1084 * ds390/gen.c ds390/peeph.def: fix bug 706781
1086 2003-04-11 Borut Razem <borut.razem@siol.net>
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
1090 2003-04-10 Scott Dattalo <scott@dattalo.com>
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
1101 2003-04-08 <johan@CP255758-A>
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
1107 2003-04-07 Bernhard Held <bernhard@bernhardheld.de>
1109 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
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
1120 2003-04-06 Paul Stoffregen <paul@pjrc.com>
1122 * src/SDCCpeeph.c: added okToRemoveSLOC test
1124 2003-04-06 Paul Stoffregen <paul@pjrc.com>
1126 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
1128 2003-04-06 Paul Stoffregen <paul@pjrc.com>
1130 * src/SDCCpeeph.c: added labelIsReturnOnly test
1131 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
1133 2003-04-05 <johan@balder>
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
1142 2003-04-04 <johan@balder>
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
1148 2003-04-03 <johan@balder>
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
1156 2003-04-03 Bernhard Held <bernhard@bernhardheld.de>
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
1165 2003-04-02 Bernhard Held <bernhard@bernhardheld.de>
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"
1174 2003-04-02 <johan@balder>
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
1181 2003-04-01 Bernhard Held <bernhard@bernhardheld.de>
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
1188 2003-03-31 Borut Razem <borut.razem@siol.net>
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
1193 2003-03-31 Bernhard Held <bernhard@bernhardheld.de>
1195 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
1197 2003-03-30 Borut Razem <borut.razem@siol.net>
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()
1213 2003-03-30 Scott Dattalo <scott@dattalo.com>
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
1220 2003-03-29 Bernhard Held <bernhard@bernhardheld.de>
1222 * support/Util/dbuf.h: remove C++ stuff to make it portable
1224 2003-03-28 Borut Razem <borut.razem@siol.net>
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
1232 2003-03-27 Paul Stoffregen <paul@pjrc.com>
1234 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
1236 2003-03-26 <johan@balder>
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"
1242 2003-03-23 Bernhard Held <bernhard@bernhardheld.de>
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)
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;}"
1266 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
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
1271 2003-03-22 <johan@balder>
1273 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
1275 2003-03-21 Bernhard Held <bernhard@bernhardheld.de>
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
1282 2003-03-20 Bernhard Held <bernhard@bernhardheld.de>
1284 * src/mcs51/peeph.def: fix bug #705773
1286 2003-03-20 <johan@balder>
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):
1294 2003-03-17 Bernhard Held <bernhard@bernhardheld.de>
1296 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
1298 2003-03-16 <johan@balder>
1300 Undid the hackup of const and volatile, the problem is much bigger
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
1308 2003-03-15 Bernhard Held <bernhard@bernhardheld.de>
1310 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
1311 * src/ds390/gen.c (genAddrOf): fixed bug #704087
1313 2003-03-13 <johan@balder>
1315 Hackup const and volatile modifiers in type chains a bit:
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
1324 2003-03-12 <johan@balder>
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
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.
1340 2003-03-11 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1342 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
1343 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
1345 2003-03-11 Kevin Vigor <kevin@vigor.nu>
1347 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
1348 actually called (operandsNotEqual() was called for all
1349 operandsNotEqualX tests).
1351 2003-03-11 Kevin Vigor <kevin@vigor.nu>
1353 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
1354 with shorter literals. Fixes bug 700121.
1356 2003-03-11 <johan@balder>
1358 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
1360 2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
1362 * src/SDCCloop.c (mergeRegions): an evil beast is dead
1363 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
1365 2003-03-10 Borut Razem <borut.razem@siol.net>
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
1377 2003-03-10 Bernhard Held <bernhard@bernhardheld.de>
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
1383 2003-03-09 Bernhard Held <bernhard@bernhardheld.de>
1385 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
1387 2003-03-09 Borut Razem <borut.razem@siol.net>
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
1398 2003-03-09 Borut Razem <borut.razem@siol.net>
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
1406 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1408 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
1410 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
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
1429 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
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
1437 2003-03-07 <johan@balder>
1440 some minor cleanups before the big shot
1441 OP_DEFS and OP_USES now use Kevin's protection
1442 new option --nolabelopt
1453 * src/ds390/ralloc.c:
1454 * src/mcs51/ralloc.c:
1456 * src/xa51/ralloc.c:
1459 2003-03-06 Bernhard Held <bernhard@bernhardheld.de>
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
1467 2003-03-04 Bernhard Held <bernhard@bernhardheld.de>
1469 * src/mcs51/gen.c (genMinus): fixed bug 696436
1471 2003-03-02 Borut Razem <borut.razem@siol.net>
1473 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
1475 2003-02-26 Bernhard Held <bernhard@bernhardheld.de>
1477 * configure.in: test for mkstemp
1478 * sdccconf_in.h: add HAVE_MKSTEMP
1480 2003-02-24 Bernhard Held <bernhard@bernhardheld.de>
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
1486 2003-02-23 Borut Razem <borut.razem@siol.net>
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
1492 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
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
1497 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1499 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
1500 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
1502 2003-02-18 <johan@balder>
1504 * as/mcs51/asmain.c (asmbl): module can start with a digit
1505 * as/z80/asmain.c (asmbl): module can start with a digit
1507 2003-02-16 Bernhard Held <bernhard@bernhardheld.de>
1509 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
1510 * src/asm.c: fix pipe() for Mingw32
1512 2003-02-15 Bernhard Held <bernhard@bernhardheld.de>
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
1522 2003-02-15 <johan@balder>
1524 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
1526 2003-02-14 Bernhard Held <bernhard@bernhardheld.de>
1528 * doc/sdccman.lyx: Environment variables, -o and other minor things
1530 2003-02-14 <johan@balder>
1532 * src/xa51/main.c: before anyone really tries to use it :)
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
1540 M device/include/Makefile.in
1541 M device/lib/Makefile.in
1544 M sim/ucsim/doc/Makefile.in
1547 R src/xa51/peeph.rul
1548 M support/cpp2/Makefile.in
1549 M support/makebin/Makefile
1552 2003-02-13 Bernhard Held <bernhard@bernhardheld.de>
1554 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
1556 2003-02-10 Borut Razem <borut.razem@siol.net>
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
1569 2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
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
1576 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
1578 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
1580 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
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
1586 2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
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
1599 2003-02-05 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
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."
1605 2003-02-02 Borut Razem <borut.razem@siol.net>
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
1617 2003-02-02 Bernhard Held <bernhard@bernhardheld.de>
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
1639 2003-02-02 <johan@balder>
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)
1648 2003-02-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1650 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
1653 2003-02-01 <johan@balder>
1655 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
1657 2003-01-31 <johan@CP255758-A>
1659 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
1661 2003-01-30 <johan@balder>
1663 * src/SDCCBBlock.c: automatic bug detection
1664 * src/SDCCicode.c: automatic bug detection
1666 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1668 * src/SDCCglobl.h: now --xram-size 0 works
1669 * src/SDCCmain.c: now --xram-size 0 works
1671 2003-01-29 <johan@balder>
1673 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
1675 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
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
1684 2003-01-28 Bernhard Held <bernhard@bernhardheld.de>
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
1689 2003-01-27 <johan@balder>
1691 * src/SDCC.y: fixed bug #613764
1693 2003-01-26 <johan@balder>
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
1700 2003-01-26 Bernhard Held <bernhard@bernhardheld.de>
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
1717 2003-01-26 <johan@balder>
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
1723 2003-01-25 <johan@balder>
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
1729 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
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
1738 2003-01-24 <johan@CP255758-A>
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
1745 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
1747 * src/mcs51/peeph.def: better assembler identation by Frieder
1748 * src/mcs51/gen.c: better assembler identation by Frieder
1750 2003-01-22 Bernhard Held <bernhard@bernhardheld.de>
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
1756 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
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
1765 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
1767 * moved tinitalk to device/examples/ds390
1769 2003-01-14 Bernhard Held <bernhard@bernhardheld.de>
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
1782 2003-01-13 Bernhard Held <bernhard@bernhardheld.de>
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
1793 2003-01-12 Bernhard Held <bernhard@bernhardheld.de>
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
1799 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
1801 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
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
1807 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
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
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>
1836 2003-01-07 <johan@balder>
1838 * src/SDCCast.c (decorateType): fixed bug #600035
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
1847 2003-01-06 <karl@turbobit.com>
1848 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
1851 2003-01-06 <johan@balder>
1853 * src/SDCCicode.c: fixed array add
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
1859 2003-01-04 <johan@balder>
1861 * src/SDCCval.c (getNelements): fixed the initialized array of structures
1863 2002-12-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1864 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
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
1870 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
1871 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
1873 2002-12-27 Bernhard Held <bernhard@bernhardheld.de>
1874 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
1876 2002-12-26 Bernhard Held <bernhard@bernhardheld.de>
1877 * src/mcs51/main.c: removed {bindir}{sep} from aslink
1879 2002-12-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
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.
1887 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
1888 .adb instead of .cdb
1890 2002-11-09 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1892 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
1893 value from option --iram-size.
1895 2002-09-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1897 * \sdcc\as\mcs51\lklist.c: added boundary check before using
1900 2002-09-18 <wiml@hhhh.org>
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
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.
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
1919 2002-09-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1920 Changes to aslink (All the changes are marked with 'JCF'):
1922 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
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.
1929 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
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
1938 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
1939 the 8051. Option 'y' for memory summary output file.
1941 Changes to sdcc (All the changes are marked with 'JCF'):
1943 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
1945 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
1946 overlaying area for it (uses RegBankUsed[4]).
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.
1955 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
1956 glue() in SDCCglue.c creates an area for it.
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, ...
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!
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
1976 2002-08-28 Bernhard Held <bernhard@bernhardheld.de>
1977 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
1979 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
1980 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
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 ...)
1994 * sdcc/src/yacc.dsp: added
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
2000 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
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
2006 removed from CVS, generated automatically
2008 2002-08-25 Bernhard Held <bernhard@bernhardheld.de>
2009 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
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)
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.
2021 unification of code in functions tempfilename() and tempfile():
2022 function tempnam() is defined in Visual Studio 6.0 and .NET
2024 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
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
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
2035 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
2037 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
2039 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
2041 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
2042 added return 0 statements after assert() to make compiler happy
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
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()
2052 * sdcc_vc.h: define PREFIX as "\\sdcc"
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
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)
2063 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
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.
2067 2002-05-10 Scott Dattalo <scott@dattalo.com>
2068 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
2070 2002-04-22 Michael Hope <michaelh@vroom>
2072 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
2074 * configure.in (DD_COPT): Added include support required for gbdk.
2076 * .version: Bumped version number just to increase it.
2078 * src/SDCCmain.c: Added -nostdinc to the default options.
2080 2002-04-15 Michael Hope <michaelh@vroom>
2082 * device/lib/z80/printf.c (sprintf): Added.
2084 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
2086 * src/z80/peeph.def: Added transpose redundent load rule.
2088 * src/z80/main.c: Added force callee saves for jaune.
2090 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
2092 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
2094 2002-03-28 Johan Knol <johan@balder>
2096 * src/SDCCval.c: fixed bug #532436
2098 2002-03-14 Scott Dattalo <scott@dattalo.com>
2100 Added "char *Processor" field to the port structure.
2103 Added -p option. Allows port dependent processor to be specified.
2106 Initialized the new field char *Processor field to NULL in all ports
2109 Compiler generated registers for interrupt context saving
2110 were not getting allocated.
2112 2002-03-16 Sandeep Dutta <sandeep@ddi.com>
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
2119 2002-03-14 Scott Dattalo <scott@dattalo.com>
2121 tons of changes. Register allocation has been
2122 rewritten. Added customization for the various PICs. Flow
2123 analysis is restructured. ...
2129 Added. device.c is a PIC port hack to accomodate variations
2132 2002-03-13 Michael Hope <michaelh@vroom>
2134 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
2136 2002-03-04 johanknol <johanknol@manik>
2138 * /src/SDCCval.c: fixed
2140 const unsigned char arr[][2] = { { 0, 1 } };
2141 t18.c:1: error: Initializer element is not constant
2143 2002-03-04 bela <bela@manik>
2145 * /device/include/mcs51reg.h:
2146 ds89c420 register definition update
2148 2002-03-03 <johan@FRIJA>
2150 * support/Util/SDCCerr.c: did something, but don't no why anymore
2152 * support/regression/tests/bug-524691.c: made it a little less shy
2154 * src/SDCCast.c (decorateType): fixed bug #524697
2156 * src/SDCCast.c: made some lineno improvements
2158 * src/SDCCval.c (getNelements): changed warning to error
2160 * src/SDCCglue.c (printIvalArray): changed warning to error
2162 * src/SDCCicode.c: fixed a warning for mingw
2164 * src/SDCCast.c (decorateType): fixed the << promotion for ops
2166 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
2168 2002-03-02 Sandeep Dutta <sandeep@ddi.com>
2170 * src/ds390/peeph.def:
2171 Added some more peephole rules
2173 * src/ds390/gen.c: Various fixes & enhancements
2175 * src/SDCClrange.c, src/SDCClrange.h:
2176 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
2178 * src/ds390/ralloc.c:
2179 various fixes & enhancements (ds390) specific
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
2185 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
2187 2002-03-02 <johan@FRIJA>
2189 * src/SDCCast.c (decorateType): fixed bug #524708
2191 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
2193 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
2195 2002-03-01 Michael Hope <michaelh@vroom>
2197 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
2199 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
2201 2002-03-01 <johan@FRIJA>
2203 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
2205 * src/SDCCast.c (decorateType): fixed bug #524209
2207 * src/SDCCval.c (valNot): fixed bug #524195
2209 2002-02-26 <johan@balder>
2211 * src/xa51/gen.c: fixed a warning
2213 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
2215 * src/SDCCast.c (decorateType): fixed bug #522534
2217 2002-02-23 <johan@balder>
2219 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
2221 2002-02-22 <johan@balder>
2223 * src/SDCCast.c: fixed bug #514865
2225 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
2227 2002-02-21 Sandeep Dutta <sandeep@ddi.com>
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
2235 2002-02-21 <johan@FRIJA>
2237 * src/SDCCcse.c: fixed bug #514308
2239 2002-02-20 Sandeep Dutta <sandeep@ddi.com>
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.
2245 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
2247 2002-02-10 Karl Bongers <karl@turbobit.com>
2250 Fixed up SDCDB debugger somewhat. Updated debugger/README
2251 with lots of comments and notes.
2253 * device/examples/test2.c:
2254 Fix bug, "red" variable not being initialized(compiler complained).
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.
2260 * sim/ucsim/cmd.src/cmdset.cc:
2261 Took out debug printfs in ucsim "next" command.
2264 Karl and Johan start ucsim XA support. Most dissassembly working,
2265 about 75% emulation done(plenty of work remaining).
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.
2272 2002-01-30 Sandeep Dutta <sandeep@ddi.com>
2274 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
2275 Added support for --parms-in-bank1
2277 * src/ds390/peeph.def:
2278 added a few more peephole optimzations
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
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
2290 * src/SDCCsymt.c, src/SDCCsymt.h:
2291 changes to handle multiple sends & receives
2294 added some pointer arithmetic optimization
2297 added some pointer arithmetic optimizations but not stable yet so not
2298 called from anywhere (will get this working shortly)
2300 * src/SDCCopt.c: fixed for multiple sends & receives
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)
2307 * src/SDCCicode.c, src/SDCCicode.h:
2308 changes made to handle multiple sends & receives
2311 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
2313 * src/SDCCcse.c, src/SDCCcse.h:
2314 added function findbackward def (to be used in upcoming optimization)
2316 * src/SDCCcflow.c, src/SDCCcflow.h:
2317 added function returnAtEnd - to determine if a basic block terminates with
2320 * src/SDCCast.c, src/SDCCast.h:
2321 added option parms-in-bank1
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
2328 * device/include/string.h:
2329 donot redefine "reentrant" keyword
2331 * device/include/ds80c390.h: Added some more SFRs
2333 2002-01-28 Bernhard Held <bernhard@bernhardheld.de>
2335 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
2337 2002-01-26 Bernhard Held <bernhard@bernhardheld.de>
2339 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
2341 2002-01-22 Bernhard Held <bernhard@bernhardheld.de>
2343 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
2345 2002-01-18 Paul Stoffregen <paul@pjrc.com>
2347 * Added --xram-movc option
2349 2002-01-13 Bernhard Held <bernhard@bernhardheld.de>
2351 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
2353 2002-01-11 Johan Knol
2355 * Added math lib of Jesus Calvino-Fraga
2357 2002-01-08 Bernhard Held <bernhard@bernhardheld.de>
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
2363 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
2365 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
2367 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
2369 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
2371 2002-01-03 Bernhard Held <bernhard@bernhardheld.de>
2373 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
2375 * src/SDCCglue.h: add definition for printIvalChar()
2377 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
2379 * src/SDCCast.c: fix #498138 by Johan
2381 * src/SDCCglue.c: fix #498138 by Johan
2383 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
2385 * support/regression/Makefile: fix clean
2387 * support/regression/ports/ds390/support.c: fix transmission of last character
2389 2001-12-29 Sandeep Dutta <sandeep@ddi.com>
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
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
2403 * /sdcc/src/mcs51/ralloc.c:
2404 packRegsForSupport could mess up the live information (Fixed)
2406 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
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
2412 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2414 * /sdcc/ChangeLog: *** empty log message ***
2416 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
2417 More builtin function additions for TININative
2419 * /sdcc/src/ds390/ralloc.c:
2420 Had broken the regression testsuite
2422 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
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
2429 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
2430 *** empty log message ***
2432 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2434 * /src/ds390/gen.c, /src/ds390/main.c:
2435 More builtin function additions for TININative
2437 * /src/ds390/ralloc.c:
2438 Had broken the regression testsuite
2440 * /src/SDCCast.c: Fixed a bug in dumptree
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
2447 * /doc/builtins.txt, /doc/TININative.txt:
2448 *** empty log message ***
2451 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2453 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
2454 ALPHA version for -mTININative
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
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
2463 added function genAssemblerEnd will be called to generate assembler Epilogue
2466 added _JavaNative to debug info printing
2468 * /src/SDCCmain.c: added option --tini-libid
2469 added port->do_assemble function (-mTININative) has a multi command assemble
2471 * /src/SDCCglue.c: Disabled "constExpr" check
2472 added port->genAssemblerEnd function
2474 * /src/SDCCglobl.h: Added option --tini-libid value
2477 tookout optimizeCompare from the header (has no external references)
2479 * /src/SDCCast.c: made one more function "static"
2481 2001-12-23 Michael Hope <michaelh@juju.net.nz>
2483 * src/z80/mappings.i: Added z80asm support.
2485 * src/z80/main.c: Added z80asm support on --asm=z80asm
2487 * src/z80/gen.c: Fixed asm portability issues.
2489 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
2491 * src/SDCCglue.c (printExterns): Added global/extern split.
2493 2001-12-17 Bernhard Held <bernhard@bernhardheld.de>
2495 * support/regression/Makefile: added test for mcs51 model large
2497 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
2499 * support/regression/ports/gbz80/spec.mk: added -mgbz80
2501 2001-12-05 Michael Hope <michaelh@juju.net.nz>
2503 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
2505 1904-01-06 Michael Hope <michaelh@juju.net.nz>
2507 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
2509 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
2511 2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
2513 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
2515 * support/regression/tests/simplefloat.c: Port to mcs51.
2517 2001-11-25 Michael Hope <michaelh@juju.net.nz>
2518 * support/regression/tests/bug-485362.c: Added.
2520 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
2522 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
2524 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
2526 * src/z80/gen.c (aopDump): Added a dump function.
2528 2001-11-25 Bernhard Held <bernhard@bernhardheld.de>
2529 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
2531 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
2533 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
2535 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
2537 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
2539 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
2541 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
2543 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
2545 * support/regression/ports/ds390/support.c: Use tinibios.
2547 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
2549 2001-11-23 Michael Hope <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
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.
2554 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
2556 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
2558 2001-11-18 Michael Hope <michaelh@juju.net.nz>
2560 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
2562 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
2563 (packRegsForIYUse): Created and optimised.
2565 2001-11-07 Michael Hope <michaelh@juju.net.nz>
2567 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
2568 2001-11-18 Bernhard Held <bernhard@bernhardheld.de>
2570 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
2572 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
2574 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
2576 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2578 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
2580 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
2582 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2584 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
2586 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
2588 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
2590 2001-11-07 Michael Hope <michaelh@juju.net.nz>
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.
2596 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
2598 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
2599 (genNotFloat): Added.
2600 (genUminusFloat): Added.
2602 * device/lib/z80/Makefile: Added floating pt stubs.
2604 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
2606 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
2608 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
2610 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2612 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
2614 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
2616 * sdcc/support/regression/Makefile: Add port ds390.
2618 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
2620 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
2622 * sdcc/support/regression/ports/ds390/spec.mk: Added.
2624 * sdcc/support/regression/ports/ds390/support.c: Added.
2626 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
2628 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
2630 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
2632 2001-11-04 Michael Hope <michaelh@juju.net.nz>
2634 * device/include/malloc.h: Added z80 and gbz80 support.
2636 * device/lib/gbz80/heap.s: Added.
2638 * device/lib/z80/heap.s: Added.
2640 * device/lib/malloc.c: Added z80 and gbz80 support.
2642 * support/regression/tests/malloc.c (testMalloc): Added.
2644 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
2646 * support/regression/tests/bug-478094.c: Added.
2648 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
2650 2001-11-04 Bernhard Held <bernhard@bernhardheld.de>
2652 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
2654 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
2656 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
2658 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
2660 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
2662 2001-11-04 Michael Hope <michaelh@juju.net.nz>
2664 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
2666 2001-11-03 Michael Hope <michaelh@juju.net.nz>
2668 * support/regression/tests/bug-477927.c: Added.
2670 * src/z80/peeph.def: Added minor rules.
2672 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
2674 * src/z80/peeph.def: Added jump optimisation modification.
2676 2001-11-01 Michael Hope <michaelh@juju.net.nz>
2678 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
2680 2001-10-30 Michael Hope <michaelh@juju.net.nz>
2682 * support/regression/tests/funptrs.c: Added.
2684 2001-10-29 Michael Hope <michaelh@juju.net.nz>
2686 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
2688 2001-10-28 Michael Hope <michaelh@juju.net.nz>
2690 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
2692 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
2694 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
2695 (movLeft2ResultLong): Created.
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.
2700 2001-10-27 Michael Hope <michaelh@juju.net.nz>
2702 * support/cpp2/Makefile.in (install): Added creation of dest dir.
2704 * support/makebin/Makefile (install): Added creation of dest dir.
2706 2001-10-24 Karl Bongers <karl@turbobit.com>
2708 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
2710 2001-10-21 Michael Hope <michaelh@juju.net.nz>
2712 * src/z80/ralloc.c: Turned off faulty pack for one use.
2714 * src/z80/peeph-gbz80.def: Removed redundent restart options.
2716 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
2718 2001-10-21 Bernhard Held <bernhard@bernhardheld.de>
2720 * support/regression/Makefile: Improved clean
2722 * support/regression/ports/gbz80/spec.mk: Added clean
2724 * support/regression/ports/host/spec.mk: Added clean
2726 * support/regression/ports/z80/spec.mk: Added clean
2728 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
2730 * support/regression/ports/mcs51/timeout.c: little improvements
2732 2001-10-17 Michael Hope <michaelh@juju.net.nz>
2734 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
2736 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
2738 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
2740 2001-10-16 Bernhard Held <bernhard@bernhardheld.de>
2742 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
2744 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
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.
2749 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
2751 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
2753 * src/mcs51/main.c (_linkCmd): Added bin path to command.
2755 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
2757 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
2759 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
2761 * support/regression/tests/longor.c: Added.
2763 2001-10-11 Bernhard Held <bernhard@bernhardheld.de>
2765 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
2767 * as/mcs51/aslink.h: define PATH_MAX
2769 * as/mcs51/asm.h: define PATH_MAX
2771 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
2773 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
2775 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
2777 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
2779 * src/SDCCglobl.h: define PATH_MAX
2781 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
2783 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
2785 2001-10-11 Michael Hope <michaelh@juju.net.nz>
2787 * src/z80/gen.c (gencjneshort): Fixed
2789 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
2791 2001-10-09 Michael Hope <michaelh@juju.net.nz>
2793 * support/regression/tests/bug-469671.c: Added.
2795 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
2797 2001-10-08 Michael Hope <michaelh@juju.net.nz>
2799 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
2801 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
2803 2001-10-08 Bernhar Held <bernhard@bernhardheld.de>
2805 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
2807 * src/device/lib/_mulint.c : removed hint: nooverlay bug
2809 * src/device/lib/_mullong.c : removed hint: nooverlay bug
2811 * src/device/lib/_divuint.c : removed hint: nooverlay bug
2813 * src/device/lib/_divulong.c: removed hint: nooverlay bug
2815 * src/device/lib/_moduint.c : removed hint: nooverlay bug
2817 * src/device/lib/_modulong.c: removed hint: nooverlay bug
2819 2001-10-07 Michael Hope <michaelh@juju.net.nz>
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.
2823 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
2825 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
2827 2001-10-07 <johan@FRIJA>
2829 * device/lib/gets.c (gets): fixed the return value.
2831 2001-10-06 Michael Hope <michaelh@juju.net.nz>
2832 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
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.
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.
2838 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
2840 * src/pic/gen.c: Removed Safe_strdup.
2842 * configure.in: Added option to enable libgc support.
2844 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
2845 (bitVectUnion): Optimised.
2846 (bitVectIntersect): Optimised.
2847 (bitVectBitsInCommon): Optimised.
2848 (bitVectCplAnd): Optimised.
2850 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
2852 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2854 * src/SDCCmain.c: distinguish between assembler debug and plain options
2856 * src/avr/main.c: remove standard assembler options
2858 * src/ds390/main.c: remove standard assembler options
2860 * src/mcs51/main.c: remove standard assembler options
2862 * src/port.h: removed "PENDING" comment
2864 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2866 * src/device/lib/_mulint.c : new, with assember functions
2868 * src/device/lib/_mullong.c : new, with assember functions
2870 * src/device/lib/_divuint.c : with assember functions
2872 * src/device/lib/_divsint.c : with assember functions
2874 * src/device/lib/_divulong.c: with assember functions
2876 * src/device/lib/_divslong.c: with assember functions
2878 * src/device/lib/_moduint.c : with assember functions
2880 * src/device/lib/_modsint.c : with assember functions
2882 * src/device/lib/_modulong.c: with assember functions
2884 * src/device/lib/_modslong.c: with assember functions
2886 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
2888 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
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
2893 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2895 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
2897 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
2899 * src/SDCCglue.c: test, if win32api is available for MINGW
2901 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
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
2910 2001-10-01 Michael Hope <michaelh@juju.net.nz>
2912 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
2914 * support/regression/tests/bug-467035.c: Created.
2916 2001-10-01 <johan@FRIJA>
2918 * src/SDCC.y: fixed bug #466586 part 1
2920 2001-10-01 Johan Knol <johan.knol@iduna.nl>
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.
2925 2001-09-30 Michael Hope <michaelh@juju.net.nz>
2927 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
2929 2001-09-29 Michael Hope <michaelh@juju.net.nz>
2931 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
2933 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
2935 2001-09-25 Michael Hope <michaelh@juju.net.nz>
2937 * configure.in: Fixed up so that ucsim is only configured once.
2939 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
2941 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
2942 (getPathDifference): As above.
2944 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
2946 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
2948 2001-09-23 Michael Hope <michaelh@juju.net.nz>
2949 * .version: Updated to 2.3.1
2951 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
2952 Added copyright header.
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.
2961 * device/lib/z80/crt0.s: Added module name for debugging.
2963 2001-09-20 Michael Hope <michaelh@juju.net.nz>
2965 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
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.
2969 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
2971 * src/Makefile.in: Added SDCCmacro and SDCCutil
2973 2001-09-19 Michael Hope <michaelh@juju.net.nz>
2975 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
2977 2001-09-16 <johan@FRIJA>
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.
2981 2001-09-15 <johan@FRIJA>
2983 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
2984 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
2986 2001-09-11 <johan@FRIJA>
2988 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
2990 2001-09-10 Michael Hope <michaelh@juju.net.nz>
2992 * support/regression/tests/bug-460444.c: Added test case.
2994 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
2995 (genCast): Added justification for all of the asserts.
2997 2001-09-10 Bernhard Held <bernhard@bernhardheld.de>
2999 * support/regression/support.c: _xdata replaced by xdata
3001 * support/regression/spec.mk: removed _generic
3003 2001-09-09 Michael Hope <michaelh@juju.net.nz>
3005 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
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.
3010 * src/z80/peeph.def: Added a rule to optimise shift then compare.
3012 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
3014 * support/regression/tests/bug-460010.c: Added test case.
3016 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
3018 2001-09-09 Bernhard Held <bernhard@bernhardheld.de>
3020 * support/regression/Makefile: inter-port-clean adjusted for mcs51
3022 * support/regression/testfwk.c: removed workaround for bug #436344
3024 * support/regression/tests/bp.c: use less memory with mcs51
3026 * support/regression/tests/bug-441448.c: use less memory
3028 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
3030 * support/regression/collate-results.py: typo
3032 2001-09-08 Michael Hope <michaelh@juju.net.nz>
3034 * support/regression/tests/fetchoverlap.c: Added new test case.
3036 * support/regression/tests/bp.c: Added new test case.
3038 * support/regression/tests/bug-448984.c: Added new test case.
3040 * support/regression/tests/pow2shifts.c: Added new test case.
3042 * src/z80/gen.c: Turned off the noise it normally generates for the release.
3043 (genlshTwo): Fixed right shift for count > 8.
3045 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
3047 2001-09-08 <johan@FRIJA>
3049 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
3051 2001-09-07 <johan@FRIJA>
3053 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
3055 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
3057 2001-09-06 <johan@FRIJA>
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)
3062 2001-09-05 <johan@FRIJA>
3064 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
3066 2001-09-04 <johan@FRIJA>
3068 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
3071 2001-09-04 Paul Stoffregen <paul@pjrc.com>
3073 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
3075 2001-09-03 Michael Hope <michaelh@juju.net.nz>
3077 * link/z80/aslink.h: Fixed path for PATH_MAX
3079 2001-09-02 Michael Hope <michaelh@juju.net.nz>
3081 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
3083 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
3085 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
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.
3089 2001-09-01 Michael Hope <michaelh@juju.net.nz>
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.
3094 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
3096 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
3098 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
3100 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
3102 2001-08-30 Paul Stoffregen <paul@pjrc.com>
3104 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
3106 2001-08-30 Michael Hope <michaelh@juju.net.nz>
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.
3110 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
3112 2001-08-29 Michael Hope <michaelh@juju.net.nz>
3114 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
3116 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
3118 2001-08-30 Bernhard Held <bernhard@bernhardheld.de>
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