1 2003-09-26 Erik Petrich <epetrich@ivorytower.norman.ok.us>
3 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
4 * src/asm.c (printILine): Fixed bug #811015
6 2003-09-22 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
8 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11 2003-09-21 Erik Petrich <epetrich@ivorytower.norman.ok.us>
13 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
15 to correctly handle general case of AOP_PAIRPTR
16 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
18 2003-09-21 Erik Petrich <epetrich@ivorytower.norman.ok.us>
20 * src/mcs51/ralloc.c (fillGaps),
21 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
22 register positioning bug)
24 2003-09-21 Bernhard Held <bernhard@bernhardheld.de>
26 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
28 2003-09-19 Erik Petrich <epetrich@ivorytower.norman.ok.us>
30 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
31 genCodePointerGet, genGenPointerGet, genFarPointerSet,
32 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
33 (ralloc doesn't intentionally do this now, but perhaps later)
34 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
35 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
36 register positioning bugs (Fixed bug #762602 and #795325)
37 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
39 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
40 lines that --i-code-in-asm generates
42 2003-09-18 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
44 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
45 trying to fclose a FILE* that was already closed.
47 2003-09-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
49 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
50 of const struct should be treated as if const themselves)
52 2003-09-18 Bernhard Held <bernhard@bernhardheld.de>
54 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
56 2003-07-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
58 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
59 Unix (/n) and DOS (/r/n) line terminations.
61 2003-09-17 Erik Petrich <epetrich@ivorytower.norman.ok.us>
63 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
66 2003-09-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
68 * src/mcs51/gen.c (genFunction, genEndFunction),
69 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
70 and restore of EA so that stack offsets to parameters are
71 correct when using both critical and reentrant/stack-auto.
72 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
73 size (can be triggered in error if sloc is shared between
74 different sized objects)
75 * device/include/float.h: fixed macros to explicitly use
76 unsigned long where needed
78 2003-09-15 Bernhard Held <bernhard@bernhardheld.de>
80 Feature req. 799831: added code to allow nesting of critical functions
81 * src/mcs51/gen.c (genFunction, genEndFunction)
82 * src/ds390/gen.c (genFunction, genEndFunction)
84 2003-09-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
86 * src/SDCCsymt.c (sclsFromPtr),
88 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
89 support for standard C idiom of memory mapped variables; for
90 example, *((xdata int*)0x1234) = 1 is now internally equivalent
91 to xdata int at 0x1234 tempvar = 1.
92 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
93 provided by Akiya ISHIDA
95 2003-09-13 Bernhard Held <bernhard@bernhardheld.de>
97 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
98 * src/SDCCval.c (constVal): added reduction from int to char
99 * src/SDCCval.c (valMult, valDiv): fixed sign handling
100 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
101 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
103 * support/regression/tests/shifts.c: fixed
105 2003-09-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
107 * src/z80/gen.c (genXor): Fixed bug #805445
109 2003-09-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
111 Fixed bug #621531 (const & volatile confusion in the type chain).
112 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
113 refer to the const or volatile state of the pointer itself.
126 * support/regression/tests/const.c
128 2003-09-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
130 When checking for duplicated modules, use absolute paths
131 instead of relative paths. Files changed:
136 2003-09-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
138 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
140 2003-09-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
142 * device/include/string.h: added size_t typedef, changed
143 prototypes to use size_t, eliminated separate reentrant and
144 non-reentrant declarations, added _memmove declaration
145 * device/lib/_memcpy.c: changed to use size_t instead of int,
146 changed /4 to >>2 to avoid division library call
147 * device/lib/_memcmp.c,
148 * device/lib/_memset.c,
149 * device/lib/_strncat.c,
150 * device/lib/_strncpy.c,
151 * device/lib/_strncmp.c: changed to use size_t instead of int
152 * device/lib/_memmove.c: new file (fixed bug #772294)
153 * device/lib/Makefile.in: added _memmove.c
154 * device/lib/z80/asm_strings.s: fixed bug #772290
155 * support/regression/tests/bitfields.c: attempt to fix host assertion
156 failure on amd64-unknown-linux2.2
158 2003-09-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
160 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
161 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
162 * as/z80/asmain.c (main): fixed bug #801766
164 2003-09-06 Bernhard Held <bernhard@bernhardheld.de>
166 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
169 2003-09-05 Erik Petrich <epetrich@ivorytower.norman.ok.us>
171 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
172 reported in bug #800609
174 2003-09-04 Vangelis Rokas <vrokas@otenet.gr>
176 * Top header beautifications in src/pic16 directory:
177 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
178 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
179 pcoderegs.h, ralloc.c, ralloc.h
180 * main.c: added top header and GPL license notice
181 * pcode.c: fixed the if-conditional warning
183 2003-09-04 Bernhard Held <bernhard@bernhardheld.de>
185 * device/lib/_mullong.c: replaced int by short for gcc
187 2003-08-31 Erik Petrich <epetrich@ivorytower.norman.ok.us>
189 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
190 and JUMPTABLE iCodes properly now (worked by accident before)
191 * src/mcs51/gen.c (leftRightUseAcc),
192 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
193 iCode properly now. Use getSize instead of nRegs since a & b
194 aren't part of the nRegs tally.
196 2003-08-31 Vangelis Rokas <vrokas@otenet.gr>
198 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
199 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
200 before instructions that use the _STATUS register
202 2003-08-31 Bernhard Held <bernhard@bernhardheld.de>
204 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
205 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
206 fetching of the pointer
207 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
208 copied from genNearPointerSet()
209 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
210 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
211 If they pop r0/r1 they must be called in the opposite order than aopOp().
212 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
213 (resp. --stack-auto), prepared for --xstack
215 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
217 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
219 2003-08-28 Bernhard Held <bernhard@bernhardheld.de>
221 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
222 these ports have their own __sdcc_external_start()
224 2003-08-26 Bernhard Held <bernhard@bernhardheld.de>
226 pic patch provided by Slade Rich <slade_rich@yahoo.com>
227 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
228 type for bits was changed. It resulted in bit variables becoming
229 global, which is not permitted in PIC 14 assembly output.
231 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
233 * doc/sdccman.lyx: various additions and updates. Rearranged sections
235 2003-08-22 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
237 Z80 and MCS51 linkers complaint if a public symbol is defined
238 in more than one library module:
242 * as/mcs51/Makefile.in
244 2003-08-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
246 A few small changes that speed up the peephole optimizer.
250 2003-08-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
252 Try to make the peephole optimizer smarter by maintaining
253 an association between the assembly source code and the
254 iCodes that originated them. Put this information to use
255 with a new peephole rule condition "notVolatile" so that
256 the rules can be aggressive yet still safe.
261 * src/mcs51/peeph.def
263 2003-08-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
267 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
268 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
269 if the left or right operand symbols have the accuse flag set.
271 2003-08-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
273 Changed the type of the result of the ! (NOT) operator to char;
274 previously it returned the same type as the source. This allows
275 us to eliminate all the genFloatNot functions (all of its target
276 implementations were very buggy) since !float can use the same
279 * src/SDCCicode.c (ast2iCode): ! returns char
280 * src/mcs51/gen.c (genNot, genNotFloat),
281 * src/ds390/gen.c (genNot, genNotFloat),
282 * src/z80/gen.c (genNot, genNotFloat),
283 * src/pic/gen.c (genNot, genNotFloat),
284 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
286 2003-08-19 Bernhard Held <bernhard@bernhardheld.de>
288 pic patch provided by Slade Rich <slade_rich@yahoo.com>
289 1. Interrupt would not compile properly. Ensure PCLATH register is saved
290 during interrupts. Ensure WSAVE is located at a shared bank address.
291 2. Fixed page selection in some places
292 3. Fixed BTFSS/C to where necessary use registers directly and not simply
293 the registers name strings.
294 4. Fixed "signed / unsigned compare" compiler warnings.
295 5. The PIC port manages its own allocation of the general purpose
296 registers, but makes no attempt to reuse them. As a result when
297 compiling it soon runs out of general purpose registers. Some
298 additional code was added to the files pcode.c and device.c to walk
299 through the function call tree and rename the registers so that they
309 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
310 genPlus() & genMinus() when the result is the same as left or right
312 2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
314 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
316 2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
318 Made bitfield a distinct type from bit so that bitfields
319 convert as per ANSI C and bits retain their traditional
320 boolean style behaviour. Implemented bitfield support in
328 * src/ds390/gen.c: bit v bitfield split
329 * src/z80/gen.c: New support for bitfields
330 * support/regression/tests/bitfields.c: reenabled z80,
333 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann@web.de>
335 Rules 246.x, 247.x relate to bitfields, the others speed up
336 access to xdata mapped I/O devices.
338 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
340 2003-08-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
342 Cleaned up genPackBits and genUnpackBits and added two helper
343 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
344 for literal assignments in genPackBits (thanks to Frieder for
350 2003-08-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
352 Fixed bug #748310 (pointer to function type mishandled when the
353 function name is omitted). Also fixed a SIGSEGV when a function
354 attribute (reentrant, etc) is used on a non-function or on a
355 function but misplaced before the parameter list.
357 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
359 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
360 * support/Util/SDCCerr.h,
361 * support/Util/SDCCerr.c: Added func attr misuse error msg
363 2003-08-13 Bernhard Held <bernhard@bernhardheld.de>
365 Fixed bug #787649 by anonymous
366 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
367 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
369 2003-08-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
371 Fixed numerous bitfield problems.
373 * src/SDCC.y: More bitfield related error checking
375 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
376 * support/Util/SDCCerr.h,
377 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
378 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
379 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
380 * support/regression/tests/bitfields.c: tests added
382 2003-08-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
384 Made the constant following the "interrupt" keyword optional. If
385 omitted, the function will not automatically be given an entry
386 in the interrupt vector table (similar to #pragma NOIV, but
387 less syntacticly kludgy). The interrupt number is also now
388 range checked. Also fixed a bug in the high order bit example
395 * support/Util/SDCCerr.c
396 * support/Util/SDCCerr.h
399 2003-08-13 Bernhard Held <bernhard@bernhardheld.de>
401 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
402 * src/SDCCicode.c (operandOperation): rewritten some ops
403 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
404 * src/SDCCsymt.c (computeType): literals are handled the same way as any
406 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
407 be re-activated by defining REDUCE_LITERALS)
408 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
409 unsigned, but are signed by default
410 * src/SDCCval.c (constVal): rearranged
411 * src/SDCCval.c (valMod): preliminary fix
412 * src/SDCCval.c (valCastLiteral): use TYPE_* types
413 * support/regression/literalop.c: added, work in progress
415 2003-08-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
417 Generate warnings for useless declarations like "char data;"
418 that don't do what new users expect.
421 * support/Util/SDCCerr.h
422 * support/Util/SDCCerr.c
424 2003-08-09 Bernhard Held <bernhard@bernhardheld.de>
426 * src/SDCCval.c (valMult): fix overflow detection of negative int
428 2003-08-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
430 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
432 Changes to support big endian targets:
445 2003-08-06 Bernhard Held <bernhard@bernhardheld.de>
447 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
448 * device/lib/time.c: fixed warning "integer overflow in expression"
450 2003-08-05 Bernhard Held <bernhard@bernhardheld.de>
452 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
453 * src/SDCCval.c (constVal): changed default to signed; hex and octal
454 constants are unsigned; added recognition of "u" flag for unsigned
455 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
456 * src/SDCCval.c (valDiv, valMod): fixed signdness
457 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
458 signedness of modulo, left and right shift
459 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
460 * support/Util/SDCCerr.h: added warning W_INT_OVL
461 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
462 * src/SDCCast.c (ast_print): improved output of constants
464 2003-08-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
466 Fixed some warnings when building with MSVC:
479 * support\cpp2\cpplib.c
483 2003-08-03 Bernhard Held <bernhard@bernhardheld.de>
485 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth@isi.edu>
487 2003-08-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
489 * support\librarian\clean.mk: Do not remove Makefile.
490 * support\librarian\Makefile: added.
492 2003-08-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
494 Added librarian to MSVC build:
497 * support\librarian\librarian.dsp
499 'configure' not needed for librarian, removed:
500 * support\librarian\configure
501 * support\librarian\configure.in
502 * support\librarian\config_in.h
503 * support\librarian\Makefile.in
505 Hopefully these ones built the librarian and the rest of sdcc properly:
509 Messed up 'configure', so revert to previous version:
513 2003-07-31 Bernhard Held <bernhard@bernhardheld.de>
515 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
516 there, while the mantissa of a double is "only" 53 bits wide.
518 2003-07-31 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
520 Adding sdcclib to the build. MSVC project coming soon.
523 * support\librarian\clean.mk
524 * support\librarian\configure
525 * support\librarian\configure.in
526 * support\librarian\config_in.h
527 * support\librarian\Makefile.bcc
528 * support\librarian\Makefile.in
529 * support\librarian\sdcclib.c
536 2003-07-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
538 Linker now complaints if linked modules have conflicting options, for
539 example, one compiled using --model-large and another one compiled with
540 --model-small. The following files were modified:
562 2003-07-28 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
564 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
565 as/mcs51/lklibr.c: Generate a warning when a library is not found.
567 2003-07-28 Bernhard Held <bernhard@bernhardheld.de>
569 * src/z80/mappings.i: fix _mul[us][int,long] entries
571 2003-07-26 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
573 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
575 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
577 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
578 * support/regression/tests/bitopcse.c: added
586 2003-07-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
588 added support for new library format to z80, gbz80 linkers:
594 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
596 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
597 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
599 2003-07-23 Bernhard Held <bernhard@bernhardheld.de>
601 added DUMMY_READ_VOLATILE:
610 * src/SDCCcse.c (algebraicOpts): many improvements
611 * src/SDCCcse.h: removed algebraicOpts()
612 * src/SDCCicode.c (picDummyRead): added
614 2003-07-23 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
616 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
617 "Insufficient space in data memory".
619 2003-07-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
621 * src/mcs51/gen.c: fixed bug #771358
622 * src/z80/gen.c: fixed bug #759087
624 2003-07-20 Bernhard Held <bernhard@bernhardheld.de>
626 * src/pic16/glue.c: minor cleanup by Vangelis
628 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann@web.de>
630 * device/include/regc515c.h: fixed #758477
631 * device/lib/_gptrget.c: saving some cycles in generic pointer get
632 * device/lib/_gptrput.c: saved a few bytes
633 * my tab spacing is 8, yours too?)
634 * device/lib/_ser.c: process RX bytes earlier than TX bytes
635 * device/lib/serial.c: process RX bytes earlier than TX bytes
636 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
638 2003-07-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
640 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
642 2003-07-17 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
644 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
646 2003-07-17 Bernhard Held <bernhard@bernhardheld.de>
648 * device/lib/Makefile.in: bad fix, reverted to 1.43
650 2003-07-16 Bernhard Held <bernhard@bernhardheld.de>
652 * device/lib/Makefile.in: added missing z80 object files
654 2003-07-14 Bernhard Held <bernhard@bernhardheld.de>
656 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
657 pic16 progress by Vangelis:
675 2003-07-13 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
677 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
679 2003-07-12 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
681 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
682 added gbz80 build to MSVC project.
683 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
684 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
685 from 8051 stuff and setup so it links using a .lnk file.
687 2003-07-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
689 * support/librarian/sdcclib.c: sdcc librarian.
690 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
693 2003-07-03 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
695 * as/mcs51/lkmain.c: properly handle extensions in function afile.
697 2003-07-02 Borut Razem <borut.razem@siol.net>
699 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
700 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
701 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
702 src/xa51/main.c, src/z80/main.c:
703 virtualization of glue() function: each port has it's own glue function,
704 which is accessed by do_glue function pointer in PORT.general structure
706 2003-07-01 Kevin Vigor <kevin@vigor.nu>
708 * DS800C400 fun, improved ROM interface and tinibios.
710 2003-06-27 Kevin Vigor <kevin@vigor.nu>
712 * More support for DS80C400. Now includes beginning of interface to ROM.
714 2003-06-25 Bernhard Held <bernhard@bernhardheld.de>
716 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
718 2003-06-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
720 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
722 2003-06-19 Borut Razem <borut.razem@siol.net>
724 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
726 2003-06-19 Borut Razem <borut.razem@siol.net>
728 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
729 fixed Z80 port - crt0.o: cannot open.
731 2003-06-19 Bernhard Held <bernhard@bernhardheld.de>
733 * support/Util/MySystem.c (merge_command): revert bad fix
735 2003-06-18 Borut Razem <borut.razem@siol.net>
737 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
739 2003-06-18 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
741 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
742 option --use-stdout sends errors to stdout instead of stderr.
744 2003-06-18 Bernhard Held <bernhard@bernhardheld.de>
746 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
748 2003-06-15 Borut Razem <borut.razem@siol.net>
750 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
751 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
752 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
753 fixed width array of pointers replaced with sets;
754 multiple include and lib paths ared transferred to preprocessor and linker
755 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
756 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
757 fixed width array of pointers
758 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
759 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
760 fixupPath(), getPathDifference()
761 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
762 fixed width array of pointers
764 2003-06-11 Bernhard Held <bernhard@bernhardheld.de>
766 * src/pic16/ralloc.c: fix warnings
767 * src/pic16/pcode.c: fix warning
769 2003-06-10 Scott Dattalo <scott@dattalo.com>
771 Scott D. for Vangelis Rokas (vrokas@otenet.gr). I (scott) don't
772 know all the details, but essentially this set of changes enable
773 the pic16 port to generate movff instructions and generate assembler
779 * src/pic16/device.c:
782 * src/pic16/pcoderegs.c:
783 * src/pic16/ralloc.c:
784 * src/pic16/ralloc.h:
786 2003-06-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
788 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
789 added option --vc, so sdcc errors and warnings are compatible with
790 Microsoft Visual Studio.
792 2003-06-07 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
794 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
795 device/lib/libfloat.lib: added atof function.
797 2003-06-04 Bernhard Held <bernhard@bernhardheld.de>
799 * doc/sdccman.lyx: updated to Lyx 1.3
800 * doc/cdbfileformat.lyx: updated to Lyx 1.3
801 * doc/test_suite_spec.lyx: updated to Lyx 1.3
802 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
804 2003-06-03 Bernhard Held <bernhard@bernhardheld.de>
806 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas@otenet.gr>
808 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann@web.de>
810 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
811 additions to the "related tools/documentation" section
813 2003-06-02 Bernhard Held <bernhard@bernhardheld.de>
815 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
817 2003-05-29 Bernhard Held <bernhard@bernhardheld.de>
819 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn@vt.edu>
820 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
822 2003-05-28 Bernhard Held <bernhard@bernhardheld.de>
824 * doc/sdccman.lyx: fix double dash and other minor things
825 * doc/Makefile: fix double dash
827 2003-05-28 Karl Bongers(patches from Martin Helmling)
828 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
829 condition and ignore commands.
831 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
833 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
834 is in parts still quite out of date, I did changes as far as I felt makes sense
835 for a non-native english speaker.
836 Please feel free to add to the manual or to correct my changes.
837 * doc/Makefile: undid touching the date of intermediate tex files.
839 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann@web.de>
841 * doc/sdccman.lyx: Manual has an index now
843 2003-05-25 Bernhard Held <bernhard@bernhardheld.de>
845 Finalize muluint/mulsint and mululong/mulslong merging:
846 * device/lib/_mulint.c
847 * device/lib/_mullong.c
848 * device/lib/gbz80/mul.s
849 * device/lib/gbz80/stubs.s
850 * device/lib/z80/mul.s
851 * device/lib/z80/stubs.s
852 * src/SDCCsymt.c (initCSupport)
854 2003-05-25 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
856 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
857 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
858 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
859 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
862 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann@web.de>
864 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
865 the regression tests I'm not brave enough to enable 245.b, 245.c
866 * doc/sdccman.lyx: added latex preamble for hyperref package.
867 Using pdflatex this will give you a hyperlinked pdf file with
868 bookmarks. (prepend '%' before /usepackage if this breaks something)
870 2003-05-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
872 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
874 2003-05-22 Bernhard Held <bernhard@bernhardheld.de>
876 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
878 2003-05-21 <johan@balder>
880 * src/SDCCglue.c (printIval): fixed bug #739934
882 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
884 Applied patch from bug 737905 (renamed yylineo to mylineno):
891 * src/pic16/pcode.c: Cleaned warnings
892 * src/pic16/pcodeflow.c: Cleaned warnings
893 * src/pic16/pcoderegs.c: Cleaned warnings
895 2003-05-19 Scott Dattalo <scott@dattalo.com>
897 * src/pic16/pcode.c: Cleaned warnings
898 * src/pic16/pcodepeep.c: Cleaned warnings
899 * src/pic16/ralloc.c: Cleaned warnings
901 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
903 * doc/sdccman.lyx: fixed bug 739745
904 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
906 2003-05-18 Bernhard Held <bernhard@bernhardheld.de>
908 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
909 it can be defined with CFLAGS when running configure
910 * src/SDCCmain.c: fixed compiling + linking with object files
912 2003-05-18 Vangelis Rokas (vrokas@otenet.gr)
914 * configure.in: configure for pic16 port,
915 added --disable-pic16-port
916 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
917 * src/SDCCmain.c: linkOptions is changed to set *,
918 added if/endif conditional macros to remove options help
919 messages from optionsTable when a port is not configured, added
920 support for the PIc16 port in the ports table, when executing
921 the compiler with no port specified on command line, a default
922 port is selected with the new macro DEFAULT_PORT which is
923 defined in port.h, in setDefaultOptions() linkOptions is removed
924 from initialization assignment, since now it is a set,
925 parseCmdLine uses setParseWithComma for linkOptions, in
926 linkEdit() linkOptions are accessed with new function indexSet()
927 which returns the i'th item of a set variable. See SDCCset.c, in
928 linkEdit() when calling buildCmdLine(), added linkOptions as
929 last argument. Now users can pass arguments to gplink via the
930 -Wl option, main() uses pic16glue() to glue up pic16 programs
931 * src/SDCCpeeph.c: various changes to support pic16
932 * src/SDCCset.c: added function void *indexSet(set *, int) to
933 return the i'th item of the set
934 * src/SDCCset.h: added function prototype for indexSet()
935 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
936 * src/clean.mk: added pic16 in CLEANALLPORTS variable
937 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
938 added macro DEFAULT_PORT
939 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
940 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
942 * src/pic16/glue.c: commented out some error producing lines
943 * src/pic16/main.c: __config directives are commented out to stop
944 gpasm complaining and test the linkage with gplink, _linkCmd and
945 _asmCmd changed to be more gplink and gpasm friendly
946 * src/pic16/peeph.def: peep rule 3 is commented out, since it
947 produced an error when parsed, peep rule 12 is added to utilize
948 movff, but it is commented out since the pCode does not support
949 yet a command with 2 address arguments
951 2003-05-18 <johan@balder>
953 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
954 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
955 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
957 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
958 Added feature to script commands from file.
960 2003-05-14 Bernhard Held <bernhard@bernhardheld.de>
962 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
963 * src/SDCCutil.c: include ctype.h for win32
965 2003-05-13 Bernhard Held <bernhard@bernhardheld.de>
967 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
969 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
971 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
972 Fixed so you can set breakpoints prior to run, run does not stop
973 on entry now. Add tbreak. Other enhancements and fixes for use
976 2003-05-12 Borut Razem <borut.razem@siol.net>
978 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
980 2003-05-11 Borut Razem <borut.razem@siol.net>
982 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
983 the path of bin directory, so that PATH is the only env. variable, which has to be set
984 in case of standard installation.
985 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
986 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
987 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
989 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
991 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
992 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
993 temp files are in the port dir; clean the gen/test directory when
994 generating new test.c
995 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
996 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
997 * support/regression/tests/zeropad.c: added
999 2003-05-09 <johan@balder>
1001 * src/SDCCglue.c: fixed bug #597940
1003 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
1005 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
1006 cache sfr, optimize next,step, fix off by one sourceline,
1007 support ddd list function.
1008 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
1010 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
1012 * support/regression/HTMLgen.py: added compare_s2f()
1013 * support/regression/Makefile: redo 1.27
1014 * support/regression/generate-cases.py: redo 1.5
1016 2003-04-30 Bernhard Held <bernhard@bernhardheld.de>
1018 * support/regression/tests/float.c: workaround 33 bit hex constant
1019 * support/regression/tests/simplefloat.c: fix division for host
1021 2003-04-29 Scott Dattalo <scott@dattalo.com>
1023 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim@jimhawkridge.uk.eu.org>
1024 that tame's the PIC's over-aggressive optimizer.
1026 2003-04-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1028 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
1031 2003-04-29 Kevin Vigor <kevin@vigor.nu>
1033 Initial support for DS80C400. "Hello world" runs on TINIm400
1036 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
1038 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
1039 * Some notes on ddd usage added in debugger/README
1040 Martin Helmling adding more features and fixes for ddd GUI debugger.
1041 Code added for nexti, stepi, up, down, and other adjustments.
1043 2003-04-28 Scott Dattalo <scott@DATTALO.COM>
1045 * src/pic/pCodepeep.c non-wildcard asmops are now handled
1046 * src/pic/peeph.def Added two rules to optimize carry manipulation
1047 * src/pic/* removed debug printfs
1049 2003-04-28 Bernhard Held <bernhard@bernhardheld.de>
1051 * debugger/mcs51/cmd.c: added header newalloc.h
1053 2003-04-26 Bernhard Held <bernhard@bernhardheld.de>
1055 * as/Makefile: new EXEEXT
1056 * as/z80/Makefile: remove trailing slash of BUILDIR
1057 * as/z80/clean.mk: new EXEEXT
1058 * Makefile.common.in: add to CFLAGS (and others), don't replace it
1059 * support/cpp2/Makefile.in: new EXEEXT
1060 * src/pic/glue.c (pic14emitRegularMap): fixed warning
1062 2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
1064 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
1065 EXEEXT was introduced to fix all related problems with targets
1066 "clean", "install" and "uninstall"; a couple of further flaws
1067 especially with "clean" have been fixed too
1068 * as/mcs51/Makefile.in
1073 * debugger/mcs51/Makefile.in
1074 * debugger/mcs51/clean.mk
1076 * link/z80/Makefile.in
1079 * packihx/Makefile.in
1081 * sim/ucsim/Makefile
1082 * sim/ucsim/clean.mk
1083 * sim/ucsim/avr.src/Makefile.in
1084 * sim/ucsim/avr.src/clean.mk
1085 * sim/ucsim/s51.src/Makefile.in
1086 * sim/ucsim/s51.src/clean.mk
1087 * sim/ucsim/xa.src/Makefile.in
1088 * sim/ucsim/xa.src/clean.mk
1089 * sim/ucsim/z80.src/Makefile.in
1090 * sim/ucsim/z80.src/clean.mk
1091 * sim/ucsim/main_in.mk
1092 * sim/ucsim/packages_in.mk
1093 * sim/ucsim/gui.src/Makefile.in
1094 * sim/ucsim/gui.src/serio.src/Makefile.in
1095 * sim/ucsim/gui.src/serio.src/clean.mk
1098 * support/cpp2/Makefile.in
1099 * support/cpp2/clean.mk
1100 * support/makebin/Makefile
1101 * support/makebin/clean.mk
1102 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
1103 * doc/sdccman.lyx: --program-suffix no longer needed
1105 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
1107 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
1108 Martin Helmling added support for ddd GUI debugger.
1109 Code added to display assembly, set variables, and other commands
1110 to interface to ddd.
1112 2003-04-23 Bernhard Held <bernhard@bernhardheld.de>
1114 * as/Makefile: fix target clean
1115 * as/clean.mk: fix target clean
1116 * as/z80/clean.mk: fix target clean
1118 2003-04-22 Bernhard Held <bernhard@bernhardheld.de>
1120 * Makefile.common.in: added @EXEEXT@
1121 * configure.in: removed all mingw32 stuff
1122 * configure: rebuilt from configure.in
1123 * doc/sdccman.lyx: updated section "installation"
1124 * support/scripts/sdcc_mingw32: adapted to configure
1125 * support/scripts/sdcc_cygwin_mingw32: added
1127 2003-04-22 Scott Dattalo <scott@dattalo.com>
1129 * src/pic Added object file support for the PIC port
1130 * src/pic Applied patch from Craig Franklin (this started the object file support)
1131 * src/regression Updated the PIC regression tests for object files
1133 2003-04-20 Borut Razem <borut.razem@siol.net>
1135 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
1136 lklex.c: In function `getfid':
1137 lklex.c:203: warning: array subscript has type `char'
1138 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
1139 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
1140 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
1141 stack handling macros
1143 2003-04-19 Borut Razem <borut.razem@siol.net>
1145 * "handling space characters in file path" task:
1146 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
1147 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
1148 * support/Util/MySystem.h: make it self-sufficient
1149 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
1150 src/z80/main.c, sdcc/as/mcs51/lklex.c:
1151 handling space characters in file path
1152 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
1153 (it will be used by assemblers, which have their own includes, e.g. gpasm)
1154 * support/Util/MySystem.c: handling space characters in executable's path
1156 2003-04-19 Bernhard Held <bernhard@bernhardheld.de>
1158 * as/z80/Makefile: fix permanent rebuild of z80
1159 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
1160 * support/regression/tests/bitfields.c: added Johan's bitfields.c
1162 2003-04-18 Kevin Vigor <kevin@vigor.nu>
1164 * src/SDCCopt.c: add special case optimization to replace modulo by
1165 a power of two with a bitwise AND.
1167 2003-04-18 <johan@balder>
1169 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
1171 2003-04-17 <johan@balder>
1173 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
1174 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
1176 2003-04-13 Borut Razem <borut.razem@siol.net>
1178 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
1179 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
1180 fixed mingw problem in adl_NORMALIZE_PATH
1182 2003-04-12 Borut Razem <borut.razem@siol.net>
1184 * fixed "#pragma SAVE/RESTORE can not be nested":
1185 * src/SDCC.lex: reworked pragma handling functions
1186 * sdcc/src/SDCCglobl.h: reworked stack handling macros
1187 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
1189 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
1191 * src/SDCCutil.c (pathEquivalent): defined but not used
1192 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
1193 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
1194 * configure: rebuilt from configure.in
1195 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
1196 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
1197 * device/include/Makefile.in: replace sdcc_datadir
1198 * device/lib/Makefile.in: replace sdcc_datadir
1199 * Makefile.common.in: add LDFLAGS from configure
1200 * packihx/Makefile.in: use LDFLAGS
1201 * src/Makefile.in: use LDFLAGS
1202 * support/cpp2/Makefile.in: add LDFLAGS from configure
1203 * support/makebin/Makefile: use LDFLAGS
1204 * .version: bumped version number to 2.3.5
1206 2003-04-12 Borut Razem <borut.razem@siol.net>
1208 * completed "different paths" task:
1209 * src/SDCCmacro.c: fixed bug in handling quotes
1210 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
1211 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
1213 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
1215 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
1217 2003-04-11 kevin Vigor <kevin@vigor.nu>
1219 * ds390/gen.c ds390/peeph.def: fix bug 706781
1221 2003-04-11 Borut Razem <borut.razem@siol.net>
1223 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
1225 2003-04-10 Scott Dattalo <scott@dattalo.com>
1227 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
1228 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
1229 set - this bit used to not be set...).
1230 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
1231 bad code in PIC Port
1232 * src/regression/and2.c added to test bug 609268
1233 * src/regression/Makefile added and2.c to regression test
1236 2003-04-08 <johan@CP255758-A>
1238 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
1239 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
1240 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
1242 2003-04-07 Bernhard Held <bernhard@bernhardheld.de>
1244 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
1246 * support/cpp2/Makefile.in: fix bug #487815
1247 * configure: rebuilt from configure.in
1248 * Makefile.common.in: docdir changed, new path suffixes
1249 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
1250 * sdcc_vc_in.h: reflect changes from sdccconf.h
1251 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
1252 * src/SDCCutil.h: remove BINDIR hack
1253 * doc/sdccman.lyx: update new path hierarchy
1255 2003-04-06 Paul Stoffregen <paul@pjrc.com>
1257 * src/SDCCpeeph.c: added okToRemoveSLOC test
1259 2003-04-06 Paul Stoffregen <paul@pjrc.com>
1261 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
1263 2003-04-06 Paul Stoffregen <paul@pjrc.com>
1265 * src/SDCCpeeph.c: added labelIsReturnOnly test
1266 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
1268 2003-04-05 <johan@balder>
1270 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
1271 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
1272 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
1273 * src/SDCCast.c: fixed a warning
1274 * src/SDCCast.h: fixed a warning
1275 * src/SDCCicode.c (operandFromAst): fixed a warning
1277 2003-04-04 <johan@balder>
1279 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
1280 * src/SDCCast.c (decorateType): fixed bug #715076
1281 * src/SDCC.y: fixed bug #702907
1283 2003-04-03 <johan@balder>
1285 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
1286 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
1287 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
1288 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
1289 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
1291 2003-04-03 Bernhard Held <bernhard@bernhardheld.de>
1293 * _decdptr.c: fix return values
1294 * _gptrget.c: fix return values
1295 * _gptrgetc.c: fix return values
1296 * _gptrput.c: fix return values
1297 * _mulint.c: fix return values
1298 * as/z80/Makefile: fix 'make -j' problem
1300 2003-04-02 Bernhard Held <bernhard@bernhardheld.de>
1302 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
1303 * configure.in: big cleanup, updated to autoconf 2.5x
1304 * configure: rebuilt from configure.in
1305 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
1306 * sdcc_vc_in.h: reflect changes from sdccconf.h
1307 * doc/Makefile: fixed a flaw in "make install"
1309 2003-04-02 <johan@balder>
1311 * src/ds390/gen.c (genCmp): no comments
1312 * src/mcs51/gen.c (genCmp): no comments
1313 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
1314 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
1316 2003-04-01 Bernhard Held <bernhard@bernhardheld.de>
1318 * support/regression/generate-cases.py: place generated file in given sub directory
1319 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
1320 * support/regression/Makefile: improvements for 'make -j';
1321 side effect: it's simpler and faster now
1323 2003-03-31 Borut Razem <borut.razem@siol.net>
1325 * src/z80/main.c: link-{port} and as-{port} defined without path
1326 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
1328 2003-03-31 Bernhard Held <bernhard@bernhardheld.de>
1330 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
1332 2003-03-30 Borut Razem <borut.razem@siol.net>
1334 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
1335 changed type of list parameter to set
1336 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
1337 * src/port.h: changed type of do_assemble() parameter to set
1338 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
1339 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
1340 definition of "cppoutfilename" macro with NULL value in preProcess()
1341 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
1342 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
1343 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
1344 replaced with set *binPathSet
1345 * shash_add() deallocates the item, if allready exsists, before adding the new one
1346 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
1348 2003-03-30 Scott Dattalo <scott@dattalo.com>
1350 * src/pic/gen.c: Commit patch from Steve Tell <tell@telltronics.org> that fixes
1351 a nested for loop bug in the PIC port
1352 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
1355 2003-03-29 Bernhard Held <bernhard@bernhardheld.de>
1357 * support/Util/dbuf.h: remove C++ stuff to make it portable
1359 2003-03-28 Borut Razem <borut.razem@siol.net>
1361 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
1362 literal strings in stringLiteral()
1363 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
1364 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
1367 2003-03-27 Paul Stoffregen <paul@pjrc.com>
1369 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
1371 2003-03-26 <johan@balder>
1373 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
1374 * src/ds390/gen.c (saveRegisters): catched symbol abuse
1375 * src/SDCCast.c (decorateType): fixed " -v < 3"
1377 2003-03-23 Bernhard Held <bernhard@bernhardheld.de>
1379 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
1380 Added Lenny Story's debug infrastructure changes:
1381 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
1382 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
1383 * src/cdbFile.c: added
1384 * src/SDCCdebug.c: added
1385 * src/SDCCdebug.h: added
1386 * src/SDCCast.c (createFunction)
1387 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
1388 * src/SDCCmain.c (parseCmdLine, main)
1389 * src/SDCCmem.c (redoStackOffsets)
1390 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
1393 * src/avr/gen.c (genAVRCode)
1394 * src/ds390/gen.c (gen390Code)
1395 * src/mcs51/gen.c (gen51Code)
1396 * src/pic/gen.c (genpic14Code)
1397 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
1398 * src/xa51/gen.c (genXA51Code)
1399 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
1401 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1403 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
1404 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
1406 2003-03-22 <johan@balder>
1408 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
1410 2003-03-21 Bernhard Held <bernhard@bernhardheld.de>
1412 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
1413 * doc/cdbfileformat.lyx: added, written by Lenny Story
1414 * doc/Makefile: added cdbfileformat.lyx
1415 * doc/clean.mk: added cdbfileformat.lyx
1417 2003-03-20 Bernhard Held <bernhard@bernhardheld.de>
1419 * src/mcs51/peeph.def: fix bug #705773
1421 2003-03-20 <johan@balder>
1423 An sfr/sbit can have an "at #" AND an initializer
1424 * src/SDCCsymt.c (checkSClass):
1425 * src/SDCCmem.c (allocGlobal):
1426 * src/SDCCmem.c (allocLocal):
1427 * src/SDCCast.c (createBlock):
1429 2003-03-17 Bernhard Held <bernhard@bernhardheld.de>
1431 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
1433 2003-03-16 <johan@balder>
1435 Undid the hackup of const and volatile, the problem is much bigger
1437 * src/SDCCast.c:1.171
1438 * src/SDCCglue.c:1.138
1439 * src/SDCCicode.c:1.146
1440 * src/SDCCsymt.c:1.150
1441 * src/SDCCval.c:1.65
1443 2003-03-15 Bernhard Held <bernhard@bernhardheld.de>
1445 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
1446 * src/ds390/gen.c (genAddrOf): fixed bug #704087
1448 2003-03-13 <johan@balder>
1450 Hackup const and volatile modifiers in type chains a bit:
1452 * src/SDCCast.c:1.169
1453 * src/SDCCglue.c:1.136
1454 * src/SDCCicode.c:1.143
1455 * src/SDCCsymt.c1.146
1456 * src/SDCCsymt.h1.59
1457 * src/SDCCval.c:1.63
1459 2003-03-12 <johan@balder>
1461 * src/SDCCBBlock.h: more LRH debugging junk
1462 * src/SDCCcflow.h: more LRH debugging junk
1463 * src/SDCCloop.c: more LRH debugging junk
1464 * src/SDCC.y (struct_declaration): fixed bug #697590
1465 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
1466 * src/ds390/gen.c (aopForRemat): fixed bug #700031
1467 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
1469 2003-03-11 Kevin Vigor <kevin@vigor.nu>
1470 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
1471 test function names must now match exactly).
1472 * src/SDCCcse.c: added special case in findCheaperOp to allow
1473 extending a short integer. Makes less awful code for bug 700121 test case.
1475 2003-03-11 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1477 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
1478 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
1480 2003-03-11 Kevin Vigor <kevin@vigor.nu>
1482 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
1483 actually called (operandsNotEqual() was called for all
1484 operandsNotEqualX tests).
1486 2003-03-11 Kevin Vigor <kevin@vigor.nu>
1488 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
1489 with shorter literals. Fixes bug 700121.
1491 2003-03-11 <johan@balder>
1493 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
1495 2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
1497 * src/SDCCloop.c (mergeRegions): an evil beast is dead
1498 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
1500 2003-03-10 Borut Razem <borut.razem@siol.net>
1502 * src/SDCCmain.c: pipe preprocessor's output
1503 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
1504 * sdcc_vc_in.h: define pclose as _pclose for WIN32
1505 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
1506 which closes all pipes in pipeSet set
1507 * src/SDCCset.c: free deleted item in function deleteSetItem()
1508 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
1509 moved from z80 to src subproject
1510 * .version: increased version number to 2.3.4
1512 2003-03-10 Bernhard Held <bernhard@bernhardheld.de>
1514 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
1515 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
1516 * support/regression/ports/xa51/spec.mk: fix typo
1518 2003-03-09 Bernhard Held <bernhard@bernhardheld.de>
1520 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
1522 2003-03-09 Borut Razem <borut.razem@siol.net>
1524 * src/SDCCmain.c: pipe preprocessor's output
1525 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
1526 * sdcc_vc_in.h: define pclose as _pclose for WIN32
1527 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
1528 which closes all pipes in pipeSet set
1529 * src/SDCCset.c: free deleted item in function deleteSetItem()
1530 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
1531 moved from z80 to src subproject
1533 2003-03-09 Borut Razem <borut.razem@siol.net>
1535 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
1536 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
1537 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
1538 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
1539 * src/SDCCglobl.h: unification of WIN32 native definitions
1541 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1543 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
1545 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
1547 * src/configure.in: check for endianess (even while cross-compiling)
1548 * src/configure: check for endianess (even while cross-compiling)
1549 * src/configure_in.h: check for endianess (even while cross-compiling)
1550 * src/avr/gen.c: remove old endianess stuff
1551 * src/mcs51/gen.c: remove old endianess stuff
1552 * src/ds390/gen.c: remove old endianess stuff
1553 * src/pic/gen.c: remove old endianess stuff
1554 * src/pic/genarith.c: remove old endianess stuff
1555 * src/pic/glue.c: fix endianess check
1556 * src/pic16/gen.c: remove old endianess stuff
1557 * src/pic16/genarith.c: remove old endianess stuff
1558 * src/pic16/glue.c: fix endianess check
1559 * src/xa51/gen.c: remove old endianess stuff
1560 * src/z80/gen.c: fix endianess check
1561 * src/SDCCglue.c: fix endianess check
1562 * src/ds390/peeph.def: fix bug 700036
1564 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
1566 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
1567 * src/configure: find appropriate data-types on host for SDCC's int and long
1568 * src/configure.in: find appropriate data-types on host for SDCC's int and long
1569 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
1570 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
1572 2003-03-07 <johan@balder>
1575 some minor cleanups before the big shot
1576 OP_DEFS and OP_USES now use Kevin's protection
1577 new option --nolabelopt
1588 * src/ds390/ralloc.c:
1589 * src/mcs51/ralloc.c:
1591 * src/xa51/ralloc.c:
1594 2003-03-06 Bernhard Held <bernhard@bernhardheld.de>
1596 * src/pic/pcode.c (get_op): fix 64 bit warnings
1597 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
1598 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
1599 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
1600 * support/regression/tests/malloc.c: fix 64 bit warnings
1602 2003-03-04 Bernhard Held <bernhard@bernhardheld.de>
1604 * src/mcs51/gen.c (genMinus): fixed bug 696436
1606 2003-03-02 Borut Razem <borut.razem@siol.net>
1608 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
1610 2003-02-26 Bernhard Held <bernhard@bernhardheld.de>
1612 * configure.in: test for mkstemp
1613 * sdccconf_in.h: add HAVE_MKSTEMP
1615 2003-02-24 Bernhard Held <bernhard@bernhardheld.de>
1617 * device/include/ctype.h: removed warning while using --stack-auto
1618 * device/include/malloc.h: removed warning while using --stack-auto
1619 * device/include/string.h: removed warning while using --stack-auto
1621 2003-02-23 Borut Razem <borut.razem@siol.net>
1623 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
1624 because NDEBUG is defined (see man assert)
1625 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
1627 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1629 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
1630 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
1632 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1634 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
1635 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
1637 2003-02-18 <johan@balder>
1639 * as/mcs51/asmain.c (asmbl): module can start with a digit
1640 * as/z80/asmain.c (asmbl): module can start with a digit
1642 2003-02-16 Bernhard Held <bernhard@bernhardheld.de>
1644 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
1645 * src/asm.c: fix pipe() for Mingw32
1647 2003-02-15 Bernhard Held <bernhard@bernhardheld.de>
1649 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
1650 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
1651 make -V work again; --c1mode reads now from stdin
1652 * doc/sdccman.lyx: added --c1mode
1653 * support/Util/SDCCerr.c: new messages for c1 mode
1654 * support/Util/SDCCerr.h: new messages for c1 mode
1655 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
1657 2003-02-15 <johan@balder>
1659 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
1661 2003-02-14 Bernhard Held <bernhard@bernhardheld.de>
1663 * doc/sdccman.lyx: Environment variables, -o and other minor things
1665 2003-02-14 <johan@balder>
1667 * src/xa51/main.c: before anyone really tries to use it :)
1669 * Install doc's in share/sdcc/doc
1670 * removed some obsolete files
1671 * Do a proper make distclean and uninstall
1672 M Makefile.common.in
1675 M device/include/Makefile.in
1676 M device/lib/Makefile.in
1679 M sim/ucsim/doc/Makefile.in
1682 R src/xa51/peeph.rul
1683 M support/cpp2/Makefile.in
1684 M support/makebin/Makefile
1687 2003-02-13 Bernhard Held <bernhard@bernhardheld.de>
1689 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
1691 2003-02-10 Borut Razem <borut.razem@siol.net>
1693 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
1694 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
1695 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
1696 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
1697 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
1698 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
1699 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
1700 src/z80/Makefile.bcc: Borland Makefile cleanup
1701 * as/z80/Makefile.bcc: Added Borland Makefile
1702 * support/cpp2/borland.h: Removed
1704 2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
1706 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
1707 * src/SDCC.lex: new pragma NOIV
1708 * src/SDCCglobl.h: new pragma NOIV
1709 * src/SDCCmem.c: new pragma NOIV
1711 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
1713 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
1715 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
1717 * src/SDCCmain.c: signal handling is switched off by --debug
1718 * doc/Makefile: small fix for install; use clean.mk again
1719 * doc/clean.mk: clean *.pdf and *.html too
1721 2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
1723 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
1724 * device/lib/printfl.c: fix a ds390 bug by making it portable
1725 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
1726 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
1727 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
1728 * debugger/mcs51/cmd.c: converted multi-line string literals
1729 * sim/ucsim/globals.cc: converted multi-line string literals
1730 * src/SDCCmain.c: introduced signal handler to remove temp files
1731 * doc/Makefile: small tweaks, implement clean
1732 * doc: removed generated files
1734 2003-02-05 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1736 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
1737 patch from Jan Rejlek <jr@apex-lib.cz> to fix Bug 677692: "Extended
1738 Address Record is not correctly generated for DS390."
1740 2003-02-02 Borut Razem <borut.razem@siol.net>
1742 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
1743 * as/mcs51/asm.h: fixed compilation with Borland C
1744 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
1745 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
1746 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
1747 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
1748 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
1749 src/z80/Makefile.bcc: delete $(LIB) only if exist
1750 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
1752 2003-02-02 Bernhard Held <bernhard@bernhardheld.de>
1754 * device/include/malloc.h: introduced NULL
1755 * device/include/string.h: introduced NULL
1756 * device/include/stdlib.h: introduced NULL
1757 * device/lib/_memcpy.c: removed NULL
1758 * device/lib/_strcat.c: removed NULL
1759 * device/lib/_strchr.c: removed NULL
1760 * device/lib/_strcmp.c: removed NULL
1761 * device/lib/_strcpy.c: removed NULL
1762 * device/lib/_strcspn.c: removed NULL
1763 * device/lib/_strlen.c: removed NULL
1764 * device/lib/_strncat.c: removed NULL
1765 * device/lib/_strncmp.c: removed NULL
1766 * device/lib/_strncpy.c: removed NULL
1767 * device/lib/_strpbrk.c: removed NULL
1768 * device/lib/_strrchr.c: removed NULL
1769 * device/lib/_strspn.c: removed NULL
1770 * device/lib/_strstr.c: removed NULL
1771 * device/lib/_strtok.c: removed NULL
1772 * device/lib/malloc.c: removed NULL, include own header
1774 2003-02-02 <johan@balder>
1776 * 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
1777 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
1778 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
1779 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
1780 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
1781 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
1783 2003-02-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1785 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
1788 2003-02-01 <johan@balder>
1790 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
1792 2003-01-31 <johan@CP255758-A>
1794 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
1796 2003-01-30 <johan@balder>
1798 * src/SDCCBBlock.c: automatic bug detection
1799 * src/SDCCicode.c: automatic bug detection
1801 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1803 * src/SDCCglobl.h: now --xram-size 0 works
1804 * src/SDCCmain.c: now --xram-size 0 works
1806 2003-01-29 <johan@balder>
1808 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
1810 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1812 * as/mcs51/aslink.h: Added options --xram-size and --code-size
1813 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
1814 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
1815 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
1816 * src/SDCCglobl.h: Added options --xram-size and --code-size
1817 * src/SDCCmain.c: Added options --xram-size and --code-size
1819 2003-01-28 Bernhard Held <bernhard@bernhardheld.de>
1821 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
1822 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
1824 2003-01-27 <johan@balder>
1826 * src/SDCC.y: fixed bug #613764
1828 2003-01-26 <johan@balder>
1830 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
1831 * src/SDCCsymt.h: fixed bug #673374
1832 * src/SDCCglue.c: fixed bug #661910
1833 * src/SDCCast.c: fixed bug #458099 and 673374
1835 2003-01-26 Bernhard Held <bernhard@bernhardheld.de>
1837 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
1838 * as/mcs51/strcmpi.h: added
1839 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
1840 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
1841 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
1842 * as/mcs51/assym.c: strcmpi -> as_strcmpi
1843 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
1844 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
1845 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
1846 * as/mcs51/Makefile.aslink: new module strcmpi
1847 * as/mcs51/Makefile.asx8051: new module strcmpi
1848 * as/mcs51/Makefil.bcc: new module strcmpi
1849 * as/mcs51/Makefile.in: new module strcmpi
1850 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
1852 2003-01-26 <johan@balder>
1854 * src/SDCCglue.c: reverted back to 1.124
1855 * src/SDCCast.c: reverted back to 1.156
1856 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
1858 2003-01-25 <johan@balder>
1860 * src/SDCCglue.c: A better fix for bug #661910
1861 * src/SDCCast.c: A better fix for bug #661910
1862 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
1864 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
1866 * src/Makefile.in: remove spawn.o
1867 * src/SDCCmain.c: remove spawn.h
1868 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
1869 * src/spawn.c: removed
1870 * src/spawn.h: removed
1871 * support/regression/ports/ds390/spec.mk: link with -r
1873 2003-01-24 <johan@CP255758-A>
1875 * src/ds390/gen.c (aopOp): fixed bug #667458
1876 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
1877 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
1878 (createIvalCharPtr): an ival doesn't always have a storage class anymore
1880 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
1882 * src/mcs51/peeph.def: better assembler identation by Frieder
1883 * src/mcs51/gen.c: better assembler identation by Frieder
1885 2003-01-22 Bernhard Held <bernhard@bernhardheld.de>
1887 * as/z80/string.h: removed for gcc 3.2
1888 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
1889 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
1891 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
1893 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
1894 * src/SDCCpeeph.c (replaceRule): fix bug #663503
1895 * support/regression/Makefile: separate temp files for ports
1896 * support/regression/generate-cases.py: separate temp files for ports
1897 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
1898 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
1900 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
1902 * moved tinitalk to device/examples/ds390
1904 2003-01-14 Bernhard Held <bernhard@bernhardheld.de>
1906 * as/mcs51/lkmem.c: rflag is for DS390
1907 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
1908 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
1909 (linkEdit): move mem- and map-files the same way as ihx-files
1910 * src/z80/main.c (_setDefaultOptions): removed --generic
1911 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
1912 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
1913 * src/pic/glue.c (picglue): --c1mode works again
1914 * src/pic16/glue.c (pic16glue): --c1mode works again
1915 * src/asm.c (printCLine): fix #660034
1917 2003-01-13 Bernhard Held <bernhard@bernhardheld.de>
1919 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>, 1 by Frieder
1920 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
1921 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
1922 * as/mcs51/lkmem (summary): better fix for sp problem
1923 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
1924 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
1925 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
1926 remove --stack-after-data
1928 2003-01-12 Bernhard Held <bernhard@bernhardheld.de>
1930 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
1931 * src/SDCCutil.c (join): ugly bug: missing '\0'
1932 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
1934 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
1936 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
1938 * src/pic/main.c (_asmCmd): gpasm supports -o
1939 * src/z80/main.c: more general macros
1940 * device/lib/Makefile.in: remove intermediate files
1942 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
1944 * .version: Bumped version number to 2.3.3
1945 * src/SDCCBBlock.c: new option -o
1946 * src/SDCCglobl.h: new option -o
1947 * src/SDCCglue.c: new option -o
1948 * src/SDCCmain.c: new option -o
1949 * src/asm.c: new option -o
1950 * src/ds390/main.c: new option -o
1951 * src/pic/glue.c: new option -o
1952 * src/pic/pcode.c: new option -o
1953 * src/pic/ralloc.c: new option -o
1954 * src/pic16/glue.c: new option -o
1955 * src/pic16/pcode.c: new option -o
1956 * src/pic16/ralloc.c: new option -o
1957 * src/z80/main.c: new option -o
1958 * device/lib/Makefile.in: use -o
1959 * support/regression/ports/ds390/spec.mk: use -o
1960 * support/regression/ports/gbz80/spec.mk: use -o
1961 * support/regression/ports/mcs51/spec.mk: use -o
1962 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
1963 * support/regression/ports/z80/spec.mk: use -o
1964 * support/regression/ports/ucz80/spec.mk: use -o
1965 * support/regression/ports/xa51/spec.mk: use -o
1966 * support/regression/fwk/lib/timeout.c: fix usage string
1968 2003-01-09 Bernhard Held <bernhard@bernhardheld.de>
1969 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
1971 2003-01-07 <johan@balder>
1973 * src/SDCCast.c (decorateType): fixed bug #600035
1975 2003-01-07 Bernhard Held <bernhard@bernhardheld.de>
1976 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
1977 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
1978 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
1979 * src/pic/pcode.c: outcommented unused variable to remove warnings
1980 * src/pic/ralloc.c: outcommented unused variable to remove warnings
1982 2003-01-06 <karl@turbobit.com>
1983 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
1986 2003-01-06 <johan@balder>
1988 * src/SDCCicode.c: fixed array add
1990 2002-01-05 Bernhard Held <bernhard@bernhardheld.de>
1991 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
1992 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
1994 2003-01-04 <johan@balder>
1996 * src/SDCCval.c (getNelements): fixed the initialized array of structures
1998 2002-12-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1999 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
2001 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
2002 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann@web.de>
2003 * support/regression/tests/bug-524697.c: fit mem usage into 8032
2005 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
2006 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
2008 2002-12-27 Bernhard Held <bernhard@bernhardheld.de>
2009 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
2011 2002-12-26 Bernhard Held <bernhard@bernhardheld.de>
2012 * src/mcs51/main.c: removed {bindir}{sep} from aslink
2014 2002-12-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2016 * in \sdcc\as\mcs51\ changed these files in order to create an
2017 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
2018 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
2019 following files to include the previous two files: aslink.dsp,
2020 Makefile.aslink, Makefile.bcc, and Makefile.in.
2022 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
2023 .adb instead of .cdb
2025 2002-11-09 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2027 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
2028 value from option --iram-size.
2030 2002-09-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2032 * \sdcc\as\mcs51\lklist.c: added boundary check before using
2035 2002-09-18 <wiml@hhhh.org>
2037 * SDCClrange.h: exposed setFromRange() and setToRange()
2038 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
2039 packRegsForAccUse() (bug 542397)
2040 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
2041 multiple times and emitting the fetch operations more than once
2042 added aopGetUsesAcc() function to allow binary operators to
2043 fetch their operands in the correct order; made genMinus() emit
2044 compact code for X = LITERAL - Y
2046 2002-09-00 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2047 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
2048 sprintf() in line 1267.
2050 2002-09-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2051 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
2054 2002-09-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2055 Changes to aslink (All the changes are marked with 'JCF'):
2057 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
2060 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
2061 area BSEG. Also moves, if possible, the DATA area down into the internal
2062 ram so more space is available.
2064 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
2067 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
2068 not bytes. Function summary() which creates a memory usage summary
2069 file with extension .mem. Reports of overlaping stack and small stack
2070 size. If the space for the stack is less than 16 bytes aslink trows a
2073 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
2074 the 8051. Option 'y' for memory summary output file.
2076 Changes to sdcc (All the changes are marked with 'JCF'):
2078 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
2080 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
2081 overlaying area for it (uses RegBankUsed[4]).
2083 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
2084 bank zero as used by default. By default aslink locates the stack
2085 (equivalent to --stack-after-data). Pass option 'y' to aslink for
2086 the creation of the .mem file. Delegates the allocation of data area
2087 to aslink (it is not longer 0x30 by default). If --stack-loc passes
2088 the begining of the stack area to aslink.
2090 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
2091 glue() in SDCCglue.c creates an area for it.
2093 2002-09-03 Borut Razem <borut.razem@siol.net>
2094 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
2095 sdcc/src/pic/glue.c:
2096 introduced atexit() handler for teporay files removal in case of
2097 errors, assertions, ...
2099 2002-08-29 Borut Razem <borut.razem@siol.net>
2100 * sdcc/support/cpp2/auto-host_vc_in.h:
2101 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
2102 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
2103 Maybe there is a similar problem with BORLANDC? It should be checked!
2105 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
2106 corrected improper use of assert: the assignment to clr variable was done inside the assert.
2107 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
2108 was not executed, and the compiler (cl) launched a warning:
2109 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
2111 2002-08-28 Bernhard Held <bernhard@bernhardheld.de>
2112 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
2114 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
2115 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
2117 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
2118 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
2119 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
2120 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
2121 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
2122 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
2123 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
2124 - added Release configuration in VS projects
2125 - review of compiler an linker options
2126 - VC .exe files are generated in bin_vc directory, not to interfere
2127 with binaries generated from other projects (cygwin, mingw, bcc ...)
2129 * sdcc/src/yacc.dsp: added
2131 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
2132 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
2133 and insert the version number definitions from .version
2135 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
2137 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
2138 added - genarate auto-host.h using auto-host_vc_in.h as template
2141 removed from CVS, generated automatically
2143 2002-08-25 Bernhard Held <bernhard@bernhardheld.de>
2144 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
2146 2002-08-11 Borut Razem <borut.razem@siol.net>
2147 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
2149 2002-08-10 Borut Razem <borut.razem@siol.net>
2150 * src/SDCCmain.c (main):
2151 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
2152 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
2153 The consequence was that some temporary files were not removed.
2156 unification of code in functions tempfilename() and tempfile():
2157 function tempnam() is defined in Visual Studio 6.0 and .NET
2159 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
2161 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
2162 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
2163 - removed compiler command line option /WX: Treats all warnings as errors
2164 - update a list of source files, included into the project
2166 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
2167 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
2168 changed project type to Generic Project so that can be correcly converted to VS.NET project
2170 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
2172 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
2174 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
2176 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
2177 added return 0 statements after assert() to make compiler happy
2179 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
2180 added newline in the def file to keep MSC compiler satisfied
2182 * sdcc/src/z80/gen.c:
2183 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
2184 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
2185 - solved MSC error in function aopDump()
2187 * sdcc_vc.h: define PREFIX as "\\sdcc"
2189 2002-07-18 Bernhard Held <bernhard@bernhardheld.de>
2190 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
2192 2002-06-22 Scott Dattalo <scott@dattalo.com>
2193 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
2194 - Rewrote the register banking algorithm.
2195 - Added pCode live-range analysis to registers (for now, only non-used and
2196 singly-used registers optimized away)
2198 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
2200 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba@cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
2202 2002-05-10 Scott Dattalo <scott@dattalo.com>
2203 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
2205 2002-04-22 Michael Hope <michaelh@vroom>
2207 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
2209 * configure.in (DD_COPT): Added include support required for gbdk.
2211 * .version: Bumped version number just to increase it.
2213 * src/SDCCmain.c: Added -nostdinc to the default options.
2215 2002-04-15 Michael Hope <michaelh@vroom>
2217 * device/lib/z80/printf.c (sprintf): Added.
2219 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
2221 * src/z80/peeph.def: Added transpose redundent load rule.
2223 * src/z80/main.c: Added force callee saves for jaune.
2225 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
2227 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
2229 2002-03-28 Johan Knol <johan@balder>
2231 * src/SDCCval.c: fixed bug #532436
2233 2002-03-14 Scott Dattalo <scott@dattalo.com>
2235 Added "char *Processor" field to the port structure.
2238 Added -p option. Allows port dependent processor to be specified.
2241 Initialized the new field char *Processor field to NULL in all ports
2244 Compiler generated registers for interrupt context saving
2245 were not getting allocated.
2247 2002-03-16 Sandeep Dutta <sandeep@ddi.com>
2250 Fixed left shift. Will promote the left side of a left shift
2251 if a) left shifting more than size of operand or b) when assigned
2252 to something size > size of left side
2254 2002-03-14 Scott Dattalo <scott@dattalo.com>
2256 tons of changes. Register allocation has been
2257 rewritten. Added customization for the various PICs. Flow
2258 analysis is restructured. ...
2264 Added. device.c is a PIC port hack to accomodate variations
2267 2002-03-13 Michael Hope <michaelh@vroom>
2269 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
2271 2002-03-04 johanknol <johanknol@manik>
2273 * /src/SDCCval.c: fixed
2275 const unsigned char arr[][2] = { { 0, 1 } };
2276 t18.c:1: error: Initializer element is not constant
2278 2002-03-04 bela <bela@manik>
2280 * /device/include/mcs51reg.h:
2281 ds89c420 register definition update
2283 2002-03-03 <johan@FRIJA>
2285 * support/Util/SDCCerr.c: did something, but don't no why anymore
2287 * support/regression/tests/bug-524691.c: made it a little less shy
2289 * src/SDCCast.c (decorateType): fixed bug #524697
2291 * src/SDCCast.c: made some lineno improvements
2293 * src/SDCCval.c (getNelements): changed warning to error
2295 * src/SDCCglue.c (printIvalArray): changed warning to error
2297 * src/SDCCicode.c: fixed a warning for mingw
2299 * src/SDCCast.c (decorateType): fixed the << promotion for ops
2301 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
2303 2002-03-02 Sandeep Dutta <sandeep@ddi.com>
2305 * src/ds390/peeph.def:
2306 Added some more peephole rules
2308 * src/ds390/gen.c: Various fixes & enhancements
2310 * src/SDCClrange.c, src/SDCClrange.h:
2311 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
2313 * src/ds390/ralloc.c:
2314 various fixes & enhancements (ds390) specific
2316 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
2317 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
2320 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
2322 2002-03-02 <johan@FRIJA>
2324 * src/SDCCast.c (decorateType): fixed bug #524708
2326 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
2328 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
2330 2002-03-01 Michael Hope <michaelh@vroom>
2332 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
2334 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
2336 2002-03-01 <johan@FRIJA>
2338 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
2340 * src/SDCCast.c (decorateType): fixed bug #524209
2342 * src/SDCCval.c (valNot): fixed bug #524195
2344 2002-02-26 <johan@balder>
2346 * src/xa51/gen.c: fixed a warning
2348 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
2350 * src/SDCCast.c (decorateType): fixed bug #522534
2352 2002-02-23 <johan@balder>
2354 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
2356 2002-02-22 <johan@balder>
2358 * src/SDCCast.c: fixed bug #514865
2360 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
2362 2002-02-21 Sandeep Dutta <sandeep@ddi.com>
2364 * sdcc/src/SDCCloop.c:
2365 Previous fix was not good. basic blocks that have "break" or "return" are
2366 not really partof a loop , but live ranges used in these blocks should
2367 be live thru the entire loop, so set partOfLoop but don't add them to
2370 2002-02-21 <johan@FRIJA>
2372 * src/SDCCcse.c: fixed bug #514308
2374 2002-02-20 Sandeep Dutta <sandeep@ddi.com>
2377 Fixed BUG #519583. If a conditional block ended in a return/break
2378 statement inside a loop, it was not being considered part of the loop.
2380 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
2382 2002-02-10 Karl Bongers <karl@turbobit.com>
2385 Fixed up SDCDB debugger somewhat. Updated debugger/README
2386 with lots of comments and notes.
2388 * device/examples/test2.c:
2389 Fix bug, "red" variable not being initialized(compiler complained).
2391 * device/examples/Makefile, examples/test3.c:
2392 Add Makefile in device/examples folder, compiles test3.c
2393 for use as a multiple module SDCDB test case.
2395 * sim/ucsim/cmd.src/cmdset.cc:
2396 Took out debug printfs in ucsim "next" command.
2399 Karl and Johan start ucsim XA support. Most dissassembly working,
2400 about 75% emulation done(plenty of work remaining).
2402 * sim/ucsim/z80.src:
2403 Add Z80 support to ucsim, add test-ucz80 regression test,
2404 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
2405 Notice z80 compiler fails on examples/test3.c/crc code.
2407 2002-01-30 Sandeep Dutta <sandeep@ddi.com>
2409 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
2410 Added support for --parms-in-bank1
2412 * src/ds390/peeph.def:
2413 added a few more peephole optimzations
2416 1) added __builtin_inp & __builtin_outp used to read in data of given length
2417 from a memory mapped port
2418 2) added __builtin_memcmp
2419 3) added __builtin_swapw swap bytes of a short
2421 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
2422 1) handle multiple send & receives from register bank1
2423 2) ralloc can now allocate DPTR1 to some liveRanges
2425 * src/SDCCsymt.c, src/SDCCsymt.h:
2426 changes to handle multiple sends & receives
2429 added some pointer arithmetic optimization
2432 added some pointer arithmetic optimizations but not stable yet so not
2433 called from anywhere (will get this working shortly)
2435 * src/SDCCopt.c: fixed for multiple sends & receives
2438 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
2439 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
2440 set preprocessor defines (depending on options)
2442 * src/SDCCicode.c, src/SDCCicode.h:
2443 changes made to handle multiple sends & receives
2446 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
2448 * src/SDCCcse.c, src/SDCCcse.h:
2449 added function findbackward def (to be used in upcoming optimization)
2451 * src/SDCCcflow.c, src/SDCCcflow.h:
2452 added function returnAtEnd - to determine if a basic block terminates with
2455 * src/SDCCast.c, src/SDCCast.h:
2456 added option parms-in-bank1
2458 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
2459 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
2460 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
2461 adjusted for --parms-in-bank1 option
2463 * device/include/string.h:
2464 donot redefine "reentrant" keyword
2466 * device/include/ds80c390.h: Added some more SFRs
2468 2002-01-28 Bernhard Held <bernhard@bernhardheld.de>
2470 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
2472 2002-01-26 Bernhard Held <bernhard@bernhardheld.de>
2474 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
2476 2002-01-22 Bernhard Held <bernhard@bernhardheld.de>
2478 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
2480 2002-01-18 Paul Stoffregen <paul@pjrc.com>
2482 * Added --xram-movc option
2484 2002-01-13 Bernhard Held <bernhard@bernhardheld.de>
2486 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
2488 2002-01-11 Johan Knol
2490 * Added math lib of Jesus Calvino-Fraga
2492 2002-01-08 Bernhard Held <bernhard@bernhardheld.de>
2494 * src/SDCCmain.c (processFile): fix processing of ../../src.c
2495 * support/regression/Makefile: new target test-mcs51-stack-auto
2496 * support/regression/ports/mcs51-stack-auto/spec.mk: added
2498 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
2500 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
2502 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
2504 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
2506 2002-01-03 Bernhard Held <bernhard@bernhardheld.de>
2508 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
2510 * src/SDCCglue.h: add definition for printIvalChar()
2512 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
2514 * src/SDCCast.c: fix #498138 by Johan
2516 * src/SDCCglue.c: fix #498138 by Johan
2518 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
2520 * support/regression/Makefile: fix clean
2522 * support/regression/ports/ds390/support.c: fix transmission of last character
2524 2001-12-29 Sandeep Dutta <sandeep@ddi.com>
2526 * /sdcc/src/ds390/gen.c:
2527 a) improved computing address of stack variable
2528 b) took out some #if 0 code
2529 c) improved parmBytes adjustment
2530 d) improved genPlusIncr & genMinusIncr
2531 e) genCmp could generate bad code (when left assigned to DPTR)
2532 f) Fixed bug in hasInc
2534 * /sdcc/src/ds390/ralloc.c:
2535 a) packRegsForSupport could mess up live information (Fixed)
2536 b) packRegsDPTRuse could be incorrect for left & right shift
2538 * /sdcc/src/mcs51/ralloc.c:
2539 packRegsForSupport could mess up the live information (Fixed)
2541 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
2543 * /sdcc/src/SDCCast.c:
2544 can reverse a loop even if function call is present as long
2545 as the loop control variable is local & is not passed as parameter
2547 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2549 * /sdcc/ChangeLog: *** empty log message ***
2551 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
2552 More builtin function additions for TININative
2554 * /sdcc/src/ds390/ralloc.c:
2555 Had broken the regression testsuite
2557 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
2559 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
2560 Added funcattr hasStackParms will be set for reentrant functions when there
2561 are paramteres on the stack, this helps in minimizing frame pointer generation
2562 typeFromStr can handle function pointers now
2564 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
2565 *** empty log message ***
2567 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2569 * /src/ds390/gen.c, /src/ds390/main.c:
2570 More builtin function additions for TININative
2572 * /src/ds390/ralloc.c:
2573 Had broken the regression testsuite
2575 * /src/SDCCast.c: Fixed a bug in dumptree
2577 * /src/SDCCsymt.c, /src/SDCCsymt.h:
2578 Added funcattr hasStackParms will be set for reentrant functions when there
2579 are paramteres on the stack, this helps in minimizing frame pointer generation
2580 typeFromStr can handle function pointers now
2582 * /doc/builtins.txt, /doc/TININative.txt:
2583 *** empty log message ***
2586 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2588 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
2589 ALPHA version for -mTININative
2591 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
2592 updated to reflect changes in the port structure
2595 added function do_assemble (similar to do_link) if non-null this function
2596 will be called to do assembly (-mTININative) requires a multi command
2598 added function genAssemblerEnd will be called to generate assembler Epilogue
2601 added _JavaNative to debug info printing
2603 * /src/SDCCmain.c: added option --tini-libid
2604 added port->do_assemble function (-mTININative) has a multi command assemble
2606 * /src/SDCCglue.c: Disabled "constExpr" check
2607 added port->genAssemblerEnd function
2609 * /src/SDCCglobl.h: Added option --tini-libid value
2612 tookout optimizeCompare from the header (has no external references)
2614 * /src/SDCCast.c: made one more function "static"
2616 2001-12-23 Michael Hope <michaelh@juju.net.nz>
2618 * src/z80/mappings.i: Added z80asm support.
2620 * src/z80/main.c: Added z80asm support on --asm=z80asm
2622 * src/z80/gen.c: Fixed asm portability issues.
2624 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
2626 * src/SDCCglue.c (printExterns): Added global/extern split.
2628 2001-12-17 Bernhard Held <bernhard@bernhardheld.de>
2630 * support/regression/Makefile: added test for mcs51 model large
2632 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
2634 * support/regression/ports/gbz80/spec.mk: added -mgbz80
2636 2001-12-05 Michael Hope <michaelh@juju.net.nz>
2638 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
2640 1904-01-06 Michael Hope <michaelh@juju.net.nz>
2642 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
2644 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
2646 2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
2648 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
2650 * support/regression/tests/simplefloat.c: Port to mcs51.
2652 2001-11-25 Michael Hope <michaelh@juju.net.nz>
2653 * support/regression/tests/bug-485362.c: Added.
2655 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
2657 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
2659 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
2661 * src/z80/gen.c (aopDump): Added a dump function.
2663 2001-11-25 Bernhard Held <bernhard@bernhardheld.de>
2664 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
2666 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
2668 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
2670 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
2672 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
2674 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
2676 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
2678 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
2680 * support/regression/ports/ds390/support.c: Use tinibios.
2682 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
2684 2001-11-23 Michael Hope <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
2686 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
2687 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
2689 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
2691 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
2693 2001-11-18 Michael Hope <michaelh@juju.net.nz>
2695 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
2697 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
2698 (packRegsForIYUse): Created and optimised.
2700 2001-11-07 Michael Hope <michaelh@juju.net.nz>
2702 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
2703 2001-11-18 Bernhard Held <bernhard@bernhardheld.de>
2705 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
2707 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
2709 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
2711 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2713 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
2715 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
2717 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2719 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
2721 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
2723 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
2725 2001-11-07 Michael Hope <michaelh@juju.net.nz>
2727 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
2728 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
2729 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
2731 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
2733 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
2734 (genNotFloat): Added.
2735 (genUminusFloat): Added.
2737 * device/lib/z80/Makefile: Added floating pt stubs.
2739 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
2741 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
2743 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
2745 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2747 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
2749 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
2751 * sdcc/support/regression/Makefile: Add port ds390.
2753 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
2755 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
2757 * sdcc/support/regression/ports/ds390/spec.mk: Added.
2759 * sdcc/support/regression/ports/ds390/support.c: Added.
2761 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
2763 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
2765 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
2767 2001-11-04 Michael Hope <michaelh@juju.net.nz>
2769 * device/include/malloc.h: Added z80 and gbz80 support.
2771 * device/lib/gbz80/heap.s: Added.
2773 * device/lib/z80/heap.s: Added.
2775 * device/lib/malloc.c: Added z80 and gbz80 support.
2777 * support/regression/tests/malloc.c (testMalloc): Added.
2779 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
2781 * support/regression/tests/bug-478094.c: Added.
2783 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
2785 2001-11-04 Bernhard Held <bernhard@bernhardheld.de>
2787 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
2789 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
2791 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
2793 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
2795 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
2797 2001-11-04 Michael Hope <michaelh@juju.net.nz>
2799 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
2801 2001-11-03 Michael Hope <michaelh@juju.net.nz>
2803 * support/regression/tests/bug-477927.c: Added.
2805 * src/z80/peeph.def: Added minor rules.
2807 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
2809 * src/z80/peeph.def: Added jump optimisation modification.
2811 2001-11-01 Michael Hope <michaelh@juju.net.nz>
2813 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
2815 2001-10-30 Michael Hope <michaelh@juju.net.nz>
2817 * support/regression/tests/funptrs.c: Added.
2819 2001-10-29 Michael Hope <michaelh@juju.net.nz>
2821 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
2823 2001-10-28 Michael Hope <michaelh@juju.net.nz>
2825 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
2827 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
2829 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
2830 (movLeft2ResultLong): Created.
2832 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
2833 (joinPushes): Added. Joins two char pushes into a word push.
2835 2001-10-27 Michael Hope <michaelh@juju.net.nz>
2837 * support/cpp2/Makefile.in (install): Added creation of dest dir.
2839 * support/makebin/Makefile (install): Added creation of dest dir.
2841 2001-10-24 Karl Bongers <karl@turbobit.com>
2843 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
2845 2001-10-21 Michael Hope <michaelh@juju.net.nz>
2847 * src/z80/ralloc.c: Turned off faulty pack for one use.
2849 * src/z80/peeph-gbz80.def: Removed redundent restart options.
2851 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
2853 2001-10-21 Bernhard Held <bernhard@bernhardheld.de>
2855 * support/regression/Makefile: Improved clean
2857 * support/regression/ports/gbz80/spec.mk: Added clean
2859 * support/regression/ports/host/spec.mk: Added clean
2861 * support/regression/ports/z80/spec.mk: Added clean
2863 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
2865 * support/regression/ports/mcs51/timeout.c: little improvements
2867 2001-10-17 Michael Hope <michaelh@juju.net.nz>
2869 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
2871 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
2873 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
2875 2001-10-16 Bernhard Held <bernhard@bernhardheld.de>
2877 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
2879 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
2881 2001-10-13 Michael Hope <michaelh@juju.net.nz>
2882 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
2884 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
2886 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
2888 * src/mcs51/main.c (_linkCmd): Added bin path to command.
2890 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
2892 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
2894 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
2896 * support/regression/tests/longor.c: Added.
2898 2001-10-11 Bernhard Held <bernhard@bernhardheld.de>
2900 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
2902 * as/mcs51/aslink.h: define PATH_MAX
2904 * as/mcs51/asm.h: define PATH_MAX
2906 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
2908 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
2910 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
2912 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
2914 * src/SDCCglobl.h: define PATH_MAX
2916 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
2918 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
2920 2001-10-11 Michael Hope <michaelh@juju.net.nz>
2922 * src/z80/gen.c (gencjneshort): Fixed
2924 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
2926 2001-10-09 Michael Hope <michaelh@juju.net.nz>
2928 * support/regression/tests/bug-469671.c: Added.
2930 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
2932 2001-10-08 Michael Hope <michaelh@juju.net.nz>
2934 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
2936 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
2938 2001-10-08 Bernhar Held <bernhard@bernhardheld.de>
2940 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
2942 * src/device/lib/_mulint.c : removed hint: nooverlay bug
2944 * src/device/lib/_mullong.c : removed hint: nooverlay bug
2946 * src/device/lib/_divuint.c : removed hint: nooverlay bug
2948 * src/device/lib/_divulong.c: removed hint: nooverlay bug
2950 * src/device/lib/_moduint.c : removed hint: nooverlay bug
2952 * src/device/lib/_modulong.c: removed hint: nooverlay bug
2954 2001-10-07 Michael Hope <michaelh@juju.net.nz>
2956 * 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.
2958 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
2960 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
2962 2001-10-07 <johan@FRIJA>
2964 * device/lib/gets.c (gets): fixed the return value.
2966 2001-10-06 Michael Hope <michaelh@juju.net.nz>
2967 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
2969 * 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.
2971 * 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.
2973 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
2975 * src/pic/gen.c: Removed Safe_strdup.
2977 * configure.in: Added option to enable libgc support.
2979 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
2980 (bitVectUnion): Optimised.
2981 (bitVectIntersect): Optimised.
2982 (bitVectBitsInCommon): Optimised.
2983 (bitVectCplAnd): Optimised.
2985 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
2987 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
2989 * src/SDCCmain.c: distinguish between assembler debug and plain options
2991 * src/avr/main.c: remove standard assembler options
2993 * src/ds390/main.c: remove standard assembler options
2995 * src/mcs51/main.c: remove standard assembler options
2997 * src/port.h: removed "PENDING" comment
2999 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
3001 * src/device/lib/_mulint.c : new, with assember functions
3003 * src/device/lib/_mullong.c : new, with assember functions
3005 * src/device/lib/_divuint.c : with assember functions
3007 * src/device/lib/_divsint.c : with assember functions
3009 * src/device/lib/_divulong.c: with assember functions
3011 * src/device/lib/_divslong.c: with assember functions
3013 * src/device/lib/_moduint.c : with assember functions
3015 * src/device/lib/_modsint.c : with assember functions
3017 * src/device/lib/_modulong.c: with assember functions
3019 * src/device/lib/_modslong.c: with assember functions
3021 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
3023 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
3025 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
3026 replaced _mululong.c and _mulslong.c by _mullong.c
3028 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
3030 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
3032 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
3034 * src/SDCCglue.c: test, if win32api is available for MINGW
3036 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
3038 * src/SDCCsymt.c: no more _modifier in printTypeChain()
3039 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
3040 * support/regression/ports/gbz80/spec.mk: removed GENERIC
3041 * support/regression/ports/host/spec.mk: removed GENERIC
3042 * support/regression/ports/mcs51/spec.mk: removed GENERIC
3043 * support/regression/ports/z80/spec.mk: removed GENERIC
3045 2001-10-01 Michael Hope <michaelh@juju.net.nz>
3047 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
3049 * support/regression/tests/bug-467035.c: Created.
3051 2001-10-01 <johan@FRIJA>
3053 * src/SDCC.y: fixed bug #466586 part 1
3055 2001-10-01 Johan Knol <johan.knol@iduna.nl>
3057 * SDCCicode.c: z80 has no generic pointers
3058 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
3060 2001-09-30 Michael Hope <michaelh@juju.net.nz>
3062 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
3064 2001-09-29 Michael Hope <michaelh@juju.net.nz>
3066 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
3068 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
3070 2001-09-25 Michael Hope <michaelh@juju.net.nz>
3072 * configure.in: Fixed up so that ucsim is only configured once.
3074 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
3076 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
3077 (getPathDifference): As above.
3079 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
3081 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
3083 2001-09-23 Michael Hope <michaelh@juju.net.nz>
3084 * .version: Updated to 2.3.1
3086 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
3087 Added copyright header.
3089 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
3090 (assemble): Added support for macro based assembler commands.
3091 (linkEdit): Added support for macro based linker commands.
3092 (preProcess): Changed the pre-processor to use macros.
3093 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
3094 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
3096 * device/lib/z80/crt0.s: Added module name for debugging.
3098 2001-09-20 Michael Hope <michaelh@juju.net.nz>
3100 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
3102 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
3104 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
3106 * src/Makefile.in: Added SDCCmacro and SDCCutil
3108 2001-09-19 Michael Hope <michaelh@juju.net.nz>
3110 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
3112 2001-09-16 <johan@FRIJA>
3114 * 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.
3116 2001-09-15 <johan@FRIJA>
3118 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
3119 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
3121 2001-09-11 <johan@FRIJA>
3123 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
3125 2001-09-10 Michael Hope <michaelh@juju.net.nz>
3127 * support/regression/tests/bug-460444.c: Added test case.
3129 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
3130 (genCast): Added justification for all of the asserts.
3132 2001-09-10 Bernhard Held <bernhard@bernhardheld.de>
3134 * support/regression/support.c: _xdata replaced by xdata
3136 * support/regression/spec.mk: removed _generic
3138 2001-09-09 Michael Hope <michaelh@juju.net.nz>
3140 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
3142 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
3143 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
3145 * src/z80/peeph.def: Added a rule to optimise shift then compare.
3147 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
3149 * support/regression/tests/bug-460010.c: Added test case.
3151 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
3153 2001-09-09 Bernhard Held <bernhard@bernhardheld.de>
3155 * support/regression/Makefile: inter-port-clean adjusted for mcs51
3157 * support/regression/testfwk.c: removed workaround for bug #436344
3159 * support/regression/tests/bp.c: use less memory with mcs51
3161 * support/regression/tests/bug-441448.c: use less memory
3163 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
3165 * support/regression/collate-results.py: typo
3167 2001-09-08 Michael Hope <michaelh@juju.net.nz>
3169 * support/regression/tests/fetchoverlap.c: Added new test case.
3171 * support/regression/tests/bp.c: Added new test case.
3173 * support/regression/tests/bug-448984.c: Added new test case.
3175 * support/regression/tests/pow2shifts.c: Added new test case.
3177 * src/z80/gen.c: Turned off the noise it normally generates for the release.
3178 (genlshTwo): Fixed right shift for count > 8.
3180 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
3182 2001-09-08 <johan@FRIJA>
3184 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
3186 2001-09-07 <johan@FRIJA>
3188 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
3190 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
3192 2001-09-06 <johan@FRIJA>
3194 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
3195 * bernhard noted me at this: "() equals to (void)" (1.38)
3197 2001-09-05 <johan@FRIJA>
3199 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
3201 2001-09-04 <johan@FRIJA>
3203 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
3206 2001-09-04 Paul Stoffregen <paul@pjrc.com>
3208 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
3210 2001-09-03 Michael Hope <michaelh@juju.net.nz>
3212 * link/z80/aslink.h: Fixed path for PATH_MAX
3214 2001-09-02 Michael Hope <michaelh@juju.net.nz>
3216 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
3218 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
3220 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
3222 * 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.
3224 2001-09-01 Michael Hope <michaelh@juju.net.nz>
3226 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
3227 (genCmp): Fixed up genCmp for the GB with longs.
3229 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
3231 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
3233 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
3235 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
3237 2001-08-30 Paul Stoffregen <paul@pjrc.com>
3239 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
3241 2001-08-30 Michael Hope <michaelh@juju.net.nz>
3243 * 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.
3245 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
3247 2001-08-29 Michael Hope <michaelh@juju.net.nz>
3249 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
3251 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
3253 2001-08-30 Bernhard Held <bernhard@bernhardheld.de>
3255 * sim/ucsim/configure: little improvement of Cygwin-detection
3256 * sim/ucsim/configure.in: little improvement of Cygwin-detection
3257 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
3258 * support/regression/tests/bug-221100.c: small changes for mcs51
3259 * support/regression/tests/bug-221168.c: small changes for mcs51
3260 * support/regression/tests/bug-227710.c: small changes for mcs51
3261 * support/regression/tests/staticinit.c: small changes for mcs51
3262 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
3263 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
3264 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601