1 2003-10-10 Bernhard Held <bernhard@bernhardheld.de>
3 * src/SDCCast.c (decorateType): added extended constant folding
4 * src/SDCCsymt.c (computeType): cleanup
5 * src/SDCCval.c (valShift): minor optimization
6 * support/regression/tests/ast_constant_folding.c: added
8 2003-10-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
10 * src/SDCCmain.c: removed some unintended changes
12 2003-10-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
14 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
15 * src/z80/gen.c: fixed part of bug #817589
16 * src/SDCCsymt.c (checkFunction): fixed bug #817895
18 2003-10-08 Bernhard Held <bernhard@bernhardheld.de>
20 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
38 * src/z80/gen.c: removed unused label "release:"
40 2003-10-06 Borut Razem <borut.razem@siol.net>
42 * src/SDCC.lex: removed definition of unused variables
43 save_optimize and save_options
45 2003-10-06 Bernhard Held <bernhard@bernhardheld.de>
47 * clean.mk: removed '=' in "-maxdepth=1"
48 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
49 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
51 2003-10-06 Borut Razem <borut.razem@siol.net>
53 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
54 my_unput() replaced by unput()
56 2003-10-05 Bernhard Held <bernhard@bernhardheld.de>
58 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
59 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
60 type-punned pointer will break strict-aliasing rules"
61 Old LR behaviour is again default; Klaus' LR can be choosen by
62 defining the environment variable LRKLAUS
66 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
67 * clean.mk: fixed removal of files in bin/CVS/
68 * device/lib/clean.mk: fixed removal of directories small and large
69 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
71 * src/SDCCval.c: removed superflous test for pedantic
73 2003-10-05 Borut Razem <borut.razem@siol.net>
75 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
76 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
77 message "unmatched #pragma SAVE and #pragma RESTORE"
79 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann@web.de>
81 * doc/sdccman.lyx: various additions and updates (interrupts, inline
82 assembly, critical functions, atomic, nojtbound)
84 2003-10-04 Bernhard Held <bernhard@bernhardheld.de>
86 Applied liferange patch from Klaus Flittner <klaus_flittner@gmx.de>
92 2003-10-03 Erik Petrich <epetrich@ivorytower.norman.ok.us>
95 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
97 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
99 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
100 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
101 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
103 2003-10-02 Erik Petrich <epetrich@ivorytower.norman.ok.us>
105 * src/z80/gen.c (genRet): fixed bug #524753
106 * src/z80/gen.c (genCast): fixed internal error on cast from
108 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
109 fix for bug #477835 to the z80
110 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
111 for tracking iCodes in the peephole optimizer for z80
113 2003-10-01 Erik Petrich <epetrich@ivorytower.norman.ok.us>
115 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
116 the other part of bug #814548
117 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
119 2003-09-30 Bernhard Held <bernhard@bernhardheld.de>
121 * src/SDCCcse.c: fixed part of bug #814548
123 2003-09-28 Borut Razem <borut.razem@siol.net>
125 * src/asm.c: rewrite of printILine() to use temporary file instead
127 * src/xa51/main.c: commented out declaration of int rewinds
129 2003-09-27 Erik Petrich <epetrich@ivorytower.norman.ok.us>
131 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
133 2003-09-26 Erik Petrich <epetrich@ivorytower.norman.ok.us>
135 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
136 * src/asm.c (printILine): Fixed bug #811015
138 2003-09-22 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
140 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
143 2003-09-21 Erik Petrich <epetrich@ivorytower.norman.ok.us>
145 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
146 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
147 to correctly handle general case of AOP_PAIRPTR
148 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
150 2003-09-21 Erik Petrich <epetrich@ivorytower.norman.ok.us>
152 * src/mcs51/ralloc.c (fillGaps),
153 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
154 register positioning bug)
156 2003-09-21 Bernhard Held <bernhard@bernhardheld.de>
158 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
160 2003-09-19 Erik Petrich <epetrich@ivorytower.norman.ok.us>
162 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
163 genCodePointerGet, genGenPointerGet, genFarPointerSet,
164 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
165 (ralloc doesn't intentionally do this now, but perhaps later)
166 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
167 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
168 register positioning bugs (Fixed bug #762602 and #795325)
169 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
171 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
172 lines that --i-code-in-asm generates
174 2003-09-18 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
176 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
177 trying to fclose a FILE* that was already closed.
179 2003-09-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
181 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
182 of const struct should be treated as if const themselves)
184 2003-09-18 Bernhard Held <bernhard@bernhardheld.de>
186 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
188 2003-07-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
190 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
191 Unix (/n) and DOS (/r/n) line terminations.
193 2003-09-17 Erik Petrich <epetrich@ivorytower.norman.ok.us>
195 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
198 2003-09-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
200 * src/mcs51/gen.c (genFunction, genEndFunction),
201 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
202 and restore of EA so that stack offsets to parameters are
203 correct when using both critical and reentrant/stack-auto.
204 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
205 size (can be triggered in error if sloc is shared between
206 different sized objects)
207 * device/include/float.h: fixed macros to explicitly use
208 unsigned long where needed
210 2003-09-15 Bernhard Held <bernhard@bernhardheld.de>
212 Feature req. 799831: added code to allow nesting of critical functions
213 * src/mcs51/gen.c (genFunction, genEndFunction)
214 * src/ds390/gen.c (genFunction, genEndFunction)
216 2003-09-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
218 * src/SDCCsymt.c (sclsFromPtr),
220 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
221 support for standard C idiom of memory mapped variables; for
222 example, *((xdata int*)0x1234) = 1 is now internally equivalent
223 to xdata int at 0x1234 tempvar = 1.
224 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
225 provided by Akiya ISHIDA
227 2003-09-13 Bernhard Held <bernhard@bernhardheld.de>
229 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
230 * src/SDCCval.c (constVal): added reduction from int to char
231 * src/SDCCval.c (valMult, valDiv): fixed sign handling
232 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
233 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
235 * support/regression/tests/shifts.c: fixed
237 2003-09-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
239 * src/z80/gen.c (genXor): Fixed bug #805445
241 2003-09-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
243 Fixed bug #621531 (const & volatile confusion in the type chain).
244 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
245 refer to the const or volatile state of the pointer itself.
258 * support/regression/tests/const.c
260 2003-09-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
262 When checking for duplicated modules, use absolute paths
263 instead of relative paths. Files changed:
268 2003-09-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
270 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
272 2003-09-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
274 * device/include/string.h: added size_t typedef, changed
275 prototypes to use size_t, eliminated separate reentrant and
276 non-reentrant declarations, added _memmove declaration
277 * device/lib/_memcpy.c: changed to use size_t instead of int,
278 changed /4 to >>2 to avoid division library call
279 * device/lib/_memcmp.c,
280 * device/lib/_memset.c,
281 * device/lib/_strncat.c,
282 * device/lib/_strncpy.c,
283 * device/lib/_strncmp.c: changed to use size_t instead of int
284 * device/lib/_memmove.c: new file (fixed bug #772294)
285 * device/lib/Makefile.in: added _memmove.c
286 * device/lib/z80/asm_strings.s: fixed bug #772290
287 * support/regression/tests/bitfields.c: attempt to fix host assertion
288 failure on amd64-unknown-linux2.2
290 2003-09-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
292 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
293 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
294 * as/z80/asmain.c (main): fixed bug #801766
296 2003-09-06 Bernhard Held <bernhard@bernhardheld.de>
298 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
301 2003-09-05 Erik Petrich <epetrich@ivorytower.norman.ok.us>
303 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
304 reported in bug #800609
306 2003-09-04 Vangelis Rokas <vrokas@otenet.gr>
308 * Top header beautifications in src/pic16 directory:
309 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
310 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
311 pcoderegs.h, ralloc.c, ralloc.h
312 * main.c: added top header and GPL license notice
313 * pcode.c: fixed the if-conditional warning
315 2003-09-04 Bernhard Held <bernhard@bernhardheld.de>
317 * device/lib/_mullong.c: replaced int by short for gcc
319 2003-08-31 Erik Petrich <epetrich@ivorytower.norman.ok.us>
321 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
322 and JUMPTABLE iCodes properly now (worked by accident before)
323 * src/mcs51/gen.c (leftRightUseAcc),
324 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
325 iCode properly now. Use getSize instead of nRegs since a & b
326 aren't part of the nRegs tally.
328 2003-08-31 Vangelis Rokas <vrokas@otenet.gr>
330 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
331 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
332 before instructions that use the _STATUS register
334 2003-08-31 Bernhard Held <bernhard@bernhardheld.de>
336 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
337 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
338 fetching of the pointer
339 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
340 copied from genNearPointerSet()
341 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
342 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
343 If they pop r0/r1 they must be called in the opposite order than aopOp().
344 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
345 (resp. --stack-auto), prepared for --xstack
347 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
349 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
351 2003-08-28 Bernhard Held <bernhard@bernhardheld.de>
353 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
354 these ports have their own __sdcc_external_start()
356 2003-08-26 Bernhard Held <bernhard@bernhardheld.de>
358 pic patch provided by Slade Rich <slade_rich@yahoo.com>
359 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
360 type for bits was changed. It resulted in bit variables becoming
361 global, which is not permitted in PIC 14 assembly output.
363 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
365 * doc/sdccman.lyx: various additions and updates. Rearranged sections
367 2003-08-22 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
369 Z80 and MCS51 linkers complaint if a public symbol is defined
370 in more than one library module:
374 * as/mcs51/Makefile.in
376 2003-08-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
378 A few small changes that speed up the peephole optimizer.
382 2003-08-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
384 Try to make the peephole optimizer smarter by maintaining
385 an association between the assembly source code and the
386 iCodes that originated them. Put this information to use
387 with a new peephole rule condition "notVolatile" so that
388 the rules can be aggressive yet still safe.
393 * src/mcs51/peeph.def
395 2003-08-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
399 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
400 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
401 if the left or right operand symbols have the accuse flag set.
403 2003-08-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
405 Changed the type of the result of the ! (NOT) operator to char;
406 previously it returned the same type as the source. This allows
407 us to eliminate all the genFloatNot functions (all of its target
408 implementations were very buggy) since !float can use the same
411 * src/SDCCicode.c (ast2iCode): ! returns char
412 * src/mcs51/gen.c (genNot, genNotFloat),
413 * src/ds390/gen.c (genNot, genNotFloat),
414 * src/z80/gen.c (genNot, genNotFloat),
415 * src/pic/gen.c (genNot, genNotFloat),
416 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
418 2003-08-19 Bernhard Held <bernhard@bernhardheld.de>
420 pic patch provided by Slade Rich <slade_rich@yahoo.com>
421 1. Interrupt would not compile properly. Ensure PCLATH register is saved
422 during interrupts. Ensure WSAVE is located at a shared bank address.
423 2. Fixed page selection in some places
424 3. Fixed BTFSS/C to where necessary use registers directly and not simply
425 the registers name strings.
426 4. Fixed "signed / unsigned compare" compiler warnings.
427 5. The PIC port manages its own allocation of the general purpose
428 registers, but makes no attempt to reuse them. As a result when
429 compiling it soon runs out of general purpose registers. Some
430 additional code was added to the files pcode.c and device.c to walk
431 through the function call tree and rename the registers so that they
441 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
442 genPlus() & genMinus() when the result is the same as left or right
444 2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
446 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
448 2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
450 Made bitfield a distinct type from bit so that bitfields
451 convert as per ANSI C and bits retain their traditional
452 boolean style behaviour. Implemented bitfield support in
460 * src/ds390/gen.c: bit v bitfield split
461 * src/z80/gen.c: New support for bitfields
462 * support/regression/tests/bitfields.c: reenabled z80,
465 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann@web.de>
467 Rules 246.x, 247.x relate to bitfields, the others speed up
468 access to xdata mapped I/O devices.
470 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
472 2003-08-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
474 Cleaned up genPackBits and genUnpackBits and added two helper
475 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
476 for literal assignments in genPackBits (thanks to Frieder for
482 2003-08-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
484 Fixed bug #748310 (pointer to function type mishandled when the
485 function name is omitted). Also fixed a SIGSEGV when a function
486 attribute (reentrant, etc) is used on a non-function or on a
487 function but misplaced before the parameter list.
489 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
491 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
492 * support/Util/SDCCerr.h,
493 * support/Util/SDCCerr.c: Added func attr misuse error msg
495 2003-08-13 Bernhard Held <bernhard@bernhardheld.de>
497 Fixed bug #787649 by anonymous
498 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
499 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
501 2003-08-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
503 Fixed numerous bitfield problems.
505 * src/SDCC.y: More bitfield related error checking
507 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
508 * support/Util/SDCCerr.h,
509 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
510 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
511 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
512 * support/regression/tests/bitfields.c: tests added
514 2003-08-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
516 Made the constant following the "interrupt" keyword optional. If
517 omitted, the function will not automatically be given an entry
518 in the interrupt vector table (similar to #pragma NOIV, but
519 less syntacticly kludgy). The interrupt number is also now
520 range checked. Also fixed a bug in the high order bit example
527 * support/Util/SDCCerr.c
528 * support/Util/SDCCerr.h
531 2003-08-13 Bernhard Held <bernhard@bernhardheld.de>
533 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
534 * src/SDCCicode.c (operandOperation): rewritten some ops
535 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
536 * src/SDCCsymt.c (computeType): literals are handled the same way as any
538 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
539 be re-activated by defining REDUCE_LITERALS)
540 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
541 unsigned, but are signed by default
542 * src/SDCCval.c (constVal): rearranged
543 * src/SDCCval.c (valMod): preliminary fix
544 * src/SDCCval.c (valCastLiteral): use TYPE_* types
545 * support/regression/literalop.c: added, work in progress
547 2003-08-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
549 Generate warnings for useless declarations like "char data;"
550 that don't do what new users expect.
553 * support/Util/SDCCerr.h
554 * support/Util/SDCCerr.c
556 2003-08-09 Bernhard Held <bernhard@bernhardheld.de>
558 * src/SDCCval.c (valMult): fix overflow detection of negative int
560 2003-08-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
562 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
564 Changes to support big endian targets:
577 2003-08-06 Bernhard Held <bernhard@bernhardheld.de>
579 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
580 * device/lib/time.c: fixed warning "integer overflow in expression"
582 2003-08-05 Bernhard Held <bernhard@bernhardheld.de>
584 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
585 * src/SDCCval.c (constVal): changed default to signed; hex and octal
586 constants are unsigned; added recognition of "u" flag for unsigned
587 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
588 * src/SDCCval.c (valDiv, valMod): fixed signdness
589 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
590 signedness of modulo, left and right shift
591 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
592 * support/Util/SDCCerr.h: added warning W_INT_OVL
593 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
594 * src/SDCCast.c (ast_print): improved output of constants
596 2003-08-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
598 Fixed some warnings when building with MSVC:
611 * support\cpp2\cpplib.c
615 2003-08-03 Bernhard Held <bernhard@bernhardheld.de>
617 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth@isi.edu>
619 2003-08-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
621 * support\librarian\clean.mk: Do not remove Makefile.
622 * support\librarian\Makefile: added.
624 2003-08-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
626 Added librarian to MSVC build:
629 * support\librarian\librarian.dsp
631 'configure' not needed for librarian, removed:
632 * support\librarian\configure
633 * support\librarian\configure.in
634 * support\librarian\config_in.h
635 * support\librarian\Makefile.in
637 Hopefully these ones built the librarian and the rest of sdcc properly:
641 Messed up 'configure', so revert to previous version:
645 2003-07-31 Bernhard Held <bernhard@bernhardheld.de>
647 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
648 there, while the mantissa of a double is "only" 53 bits wide.
650 2003-07-31 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
652 Adding sdcclib to the build. MSVC project coming soon.
655 * support\librarian\clean.mk
656 * support\librarian\configure
657 * support\librarian\configure.in
658 * support\librarian\config_in.h
659 * support\librarian\Makefile.bcc
660 * support\librarian\Makefile.in
661 * support\librarian\sdcclib.c
668 2003-07-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
670 Linker now complaints if linked modules have conflicting options, for
671 example, one compiled using --model-large and another one compiled with
672 --model-small. The following files were modified:
694 2003-07-28 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
696 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
697 as/mcs51/lklibr.c: Generate a warning when a library is not found.
699 2003-07-28 Bernhard Held <bernhard@bernhardheld.de>
701 * src/z80/mappings.i: fix _mul[us][int,long] entries
703 2003-07-26 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
705 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
707 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
709 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
710 * support/regression/tests/bitopcse.c: added
718 2003-07-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
720 added support for new library format to z80, gbz80 linkers:
726 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
728 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
729 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
731 2003-07-23 Bernhard Held <bernhard@bernhardheld.de>
733 added DUMMY_READ_VOLATILE:
742 * src/SDCCcse.c (algebraicOpts): many improvements
743 * src/SDCCcse.h: removed algebraicOpts()
744 * src/SDCCicode.c (picDummyRead): added
746 2003-07-23 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
748 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
749 "Insufficient space in data memory".
751 2003-07-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
753 * src/mcs51/gen.c: fixed bug #771358
754 * src/z80/gen.c: fixed bug #759087
756 2003-07-20 Bernhard Held <bernhard@bernhardheld.de>
758 * src/pic16/glue.c: minor cleanup by Vangelis
760 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann@web.de>
762 * device/include/regc515c.h: fixed #758477
763 * device/lib/_gptrget.c: saving some cycles in generic pointer get
764 * device/lib/_gptrput.c: saved a few bytes
765 * my tab spacing is 8, yours too?)
766 * device/lib/_ser.c: process RX bytes earlier than TX bytes
767 * device/lib/serial.c: process RX bytes earlier than TX bytes
768 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
770 2003-07-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
772 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
774 2003-07-17 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
776 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
778 2003-07-17 Bernhard Held <bernhard@bernhardheld.de>
780 * device/lib/Makefile.in: bad fix, reverted to 1.43
782 2003-07-16 Bernhard Held <bernhard@bernhardheld.de>
784 * device/lib/Makefile.in: added missing z80 object files
786 2003-07-14 Bernhard Held <bernhard@bernhardheld.de>
788 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
789 pic16 progress by Vangelis:
807 2003-07-13 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
809 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
811 2003-07-12 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
813 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
814 added gbz80 build to MSVC project.
815 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
816 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
817 from 8051 stuff and setup so it links using a .lnk file.
819 2003-07-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
821 * support/librarian/sdcclib.c: sdcc librarian.
822 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
825 2003-07-03 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
827 * as/mcs51/lkmain.c: properly handle extensions in function afile.
829 2003-07-02 Borut Razem <borut.razem@siol.net>
831 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
832 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
833 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
834 src/xa51/main.c, src/z80/main.c:
835 virtualization of glue() function: each port has it's own glue function,
836 which is accessed by do_glue function pointer in PORT.general structure
838 2003-07-01 Kevin Vigor <kevin@vigor.nu>
840 * DS800C400 fun, improved ROM interface and tinibios.
842 2003-06-27 Kevin Vigor <kevin@vigor.nu>
844 * More support for DS80C400. Now includes beginning of interface to ROM.
846 2003-06-25 Bernhard Held <bernhard@bernhardheld.de>
848 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
850 2003-06-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
852 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
854 2003-06-19 Borut Razem <borut.razem@siol.net>
856 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
858 2003-06-19 Borut Razem <borut.razem@siol.net>
860 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
861 fixed Z80 port - crt0.o: cannot open.
863 2003-06-19 Bernhard Held <bernhard@bernhardheld.de>
865 * support/Util/MySystem.c (merge_command): revert bad fix
867 2003-06-18 Borut Razem <borut.razem@siol.net>
869 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
871 2003-06-18 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
873 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
874 option --use-stdout sends errors to stdout instead of stderr.
876 2003-06-18 Bernhard Held <bernhard@bernhardheld.de>
878 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
880 2003-06-15 Borut Razem <borut.razem@siol.net>
882 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
883 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
884 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
885 fixed width array of pointers replaced with sets;
886 multiple include and lib paths ared transferred to preprocessor and linker
887 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
888 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
889 fixed width array of pointers
890 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
891 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
892 fixupPath(), getPathDifference()
893 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
894 fixed width array of pointers
896 2003-06-11 Bernhard Held <bernhard@bernhardheld.de>
898 * src/pic16/ralloc.c: fix warnings
899 * src/pic16/pcode.c: fix warning
901 2003-06-10 Scott Dattalo <scott@dattalo.com>
903 Scott D. for Vangelis Rokas (vrokas@otenet.gr). I (scott) don't
904 know all the details, but essentially this set of changes enable
905 the pic16 port to generate movff instructions and generate assembler
911 * src/pic16/device.c:
914 * src/pic16/pcoderegs.c:
915 * src/pic16/ralloc.c:
916 * src/pic16/ralloc.h:
918 2003-06-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
920 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
921 added option --vc, so sdcc errors and warnings are compatible with
922 Microsoft Visual Studio.
924 2003-06-07 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
926 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
927 device/lib/libfloat.lib: added atof function.
929 2003-06-04 Bernhard Held <bernhard@bernhardheld.de>
931 * doc/sdccman.lyx: updated to Lyx 1.3
932 * doc/cdbfileformat.lyx: updated to Lyx 1.3
933 * doc/test_suite_spec.lyx: updated to Lyx 1.3
934 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
936 2003-06-03 Bernhard Held <bernhard@bernhardheld.de>
938 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas@otenet.gr>
940 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann@web.de>
942 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
943 additions to the "related tools/documentation" section
945 2003-06-02 Bernhard Held <bernhard@bernhardheld.de>
947 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
949 2003-05-29 Bernhard Held <bernhard@bernhardheld.de>
951 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn@vt.edu>
952 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
954 2003-05-28 Bernhard Held <bernhard@bernhardheld.de>
956 * doc/sdccman.lyx: fix double dash and other minor things
957 * doc/Makefile: fix double dash
959 2003-05-28 Karl Bongers(patches from Martin Helmling)
960 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
961 condition and ignore commands.
963 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
965 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
966 is in parts still quite out of date, I did changes as far as I felt makes sense
967 for a non-native english speaker.
968 Please feel free to add to the manual or to correct my changes.
969 * doc/Makefile: undid touching the date of intermediate tex files.
971 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann@web.de>
973 * doc/sdccman.lyx: Manual has an index now
975 2003-05-25 Bernhard Held <bernhard@bernhardheld.de>
977 Finalize muluint/mulsint and mululong/mulslong merging:
978 * device/lib/_mulint.c
979 * device/lib/_mullong.c
980 * device/lib/gbz80/mul.s
981 * device/lib/gbz80/stubs.s
982 * device/lib/z80/mul.s
983 * device/lib/z80/stubs.s
984 * src/SDCCsymt.c (initCSupport)
986 2003-05-25 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
988 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
989 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
990 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
991 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
994 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann@web.de>
996 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
997 the regression tests I'm not brave enough to enable 245.b, 245.c
998 * doc/sdccman.lyx: added latex preamble for hyperref package.
999 Using pdflatex this will give you a hyperlinked pdf file with
1000 bookmarks. (prepend '%' before /usepackage if this breaks something)
1002 2003-05-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1004 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
1006 2003-05-22 Bernhard Held <bernhard@bernhardheld.de>
1008 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
1010 2003-05-21 <johan@balder>
1012 * src/SDCCglue.c (printIval): fixed bug #739934
1014 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
1016 Applied patch from bug 737905 (renamed yylineo to mylineno):
1023 * src/pic16/pcode.c: Cleaned warnings
1024 * src/pic16/pcodeflow.c: Cleaned warnings
1025 * src/pic16/pcoderegs.c: Cleaned warnings
1027 2003-05-19 Scott Dattalo <scott@dattalo.com>
1029 * src/pic16/pcode.c: Cleaned warnings
1030 * src/pic16/pcodepeep.c: Cleaned warnings
1031 * src/pic16/ralloc.c: Cleaned warnings
1033 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
1035 * doc/sdccman.lyx: fixed bug 739745
1036 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
1038 2003-05-18 Bernhard Held <bernhard@bernhardheld.de>
1040 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
1041 it can be defined with CFLAGS when running configure
1042 * src/SDCCmain.c: fixed compiling + linking with object files
1044 2003-05-18 Vangelis Rokas (vrokas@otenet.gr)
1046 * configure.in: configure for pic16 port,
1047 added --disable-pic16-port
1048 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
1049 * src/SDCCmain.c: linkOptions is changed to set *,
1050 added if/endif conditional macros to remove options help
1051 messages from optionsTable when a port is not configured, added
1052 support for the PIc16 port in the ports table, when executing
1053 the compiler with no port specified on command line, a default
1054 port is selected with the new macro DEFAULT_PORT which is
1055 defined in port.h, in setDefaultOptions() linkOptions is removed
1056 from initialization assignment, since now it is a set,
1057 parseCmdLine uses setParseWithComma for linkOptions, in
1058 linkEdit() linkOptions are accessed with new function indexSet()
1059 which returns the i'th item of a set variable. See SDCCset.c, in
1060 linkEdit() when calling buildCmdLine(), added linkOptions as
1061 last argument. Now users can pass arguments to gplink via the
1062 -Wl option, main() uses pic16glue() to glue up pic16 programs
1063 * src/SDCCpeeph.c: various changes to support pic16
1064 * src/SDCCset.c: added function void *indexSet(set *, int) to
1065 return the i'th item of the set
1066 * src/SDCCset.h: added function prototype for indexSet()
1067 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
1068 * src/clean.mk: added pic16 in CLEANALLPORTS variable
1069 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
1070 added macro DEFAULT_PORT
1071 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
1072 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
1074 * src/pic16/glue.c: commented out some error producing lines
1075 * src/pic16/main.c: __config directives are commented out to stop
1076 gpasm complaining and test the linkage with gplink, _linkCmd and
1077 _asmCmd changed to be more gplink and gpasm friendly
1078 * src/pic16/peeph.def: peep rule 3 is commented out, since it
1079 produced an error when parsed, peep rule 12 is added to utilize
1080 movff, but it is commented out since the pCode does not support
1081 yet a command with 2 address arguments
1083 2003-05-18 <johan@balder>
1085 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
1086 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
1087 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
1089 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
1090 Added feature to script commands from file.
1092 2003-05-14 Bernhard Held <bernhard@bernhardheld.de>
1094 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
1095 * src/SDCCutil.c: include ctype.h for win32
1097 2003-05-13 Bernhard Held <bernhard@bernhardheld.de>
1099 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
1101 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
1103 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
1104 Fixed so you can set breakpoints prior to run, run does not stop
1105 on entry now. Add tbreak. Other enhancements and fixes for use
1108 2003-05-12 Borut Razem <borut.razem@siol.net>
1110 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
1112 2003-05-11 Borut Razem <borut.razem@siol.net>
1114 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
1115 the path of bin directory, so that PATH is the only env. variable, which has to be set
1116 in case of standard installation.
1117 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
1118 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
1119 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
1121 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
1123 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
1124 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
1125 temp files are in the port dir; clean the gen/test directory when
1126 generating new test.c
1127 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
1128 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
1129 * support/regression/tests/zeropad.c: added
1131 2003-05-09 <johan@balder>
1133 * src/SDCCglue.c: fixed bug #597940
1135 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
1137 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
1138 cache sfr, optimize next,step, fix off by one sourceline,
1139 support ddd list function.
1140 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
1142 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
1144 * support/regression/HTMLgen.py: added compare_s2f()
1145 * support/regression/Makefile: redo 1.27
1146 * support/regression/generate-cases.py: redo 1.5
1148 2003-04-30 Bernhard Held <bernhard@bernhardheld.de>
1150 * support/regression/tests/float.c: workaround 33 bit hex constant
1151 * support/regression/tests/simplefloat.c: fix division for host
1153 2003-04-29 Scott Dattalo <scott@dattalo.com>
1155 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim@jimhawkridge.uk.eu.org>
1156 that tame's the PIC's over-aggressive optimizer.
1158 2003-04-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1160 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
1163 2003-04-29 Kevin Vigor <kevin@vigor.nu>
1165 Initial support for DS80C400. "Hello world" runs on TINIm400
1168 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
1170 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
1171 * Some notes on ddd usage added in debugger/README
1172 Martin Helmling adding more features and fixes for ddd GUI debugger.
1173 Code added for nexti, stepi, up, down, and other adjustments.
1175 2003-04-28 Scott Dattalo <scott@DATTALO.COM>
1177 * src/pic/pCodepeep.c non-wildcard asmops are now handled
1178 * src/pic/peeph.def Added two rules to optimize carry manipulation
1179 * src/pic/* removed debug printfs
1181 2003-04-28 Bernhard Held <bernhard@bernhardheld.de>
1183 * debugger/mcs51/cmd.c: added header newalloc.h
1185 2003-04-26 Bernhard Held <bernhard@bernhardheld.de>
1187 * as/Makefile: new EXEEXT
1188 * as/z80/Makefile: remove trailing slash of BUILDIR
1189 * as/z80/clean.mk: new EXEEXT
1190 * Makefile.common.in: add to CFLAGS (and others), don't replace it
1191 * support/cpp2/Makefile.in: new EXEEXT
1192 * src/pic/glue.c (pic14emitRegularMap): fixed warning
1194 2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
1196 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
1197 EXEEXT was introduced to fix all related problems with targets
1198 "clean", "install" and "uninstall"; a couple of further flaws
1199 especially with "clean" have been fixed too
1200 * as/mcs51/Makefile.in
1205 * debugger/mcs51/Makefile.in
1206 * debugger/mcs51/clean.mk
1208 * link/z80/Makefile.in
1211 * packihx/Makefile.in
1213 * sim/ucsim/Makefile
1214 * sim/ucsim/clean.mk
1215 * sim/ucsim/avr.src/Makefile.in
1216 * sim/ucsim/avr.src/clean.mk
1217 * sim/ucsim/s51.src/Makefile.in
1218 * sim/ucsim/s51.src/clean.mk
1219 * sim/ucsim/xa.src/Makefile.in
1220 * sim/ucsim/xa.src/clean.mk
1221 * sim/ucsim/z80.src/Makefile.in
1222 * sim/ucsim/z80.src/clean.mk
1223 * sim/ucsim/main_in.mk
1224 * sim/ucsim/packages_in.mk
1225 * sim/ucsim/gui.src/Makefile.in
1226 * sim/ucsim/gui.src/serio.src/Makefile.in
1227 * sim/ucsim/gui.src/serio.src/clean.mk
1230 * support/cpp2/Makefile.in
1231 * support/cpp2/clean.mk
1232 * support/makebin/Makefile
1233 * support/makebin/clean.mk
1234 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
1235 * doc/sdccman.lyx: --program-suffix no longer needed
1237 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
1239 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
1240 Martin Helmling added support for ddd GUI debugger.
1241 Code added to display assembly, set variables, and other commands
1242 to interface to ddd.
1244 2003-04-23 Bernhard Held <bernhard@bernhardheld.de>
1246 * as/Makefile: fix target clean
1247 * as/clean.mk: fix target clean
1248 * as/z80/clean.mk: fix target clean
1250 2003-04-22 Bernhard Held <bernhard@bernhardheld.de>
1252 * Makefile.common.in: added @EXEEXT@
1253 * configure.in: removed all mingw32 stuff
1254 * configure: rebuilt from configure.in
1255 * doc/sdccman.lyx: updated section "installation"
1256 * support/scripts/sdcc_mingw32: adapted to configure
1257 * support/scripts/sdcc_cygwin_mingw32: added
1259 2003-04-22 Scott Dattalo <scott@dattalo.com>
1261 * src/pic Added object file support for the PIC port
1262 * src/pic Applied patch from Craig Franklin (this started the object file support)
1263 * src/regression Updated the PIC regression tests for object files
1265 2003-04-20 Borut Razem <borut.razem@siol.net>
1267 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
1268 lklex.c: In function `getfid':
1269 lklex.c:203: warning: array subscript has type `char'
1270 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
1271 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
1272 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
1273 stack handling macros
1275 2003-04-19 Borut Razem <borut.razem@siol.net>
1277 * "handling space characters in file path" task:
1278 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
1279 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
1280 * support/Util/MySystem.h: make it self-sufficient
1281 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
1282 src/z80/main.c, sdcc/as/mcs51/lklex.c:
1283 handling space characters in file path
1284 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
1285 (it will be used by assemblers, which have their own includes, e.g. gpasm)
1286 * support/Util/MySystem.c: handling space characters in executable's path
1288 2003-04-19 Bernhard Held <bernhard@bernhardheld.de>
1290 * as/z80/Makefile: fix permanent rebuild of z80
1291 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
1292 * support/regression/tests/bitfields.c: added Johan's bitfields.c
1294 2003-04-18 Kevin Vigor <kevin@vigor.nu>
1296 * src/SDCCopt.c: add special case optimization to replace modulo by
1297 a power of two with a bitwise AND.
1299 2003-04-18 <johan@balder>
1301 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
1303 2003-04-17 <johan@balder>
1305 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
1306 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
1308 2003-04-13 Borut Razem <borut.razem@siol.net>
1310 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
1311 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
1312 fixed mingw problem in adl_NORMALIZE_PATH
1314 2003-04-12 Borut Razem <borut.razem@siol.net>
1316 * fixed "#pragma SAVE/RESTORE can not be nested":
1317 * src/SDCC.lex: reworked pragma handling functions
1318 * sdcc/src/SDCCglobl.h: reworked stack handling macros
1319 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
1321 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
1323 * src/SDCCutil.c (pathEquivalent): defined but not used
1324 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
1325 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
1326 * configure: rebuilt from configure.in
1327 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
1328 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
1329 * device/include/Makefile.in: replace sdcc_datadir
1330 * device/lib/Makefile.in: replace sdcc_datadir
1331 * Makefile.common.in: add LDFLAGS from configure
1332 * packihx/Makefile.in: use LDFLAGS
1333 * src/Makefile.in: use LDFLAGS
1334 * support/cpp2/Makefile.in: add LDFLAGS from configure
1335 * support/makebin/Makefile: use LDFLAGS
1336 * .version: bumped version number to 2.3.5
1338 2003-04-12 Borut Razem <borut.razem@siol.net>
1340 * completed "different paths" task:
1341 * src/SDCCmacro.c: fixed bug in handling quotes
1342 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
1343 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
1345 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
1347 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
1349 2003-04-11 kevin Vigor <kevin@vigor.nu>
1351 * ds390/gen.c ds390/peeph.def: fix bug 706781
1353 2003-04-11 Borut Razem <borut.razem@siol.net>
1355 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
1357 2003-04-10 Scott Dattalo <scott@dattalo.com>
1359 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
1360 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
1361 set - this bit used to not be set...).
1362 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
1363 bad code in PIC Port
1364 * src/regression/and2.c added to test bug 609268
1365 * src/regression/Makefile added and2.c to regression test
1368 2003-04-08 <johan@CP255758-A>
1370 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
1371 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
1372 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
1374 2003-04-07 Bernhard Held <bernhard@bernhardheld.de>
1376 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
1378 * support/cpp2/Makefile.in: fix bug #487815
1379 * configure: rebuilt from configure.in
1380 * Makefile.common.in: docdir changed, new path suffixes
1381 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
1382 * sdcc_vc_in.h: reflect changes from sdccconf.h
1383 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
1384 * src/SDCCutil.h: remove BINDIR hack
1385 * doc/sdccman.lyx: update new path hierarchy
1387 2003-04-06 Paul Stoffregen <paul@pjrc.com>
1389 * src/SDCCpeeph.c: added okToRemoveSLOC test
1391 2003-04-06 Paul Stoffregen <paul@pjrc.com>
1393 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
1395 2003-04-06 Paul Stoffregen <paul@pjrc.com>
1397 * src/SDCCpeeph.c: added labelIsReturnOnly test
1398 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
1400 2003-04-05 <johan@balder>
1402 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
1403 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
1404 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
1405 * src/SDCCast.c: fixed a warning
1406 * src/SDCCast.h: fixed a warning
1407 * src/SDCCicode.c (operandFromAst): fixed a warning
1409 2003-04-04 <johan@balder>
1411 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
1412 * src/SDCCast.c (decorateType): fixed bug #715076
1413 * src/SDCC.y: fixed bug #702907
1415 2003-04-03 <johan@balder>
1417 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
1418 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
1419 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
1420 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
1421 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
1423 2003-04-03 Bernhard Held <bernhard@bernhardheld.de>
1425 * _decdptr.c: fix return values
1426 * _gptrget.c: fix return values
1427 * _gptrgetc.c: fix return values
1428 * _gptrput.c: fix return values
1429 * _mulint.c: fix return values
1430 * as/z80/Makefile: fix 'make -j' problem
1432 2003-04-02 Bernhard Held <bernhard@bernhardheld.de>
1434 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
1435 * configure.in: big cleanup, updated to autoconf 2.5x
1436 * configure: rebuilt from configure.in
1437 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
1438 * sdcc_vc_in.h: reflect changes from sdccconf.h
1439 * doc/Makefile: fixed a flaw in "make install"
1441 2003-04-02 <johan@balder>
1443 * src/ds390/gen.c (genCmp): no comments
1444 * src/mcs51/gen.c (genCmp): no comments
1445 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
1446 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
1448 2003-04-01 Bernhard Held <bernhard@bernhardheld.de>
1450 * support/regression/generate-cases.py: place generated file in given sub directory
1451 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
1452 * support/regression/Makefile: improvements for 'make -j';
1453 side effect: it's simpler and faster now
1455 2003-03-31 Borut Razem <borut.razem@siol.net>
1457 * src/z80/main.c: link-{port} and as-{port} defined without path
1458 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
1460 2003-03-31 Bernhard Held <bernhard@bernhardheld.de>
1462 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
1464 2003-03-30 Borut Razem <borut.razem@siol.net>
1466 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
1467 changed type of list parameter to set
1468 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
1469 * src/port.h: changed type of do_assemble() parameter to set
1470 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
1471 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
1472 definition of "cppoutfilename" macro with NULL value in preProcess()
1473 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
1474 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
1475 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
1476 replaced with set *binPathSet
1477 * shash_add() deallocates the item, if allready exsists, before adding the new one
1478 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
1480 2003-03-30 Scott Dattalo <scott@dattalo.com>
1482 * src/pic/gen.c: Commit patch from Steve Tell <tell@telltronics.org> that fixes
1483 a nested for loop bug in the PIC port
1484 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
1487 2003-03-29 Bernhard Held <bernhard@bernhardheld.de>
1489 * support/Util/dbuf.h: remove C++ stuff to make it portable
1491 2003-03-28 Borut Razem <borut.razem@siol.net>
1493 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
1494 literal strings in stringLiteral()
1495 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
1496 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
1499 2003-03-27 Paul Stoffregen <paul@pjrc.com>
1501 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
1503 2003-03-26 <johan@balder>
1505 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
1506 * src/ds390/gen.c (saveRegisters): catched symbol abuse
1507 * src/SDCCast.c (decorateType): fixed " -v < 3"
1509 2003-03-23 Bernhard Held <bernhard@bernhardheld.de>
1511 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
1512 Added Lenny Story's debug infrastructure changes:
1513 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
1514 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
1515 * src/cdbFile.c: added
1516 * src/SDCCdebug.c: added
1517 * src/SDCCdebug.h: added
1518 * src/SDCCast.c (createFunction)
1519 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
1520 * src/SDCCmain.c (parseCmdLine, main)
1521 * src/SDCCmem.c (redoStackOffsets)
1522 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
1525 * src/avr/gen.c (genAVRCode)
1526 * src/ds390/gen.c (gen390Code)
1527 * src/mcs51/gen.c (gen51Code)
1528 * src/pic/gen.c (genpic14Code)
1529 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
1530 * src/xa51/gen.c (genXA51Code)
1531 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
1533 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1535 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
1536 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
1538 2003-03-22 <johan@balder>
1540 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
1542 2003-03-21 Bernhard Held <bernhard@bernhardheld.de>
1544 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
1545 * doc/cdbfileformat.lyx: added, written by Lenny Story
1546 * doc/Makefile: added cdbfileformat.lyx
1547 * doc/clean.mk: added cdbfileformat.lyx
1549 2003-03-20 Bernhard Held <bernhard@bernhardheld.de>
1551 * src/mcs51/peeph.def: fix bug #705773
1553 2003-03-20 <johan@balder>
1555 An sfr/sbit can have an "at #" AND an initializer
1556 * src/SDCCsymt.c (checkSClass):
1557 * src/SDCCmem.c (allocGlobal):
1558 * src/SDCCmem.c (allocLocal):
1559 * src/SDCCast.c (createBlock):
1561 2003-03-17 Bernhard Held <bernhard@bernhardheld.de>
1563 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
1565 2003-03-16 <johan@balder>
1567 Undid the hackup of const and volatile, the problem is much bigger
1569 * src/SDCCast.c:1.171
1570 * src/SDCCglue.c:1.138
1571 * src/SDCCicode.c:1.146
1572 * src/SDCCsymt.c:1.150
1573 * src/SDCCval.c:1.65
1575 2003-03-15 Bernhard Held <bernhard@bernhardheld.de>
1577 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
1578 * src/ds390/gen.c (genAddrOf): fixed bug #704087
1580 2003-03-13 <johan@balder>
1582 Hackup const and volatile modifiers in type chains a bit:
1584 * src/SDCCast.c:1.169
1585 * src/SDCCglue.c:1.136
1586 * src/SDCCicode.c:1.143
1587 * src/SDCCsymt.c1.146
1588 * src/SDCCsymt.h1.59
1589 * src/SDCCval.c:1.63
1591 2003-03-12 <johan@balder>
1593 * src/SDCCBBlock.h: more LRH debugging junk
1594 * src/SDCCcflow.h: more LRH debugging junk
1595 * src/SDCCloop.c: more LRH debugging junk
1596 * src/SDCC.y (struct_declaration): fixed bug #697590
1597 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
1598 * src/ds390/gen.c (aopForRemat): fixed bug #700031
1599 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
1601 2003-03-11 Kevin Vigor <kevin@vigor.nu>
1602 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
1603 test function names must now match exactly).
1604 * src/SDCCcse.c: added special case in findCheaperOp to allow
1605 extending a short integer. Makes less awful code for bug 700121 test case.
1607 2003-03-11 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1609 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
1610 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
1612 2003-03-11 Kevin Vigor <kevin@vigor.nu>
1614 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
1615 actually called (operandsNotEqual() was called for all
1616 operandsNotEqualX tests).
1618 2003-03-11 Kevin Vigor <kevin@vigor.nu>
1620 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
1621 with shorter literals. Fixes bug 700121.
1623 2003-03-11 <johan@balder>
1625 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
1627 2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
1629 * src/SDCCloop.c (mergeRegions): an evil beast is dead
1630 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
1632 2003-03-10 Borut Razem <borut.razem@siol.net>
1634 * src/SDCCmain.c: pipe preprocessor's output
1635 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
1636 * sdcc_vc_in.h: define pclose as _pclose for WIN32
1637 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
1638 which closes all pipes in pipeSet set
1639 * src/SDCCset.c: free deleted item in function deleteSetItem()
1640 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
1641 moved from z80 to src subproject
1642 * .version: increased version number to 2.3.4
1644 2003-03-10 Bernhard Held <bernhard@bernhardheld.de>
1646 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
1647 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
1648 * support/regression/ports/xa51/spec.mk: fix typo
1650 2003-03-09 Bernhard Held <bernhard@bernhardheld.de>
1652 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
1654 2003-03-09 Borut Razem <borut.razem@siol.net>
1656 * src/SDCCmain.c: pipe preprocessor's output
1657 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
1658 * sdcc_vc_in.h: define pclose as _pclose for WIN32
1659 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
1660 which closes all pipes in pipeSet set
1661 * src/SDCCset.c: free deleted item in function deleteSetItem()
1662 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
1663 moved from z80 to src subproject
1665 2003-03-09 Borut Razem <borut.razem@siol.net>
1667 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
1668 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
1669 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
1670 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
1671 * src/SDCCglobl.h: unification of WIN32 native definitions
1673 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1675 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
1677 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
1679 * src/configure.in: check for endianess (even while cross-compiling)
1680 * src/configure: check for endianess (even while cross-compiling)
1681 * src/configure_in.h: check for endianess (even while cross-compiling)
1682 * src/avr/gen.c: remove old endianess stuff
1683 * src/mcs51/gen.c: remove old endianess stuff
1684 * src/ds390/gen.c: remove old endianess stuff
1685 * src/pic/gen.c: remove old endianess stuff
1686 * src/pic/genarith.c: remove old endianess stuff
1687 * src/pic/glue.c: fix endianess check
1688 * src/pic16/gen.c: remove old endianess stuff
1689 * src/pic16/genarith.c: remove old endianess stuff
1690 * src/pic16/glue.c: fix endianess check
1691 * src/xa51/gen.c: remove old endianess stuff
1692 * src/z80/gen.c: fix endianess check
1693 * src/SDCCglue.c: fix endianess check
1694 * src/ds390/peeph.def: fix bug 700036
1696 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
1698 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
1699 * src/configure: find appropriate data-types on host for SDCC's int and long
1700 * src/configure.in: find appropriate data-types on host for SDCC's int and long
1701 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
1702 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
1704 2003-03-07 <johan@balder>
1707 some minor cleanups before the big shot
1708 OP_DEFS and OP_USES now use Kevin's protection
1709 new option --nolabelopt
1720 * src/ds390/ralloc.c:
1721 * src/mcs51/ralloc.c:
1723 * src/xa51/ralloc.c:
1726 2003-03-06 Bernhard Held <bernhard@bernhardheld.de>
1728 * src/pic/pcode.c (get_op): fix 64 bit warnings
1729 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
1730 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
1731 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
1732 * support/regression/tests/malloc.c: fix 64 bit warnings
1734 2003-03-04 Bernhard Held <bernhard@bernhardheld.de>
1736 * src/mcs51/gen.c (genMinus): fixed bug 696436
1738 2003-03-02 Borut Razem <borut.razem@siol.net>
1740 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
1742 2003-02-26 Bernhard Held <bernhard@bernhardheld.de>
1744 * configure.in: test for mkstemp
1745 * sdccconf_in.h: add HAVE_MKSTEMP
1747 2003-02-24 Bernhard Held <bernhard@bernhardheld.de>
1749 * device/include/ctype.h: removed warning while using --stack-auto
1750 * device/include/malloc.h: removed warning while using --stack-auto
1751 * device/include/string.h: removed warning while using --stack-auto
1753 2003-02-23 Borut Razem <borut.razem@siol.net>
1755 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
1756 because NDEBUG is defined (see man assert)
1757 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
1759 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1761 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
1762 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
1764 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1766 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
1767 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
1769 2003-02-18 <johan@balder>
1771 * as/mcs51/asmain.c (asmbl): module can start with a digit
1772 * as/z80/asmain.c (asmbl): module can start with a digit
1774 2003-02-16 Bernhard Held <bernhard@bernhardheld.de>
1776 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
1777 * src/asm.c: fix pipe() for Mingw32
1779 2003-02-15 Bernhard Held <bernhard@bernhardheld.de>
1781 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
1782 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
1783 make -V work again; --c1mode reads now from stdin
1784 * doc/sdccman.lyx: added --c1mode
1785 * support/Util/SDCCerr.c: new messages for c1 mode
1786 * support/Util/SDCCerr.h: new messages for c1 mode
1787 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
1789 2003-02-15 <johan@balder>
1791 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
1793 2003-02-14 Bernhard Held <bernhard@bernhardheld.de>
1795 * doc/sdccman.lyx: Environment variables, -o and other minor things
1797 2003-02-14 <johan@balder>
1799 * src/xa51/main.c: before anyone really tries to use it :)
1801 * Install doc's in share/sdcc/doc
1802 * removed some obsolete files
1803 * Do a proper make distclean and uninstall
1804 M Makefile.common.in
1807 M device/include/Makefile.in
1808 M device/lib/Makefile.in
1811 M sim/ucsim/doc/Makefile.in
1814 R src/xa51/peeph.rul
1815 M support/cpp2/Makefile.in
1816 M support/makebin/Makefile
1819 2003-02-13 Bernhard Held <bernhard@bernhardheld.de>
1821 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
1823 2003-02-10 Borut Razem <borut.razem@siol.net>
1825 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
1826 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
1827 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
1828 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
1829 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
1830 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
1831 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
1832 src/z80/Makefile.bcc: Borland Makefile cleanup
1833 * as/z80/Makefile.bcc: Added Borland Makefile
1834 * support/cpp2/borland.h: Removed
1836 2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
1838 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
1839 * src/SDCC.lex: new pragma NOIV
1840 * src/SDCCglobl.h: new pragma NOIV
1841 * src/SDCCmem.c: new pragma NOIV
1843 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
1845 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
1847 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
1849 * src/SDCCmain.c: signal handling is switched off by --debug
1850 * doc/Makefile: small fix for install; use clean.mk again
1851 * doc/clean.mk: clean *.pdf and *.html too
1853 2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
1855 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
1856 * device/lib/printfl.c: fix a ds390 bug by making it portable
1857 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
1858 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
1859 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
1860 * debugger/mcs51/cmd.c: converted multi-line string literals
1861 * sim/ucsim/globals.cc: converted multi-line string literals
1862 * src/SDCCmain.c: introduced signal handler to remove temp files
1863 * doc/Makefile: small tweaks, implement clean
1864 * doc: removed generated files
1866 2003-02-05 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1868 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
1869 patch from Jan Rejlek <jr@apex-lib.cz> to fix Bug 677692: "Extended
1870 Address Record is not correctly generated for DS390."
1872 2003-02-02 Borut Razem <borut.razem@siol.net>
1874 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
1875 * as/mcs51/asm.h: fixed compilation with Borland C
1876 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
1877 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
1878 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
1879 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
1880 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
1881 src/z80/Makefile.bcc: delete $(LIB) only if exist
1882 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
1884 2003-02-02 Bernhard Held <bernhard@bernhardheld.de>
1886 * device/include/malloc.h: introduced NULL
1887 * device/include/string.h: introduced NULL
1888 * device/include/stdlib.h: introduced NULL
1889 * device/lib/_memcpy.c: removed NULL
1890 * device/lib/_strcat.c: removed NULL
1891 * device/lib/_strchr.c: removed NULL
1892 * device/lib/_strcmp.c: removed NULL
1893 * device/lib/_strcpy.c: removed NULL
1894 * device/lib/_strcspn.c: removed NULL
1895 * device/lib/_strlen.c: removed NULL
1896 * device/lib/_strncat.c: removed NULL
1897 * device/lib/_strncmp.c: removed NULL
1898 * device/lib/_strncpy.c: removed NULL
1899 * device/lib/_strpbrk.c: removed NULL
1900 * device/lib/_strrchr.c: removed NULL
1901 * device/lib/_strspn.c: removed NULL
1902 * device/lib/_strstr.c: removed NULL
1903 * device/lib/_strtok.c: removed NULL
1904 * device/lib/malloc.c: removed NULL, include own header
1906 2003-02-02 <johan@balder>
1908 * src/mcs51/ralloc.c (packForPush): fixed bug #631653, maybe other ports need this too? At least now some new alerts in SDCCBBlock.c and SDCCicode.c gives an early warning
1909 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
1910 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
1911 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
1912 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
1913 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
1915 2003-02-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1917 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
1920 2003-02-01 <johan@balder>
1922 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
1924 2003-01-31 <johan@CP255758-A>
1926 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
1928 2003-01-30 <johan@balder>
1930 * src/SDCCBBlock.c: automatic bug detection
1931 * src/SDCCicode.c: automatic bug detection
1933 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1935 * src/SDCCglobl.h: now --xram-size 0 works
1936 * src/SDCCmain.c: now --xram-size 0 works
1938 2003-01-29 <johan@balder>
1940 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
1942 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1944 * as/mcs51/aslink.h: Added options --xram-size and --code-size
1945 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
1946 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
1947 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
1948 * src/SDCCglobl.h: Added options --xram-size and --code-size
1949 * src/SDCCmain.c: Added options --xram-size and --code-size
1951 2003-01-28 Bernhard Held <bernhard@bernhardheld.de>
1953 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
1954 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
1956 2003-01-27 <johan@balder>
1958 * src/SDCC.y: fixed bug #613764
1960 2003-01-26 <johan@balder>
1962 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
1963 * src/SDCCsymt.h: fixed bug #673374
1964 * src/SDCCglue.c: fixed bug #661910
1965 * src/SDCCast.c: fixed bug #458099 and 673374
1967 2003-01-26 Bernhard Held <bernhard@bernhardheld.de>
1969 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
1970 * as/mcs51/strcmpi.h: added
1971 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
1972 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
1973 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
1974 * as/mcs51/assym.c: strcmpi -> as_strcmpi
1975 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
1976 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
1977 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
1978 * as/mcs51/Makefile.aslink: new module strcmpi
1979 * as/mcs51/Makefile.asx8051: new module strcmpi
1980 * as/mcs51/Makefil.bcc: new module strcmpi
1981 * as/mcs51/Makefile.in: new module strcmpi
1982 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
1984 2003-01-26 <johan@balder>
1986 * src/SDCCglue.c: reverted back to 1.124
1987 * src/SDCCast.c: reverted back to 1.156
1988 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
1990 2003-01-25 <johan@balder>
1992 * src/SDCCglue.c: A better fix for bug #661910
1993 * src/SDCCast.c: A better fix for bug #661910
1994 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
1996 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
1998 * src/Makefile.in: remove spawn.o
1999 * src/SDCCmain.c: remove spawn.h
2000 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
2001 * src/spawn.c: removed
2002 * src/spawn.h: removed
2003 * support/regression/ports/ds390/spec.mk: link with -r
2005 2003-01-24 <johan@CP255758-A>
2007 * src/ds390/gen.c (aopOp): fixed bug #667458
2008 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
2009 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
2010 (createIvalCharPtr): an ival doesn't always have a storage class anymore
2012 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
2014 * src/mcs51/peeph.def: better assembler identation by Frieder
2015 * src/mcs51/gen.c: better assembler identation by Frieder
2017 2003-01-22 Bernhard Held <bernhard@bernhardheld.de>
2019 * as/z80/string.h: removed for gcc 3.2
2020 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
2021 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
2023 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
2025 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
2026 * src/SDCCpeeph.c (replaceRule): fix bug #663503
2027 * support/regression/Makefile: separate temp files for ports
2028 * support/regression/generate-cases.py: separate temp files for ports
2029 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
2030 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
2032 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
2034 * moved tinitalk to device/examples/ds390
2036 2003-01-14 Bernhard Held <bernhard@bernhardheld.de>
2038 * as/mcs51/lkmem.c: rflag is for DS390
2039 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
2040 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
2041 (linkEdit): move mem- and map-files the same way as ihx-files
2042 * src/z80/main.c (_setDefaultOptions): removed --generic
2043 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
2044 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
2045 * src/pic/glue.c (picglue): --c1mode works again
2046 * src/pic16/glue.c (pic16glue): --c1mode works again
2047 * src/asm.c (printCLine): fix #660034
2049 2003-01-13 Bernhard Held <bernhard@bernhardheld.de>
2051 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>, 1 by Frieder
2052 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
2053 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
2054 * as/mcs51/lkmem (summary): better fix for sp problem
2055 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
2056 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
2057 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
2058 remove --stack-after-data
2060 2003-01-12 Bernhard Held <bernhard@bernhardheld.de>
2062 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
2063 * src/SDCCutil.c (join): ugly bug: missing '\0'
2064 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
2066 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
2068 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
2070 * src/pic/main.c (_asmCmd): gpasm supports -o
2071 * src/z80/main.c: more general macros
2072 * device/lib/Makefile.in: remove intermediate files
2074 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
2076 * .version: Bumped version number to 2.3.3
2077 * src/SDCCBBlock.c: new option -o
2078 * src/SDCCglobl.h: new option -o
2079 * src/SDCCglue.c: new option -o
2080 * src/SDCCmain.c: new option -o
2081 * src/asm.c: new option -o
2082 * src/ds390/main.c: new option -o
2083 * src/pic/glue.c: new option -o
2084 * src/pic/pcode.c: new option -o
2085 * src/pic/ralloc.c: new option -o
2086 * src/pic16/glue.c: new option -o
2087 * src/pic16/pcode.c: new option -o
2088 * src/pic16/ralloc.c: new option -o
2089 * src/z80/main.c: new option -o
2090 * device/lib/Makefile.in: use -o
2091 * support/regression/ports/ds390/spec.mk: use -o
2092 * support/regression/ports/gbz80/spec.mk: use -o
2093 * support/regression/ports/mcs51/spec.mk: use -o
2094 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
2095 * support/regression/ports/z80/spec.mk: use -o
2096 * support/regression/ports/ucz80/spec.mk: use -o
2097 * support/regression/ports/xa51/spec.mk: use -o
2098 * support/regression/fwk/lib/timeout.c: fix usage string
2100 2003-01-09 Bernhard Held <bernhard@bernhardheld.de>
2101 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
2103 2003-01-07 <johan@balder>
2105 * src/SDCCast.c (decorateType): fixed bug #600035
2107 2003-01-07 Bernhard Held <bernhard@bernhardheld.de>
2108 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
2109 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
2110 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
2111 * src/pic/pcode.c: outcommented unused variable to remove warnings
2112 * src/pic/ralloc.c: outcommented unused variable to remove warnings
2114 2003-01-06 <karl@turbobit.com>
2115 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
2118 2003-01-06 <johan@balder>
2120 * src/SDCCicode.c: fixed array add
2122 2002-01-05 Bernhard Held <bernhard@bernhardheld.de>
2123 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
2124 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
2126 2003-01-04 <johan@balder>
2128 * src/SDCCval.c (getNelements): fixed the initialized array of structures
2130 2002-12-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2131 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
2133 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
2134 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann@web.de>
2135 * support/regression/tests/bug-524697.c: fit mem usage into 8032
2137 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
2138 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
2140 2002-12-27 Bernhard Held <bernhard@bernhardheld.de>
2141 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
2143 2002-12-26 Bernhard Held <bernhard@bernhardheld.de>
2144 * src/mcs51/main.c: removed {bindir}{sep} from aslink
2146 2002-12-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2148 * in \sdcc\as\mcs51\ changed these files in order to create an
2149 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
2150 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
2151 following files to include the previous two files: aslink.dsp,
2152 Makefile.aslink, Makefile.bcc, and Makefile.in.
2154 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
2155 .adb instead of .cdb
2157 2002-11-09 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2159 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
2160 value from option --iram-size.
2162 2002-09-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2164 * \sdcc\as\mcs51\lklist.c: added boundary check before using
2167 2002-09-18 <wiml@hhhh.org>
2169 * SDCClrange.h: exposed setFromRange() and setToRange()
2170 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
2171 packRegsForAccUse() (bug 542397)
2172 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
2173 multiple times and emitting the fetch operations more than once
2174 added aopGetUsesAcc() function to allow binary operators to
2175 fetch their operands in the correct order; made genMinus() emit
2176 compact code for X = LITERAL - Y
2178 2002-09-00 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2179 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
2180 sprintf() in line 1267.
2182 2002-09-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2183 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
2186 2002-09-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2187 Changes to aslink (All the changes are marked with 'JCF'):
2189 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
2192 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
2193 area BSEG. Also moves, if possible, the DATA area down into the internal
2194 ram so more space is available.
2196 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
2199 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
2200 not bytes. Function summary() which creates a memory usage summary
2201 file with extension .mem. Reports of overlaping stack and small stack
2202 size. If the space for the stack is less than 16 bytes aslink trows a
2205 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
2206 the 8051. Option 'y' for memory summary output file.
2208 Changes to sdcc (All the changes are marked with 'JCF'):
2210 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
2212 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
2213 overlaying area for it (uses RegBankUsed[4]).
2215 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
2216 bank zero as used by default. By default aslink locates the stack
2217 (equivalent to --stack-after-data). Pass option 'y' to aslink for
2218 the creation of the .mem file. Delegates the allocation of data area
2219 to aslink (it is not longer 0x30 by default). If --stack-loc passes
2220 the begining of the stack area to aslink.
2222 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
2223 glue() in SDCCglue.c creates an area for it.
2225 2002-09-03 Borut Razem <borut.razem@siol.net>
2226 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
2227 sdcc/src/pic/glue.c:
2228 introduced atexit() handler for teporay files removal in case of
2229 errors, assertions, ...
2231 2002-08-29 Borut Razem <borut.razem@siol.net>
2232 * sdcc/support/cpp2/auto-host_vc_in.h:
2233 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
2234 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
2235 Maybe there is a similar problem with BORLANDC? It should be checked!
2237 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
2238 corrected improper use of assert: the assignment to clr variable was done inside the assert.
2239 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
2240 was not executed, and the compiler (cl) launched a warning:
2241 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
2243 2002-08-28 Bernhard Held <bernhard@bernhardheld.de>
2244 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
2246 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
2247 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
2249 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
2250 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
2251 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
2252 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
2253 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
2254 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
2255 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
2256 - added Release configuration in VS projects
2257 - review of compiler an linker options
2258 - VC .exe files are generated in bin_vc directory, not to interfere
2259 with binaries generated from other projects (cygwin, mingw, bcc ...)
2261 * sdcc/src/yacc.dsp: added
2263 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
2264 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
2265 and insert the version number definitions from .version
2267 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
2269 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
2270 added - genarate auto-host.h using auto-host_vc_in.h as template
2273 removed from CVS, generated automatically
2275 2002-08-25 Bernhard Held <bernhard@bernhardheld.de>
2276 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
2278 2002-08-11 Borut Razem <borut.razem@siol.net>
2279 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
2281 2002-08-10 Borut Razem <borut.razem@siol.net>
2282 * src/SDCCmain.c (main):
2283 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
2284 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
2285 The consequence was that some temporary files were not removed.
2288 unification of code in functions tempfilename() and tempfile():
2289 function tempnam() is defined in Visual Studio 6.0 and .NET
2291 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
2293 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
2294 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
2295 - removed compiler command line option /WX: Treats all warnings as errors
2296 - update a list of source files, included into the project
2298 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
2299 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
2300 changed project type to Generic Project so that can be correcly converted to VS.NET project
2302 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
2304 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
2306 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
2308 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
2309 added return 0 statements after assert() to make compiler happy
2311 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
2312 added newline in the def file to keep MSC compiler satisfied
2314 * sdcc/src/z80/gen.c:
2315 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
2316 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
2317 - solved MSC error in function aopDump()
2319 * sdcc_vc.h: define PREFIX as "\\sdcc"
2321 2002-07-18 Bernhard Held <bernhard@bernhardheld.de>
2322 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
2324 2002-06-22 Scott Dattalo <scott@dattalo.com>
2325 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
2326 - Rewrote the register banking algorithm.
2327 - Added pCode live-range analysis to registers (for now, only non-used and
2328 singly-used registers optimized away)
2330 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
2332 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba@cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
2334 2002-05-10 Scott Dattalo <scott@dattalo.com>
2335 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
2337 2002-04-22 Michael Hope <michaelh@vroom>
2339 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
2341 * configure.in (DD_COPT): Added include support required for gbdk.
2343 * .version: Bumped version number just to increase it.
2345 * src/SDCCmain.c: Added -nostdinc to the default options.
2347 2002-04-15 Michael Hope <michaelh@vroom>
2349 * device/lib/z80/printf.c (sprintf): Added.
2351 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
2353 * src/z80/peeph.def: Added transpose redundent load rule.
2355 * src/z80/main.c: Added force callee saves for jaune.
2357 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
2359 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
2361 2002-03-28 Johan Knol <johan@balder>
2363 * src/SDCCval.c: fixed bug #532436
2365 2002-03-14 Scott Dattalo <scott@dattalo.com>
2367 Added "char *Processor" field to the port structure.
2370 Added -p option. Allows port dependent processor to be specified.
2373 Initialized the new field char *Processor field to NULL in all ports
2376 Compiler generated registers for interrupt context saving
2377 were not getting allocated.
2379 2002-03-16 Sandeep Dutta <sandeep@ddi.com>
2382 Fixed left shift. Will promote the left side of a left shift
2383 if a) left shifting more than size of operand or b) when assigned
2384 to something size > size of left side
2386 2002-03-14 Scott Dattalo <scott@dattalo.com>
2388 tons of changes. Register allocation has been
2389 rewritten. Added customization for the various PICs. Flow
2390 analysis is restructured. ...
2396 Added. device.c is a PIC port hack to accomodate variations
2399 2002-03-13 Michael Hope <michaelh@vroom>
2401 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
2403 2002-03-04 johanknol <johanknol@manik>
2405 * /src/SDCCval.c: fixed
2407 const unsigned char arr[][2] = { { 0, 1 } };
2408 t18.c:1: error: Initializer element is not constant
2410 2002-03-04 bela <bela@manik>
2412 * /device/include/mcs51reg.h:
2413 ds89c420 register definition update
2415 2002-03-03 <johan@FRIJA>
2417 * support/Util/SDCCerr.c: did something, but don't no why anymore
2419 * support/regression/tests/bug-524691.c: made it a little less shy
2421 * src/SDCCast.c (decorateType): fixed bug #524697
2423 * src/SDCCast.c: made some lineno improvements
2425 * src/SDCCval.c (getNelements): changed warning to error
2427 * src/SDCCglue.c (printIvalArray): changed warning to error
2429 * src/SDCCicode.c: fixed a warning for mingw
2431 * src/SDCCast.c (decorateType): fixed the << promotion for ops
2433 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
2435 2002-03-02 Sandeep Dutta <sandeep@ddi.com>
2437 * src/ds390/peeph.def:
2438 Added some more peephole rules
2440 * src/ds390/gen.c: Various fixes & enhancements
2442 * src/SDCClrange.c, src/SDCClrange.h:
2443 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
2445 * src/ds390/ralloc.c:
2446 various fixes & enhancements (ds390) specific
2448 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
2449 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
2452 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
2454 2002-03-02 <johan@FRIJA>
2456 * src/SDCCast.c (decorateType): fixed bug #524708
2458 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
2460 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
2462 2002-03-01 Michael Hope <michaelh@vroom>
2464 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
2466 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
2468 2002-03-01 <johan@FRIJA>
2470 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
2472 * src/SDCCast.c (decorateType): fixed bug #524209
2474 * src/SDCCval.c (valNot): fixed bug #524195
2476 2002-02-26 <johan@balder>
2478 * src/xa51/gen.c: fixed a warning
2480 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
2482 * src/SDCCast.c (decorateType): fixed bug #522534
2484 2002-02-23 <johan@balder>
2486 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
2488 2002-02-22 <johan@balder>
2490 * src/SDCCast.c: fixed bug #514865
2492 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
2494 2002-02-21 Sandeep Dutta <sandeep@ddi.com>
2496 * sdcc/src/SDCCloop.c:
2497 Previous fix was not good. basic blocks that have "break" or "return" are
2498 not really partof a loop , but live ranges used in these blocks should
2499 be live thru the entire loop, so set partOfLoop but don't add them to
2502 2002-02-21 <johan@FRIJA>
2504 * src/SDCCcse.c: fixed bug #514308
2506 2002-02-20 Sandeep Dutta <sandeep@ddi.com>
2509 Fixed BUG #519583. If a conditional block ended in a return/break
2510 statement inside a loop, it was not being considered part of the loop.
2512 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
2514 2002-02-10 Karl Bongers <karl@turbobit.com>
2517 Fixed up SDCDB debugger somewhat. Updated debugger/README
2518 with lots of comments and notes.
2520 * device/examples/test2.c:
2521 Fix bug, "red" variable not being initialized(compiler complained).
2523 * device/examples/Makefile, examples/test3.c:
2524 Add Makefile in device/examples folder, compiles test3.c
2525 for use as a multiple module SDCDB test case.
2527 * sim/ucsim/cmd.src/cmdset.cc:
2528 Took out debug printfs in ucsim "next" command.
2531 Karl and Johan start ucsim XA support. Most dissassembly working,
2532 about 75% emulation done(plenty of work remaining).
2534 * sim/ucsim/z80.src:
2535 Add Z80 support to ucsim, add test-ucz80 regression test,
2536 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
2537 Notice z80 compiler fails on examples/test3.c/crc code.
2539 2002-01-30 Sandeep Dutta <sandeep@ddi.com>
2541 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
2542 Added support for --parms-in-bank1
2544 * src/ds390/peeph.def:
2545 added a few more peephole optimzations
2548 1) added __builtin_inp & __builtin_outp used to read in data of given length
2549 from a memory mapped port
2550 2) added __builtin_memcmp
2551 3) added __builtin_swapw swap bytes of a short
2553 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
2554 1) handle multiple send & receives from register bank1
2555 2) ralloc can now allocate DPTR1 to some liveRanges
2557 * src/SDCCsymt.c, src/SDCCsymt.h:
2558 changes to handle multiple sends & receives
2561 added some pointer arithmetic optimization
2564 added some pointer arithmetic optimizations but not stable yet so not
2565 called from anywhere (will get this working shortly)
2567 * src/SDCCopt.c: fixed for multiple sends & receives
2570 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
2571 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
2572 set preprocessor defines (depending on options)
2574 * src/SDCCicode.c, src/SDCCicode.h:
2575 changes made to handle multiple sends & receives
2578 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
2580 * src/SDCCcse.c, src/SDCCcse.h:
2581 added function findbackward def (to be used in upcoming optimization)
2583 * src/SDCCcflow.c, src/SDCCcflow.h:
2584 added function returnAtEnd - to determine if a basic block terminates with
2587 * src/SDCCast.c, src/SDCCast.h:
2588 added option parms-in-bank1
2590 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
2591 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
2592 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
2593 adjusted for --parms-in-bank1 option
2595 * device/include/string.h:
2596 donot redefine "reentrant" keyword
2598 * device/include/ds80c390.h: Added some more SFRs
2600 2002-01-28 Bernhard Held <bernhard@bernhardheld.de>
2602 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
2604 2002-01-26 Bernhard Held <bernhard@bernhardheld.de>
2606 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
2608 2002-01-22 Bernhard Held <bernhard@bernhardheld.de>
2610 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
2612 2002-01-18 Paul Stoffregen <paul@pjrc.com>
2614 * Added --xram-movc option
2616 2002-01-13 Bernhard Held <bernhard@bernhardheld.de>
2618 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
2620 2002-01-11 Johan Knol
2622 * Added math lib of Jesus Calvino-Fraga
2624 2002-01-08 Bernhard Held <bernhard@bernhardheld.de>
2626 * src/SDCCmain.c (processFile): fix processing of ../../src.c
2627 * support/regression/Makefile: new target test-mcs51-stack-auto
2628 * support/regression/ports/mcs51-stack-auto/spec.mk: added
2630 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
2632 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
2634 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
2636 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
2638 2002-01-03 Bernhard Held <bernhard@bernhardheld.de>
2640 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
2642 * src/SDCCglue.h: add definition for printIvalChar()
2644 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
2646 * src/SDCCast.c: fix #498138 by Johan
2648 * src/SDCCglue.c: fix #498138 by Johan
2650 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
2652 * support/regression/Makefile: fix clean
2654 * support/regression/ports/ds390/support.c: fix transmission of last character
2656 2001-12-29 Sandeep Dutta <sandeep@ddi.com>
2658 * /sdcc/src/ds390/gen.c:
2659 a) improved computing address of stack variable
2660 b) took out some #if 0 code
2661 c) improved parmBytes adjustment
2662 d) improved genPlusIncr & genMinusIncr
2663 e) genCmp could generate bad code (when left assigned to DPTR)
2664 f) Fixed bug in hasInc
2666 * /sdcc/src/ds390/ralloc.c:
2667 a) packRegsForSupport could mess up live information (Fixed)
2668 b) packRegsDPTRuse could be incorrect for left & right shift
2670 * /sdcc/src/mcs51/ralloc.c:
2671 packRegsForSupport could mess up the live information (Fixed)
2673 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
2675 * /sdcc/src/SDCCast.c:
2676 can reverse a loop even if function call is present as long
2677 as the loop control variable is local & is not passed as parameter
2679 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2681 * /sdcc/ChangeLog: *** empty log message ***
2683 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
2684 More builtin function additions for TININative
2686 * /sdcc/src/ds390/ralloc.c:
2687 Had broken the regression testsuite
2689 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
2691 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
2692 Added funcattr hasStackParms will be set for reentrant functions when there
2693 are paramteres on the stack, this helps in minimizing frame pointer generation
2694 typeFromStr can handle function pointers now
2696 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
2697 *** empty log message ***
2699 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2701 * /src/ds390/gen.c, /src/ds390/main.c:
2702 More builtin function additions for TININative
2704 * /src/ds390/ralloc.c:
2705 Had broken the regression testsuite
2707 * /src/SDCCast.c: Fixed a bug in dumptree
2709 * /src/SDCCsymt.c, /src/SDCCsymt.h:
2710 Added funcattr hasStackParms will be set for reentrant functions when there
2711 are paramteres on the stack, this helps in minimizing frame pointer generation
2712 typeFromStr can handle function pointers now
2714 * /doc/builtins.txt, /doc/TININative.txt:
2715 *** empty log message ***
2718 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
2720 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
2721 ALPHA version for -mTININative
2723 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
2724 updated to reflect changes in the port structure
2727 added function do_assemble (similar to do_link) if non-null this function
2728 will be called to do assembly (-mTININative) requires a multi command
2730 added function genAssemblerEnd will be called to generate assembler Epilogue
2733 added _JavaNative to debug info printing
2735 * /src/SDCCmain.c: added option --tini-libid
2736 added port->do_assemble function (-mTININative) has a multi command assemble
2738 * /src/SDCCglue.c: Disabled "constExpr" check
2739 added port->genAssemblerEnd function
2741 * /src/SDCCglobl.h: Added option --tini-libid value
2744 tookout optimizeCompare from the header (has no external references)
2746 * /src/SDCCast.c: made one more function "static"
2748 2001-12-23 Michael Hope <michaelh@juju.net.nz>
2750 * src/z80/mappings.i: Added z80asm support.
2752 * src/z80/main.c: Added z80asm support on --asm=z80asm
2754 * src/z80/gen.c: Fixed asm portability issues.
2756 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
2758 * src/SDCCglue.c (printExterns): Added global/extern split.
2760 2001-12-17 Bernhard Held <bernhard@bernhardheld.de>
2762 * support/regression/Makefile: added test for mcs51 model large
2764 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
2766 * support/regression/ports/gbz80/spec.mk: added -mgbz80
2768 2001-12-05 Michael Hope <michaelh@juju.net.nz>
2770 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
2772 1904-01-06 Michael Hope <michaelh@juju.net.nz>
2774 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
2776 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
2778 2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
2780 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
2782 * support/regression/tests/simplefloat.c: Port to mcs51.
2784 2001-11-25 Michael Hope <michaelh@juju.net.nz>
2785 * support/regression/tests/bug-485362.c: Added.
2787 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
2789 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
2791 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
2793 * src/z80/gen.c (aopDump): Added a dump function.
2795 2001-11-25 Bernhard Held <bernhard@bernhardheld.de>
2796 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
2798 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
2800 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
2802 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
2804 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
2806 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
2808 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
2810 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
2812 * support/regression/ports/ds390/support.c: Use tinibios.
2814 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
2816 2001-11-23 Michael Hope <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
2818 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
2819 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
2821 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
2823 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
2825 2001-11-18 Michael Hope <michaelh@juju.net.nz>
2827 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
2829 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
2830 (packRegsForIYUse): Created and optimised.
2832 2001-11-07 Michael Hope <michaelh@juju.net.nz>
2834 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
2835 2001-11-18 Bernhard Held <bernhard@bernhardheld.de>
2837 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
2839 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
2841 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
2843 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2845 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
2847 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
2849 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2851 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
2853 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
2855 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
2857 2001-11-07 Michael Hope <michaelh@juju.net.nz>
2859 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
2860 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
2861 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
2863 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
2865 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
2866 (genNotFloat): Added.
2867 (genUminusFloat): Added.
2869 * device/lib/z80/Makefile: Added floating pt stubs.
2871 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
2873 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
2875 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
2877 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
2879 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
2881 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
2883 * sdcc/support/regression/Makefile: Add port ds390.
2885 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
2887 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
2889 * sdcc/support/regression/ports/ds390/spec.mk: Added.
2891 * sdcc/support/regression/ports/ds390/support.c: Added.
2893 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
2895 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
2897 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
2899 2001-11-04 Michael Hope <michaelh@juju.net.nz>
2901 * device/include/malloc.h: Added z80 and gbz80 support.
2903 * device/lib/gbz80/heap.s: Added.
2905 * device/lib/z80/heap.s: Added.
2907 * device/lib/malloc.c: Added z80 and gbz80 support.
2909 * support/regression/tests/malloc.c (testMalloc): Added.
2911 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
2913 * support/regression/tests/bug-478094.c: Added.
2915 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
2917 2001-11-04 Bernhard Held <bernhard@bernhardheld.de>
2919 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
2921 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
2923 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
2925 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
2927 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
2929 2001-11-04 Michael Hope <michaelh@juju.net.nz>
2931 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
2933 2001-11-03 Michael Hope <michaelh@juju.net.nz>
2935 * support/regression/tests/bug-477927.c: Added.
2937 * src/z80/peeph.def: Added minor rules.
2939 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
2941 * src/z80/peeph.def: Added jump optimisation modification.
2943 2001-11-01 Michael Hope <michaelh@juju.net.nz>
2945 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
2947 2001-10-30 Michael Hope <michaelh@juju.net.nz>
2949 * support/regression/tests/funptrs.c: Added.
2951 2001-10-29 Michael Hope <michaelh@juju.net.nz>
2953 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
2955 2001-10-28 Michael Hope <michaelh@juju.net.nz>
2957 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
2959 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
2961 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
2962 (movLeft2ResultLong): Created.
2964 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
2965 (joinPushes): Added. Joins two char pushes into a word push.
2967 2001-10-27 Michael Hope <michaelh@juju.net.nz>
2969 * support/cpp2/Makefile.in (install): Added creation of dest dir.
2971 * support/makebin/Makefile (install): Added creation of dest dir.
2973 2001-10-24 Karl Bongers <karl@turbobit.com>
2975 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
2977 2001-10-21 Michael Hope <michaelh@juju.net.nz>
2979 * src/z80/ralloc.c: Turned off faulty pack for one use.
2981 * src/z80/peeph-gbz80.def: Removed redundent restart options.
2983 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
2985 2001-10-21 Bernhard Held <bernhard@bernhardheld.de>
2987 * support/regression/Makefile: Improved clean
2989 * support/regression/ports/gbz80/spec.mk: Added clean
2991 * support/regression/ports/host/spec.mk: Added clean
2993 * support/regression/ports/z80/spec.mk: Added clean
2995 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
2997 * support/regression/ports/mcs51/timeout.c: little improvements
2999 2001-10-17 Michael Hope <michaelh@juju.net.nz>
3001 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
3003 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
3005 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
3007 2001-10-16 Bernhard Held <bernhard@bernhardheld.de>
3009 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
3011 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
3013 2001-10-13 Michael Hope <michaelh@juju.net.nz>
3014 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
3016 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
3018 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
3020 * src/mcs51/main.c (_linkCmd): Added bin path to command.
3022 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
3024 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
3026 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
3028 * support/regression/tests/longor.c: Added.
3030 2001-10-11 Bernhard Held <bernhard@bernhardheld.de>
3032 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
3034 * as/mcs51/aslink.h: define PATH_MAX
3036 * as/mcs51/asm.h: define PATH_MAX
3038 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
3040 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
3042 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
3044 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
3046 * src/SDCCglobl.h: define PATH_MAX
3048 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
3050 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
3052 2001-10-11 Michael Hope <michaelh@juju.net.nz>
3054 * src/z80/gen.c (gencjneshort): Fixed
3056 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
3058 2001-10-09 Michael Hope <michaelh@juju.net.nz>
3060 * support/regression/tests/bug-469671.c: Added.
3062 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
3064 2001-10-08 Michael Hope <michaelh@juju.net.nz>
3066 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
3068 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
3070 2001-10-08 Bernhar Held <bernhard@bernhardheld.de>
3072 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
3074 * src/device/lib/_mulint.c : removed hint: nooverlay bug
3076 * src/device/lib/_mullong.c : removed hint: nooverlay bug
3078 * src/device/lib/_divuint.c : removed hint: nooverlay bug
3080 * src/device/lib/_divulong.c: removed hint: nooverlay bug
3082 * src/device/lib/_moduint.c : removed hint: nooverlay bug
3084 * src/device/lib/_modulong.c: removed hint: nooverlay bug
3086 2001-10-07 Michael Hope <michaelh@juju.net.nz>
3088 * src/z80/gen.c (setupPair): Added 'extended stack' support for the z80. Can now have local variables or parameters of more than 127 bytes in size. Increadibly slow, but it will work. Currently anything involving the carry flag.
3090 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
3092 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
3094 2001-10-07 <johan@FRIJA>
3096 * device/lib/gets.c (gets): fixed the return value.
3098 2001-10-06 Michael Hope <michaelh@juju.net.nz>
3099 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
3101 * src/SDCCpeeph.c (peepHole): Fixed all leaks. Added trace support for freeing lines. Optimised restart logic to re-run instead of restart. Now compiles dscan.c on ~60MB instead of ~200MB.
3103 * support/Util/NewAlloc.c: Added ability to use libgc instead of malloc. Added Safe_free and Safe_strdup. Added trace support where you can log allocations and free all at once.
3105 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
3107 * src/pic/gen.c: Removed Safe_strdup.
3109 * configure.in: Added option to enable libgc support.
3111 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
3112 (bitVectUnion): Optimised.
3113 (bitVectIntersect): Optimised.
3114 (bitVectBitsInCommon): Optimised.
3115 (bitVectCplAnd): Optimised.
3117 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
3119 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
3121 * src/SDCCmain.c: distinguish between assembler debug and plain options
3123 * src/avr/main.c: remove standard assembler options
3125 * src/ds390/main.c: remove standard assembler options
3127 * src/mcs51/main.c: remove standard assembler options
3129 * src/port.h: removed "PENDING" comment
3131 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
3133 * src/device/lib/_mulint.c : new, with assember functions
3135 * src/device/lib/_mullong.c : new, with assember functions
3137 * src/device/lib/_divuint.c : with assember functions
3139 * src/device/lib/_divsint.c : with assember functions
3141 * src/device/lib/_divulong.c: with assember functions
3143 * src/device/lib/_divslong.c: with assember functions
3145 * src/device/lib/_moduint.c : with assember functions
3147 * src/device/lib/_modsint.c : with assember functions
3149 * src/device/lib/_modulong.c: with assember functions
3151 * src/device/lib/_modslong.c: with assember functions
3153 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
3155 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
3157 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
3158 replaced _mululong.c and _mulslong.c by _mullong.c
3160 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
3162 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
3164 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
3166 * src/SDCCglue.c: test, if win32api is available for MINGW
3168 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
3170 * src/SDCCsymt.c: no more _modifier in printTypeChain()
3171 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
3172 * support/regression/ports/gbz80/spec.mk: removed GENERIC
3173 * support/regression/ports/host/spec.mk: removed GENERIC
3174 * support/regression/ports/mcs51/spec.mk: removed GENERIC
3175 * support/regression/ports/z80/spec.mk: removed GENERIC
3177 2001-10-01 Michael Hope <michaelh@juju.net.nz>
3179 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
3181 * support/regression/tests/bug-467035.c: Created.
3183 2001-10-01 <johan@FRIJA>
3185 * src/SDCC.y: fixed bug #466586 part 1
3187 2001-10-01 Johan Knol <johan.knol@iduna.nl>
3189 * SDCCicode.c: z80 has no generic pointers
3190 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
3192 2001-09-30 Michael Hope <michaelh@juju.net.nz>
3194 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
3196 2001-09-29 Michael Hope <michaelh@juju.net.nz>
3198 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
3200 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
3202 2001-09-25 Michael Hope <michaelh@juju.net.nz>
3204 * configure.in: Fixed up so that ucsim is only configured once.
3206 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
3208 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
3209 (getPathDifference): As above.
3211 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
3213 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
3215 2001-09-23 Michael Hope <michaelh@juju.net.nz>
3216 * .version: Updated to 2.3.1
3218 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
3219 Added copyright header.
3221 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
3222 (assemble): Added support for macro based assembler commands.
3223 (linkEdit): Added support for macro based linker commands.
3224 (preProcess): Changed the pre-processor to use macros.
3225 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
3226 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
3228 * device/lib/z80/crt0.s: Added module name for debugging.
3230 2001-09-20 Michael Hope <michaelh@juju.net.nz>
3232 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
3234 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
3236 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
3238 * src/Makefile.in: Added SDCCmacro and SDCCutil
3240 2001-09-19 Michael Hope <michaelh@juju.net.nz>
3242 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
3244 2001-09-16 <johan@FRIJA>
3246 * support/Util/SDCCerr.c: fixed up the error/warning/info database. I only changed the E_ W_ I_ prefix to what SDCCerr.c says it is.
3248 2001-09-15 <johan@FRIJA>
3250 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
3251 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
3253 2001-09-11 <johan@FRIJA>
3255 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
3257 2001-09-10 Michael Hope <michaelh@juju.net.nz>
3259 * support/regression/tests/bug-460444.c: Added test case.
3261 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
3262 (genCast): Added justification for all of the asserts.
3264 2001-09-10 Bernhard Held <bernhard@bernhardheld.de>
3266 * support/regression/support.c: _xdata replaced by xdata
3268 * support/regression/spec.mk: removed _generic
3270 2001-09-09 Michael Hope <michaelh@juju.net.nz>
3272 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
3274 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
3275 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
3277 * src/z80/peeph.def: Added a rule to optimise shift then compare.
3279 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
3281 * support/regression/tests/bug-460010.c: Added test case.
3283 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
3285 2001-09-09 Bernhard Held <bernhard@bernhardheld.de>
3287 * support/regression/Makefile: inter-port-clean adjusted for mcs51
3289 * support/regression/testfwk.c: removed workaround for bug #436344
3291 * support/regression/tests/bp.c: use less memory with mcs51
3293 * support/regression/tests/bug-441448.c: use less memory
3295 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
3297 * support/regression/collate-results.py: typo
3299 2001-09-08 Michael Hope <michaelh@juju.net.nz>
3301 * support/regression/tests/fetchoverlap.c: Added new test case.
3303 * support/regression/tests/bp.c: Added new test case.
3305 * support/regression/tests/bug-448984.c: Added new test case.
3307 * support/regression/tests/pow2shifts.c: Added new test case.
3309 * src/z80/gen.c: Turned off the noise it normally generates for the release.
3310 (genlshTwo): Fixed right shift for count > 8.
3312 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
3314 2001-09-08 <johan@FRIJA>
3316 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
3318 2001-09-07 <johan@FRIJA>
3320 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
3322 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
3324 2001-09-06 <johan@FRIJA>
3326 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
3327 * bernhard noted me at this: "() equals to (void)" (1.38)
3329 2001-09-05 <johan@FRIJA>
3331 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
3333 2001-09-04 <johan@FRIJA>
3335 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
3338 2001-09-04 Paul Stoffregen <paul@pjrc.com>
3340 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
3342 2001-09-03 Michael Hope <michaelh@juju.net.nz>
3344 * link/z80/aslink.h: Fixed path for PATH_MAX
3346 2001-09-02 Michael Hope <michaelh@juju.net.nz>
3348 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
3350 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
3352 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
3354 * src/z80/gen.c (genUminus): Fixed add, sub, and uminus on the gbz80 port for longs. Had to shift some functions about to do it.
3356 2001-09-01 Michael Hope <michaelh@juju.net.nz>
3358 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
3359 (genCmp): Fixed up genCmp for the GB with longs.
3361 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
3363 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
3365 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
3367 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
3369 2001-08-30 Paul Stoffregen <paul@pjrc.com>
3371 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
3373 2001-08-30 Michael Hope <michaelh@juju.net.nz>
3375 * device/lib/gbz80/crt0.s (init): Fixed up support for the gbz80 such that it will at least run (and fail badly) the regression tests.
3377 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
3379 2001-08-29 Michael Hope <michaelh@juju.net.nz>
3381 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
3383 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
3385 2001-08-30 Bernhard Held <bernhard@bernhardheld.de>
3387 * sim/ucsim/configure: little improvement of Cygwin-detection
3388 * sim/ucsim/configure.in: little improvement of Cygwin-detection
3389 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
3390 * support/regression/tests/bug-221100.c: small changes for mcs51
3391 * support/regression/tests/bug-221168.c: small changes for mcs51
3392 * support/regression/tests/bug-227710.c: small changes for mcs51
3393 * support/regression/tests/staticinit.c: small changes for mcs51
3394 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
3395 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
3396 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601