1 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
3 * ralloc.h: missing declarations from previous patch,
4 seems that patch for ralloc.h was never applied, fixed
6 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12 indirect addressing. Marked FSR0 as deprecated
13 * gen.c (pointerCode): commented out, not needed now
14 (pic16_popGet2p): new MOVFF helper function
16 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
17 (shiftRLong): removed duplicate debugging info
19 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
21 * src/ds390/gen.c (genNearPointerGet),
22 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
23 optimization with bits, but not bitfields.
24 * src/ds390/ralloc.c (packRegisters),
25 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
27 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
29 * src/SDCCcse.c (algebraicOpts): copy operands before modification
31 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
34 * src/SDCCicode.c (operandFromSymbol),
35 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
36 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
37 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
38 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
39 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
40 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
42 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
43 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
44 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
45 * src/SDCCsymt.c (newSymbol),
46 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
49 * src/SDCCval.c (newiList): fixed bug #885705
51 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
53 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
54 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
56 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
58 * device/include/c8051f120.h,
59 * device/include/c8051f300.h,
60 * device/include/c8051f310.h: added/updated header files for Silicon
61 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
62 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
63 in new section Submitting patches
65 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
67 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
68 genFarPointerGet, genCodePointerGet, genGenPointerGet,
69 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
71 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
72 genFarPointerGet, genCodePointerGet, genGenPointerGet,
73 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
75 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
76 genFarPointerGet, genCodePointerGet, genGenPointerGet,
77 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
79 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
80 genFarPointerGet, genCodePointerGet, genGenPointerGet,
81 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
82 genGenPointerSet): fixed bug #892400
83 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
84 to eliminate build warnings.
85 * src/SDCCast.c (processParms),
86 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
88 * support/valdiag/valdiag.py: added GCC to the list of defines active
89 when compiling with gcc
91 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
93 * support/Util/SDCCerr.h,
94 * support/Util/SDCCerr.c,
95 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
96 with an incomplete type (fixed bug #883734)
97 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
99 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
101 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
103 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
105 * src/SDCCast.c (decorateType),
106 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
107 function pointer implementation
108 * support/regression/tests/funptrs.c: added tests to verify both forms
109 of function pointers work correctly. Added tests to verify parameters
110 are passed in the correct order.
112 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
114 * device.c (regCompare): registers are sorted by ascending
115 address and increasing size,
116 * main.c (_pic16_finaliseOptions): removed the declaration
117 of compiler macro MCU. Now a macro of the format pic18fxxxx
118 will be defined from the command line
120 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
121 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
123 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
124 PCOP_RLCF was overwritten!
125 * gen.c (genSkip) commented out calls to pic16_emitcode,
126 * (genCmpEQ) fixed "long" compares, only high word did get compared,
128 * (genRRC) added debugging info,
129 * (shiftL2Left2Result) Fixed bug, if offr > offl. Result got
130 overwritten while shifting,
131 * (shiftR2Left2Result) Fixed bug, if offr < offl. Result got
132 overwritten while shifting,
135 * (shiftLLeftOrResult),
136 * (shiftRLeftOrResult),
138 * (shiftLLong) Implemented with pic16_emitpcode
139 * (genlshFour) Replaced pic16_aopPut with pic16_emitpcode,
140 * (genLeftShift) Fixed bug, operand for shift by variable always
141 was "and"ed with 0x0f,
142 * (genLeftShiftLiteral),
144 * (genRightShiftLiteral) added debugging info,
145 * (genrshFour) added comment,
146 * (genRightShift) determined signedness from operand "left"
149 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
151 * src/SDCCicode.c (geniCodeParms),
152 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
153 function pointers, fixed function pointer bugs #861242 and #861896
155 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
157 * device/include/c8051f000.h,
158 * device/include/c8051f120.h,
159 * device/include/c8051f300.h: added header files for Silicon
160 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
162 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
164 * src/SDCCast.c (processParams): added new type flow and restructured
165 (gatherAutoInit): added new type flow
166 (addCast): cosmetic changes
167 (getLeftResultType): added new type flow for array indices, patch
168 provided by Stas, see FR #877103
169 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
170 array index patch by Stas
171 * src/SDCCast.h: added prototype getResultTypeFromType()
173 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
174 * src/pic/glue.c (pic14emitStaticSeg),
175 * src/pic16/glue.c (pic16emitStaticSeg),
176 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
177 for initialization of symbols
178 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
179 * support/Util/SDCCerr.h:
180 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
181 * .version: bumped version number to 2.3.8
182 * device/include/Makefile.in (install),
183 * doc/Makefile (install): changed to 'rm `find ...`' construct to
186 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
188 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
189 Slade Rich fixed an optimization bug
190 * src/pic/pcodepeep.c,
191 * src/pic/pcoderegs.c
192 * doc/Makefile (install): added test for directory
194 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
196 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
197 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
198 * src/pic/ralloc.c (getRegPtr, getRegGpr),
199 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
200 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
201 * as/mcs51/asexpr.c (term),
202 * as/hc08/asexpr.c (term): fixed bug #887146
204 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
206 * src/z80/gen.c (genMult): handle single byte result product
207 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
208 DUMMY_READ_VOLATILE (fixed bug #886367)
210 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
212 * support/regression/tests/libmullong.c: fixed logic, on little endian
213 hosts we ended without a mullong_wrapper()
215 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
217 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
218 virus/worm forged address usage.
220 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
222 Fixed promotion, it should be done on AST level:
223 * src/SDCCast.c (addCast): added promotion to int
224 (decorateType): updated call to upCast()
225 * src/SDCCicode.c (geniCodeLeftShift): removed call to
226 usualUnaryConversions()
228 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
230 * support/regression/tests/literalop.c (mulWrapper): Added a
231 wrapper to remove integer overflow warnings.
233 * support/regression/tests/float_trans.c: Made work on host.
235 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
238 * support/regression/generate-cases.py (main): Changed from inline
241 * doc/Makefile (install): Changed to depth first to get rid of
242 missing directory install warning.
244 * as/Makefile (install-doc): Made work on Mac.
246 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
248 * src/SDCCast.c: added an additional type flow in decorateType() of
249 opposite direction, see feature request #860006; it's enabled at runtime
250 by setting the environment variable SDCC_NEWTYPEFLOW
251 * src/SDCCast.h: changed prototype of decorateType()
252 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
253 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
254 'char' to 'int' can be omitted, if both operands are 'unsigned char';
255 see feature request #877103
256 * src/SDCCval.c: updated call of decorateType()
257 (valBitwise): fixed bug #882876
258 (valMinus): added promotion
259 (valLogicAndOr): result is unsigned
260 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
261 * src/SDCCsymt.c (computeType),
262 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
263 must not cause an unsigned operation
264 * src/pic/glue (pic14emitRegularMap),
265 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
267 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
269 * src/pic/pcode.c (PCodeID): commented out left over debug code
271 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
273 * support/valdiag/tests/overflow.c: added shift tests
281 * src/pic/pcodepeep.c,
282 * src/pic/pcoderegs.c,
284 * src/pic/ralloc.h: applied patch from Slade Rich;
285 added support for multiple code pages and multiple RAM banks on the
286 PIC 14 port. The ASM files now no longer simply assume all the
287 code / RAM are in the same page / bank. This means the linker can
288 safely allocate code/RAM of separate ASM files to different pages/banks.
289 * doc/sdccman.lyx: added Slade's tips
290 * src/mcs51/peeph.def: fixed bug #880768
292 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
294 * src/hc08/ralloc.c (rematStr): fixed bug #879282
295 * src/SDCCast.c (decorateType): fixed bug #880197
297 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
299 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
302 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
303 strtof is not part of C89 and isn't included with Mac OS X.
305 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
307 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
308 shiftL2Left2Result): fixed bug #879326
309 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
310 (genMultOneByte): fixed bug in signed vs unsigned multiplication
311 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
312 address fetch for clr instruction
313 * device/lib/hc08/_mulint.c: created optimized assembly version
314 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
316 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
318 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
319 proposed in FR #877103
321 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
323 * src/SDCCval.c (cheapestVal): added missing checks
324 * src/SDCCicode.c (usualBinaryConversions): fixed condition
325 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
327 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
329 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
332 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
334 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
335 loaded with the linker search paths (-L arguments) and the libraries
336 to be linked with the current source (-l arguments). Changes
337 currently will affect only the pic16 port.
338 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
339 include path the port specific paths and port specific libraries,
340 * gplink command now contains the $3 argument,
341 * src/pic16/device.h,
342 * src/pic16/device.c,: structure PIC_device is made public and
343 renamed to PIC16_device, the same for variable Pics which is renamed
344 to Pics16. Updated all references to them.
345 * src/pic16/glue.c (pic16glue): corrected bug with code
346 initialization which bypassed the variable initializations block.
348 * device/lib/pic16/Makefile.rules: removed --penable-stack from
349 COMPILE_FLAGS and added the --nostdinc option
351 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
353 * device/include/mc68hc908jb8.h: Register defs for another member
354 of the hc08 family. Contributed by Bjorn Bringert - thanks!
356 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
358 Documenting changes from previous commits.
359 * configure.in (version 1.56),
360 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
361 when generating output files to configure the pic16 library,
362 but now I've commented it out, since gputils aren't installed in the
363 SF compile farm, so library won't compile
365 * device/lib/Makefile.in (version 1.56): initially I've added in
366 target 'all' the prerequestive 'model-pic16' so it compiled the
367 pic16 library, but now I've commented it out for the same reasons
369 * added targets 'model-pic16' and 'objects-pic16' to compile the
371 * added target 'port-specific-objects-pic16' to handle the
372 generated libraries and copy them into the build/ directory
373 * added target 'clean-intermediate-pic16' to clean intermediate
374 files into pic16 directory
375 * in target 'installdirs' added line to create directory pic16 in
376 the installation path
378 * device/include/Makefile.in (version 1.11): in target 'install'
379 added lines to copy all header files to installation path,
380 * in target 'installdirs' added line create directory for pic16
381 headers in the installation path
383 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
385 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
388 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
391 * device/lib/configure.in,
392 * device/lib/configure: fixed for autoconf 2.57
394 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
396 * src/z80/main.c (_parseOptions): fixed the portmode= command line
397 option so that it actually works. Made it specific to the z80, since
398 the gbz80 doesn't have these kinds of I/O ports.
400 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
402 * device/include/z180.h,
403 * device/lib/_memcpy.c,
404 * device/lib/_memmove.c,
405 * device/lib/_mulint.c,
406 * device/lib/ser_ir.c,
407 * device/lib/ser_ir_cts_rts.c,
408 * device/lib/_strcmp.c,
409 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
410 * src/z80/main.c (_process_pragma): add support for pragmas bank and
411 portmode; added deprecation warning for bank= and protmode= forms.
412 Also, guard against buffer overflow.
413 * src/z80/gen.c (aopGet): generate better code for sfr banked read
415 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
417 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
418 changed interrupt vector table generation to only emit declared vectors.
419 * device/include/Makefile.in: added missing backslash
420 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
422 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
424 Mainly changes to support compilation of the device libraries
425 * src/pic16/device.c: stack is allocated via symbol and not
426 via literal number. The symbol is placed in the corresponding
427 position of the data ram
428 * (pic16_dump_section): relocatable and absolute uninitialized
429 data are now emitted in sorted order to reduce section naming,
430 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
431 weren't marked as being in the access bank,
433 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
435 Added portion of GNU PIC Library under the directory
436 device/include/pic16 and device/lib/pic16. These files
437 contain the declarations of SFRs for the PIC18Fxx2 devices.
438 The directory is initialized via configure from toplevel.
440 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
442 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
443 the spilllocations to be compared correctly
445 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
447 * src/SDCCast.c (decorateType): fixed bug introduced today
449 2004-01-12 Borut Razem <borut.razem AT siol.net>
451 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
452 doc/sdccman.lyx: upper case pragmas are deprecated
454 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
456 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
457 in simpler and even better code
459 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
461 * src/SDCCicode.c (operandOperation): fixed bug #874819
462 * src/SDCCast.c (decorateType): fixed
463 char foo (unsigned long ul) { return ul > 0; }
465 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
467 * doc/sdccman.lyx: Moved and added some sections, small changes
468 all over. Telling LaTeX to be less strict with word spacing
469 to better keep the right margin. Changed some notes about
470 maintainance of the ports in section 3.2.1 - is it OK like this?
472 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
475 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
476 convilong): modified to inform the pic16 port that builtin functions
479 PIC16 PORT specific changes:
480 * src/pic16/device.c pic16_dump_equates() added,
481 processor registers declared internally by the port are emitted in
482 the translation as equates,
483 * src/pic16/gen.c: inline code is passed unprocessed to the
485 * (pic16_popGetLit2): fnuction modified to take second operand as
486 pCodeOp pointer and not as literal,
487 * (popRegFromIdx): prefixed with pic16_,
488 * (pic16_popCombine2): modified to receive already allocated pCode
490 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
491 * (genFunction): initializes local stack frame and pushes on stack
492 all the registers used by this function,
493 * (genEndFunction): restores all registers from stack and restores
495 * src/pic16/glue.c (pic16emitRegularMap): various changes and
497 * (pic16glue): changed the program startup sequence,
498 * added new dbName code 'A' for functions placed in absolute section
499 * src/pic16/main.c: added function attribute _naked,
500 * added pragma 'code' to place a fnuction at an absolute address,
501 * added command line arguments --debug-ralloc and --pcode-verbose,
502 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
503 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
504 * (pic16_newpCodeOpLit2): modified to take the second operand as
506 * (pic16_printpBlock): modified to emit each function in a separate
508 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
509 UPPER for immediate operands,
510 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
512 * src/pic16/peeph.def: all peepholes with movff are commented out,
513 because there is a problem in the pcode peep optimizer,
514 * src/pic16/ralloc.c: the register allocator can now reuse local
515 function symbols for another function. This saves register usage.
516 * src/pic16/ralloc.h: added flag isLocal in structure regs,
518 Added file src/pic16/NOTES with information about program writing on
519 the current port version.
521 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
523 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
524 and peephole 252 (array access)
526 2004-01-09 Borut Razem <borut.razem AT siol.net>
528 * src/SDCCmain.c : fixed #872250: -l command line defined library
529 files are scanned before standard library files
531 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
533 * src/SDCCast.c (decorateType): fixed bug #874046
535 2004-01-09 Borut Razem <borut.razem AT siol.net>
537 * support/scripts/sdcc.nsi: remove previous installation
539 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
541 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
542 bytes for last interrupt vector (mcs51)
543 * sdcc.spec: fixed typo
545 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
547 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
548 gen51Code): more efficient parameter receive for --model-large
551 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
554 * src/z80/main.c: added missed needLinkerScript flags (more than
555 one port structure defined in these file)
556 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
559 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
561 * src/SDCCmain.c: removed various references to DEFAULT_PORT
562 * src/port.h: added flag needLinkerScript in port->linker
563 structure to inform whether to create a .lnk file or not,
571 * src/z80/main.c: changed appropriately to configure
572 needLinkerScript flag
574 * src/pic16/gen.c (genAddrOf): fixed bug #863624
575 * src/pic/glue.c: added variable udata_section_name to
576 override default uninitialized data segment definition for
577 devices only with SHAREBANK memory (reported from Erik Epetrich)
578 * (pic14emitOverlay): modified to emit a commented overlay segment
579 directive when no overlay data exist
580 * (picglue): modified to emit uninitialized data segment
581 according to udata_section_name
582 * src/pic/main.c (_pic14_parseOptions): added command line
583 options --udata-section-name=[name] to override default
584 udata definition name
585 * modified _linkCmd and _asmCmd to include compiler passed
586 arguments via -W option
587 * src/pic16/main.c: added $l in _asmCmd, changed extension for
588 object file from '.rel' to '.o' in port->linker structure,
589 changed size of fptr from 2 to 3 in port structure
591 2004-01-07 Borut Razem <borut.razem AT siol.net>
593 * support/scripts/sdcc.nsi: update PATH
594 * support/scripts/sdcc.ico: craeted
596 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
598 * device/include/Makefile.in: fix install
599 * doc/Makefile: fix install
601 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
603 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
605 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
606 how the function variable allocation summary is displayed; also
607 include information about variables allocated to the overlay
610 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
612 * as/mcs51/lkmain.c: Help about -Y option
613 * as/mcs51/lkarea.c: Fixed gcc warnings
615 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
617 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
619 * support/valdiag/tests/overflow.c: added
620 * src/SDCCast.c (decorateType),
621 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
624 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
626 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
629 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
631 A python script to validate compiler diagnostic messages. It can be
632 used to verify that sdcc complains about bad c source code and
633 gives a good location of the error.
634 * support/valdiag/Makefile,
635 * support/valdiag/valdiag.py,
636 * support/valdiag/tests/*
638 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
640 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
641 * src/SDCCsymt.c (newEnumType),
643 * support/Util/SDCCerr.c,
644 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
646 * support/regression/tests/enum.c: added test for enum values that
647 require at least 2 bytes of storage.
649 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
651 * src/common.h: added ifndef/define/endif macros
652 around the header file.
653 Bug reported from Jesus Calvino-Fraga
655 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
658 * device/include/Makefile.in: don't install CVS directories
659 * device/lib/Makefile.in: added removal of CVS directories after install
660 * doc/Makefile: fixed install, added local_icons
661 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
662 * src/mcs51/gen.c (genRightShift): fixed bug #870788
663 * src/ds390/gen.c (genRightShift): fixed bug #870788
664 * src/SDCCast.c (decorateType): fixed bug #870781
666 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
668 PIC16 port related changes:
669 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
670 added variable stackPos,
672 * gen.c: genCall, assignResultValue: added support for
673 pushing/retrieving function parameters to/from stack,
674 genFunction,genEndFunction: setup stack frame for the
676 genAddrOf: will be changed according to bug 863624
678 * added files genutils.c and genutils.h which contain gen*
679 debugged and optimised functions extracted from gen.c
681 * glue.c: added variable 'externs' which holds extern symbols,
682 pic16emitRegularMap: is modified to properly handle relocatable
683 symbols under the new scheme,
684 pic16createInterruptVect: is modified
685 pic16printPublics: is modified to emit 'global' assembler directives,
686 added pic16_printExterns to print extern symbols,
687 pic16glue: initializes stack/frame pointer in the beginning of
688 the assembly output. Temporary hack, will be corrected later,
689 because gplink yet does not support stack and SDCC does not
690 yet support a type of crt0.o object to create the final binary.
692 * Removed many lines that contain 8051 legacy code.
693 * The code is finally placed under a 'code' directive.
694 * Added port specific options.
696 * _process_pragma: simplified since now we do not need *special*
697 include file to define SFR registers. But a separate header
698 will be needed. This will be developed later.
699 * _pic16_parseOptions: added, parses port specific options:
700 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
701 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
702 --preplace-udata-with=
704 * _pic16_setDefaultOptions: modified to initialize section names,
705 but hack is temporarly out of order since it needs improvement.
706 * _pic16_genAssemblerPreamble: configuration words are emitted by
707 their address instead of their name. This part is incomplete and
708 supports only the 18Fxx2 devices. Other devices will emit an error
709 during assembly since they do not contain the same set of config
711 * _pic16_genIVT: is modified,
713 * pcode.c: added definitions for some hardware registers that are needed
715 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
716 All PCI entries are updated. Now LFSR is supported.
717 * Removed pic16_pciTRIS is mentioned by mdubuc in source
718 * added pic16_newpCodeOpLit2 to support instructions with
719 two literal arguments
720 * pic16_pCode2str: corrected code that emits assembler instructions
721 with two literal operands and those that have an access bit modifier
722 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
723 this fixes a bug which caused some labels to be lost, when an
724 assembler directive was added, i.e. banksel,
725 * pic16_FixRegisterBanking: improved logic that causes the insertion
727 * InlineFunction: functions that are called once, are not any more
728 inlined. This can be a port option in the future,
730 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
732 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
733 hold the corresponding uninitialized symbols,
734 * pic16_allocProcessorRegister: registers have explicit marked the
736 * pic16_allocInternalRegister: registers are explicit marked as
738 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
739 processing list, so bit registers were lost,
742 * ralloc.h: added field 'accessBank' and original symbol operand
743 in register definition,
744 * removed the field isMapped from register definition,
746 ** Several functions have been removed from various sources:
747 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
748 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
749 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
750 pic16_assignRelocatableRegisters
752 ** others have been introduced:
753 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
754 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
756 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
758 * support/scripts/inc2h.pl: changed definition of BIT_AT
759 to emit 'sbit at' instead of 'bit at'. This was a request.
761 PIC16 port related preliminary changes:
762 * gen.c: prefixed function popRegFromString with
763 pic16_ and all references to it corrected
764 * pcode.c: all pic16_pc_* hardware registers prefixed
766 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
767 * ralloc.c: newReg(): when register is REG_SFR then
769 pic16_allocProcessorRegister(): marks register wasUsed=0
770 pic16_writeUsedRegs(): added a call to assign processor
771 registers via pic16_assignFixedRegisters
773 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
775 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
776 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
777 variables in unused register banks. Also the SSEG is placed
778 wherever there is enough space for it, and IDATA can be anywhere
779 in internal RAM. For now compile using -Wl-Y[stack_size].
780 The mem file is different for this option as well, since it
781 makes no sense of talking about DSEG lenght.
783 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
785 * src/SDCClrange.c: fixed bug 869095 that caused segfault
786 in certain cases, e.g. when ROM assignment, patch provided
787 from Albert den Haan.
789 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
791 Many signedness and type propagation fixes:
792 * src/SDCCicode.c: made geniCodeCast() static
793 replaced SPEC_ by IS_ (cosmetic)
794 (operandOperation): fixed div and mod operation
795 (usualBinaryConversions): added support for promotion of char
796 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
797 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
798 (geniCodeAdd): an array index will stay unsigned, even if promoted
800 (geniCodeArray): ditto
801 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
802 * src/SDCCsymt.c (computeType): added more support for char;
803 promotion of char is selectable by promoteCharToInt, fixed signedness
805 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
806 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
807 * src/SDCCval (val*): replaced signedness calculation by
809 rearranged if-branches (cosmetic)
810 (valShift): added warning W_SHIFT_CHANGED
811 (valCompare): fixed problem with different types
812 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
813 * support/regression/tests/literalop.c: added many cases
814 * support/regression/tests/ast_constant_folding.c: changed finally to
816 * .version: new year, new version: 2.3.7
817 * src/SDCCmain.c (main): applied patch #866468
818 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
819 provided by Scott Bronson
820 * doc/sdccman.lyx: updated documentation for sdcdb
821 updated and added chapter tips
823 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
825 * src/SDCCsymt.h: missing from yesterday's commits
827 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
829 * src/SDCC.y (struct_or_union_specifier),
830 * support/Util/SDCCerr.c,
831 * support/Util/SDCCerr.h: verify that struct & union tags are used
834 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
836 * src/SDCCglobl.h: missing from yesterday's commits
838 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
840 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
841 sft_attributes, struct_declaration, parameter_declaration,
842 type_name, start_block, declaration_list),
843 * src/SDCC.lex (check_type): support redefinition of typedef names
845 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
847 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
848 aligned xdata arrays. Erik helped me with the if clause.
850 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
852 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
855 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
858 * src/SDCCast.c (newAst_),
860 * src/SDCCicode.c (ast2iCode, newiCode),
862 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
863 expr, statement, expression_statement, selection_statement,
864 iteration_statement, expr_opt, jump_statement): foundation for tracking
866 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
869 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
871 * support/Util/SDCCerr.c,
873 * src/SDCCast.c (createCase, createDefault, decorateType),
874 * src/SDCClabel.c (labelUnreach),
875 * src/SDCC.y (labeled_statement, jump_statement): More improvements
877 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
878 (with thanks to Stas Sergeev)
879 * device/include/time.h,
880 * device/lib/time.c (CheckTime): suppress unreachable code warning
882 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
884 * src/SDCCast.c (createIvalCharPtr),
885 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
887 * support/regression/tests/nullstring.c: tests for these two bugs
889 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
891 * support/Util/SDCCerr.h,
892 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
893 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
894 about storage class and 'at' used inside struct or union
895 * src/SDCCBBlock.c (iCodeFromeBBlock),
896 * src/SDCCcse.c (ifxOptimize),
897 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
898 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
899 printIval, emitStaticSeg, emitOverlay),
900 * src/SDCClabel.c (deleteIfx),
901 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
902 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
903 gatherAutoInit, processParms),
904 * support/Util/SDCCerr.h,
905 * support/Util/SDCCerr.c (werrorfl): Support for better error location
906 reporting for post-parse errors.
908 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
910 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
911 implicit casts via union; they don't work on big endian systems
912 (possible fix for bug #861138)
914 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
916 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
917 * src/mcs51/main.c: fixed the fix for bug #737001
919 2003-12-15 Borut Razem <borut.razem AT siol.net>
921 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
923 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
925 * support/makebin/makebin.c: put output in binary mode
927 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
929 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
930 xdata and data memory on startup. Set the environment variable
931 SDCC_NOGENRAMCLEAR to disable this.
932 * src/mcs51/peephole.def,
933 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
934 (allows non-interrupt and interrupt code to safely compete for a resource
935 without the non-interrupt code having to disable interrupts)
937 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
939 * src/SDCCicode.c (geniCodeAdd),
940 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
941 with valFromType if type might be a pointer and host is big endian).
942 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
943 types, not just integer types.
944 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
945 multiply defined with mismatching "at" address.
947 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
949 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
950 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
951 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
952 with embedded nulls (fixed bug #753752)
954 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
956 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
957 Apparently this did not see much testing (endless loop)
959 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
961 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
963 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
965 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
966 gracefully handle NULL memmap pointers
968 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
970 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
971 instead of deleting the iCode when an operand is volatile
972 * src/z80/gen.c (genDummyRead),
973 * src/mcs51/gen.c (genDummyRead),
974 * src/ds390/gen.c (genDummyRead),
975 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
977 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
978 * src/SDCC.y: fixed bug #850420
980 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
982 Applied z80 i/o port patch from Peter Townson and fixed some operators
983 to better handle operands in A register.
984 * device/include/z180.h
990 * src/z80/peeph-z80.def
994 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
996 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
998 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1000 * device/lib/hc08/_mullong.c: Removed extra #endif
1002 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1004 * sim/ucsim/hc08.src/inst.cc,
1005 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
1007 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
1008 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
1009 * device/include/stdarg.h: fixed varargs for hc08
1010 * device/lib/Makefile.in,
1011 * device/lib/hc08/Makefile,
1012 * device/lib/hc08/_mulint.c,
1013 * device/lib/hc08/_mullong.c: fixed some endian problems
1015 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1017 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
1018 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
1019 * device/lib/_gptrget.c,
1020 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
1022 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1024 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
1025 * src/SDCCast.c (astErrors): fixed bug #846007
1026 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
1028 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1030 * src/SDCCast.c (decorateType): disabled a transformation I added in
1031 revision 1.188 (access to fields of a structure at an absolute address);
1032 it breaks with bitfields, extern declarations, and gcse analysis.
1033 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
1034 could be assigned through a pointer, so don't complain.
1035 * src/SDCCast.c (astErrors),
1037 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
1039 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
1041 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
1042 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
1043 output of __config directives, since gpasm now supports them
1044 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
1045 pre-processor macro, i.e. -DMCU=p18f452
1046 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
1047 and modified to handle 'cast' icode similarly to '=' icode
1048 * src/pic16/device.h (typedef struct PIC_device): added field
1049 'extMIface' to indicate that chip has external memory interface
1050 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
1051 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
1054 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1056 * src/SDCC.y (pointer): fixed bug #846006
1057 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
1058 * src/SDCCast.c (decorateType): fixed bug #846009
1059 * src/ds390/peeph.def,
1060 * src/ds390/gen.c (genAnd, genOr),
1061 * src/mcs51/peeph.def,
1062 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
1064 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1066 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
1073 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
1077 * src/SDCCbitv.c: added function to free a bitvector
1079 * src/SDCClrange.c: added function to recompute the liveranges
1081 * src/ds390/ralloc.c,
1082 * src/hc08/ralloc.c,
1083 * src/mcs51/ralloc.c,
1085 * src/pic16/ralloc.c,
1086 * src/xa51/ralloc.c,
1087 * src/z80/ralloc.c: recompute the liveranges after register packing
1089 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
1091 * src/SDCCloop.c (newInduction): fixed bug #845630
1093 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1095 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
1096 inadvertantly left behind from my 2003-11-12 change
1098 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1100 Updated headers I neglected to commit yesterday.
1104 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1106 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
1107 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
1108 * src/SDCCopt.c (eBBlockFromiCode),
1109 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
1110 the creation of the key hash table from the sequencing so it can be used
1111 earlier (for some GCSE bug fixes still pending)
1113 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1115 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
1116 * support/regression/tests/addsub.c: testing genPlus shortcut
1118 2003-11-15 Borut Razem <borut.razem AT siol.net>
1120 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
1122 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1124 * src/SDCCcse.c (cseBBlock): fixed bug #527779
1125 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
1126 ordering is immaterial.
1127 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
1129 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1131 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
1132 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
1133 (SIGSEV) of bug #840381
1134 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
1135 unlink new file before rename if new and old filenames are the same)
1137 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1139 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
1140 uninitialized variables) for the mcs51. Set environment variable
1141 SDCC_GENRAMCLEAR to test.
1142 xdata initialization slightly shorter
1144 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1147 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
1148 #838241 & 780691 (basicly the same bug)
1149 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
1150 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
1152 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
1154 * src/SDCCmain.c (linkEdit): "fix" #834252
1156 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1158 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
1160 * src/SDCC.y: fixed bug #819403
1162 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1164 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
1165 the reentrant attribute.
1166 * src/hc08/gen.c (genPackBits): added missing stack readjustment
1167 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
1169 * src/SDCCast.c (decorateType): fixed bug with storage class not being
1170 updated during pointer dereference; f.e. ~(((char *)1)*) was being
1171 erroneously reduced to a literal.
1172 * src/hc08/ralloc.c (packRegisters, rematStr),
1173 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
1176 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1178 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
1179 * doc/sdccman.lyx: changed from 'article' to 'book'
1180 * doc/Makefile: readded test_suite_spec and cdbfileformat
1182 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
1184 * device/include/stdlib.h: include malloc.h to comply with ANSI
1185 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
1187 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1189 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
1190 * doc/clean.mk: also remove *.out files
1191 * doc/sdccman.lyx: some additions, larger top/bottom margins
1193 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1195 * src/SDCC.y: fixed bug #837365
1196 * support/regression/tests/bitopcse.c
1197 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
1198 a symbol (might be valop instead)
1199 * device/lib/Makefile.in: added errno.c to HC08SOURCES
1200 * device/lib/clean.mk: added hc08 to the cleaning list
1202 2003-11-04 Borut Razem <borut.razem AT siol.net>
1204 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
1206 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1207 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
1208 malloc is declared in standard stdlib.h
1210 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1212 * device/lib/hc08/Makefile: need to clean .rel not .o files
1213 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
1215 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1225 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
1226 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
1227 tests (which uses the port's oclsExpense function)
1233 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
1235 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1237 * src/SDCCcse.c (ifxOptimize),
1238 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
1239 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
1240 deleting the IFX iCode.
1241 * src/hc08/ralloc.c: reduced unneeded slocs
1242 * src/hc08/gen.c: fixed bug in asmopToBoolean
1244 2003-11-04 Borut Razem <borut.razem AT siol.net>
1246 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
1247 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1248 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
1249 transferred to configure
1251 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
1253 Use headers defined in the C[++] standards:
1254 * sim/ucsim/gui.src/serio.src/fileio.cc
1255 * sim/ucsim/gui.src/serio.src/frontend.cc
1256 * sim/ucsim/gui.src/serio.src/main.cc
1257 * sim/ucsim/gui.src/serio.src/posix_signal.cc
1258 * support/Util/NewAlloc.c
1264 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1266 * Added MSVC projects for hc08 assembler and linker:
1267 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
1268 /as/hc08/link_hc08.dsp
1270 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
1272 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
1274 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
1276 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
1278 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1280 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
1282 2003-10-31 Borut Razem <borut.razem AT siol.net>
1284 * support/cpp2/cpplib.h,
1285 support/cpp2/cpplib.c,
1286 support/cpp2/cpplex.c,
1287 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
1288 to switch _asm block preprocessing on / off. Default is
1289 #pragma preproc_asm +
1291 2003-10-31 Borut Razem <borut.razem AT siol.net>
1293 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
1294 when outputting comment blocks (when executed with -C option) and
1295 _asm (SDCPP specific) blocks
1297 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1299 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
1301 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
1303 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
1305 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
1307 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
1308 * src/SDCCast.c (decorateType): fixed bug #832664
1310 2003-10-31 Borut Razem <borut.razem AT siol.net>
1312 * support\cpp2\cpplex.c: fixed for SDCPP:
1313 comments(when executed with -C option) and _asm blocks
1314 were included even if they where in skipped #if block.
1315 Applied solution from GCC cpp 3.3.2
1317 2003-10-31 Borut Razem <borut.razem AT siol.net>
1319 * src/SDCC.lex: sdcc now understands both formats:
1320 '# <line_number> <file_name>' and
1321 '#line <line_number> <file_name>'
1322 * support/cpp2/cppmain.c: sdcpp now generates the standard
1323 '# <line_number> <file_name>' instead of former
1324 '#line <line_number> <file_name>'
1326 2003-10-30 Borut Razem <borut.razem AT siol.net>
1328 * support/cpp2/cpphash.h,
1329 * support/cpp2/cpplib.h
1330 * support/cpp2/cpplex.c,
1331 * support/cpp2/cppmain.c,
1332 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
1334 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1336 Fixed a number of problems revealed by bug #827883.
1337 * src/SDCCloop.c (loopInvariants): Spill location of the
1338 result operand should be recomputed if extracted from
1339 a loop. Also, don't extract assignments of an iTemp
1341 * src/SDCCast.c (isConformingBody): loop reversal should
1342 not occur if the control variable is involved with a
1343 relational operator.
1345 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1347 * .version: bumped to 2.3.6 to reflect the big improvements
1348 made by Erik and Klaus. Thanks!
1350 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
1352 Replaced the livrange code.
1353 * src/SDCClrange.c: added new LR code
1355 * src/SDCCBBlock.h: removed remainig parts from old LR code
1356 * src/ds390/ralloc.c,
1357 * src/ds390/gen.c: minor fixes to make it work with new code
1359 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1364 * src/hc08/ralloc.c: Fix various warnings related to the hc08
1365 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
1366 (tweaked fix for bug #818696)
1368 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1370 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
1372 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1375 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
1376 * src/mcs51/gen.c (gencjneshort),
1377 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
1378 more efficient (per Scott Bronson's suggestion)
1380 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1382 Extended the semantics of the critical keyword to include
1383 individual statements. See RFE #827755 and #799831
1388 * support/Util/SDCCerr.c
1389 * support/Util/SDCCerr.h
1394 2003-10-19 Borut Razem <borut.razem AT siol.net>
1396 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
1398 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1400 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
1402 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
1403 and predecrement operand is displayed
1405 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1407 * src/SDCCval.c (valMinus): fixed bug #826041
1409 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1411 Some hc08 related updates that I missed earlier
1412 * sim/ucsim/stypes.h
1413 * support/regression/ports/hc08/spec.mk
1415 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1417 New target "hc08" for the Motorola 68hc08 family of micros
1425 * sim/ucsim/hc08.src/*
1426 * sim/ucsim/configure.in
1427 * src/ucsim/configure
1428 * sim/ucsim/packages_in.mk
1431 * device/include/mc68hc908qy.h
1433 * device/lib/Makefile.in
1434 * support/regression/ports/hc08/*
1435 * support/regression/Makefile
1437 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1439 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
1441 * src/ds390/gen.c (genCast): fixed bug #821957
1443 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1445 * device/lib/logf.c: "fixed" overlay bug
1446 * support/regression/ports/host/spec.mk: added m library
1447 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
1448 * support/regression/tests/float_trans: added (for Eric)
1450 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
1452 * src/mcs51/gen.c (genCpl): fixed bug
1453 http://sf.net/mailarchive/message.php?msg_id=6263915
1455 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
1457 * src/SDCCast.c (decorateType): added extended constant folding
1458 * src/SDCCsymt.c (computeType): cleanup
1459 * src/SDCCval.c (valShift): minor optimization
1460 * support/regression/tests/ast_constant_folding.c: added
1462 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1464 * src/SDCCmain.c: removed some unintended changes
1466 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1468 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
1469 * src/z80/gen.c: fixed part of bug #817589
1470 * src/SDCCsymt.c (checkFunction): fixed bug #817895
1472 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
1474 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
1485 * src/ds390/ralloc.c
1487 * src/mcs51/ralloc.c
1489 * src/pic16/ralloc.c
1492 * src/z80/gen.c: removed unused label "release:"
1494 2003-10-06 Borut Razem <borut.razem AT siol.net>
1496 * src/SDCC.lex: removed definition of unused variables
1497 save_optimize and save_options
1499 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1501 * clean.mk: removed '=' in "-maxdepth=1"
1502 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
1503 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
1505 2003-10-06 Borut Razem <borut.razem AT siol.net>
1507 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
1508 my_unput() replaced by unput()
1510 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
1512 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
1513 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
1514 type-punned pointer will break strict-aliasing rules"
1515 Old LR behaviour is again default; Klaus' LR can be choosen by
1516 defining the environment variable LRKLAUS
1520 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
1521 * clean.mk: fixed removal of files in bin/CVS/
1522 * device/lib/clean.mk: fixed removal of directories small and large
1523 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
1525 * src/SDCCval.c: removed superflous test for pedantic
1527 2003-10-05 Borut Razem <borut.razem AT siol.net>
1529 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
1530 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
1531 message "unmatched #pragma SAVE and #pragma RESTORE"
1533 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1535 * doc/sdccman.lyx: various additions and updates (interrupts, inline
1536 assembly, critical functions, atomic, nojtbound)
1538 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
1540 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
1546 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1549 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1551 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1553 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1554 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
1555 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
1557 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1559 * src/z80/gen.c (genRet): fixed bug #524753
1560 * src/z80/gen.c (genCast): fixed internal error on cast from
1562 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
1563 fix for bug #477835 to the z80
1564 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
1565 for tracking iCodes in the peephole optimizer for z80
1567 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1569 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
1570 the other part of bug #814548
1571 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
1573 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
1575 * src/SDCCcse.c: fixed part of bug #814548
1577 2003-09-28 Borut Razem <borut.razem AT siol.net>
1579 * src/asm.c: rewrite of printILine() to use temporary file instead
1581 * src/xa51/main.c: commented out declaration of int rewinds
1583 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1585 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
1587 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1589 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
1590 * src/asm.c (printILine): Fixed bug #811015
1592 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1594 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
1597 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1599 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
1600 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
1601 to correctly handle general case of AOP_PAIRPTR
1602 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
1604 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1606 * src/mcs51/ralloc.c (fillGaps),
1607 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
1608 register positioning bug)
1610 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
1612 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
1614 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1616 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
1617 genCodePointerGet, genGenPointerGet, genFarPointerSet,
1618 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
1619 (ralloc doesn't intentionally do this now, but perhaps later)
1620 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
1621 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
1622 register positioning bugs (Fixed bug #762602 and #795325)
1623 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
1625 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
1626 lines that --i-code-in-asm generates
1628 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1630 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
1631 trying to fclose a FILE* that was already closed.
1633 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1635 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
1636 of const struct should be treated as if const themselves)
1638 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
1640 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
1642 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1644 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
1645 Unix (/n) and DOS (/r/n) line terminations.
1647 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1649 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
1652 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1654 * src/mcs51/gen.c (genFunction, genEndFunction),
1655 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
1656 and restore of EA so that stack offsets to parameters are
1657 correct when using both critical and reentrant/stack-auto.
1658 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
1659 size (can be triggered in error if sloc is shared between
1660 different sized objects)
1661 * device/include/float.h: fixed macros to explicitly use
1662 unsigned long where needed
1664 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
1666 Feature req. 799831: added code to allow nesting of critical functions
1667 * src/mcs51/gen.c (genFunction, genEndFunction)
1668 * src/ds390/gen.c (genFunction, genEndFunction)
1670 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1672 * src/SDCCsymt.c (sclsFromPtr),
1674 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
1675 support for standard C idiom of memory mapped variables; for
1676 example, *((xdata int*)0x1234) = 1 is now internally equivalent
1677 to xdata int at 0x1234 tempvar = 1.
1678 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
1679 provided by Akiya ISHIDA
1681 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
1683 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
1684 * src/SDCCval.c (constVal): added reduction from int to char
1685 * src/SDCCval.c (valMult, valDiv): fixed sign handling
1686 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
1687 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
1689 * support/regression/tests/shifts.c: fixed
1691 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1693 * src/z80/gen.c (genXor): Fixed bug #805445
1695 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1697 Fixed bug #621531 (const & volatile confusion in the type chain).
1698 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
1699 refer to the const or volatile state of the pointer itself.
1711 * src/pic16/ralloc.c
1712 * support/regression/tests/const.c
1714 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1716 When checking for duplicated modules, use absolute paths
1717 instead of relative paths. Files changed:
1722 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1724 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
1726 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1728 * device/include/string.h: added size_t typedef, changed
1729 prototypes to use size_t, eliminated separate reentrant and
1730 non-reentrant declarations, added _memmove declaration
1731 * device/lib/_memcpy.c: changed to use size_t instead of int,
1732 changed /4 to >>2 to avoid division library call
1733 * device/lib/_memcmp.c,
1734 * device/lib/_memset.c,
1735 * device/lib/_strncat.c,
1736 * device/lib/_strncpy.c,
1737 * device/lib/_strncmp.c: changed to use size_t instead of int
1738 * device/lib/_memmove.c: new file (fixed bug #772294)
1739 * device/lib/Makefile.in: added _memmove.c
1740 * device/lib/z80/asm_strings.s: fixed bug #772290
1741 * support/regression/tests/bitfields.c: attempt to fix host assertion
1742 failure on amd64-unknown-linux2.2
1744 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1746 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
1747 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
1748 * as/z80/asmain.c (main): fixed bug #801766
1750 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
1752 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
1755 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1757 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
1758 reported in bug #800609
1760 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
1762 * Top header beautifications in src/pic16 directory:
1763 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
1764 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
1765 pcoderegs.h, ralloc.c, ralloc.h
1766 * main.c: added top header and GPL license notice
1767 * pcode.c: fixed the if-conditional warning
1769 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
1771 * device/lib/_mullong.c: replaced int by short for gcc
1773 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1775 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
1776 and JUMPTABLE iCodes properly now (worked by accident before)
1777 * src/mcs51/gen.c (leftRightUseAcc),
1778 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
1779 iCode properly now. Use getSize instead of nRegs since a & b
1780 aren't part of the nRegs tally.
1782 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
1784 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
1785 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
1786 before instructions that use the _STATUS register
1788 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
1790 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
1791 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
1792 fetching of the pointer
1793 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
1794 copied from genNearPointerSet()
1795 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
1796 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
1797 If they pop r0/r1 they must be called in the opposite order than aopOp().
1798 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
1799 (resp. --stack-auto), prepared for --xstack
1801 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1803 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
1805 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
1807 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
1808 these ports have their own __sdcc_external_start()
1810 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
1812 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
1813 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
1814 type for bits was changed. It resulted in bit variables becoming
1815 global, which is not permitted in PIC 14 assembly output.
1817 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1819 * doc/sdccman.lyx: various additions and updates. Rearranged sections
1821 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1823 Z80 and MCS51 linkers complaint if a public symbol is defined
1824 in more than one library module:
1828 * as/mcs51/Makefile.in
1830 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1832 A few small changes that speed up the peephole optimizer.
1836 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1838 Try to make the peephole optimizer smarter by maintaining
1839 an association between the assembly source code and the
1840 iCodes that originated them. Put this information to use
1841 with a new peephole rule condition "notVolatile" so that
1842 the rules can be aggressive yet still safe.
1847 * src/mcs51/peeph.def
1849 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1853 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
1854 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
1855 if the left or right operand symbols have the accuse flag set.
1857 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1859 Changed the type of the result of the ! (NOT) operator to char;
1860 previously it returned the same type as the source. This allows
1861 us to eliminate all the genFloatNot functions (all of its target
1862 implementations were very buggy) since !float can use the same
1865 * src/SDCCicode.c (ast2iCode): ! returns char
1866 * src/mcs51/gen.c (genNot, genNotFloat),
1867 * src/ds390/gen.c (genNot, genNotFloat),
1868 * src/z80/gen.c (genNot, genNotFloat),
1869 * src/pic/gen.c (genNot, genNotFloat),
1870 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
1872 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
1874 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
1875 1. Interrupt would not compile properly. Ensure PCLATH register is saved
1876 during interrupts. Ensure WSAVE is located at a shared bank address.
1877 2. Fixed page selection in some places
1878 3. Fixed BTFSS/C to where necessary use registers directly and not simply
1879 the registers name strings.
1880 4. Fixed "signed / unsigned compare" compiler warnings.
1881 5. The PIC port manages its own allocation of the general purpose
1882 registers, but makes no attempt to reuse them. As a result when
1883 compiling it soon runs out of general purpose registers. Some
1884 additional code was added to the files pcode.c and device.c to walk
1885 through the function call tree and rename the registers so that they
1895 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
1896 genPlus() & genMinus() when the result is the same as left or right
1898 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1900 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
1902 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1904 Made bitfield a distinct type from bit so that bitfields
1905 convert as per ANSI C and bits retain their traditional
1906 boolean style behaviour. Implemented bitfield support in
1914 * src/ds390/gen.c: bit v bitfield split
1915 * src/z80/gen.c: New support for bitfields
1916 * support/regression/tests/bitfields.c: reenabled z80,
1919 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1921 Rules 246.x, 247.x relate to bitfields, the others speed up
1922 access to xdata mapped I/O devices.
1924 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
1926 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1928 Cleaned up genPackBits and genUnpackBits and added two helper
1929 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
1930 for literal assignments in genPackBits (thanks to Frieder for
1936 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1938 Fixed bug #748310 (pointer to function type mishandled when the
1939 function name is omitted). Also fixed a SIGSEGV when a function
1940 attribute (reentrant, etc) is used on a non-function or on a
1941 function but misplaced before the parameter list.
1943 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
1945 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
1946 * support/Util/SDCCerr.h,
1947 * support/Util/SDCCerr.c: Added func attr misuse error msg
1949 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
1951 Fixed bug #787649 by anonymous
1952 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
1953 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
1955 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1957 Fixed numerous bitfield problems.
1959 * src/SDCC.y: More bitfield related error checking
1961 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
1962 * support/Util/SDCCerr.h,
1963 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
1964 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
1965 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
1966 * support/regression/tests/bitfields.c: tests added
1968 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1970 Made the constant following the "interrupt" keyword optional. If
1971 omitted, the function will not automatically be given an entry
1972 in the interrupt vector table (similar to #pragma NOIV, but
1973 less syntacticly kludgy). The interrupt number is also now
1974 range checked. Also fixed a bug in the high order bit example
1981 * support/Util/SDCCerr.c
1982 * support/Util/SDCCerr.h
1985 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
1987 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
1988 * src/SDCCicode.c (operandOperation): rewritten some ops
1989 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
1990 * src/SDCCsymt.c (computeType): literals are handled the same way as any
1992 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
1993 be re-activated by defining REDUCE_LITERALS)
1994 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
1995 unsigned, but are signed by default
1996 * src/SDCCval.c (constVal): rearranged
1997 * src/SDCCval.c (valMod): preliminary fix
1998 * src/SDCCval.c (valCastLiteral): use TYPE_* types
1999 * support/regression/literalop.c: added, work in progress
2001 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2003 Generate warnings for useless declarations like "char data;"
2004 that don't do what new users expect.
2007 * support/Util/SDCCerr.h
2008 * support/Util/SDCCerr.c
2010 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
2012 * src/SDCCval.c (valMult): fix overflow detection of negative int
2014 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2016 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
2018 Changes to support big endian targets:
2031 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
2033 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
2034 * device/lib/time.c: fixed warning "integer overflow in expression"
2036 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
2038 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
2039 * src/SDCCval.c (constVal): changed default to signed; hex and octal
2040 constants are unsigned; added recognition of "u" flag for unsigned
2041 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
2042 * src/SDCCval.c (valDiv, valMod): fixed signdness
2043 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
2044 signedness of modulo, left and right shift
2045 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
2046 * support/Util/SDCCerr.h: added warning W_INT_OVL
2047 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
2048 * src/SDCCast.c (ast_print): improved output of constants
2050 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2052 Fixed some warnings when building with MSVC:
2065 * support\cpp2\cpplib.c
2069 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
2071 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
2073 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2075 * support\librarian\clean.mk: Do not remove Makefile.
2076 * support\librarian\Makefile: added.
2078 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2080 Added librarian to MSVC build:
2083 * support\librarian\librarian.dsp
2085 'configure' not needed for librarian, removed:
2086 * support\librarian\configure
2087 * support\librarian\configure.in
2088 * support\librarian\config_in.h
2089 * support\librarian\Makefile.in
2091 Hopefully these ones built the librarian and the rest of sdcc properly:
2093 * Makefile.common.in
2095 Messed up 'configure', so revert to previous version:
2099 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
2101 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
2102 there, while the mantissa of a double is "only" 53 bits wide.
2104 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2106 Adding sdcclib to the build. MSVC project coming soon.
2107 Files added/changed:
2109 * support\librarian\clean.mk
2110 * support\librarian\configure
2111 * support\librarian\configure.in
2112 * support\librarian\config_in.h
2113 * support\librarian\Makefile.bcc
2114 * support\librarian\Makefile.in
2115 * support\librarian\sdcclib.c
2118 * Makefile.common.in
2122 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2124 Linker now complaints if linked modules have conflicting options, for
2125 example, one compiled using --model-large and another one compiled with
2126 --model-small. The following files were modified:
2148 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2150 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
2151 as/mcs51/lklibr.c: Generate a warning when a library is not found.
2153 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
2155 * src/z80/mappings.i: fix _mul[us][int,long] entries
2157 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2159 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
2161 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2163 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
2164 * support/regression/tests/bitopcse.c: added
2172 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2174 added support for new library format to z80, gbz80 linkers:
2180 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2182 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
2183 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
2185 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
2187 added DUMMY_READ_VOLATILE:
2196 * src/SDCCcse.c (algebraicOpts): many improvements
2197 * src/SDCCcse.h: removed algebraicOpts()
2198 * src/SDCCicode.c (picDummyRead): added
2200 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2202 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
2203 "Insufficient space in data memory".
2205 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2207 * src/mcs51/gen.c: fixed bug #771358
2208 * src/z80/gen.c: fixed bug #759087
2210 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
2212 * src/pic16/glue.c: minor cleanup by Vangelis
2214 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2216 * device/include/regc515c.h: fixed #758477
2217 * device/lib/_gptrget.c: saving some cycles in generic pointer get
2218 * device/lib/_gptrput.c: saved a few bytes
2219 * my tab spacing is 8, yours too?)
2220 * device/lib/_ser.c: process RX bytes earlier than TX bytes
2221 * device/lib/serial.c: process RX bytes earlier than TX bytes
2222 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
2224 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2226 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
2228 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2230 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
2232 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
2234 * device/lib/Makefile.in: bad fix, reverted to 1.43
2236 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
2238 * device/lib/Makefile.in: added missing z80 object files
2240 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
2242 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
2243 pic16 progress by Vangelis:
2258 * pic16/pcodepeep.c:
2261 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2263 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
2265 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2267 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
2268 added gbz80 build to MSVC project.
2269 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
2270 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
2271 from 8051 stuff and setup so it links using a .lnk file.
2273 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2275 * support/librarian/sdcclib.c: sdcc librarian.
2276 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
2279 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2281 * as/mcs51/lkmain.c: properly handle extensions in function afile.
2283 2003-07-02 Borut Razem <borut.razem AT siol.net>
2285 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
2286 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
2287 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
2288 src/xa51/main.c, src/z80/main.c:
2289 virtualization of glue() function: each port has it's own glue function,
2290 which is accessed by do_glue function pointer in PORT.general structure
2292 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
2294 * DS800C400 fun, improved ROM interface and tinibios.
2296 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
2298 * More support for DS80C400. Now includes beginning of interface to ROM.
2300 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
2302 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
2304 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2306 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
2308 2003-06-19 Borut Razem <borut.razem AT siol.net>
2310 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
2312 2003-06-19 Borut Razem <borut.razem AT siol.net>
2314 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
2315 fixed Z80 port - crt0.o: cannot open.
2317 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
2319 * support/Util/MySystem.c (merge_command): revert bad fix
2321 2003-06-18 Borut Razem <borut.razem AT siol.net>
2323 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
2325 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2327 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2328 option --use-stdout sends errors to stdout instead of stderr.
2330 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
2332 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
2334 2003-06-15 Borut Razem <borut.razem AT siol.net>
2336 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
2337 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
2338 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
2339 fixed width array of pointers replaced with sets;
2340 multiple include and lib paths ared transferred to preprocessor and linker
2341 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
2342 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
2343 fixed width array of pointers
2344 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
2345 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
2346 fixupPath(), getPathDifference()
2347 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
2348 fixed width array of pointers
2350 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
2352 * src/pic16/ralloc.c: fix warnings
2353 * src/pic16/pcode.c: fix warning
2355 2003-06-10 Scott Dattalo <scott AT dattalo.com>
2357 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
2358 know all the details, but essentially this set of changes enable
2359 the pic16 port to generate movff instructions and generate assembler
2364 * src/pic16/pcode.c:
2365 * src/pic16/device.c:
2367 * src/pic16/pcode.h:
2368 * src/pic16/pcoderegs.c:
2369 * src/pic16/ralloc.c:
2370 * src/pic16/ralloc.h:
2372 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2374 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2375 added option --vc, so sdcc errors and warnings are compatible with
2376 Microsoft Visual Studio.
2378 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2380 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
2381 device/lib/libfloat.lib: added atof function.
2383 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2385 * doc/sdccman.lyx: updated to Lyx 1.3
2386 * doc/cdbfileformat.lyx: updated to Lyx 1.3
2387 * doc/test_suite_spec.lyx: updated to Lyx 1.3
2388 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
2390 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
2392 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
2394 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2396 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
2397 additions to the "related tools/documentation" section
2399 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
2401 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
2403 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
2405 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
2406 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
2408 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
2410 * doc/sdccman.lyx: fix double dash and other minor things
2411 * doc/Makefile: fix double dash
2413 2003-05-28 Karl Bongers(patches from Martin Helmling)
2414 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
2415 condition and ignore commands.
2417 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2419 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
2420 is in parts still quite out of date, I did changes as far as I felt makes sense
2421 for a non-native english speaker.
2422 Please feel free to add to the manual or to correct my changes.
2423 * doc/Makefile: undid touching the date of intermediate tex files.
2425 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2427 * doc/sdccman.lyx: Manual has an index now
2429 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
2431 Finalize muluint/mulsint and mululong/mulslong merging:
2432 * device/lib/_mulint.c
2433 * device/lib/_mullong.c
2434 * device/lib/gbz80/mul.s
2435 * device/lib/gbz80/stubs.s
2436 * device/lib/z80/mul.s
2437 * device/lib/z80/stubs.s
2438 * src/SDCCsymt.c (initCSupport)
2440 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2442 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
2443 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
2444 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
2445 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
2448 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2450 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
2451 the regression tests I'm not brave enough to enable 245.b, 245.c
2452 * doc/sdccman.lyx: added latex preamble for hyperref package.
2453 Using pdflatex this will give you a hyperlinked pdf file with
2454 bookmarks. (prepend '%' before /usepackage if this breaks something)
2456 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2458 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
2460 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
2462 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
2464 2003-05-21 <johan AT balder>
2466 * src/SDCCglue.c (printIval): fixed bug #739934
2468 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2470 Applied patch from bug 737905 (renamed yylineo to mylineno):
2477 * src/pic16/pcode.c: Cleaned warnings
2478 * src/pic16/pcodeflow.c: Cleaned warnings
2479 * src/pic16/pcoderegs.c: Cleaned warnings
2481 2003-05-19 Scott Dattalo <scott AT dattalo.com>
2483 * src/pic16/pcode.c: Cleaned warnings
2484 * src/pic16/pcodepeep.c: Cleaned warnings
2485 * src/pic16/ralloc.c: Cleaned warnings
2487 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2489 * doc/sdccman.lyx: fixed bug 739745
2490 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
2492 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
2494 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
2495 it can be defined with CFLAGS when running configure
2496 * src/SDCCmain.c: fixed compiling + linking with object files
2498 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
2500 * configure.in: configure for pic16 port,
2501 added --disable-pic16-port
2502 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
2503 * src/SDCCmain.c: linkOptions is changed to set *,
2504 added if/endif conditional macros to remove options help
2505 messages from optionsTable when a port is not configured, added
2506 support for the PIc16 port in the ports table, when executing
2507 the compiler with no port specified on command line, a default
2508 port is selected with the new macro DEFAULT_PORT which is
2509 defined in port.h, in setDefaultOptions() linkOptions is removed
2510 from initialization assignment, since now it is a set,
2511 parseCmdLine uses setParseWithComma for linkOptions, in
2512 linkEdit() linkOptions are accessed with new function indexSet()
2513 which returns the i'th item of a set variable. See SDCCset.c, in
2514 linkEdit() when calling buildCmdLine(), added linkOptions as
2515 last argument. Now users can pass arguments to gplink via the
2516 -Wl option, main() uses pic16glue() to glue up pic16 programs
2517 * src/SDCCpeeph.c: various changes to support pic16
2518 * src/SDCCset.c: added function void *indexSet(set *, int) to
2519 return the i'th item of the set
2520 * src/SDCCset.h: added function prototype for indexSet()
2521 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
2522 * src/clean.mk: added pic16 in CLEANALLPORTS variable
2523 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
2524 added macro DEFAULT_PORT
2525 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
2526 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
2528 * src/pic16/glue.c: commented out some error producing lines
2529 * src/pic16/main.c: __config directives are commented out to stop
2530 gpasm complaining and test the linkage with gplink, _linkCmd and
2531 _asmCmd changed to be more gplink and gpasm friendly
2532 * src/pic16/peeph.def: peep rule 3 is commented out, since it
2533 produced an error when parsed, peep rule 12 is added to utilize
2534 movff, but it is commented out since the pCode does not support
2535 yet a command with 2 address arguments
2537 2003-05-18 <johan AT balder>
2539 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2540 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2541 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
2543 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
2544 Added feature to script commands from file.
2546 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
2548 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
2549 * src/SDCCutil.c: include ctype.h for win32
2551 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
2553 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
2555 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
2557 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
2558 Fixed so you can set breakpoints prior to run, run does not stop
2559 on entry now. Add tbreak. Other enhancements and fixes for use
2562 2003-05-12 Borut Razem <borut.razem AT siol.net>
2564 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
2566 2003-05-11 Borut Razem <borut.razem AT siol.net>
2568 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
2569 the path of bin directory, so that PATH is the only env. variable, which has to be set
2570 in case of standard installation.
2571 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
2572 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
2573 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
2575 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2577 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
2578 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
2579 temp files are in the port dir; clean the gen/test directory when
2580 generating new test.c
2581 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
2582 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
2583 * support/regression/tests/zeropad.c: added
2585 2003-05-09 <johan AT balder>
2587 * src/SDCCglue.c: fixed bug #597940
2589 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
2591 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2592 cache sfr, optimize next,step, fix off by one sourceline,
2593 support ddd list function.
2594 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
2596 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2598 * support/regression/HTMLgen.py: added compare_s2f()
2599 * support/regression/Makefile: redo 1.27
2600 * support/regression/generate-cases.py: redo 1.5
2602 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
2604 * support/regression/tests/float.c: workaround 33 bit hex constant
2605 * support/regression/tests/simplefloat.c: fix division for host
2607 2003-04-29 Scott Dattalo <scott AT dattalo.com>
2609 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
2610 that tame's the PIC's over-aggressive optimizer.
2612 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2614 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
2617 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
2619 Initial support for DS80C400. "Hello world" runs on TINIm400
2622 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
2624 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2625 * Some notes on ddd usage added in debugger/README
2626 Martin Helmling adding more features and fixes for ddd GUI debugger.
2627 Code added for nexti, stepi, up, down, and other adjustments.
2629 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
2631 * src/pic/pCodepeep.c non-wildcard asmops are now handled
2632 * src/pic/peeph.def Added two rules to optimize carry manipulation
2633 * src/pic/* removed debug printfs
2635 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
2637 * debugger/mcs51/cmd.c: added header newalloc.h
2639 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
2641 * as/Makefile: new EXEEXT
2642 * as/z80/Makefile: remove trailing slash of BUILDIR
2643 * as/z80/clean.mk: new EXEEXT
2644 * Makefile.common.in: add to CFLAGS (and others), don't replace it
2645 * support/cpp2/Makefile.in: new EXEEXT
2646 * src/pic/glue.c (pic14emitRegularMap): fixed warning
2648 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
2650 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
2651 EXEEXT was introduced to fix all related problems with targets
2652 "clean", "install" and "uninstall"; a couple of further flaws
2653 especially with "clean" have been fixed too
2654 * as/mcs51/Makefile.in
2659 * debugger/mcs51/Makefile.in
2660 * debugger/mcs51/clean.mk
2662 * link/z80/Makefile.in
2665 * packihx/Makefile.in
2667 * sim/ucsim/Makefile
2668 * sim/ucsim/clean.mk
2669 * sim/ucsim/avr.src/Makefile.in
2670 * sim/ucsim/avr.src/clean.mk
2671 * sim/ucsim/s51.src/Makefile.in
2672 * sim/ucsim/s51.src/clean.mk
2673 * sim/ucsim/xa.src/Makefile.in
2674 * sim/ucsim/xa.src/clean.mk
2675 * sim/ucsim/z80.src/Makefile.in
2676 * sim/ucsim/z80.src/clean.mk
2677 * sim/ucsim/main_in.mk
2678 * sim/ucsim/packages_in.mk
2679 * sim/ucsim/gui.src/Makefile.in
2680 * sim/ucsim/gui.src/serio.src/Makefile.in
2681 * sim/ucsim/gui.src/serio.src/clean.mk
2684 * support/cpp2/Makefile.in
2685 * support/cpp2/clean.mk
2686 * support/makebin/Makefile
2687 * support/makebin/clean.mk
2688 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
2689 * doc/sdccman.lyx: --program-suffix no longer needed
2691 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
2693 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
2694 Martin Helmling added support for ddd GUI debugger.
2695 Code added to display assembly, set variables, and other commands
2696 to interface to ddd.
2698 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
2700 * as/Makefile: fix target clean
2701 * as/clean.mk: fix target clean
2702 * as/z80/clean.mk: fix target clean
2704 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
2706 * Makefile.common.in: added AT EXEEXT AT
2707 * configure.in: removed all mingw32 stuff
2708 * configure: rebuilt from configure.in
2709 * doc/sdccman.lyx: updated section "installation"
2710 * support/scripts/sdcc_mingw32: adapted to configure
2711 * support/scripts/sdcc_cygwin_mingw32: added
2713 2003-04-22 Scott Dattalo <scott AT dattalo.com>
2715 * src/pic Added object file support for the PIC port
2716 * src/pic Applied patch from Craig Franklin (this started the object file support)
2717 * src/regression Updated the PIC regression tests for object files
2719 2003-04-20 Borut Razem <borut.razem AT siol.net>
2721 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
2722 lklex.c: In function `getfid':
2723 lklex.c:203: warning: array subscript has type `char'
2724 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
2725 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
2726 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
2727 stack handling macros
2729 2003-04-19 Borut Razem <borut.razem AT siol.net>
2731 * "handling space characters in file path" task:
2732 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
2733 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
2734 * support/Util/MySystem.h: make it self-sufficient
2735 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
2736 src/z80/main.c, sdcc/as/mcs51/lklex.c:
2737 handling space characters in file path
2738 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
2739 (it will be used by assemblers, which have their own includes, e.g. gpasm)
2740 * support/Util/MySystem.c: handling space characters in executable's path
2742 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
2744 * as/z80/Makefile: fix permanent rebuild of z80
2745 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
2746 * support/regression/tests/bitfields.c: added Johan's bitfields.c
2748 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
2750 * src/SDCCopt.c: add special case optimization to replace modulo by
2751 a power of two with a bitwise AND.
2753 2003-04-18 <johan AT balder>
2755 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
2757 2003-04-17 <johan AT balder>
2759 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
2760 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
2762 2003-04-13 Borut Razem <borut.razem AT siol.net>
2764 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
2765 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
2766 fixed mingw problem in adl_NORMALIZE_PATH
2768 2003-04-12 Borut Razem <borut.razem AT siol.net>
2770 * fixed "#pragma SAVE/RESTORE can not be nested":
2771 * src/SDCC.lex: reworked pragma handling functions
2772 * sdcc/src/SDCCglobl.h: reworked stack handling macros
2773 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
2775 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
2777 * src/SDCCutil.c (pathEquivalent): defined but not used
2778 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
2779 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
2780 * configure: rebuilt from configure.in
2781 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2782 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2783 * device/include/Makefile.in: replace sdcc_datadir
2784 * device/lib/Makefile.in: replace sdcc_datadir
2785 * Makefile.common.in: add LDFLAGS from configure
2786 * packihx/Makefile.in: use LDFLAGS
2787 * src/Makefile.in: use LDFLAGS
2788 * support/cpp2/Makefile.in: add LDFLAGS from configure
2789 * support/makebin/Makefile: use LDFLAGS
2790 * .version: bumped version number to 2.3.5
2792 2003-04-12 Borut Razem <borut.razem AT siol.net>
2794 * completed "different paths" task:
2795 * src/SDCCmacro.c: fixed bug in handling quotes
2796 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
2797 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
2799 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
2801 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
2803 2003-04-11 kevin Vigor <kevin AT vigor.nu>
2805 * ds390/gen.c ds390/peeph.def: fix bug 706781
2807 2003-04-11 Borut Razem <borut.razem AT siol.net>
2809 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
2811 2003-04-10 Scott Dattalo <scott AT dattalo.com>
2813 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
2814 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
2815 set - this bit used to not be set...).
2816 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
2817 bad code in PIC Port
2818 * src/regression/and2.c added to test bug 609268
2819 * src/regression/Makefile added and2.c to regression test
2822 2003-04-08 <johan AT CP255758-A>
2824 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
2825 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
2826 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
2828 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
2830 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
2832 * support/cpp2/Makefile.in: fix bug #487815
2833 * configure: rebuilt from configure.in
2834 * Makefile.common.in: docdir changed, new path suffixes
2835 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2836 * sdcc_vc_in.h: reflect changes from sdccconf.h
2837 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
2838 * src/SDCCutil.h: remove BINDIR hack
2839 * doc/sdccman.lyx: update new path hierarchy
2841 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
2843 * src/SDCCpeeph.c: added okToRemoveSLOC test
2845 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
2847 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
2849 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
2851 * src/SDCCpeeph.c: added labelIsReturnOnly test
2852 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
2854 2003-04-05 <johan AT balder>
2856 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
2857 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
2858 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
2859 * src/SDCCast.c: fixed a warning
2860 * src/SDCCast.h: fixed a warning
2861 * src/SDCCicode.c (operandFromAst): fixed a warning
2863 2003-04-04 <johan AT balder>
2865 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
2866 * src/SDCCast.c (decorateType): fixed bug #715076
2867 * src/SDCC.y: fixed bug #702907
2869 2003-04-03 <johan AT balder>
2871 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
2872 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
2873 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
2874 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
2875 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
2877 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
2879 * _decdptr.c: fix return values
2880 * _gptrget.c: fix return values
2881 * _gptrgetc.c: fix return values
2882 * _gptrput.c: fix return values
2883 * _mulint.c: fix return values
2884 * as/z80/Makefile: fix 'make -j' problem
2886 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
2888 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
2889 * configure.in: big cleanup, updated to autoconf 2.5x
2890 * configure: rebuilt from configure.in
2891 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2892 * sdcc_vc_in.h: reflect changes from sdccconf.h
2893 * doc/Makefile: fixed a flaw in "make install"
2895 2003-04-02 <johan AT balder>
2897 * src/ds390/gen.c (genCmp): no comments
2898 * src/mcs51/gen.c (genCmp): no comments
2899 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
2900 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
2902 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
2904 * support/regression/generate-cases.py: place generated file in given sub directory
2905 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
2906 * support/regression/Makefile: improvements for 'make -j';
2907 side effect: it's simpler and faster now
2909 2003-03-31 Borut Razem <borut.razem AT siol.net>
2911 * src/z80/main.c: link-{port} and as-{port} defined without path
2912 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
2914 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
2916 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
2918 2003-03-30 Borut Razem <borut.razem AT siol.net>
2920 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
2921 changed type of list parameter to set
2922 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
2923 * src/port.h: changed type of do_assemble() parameter to set
2924 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
2925 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
2926 definition of "cppoutfilename" macro with NULL value in preProcess()
2927 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
2928 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
2929 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
2930 replaced with set *binPathSet
2931 * shash_add() deallocates the item, if allready exsists, before adding the new one
2932 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
2934 2003-03-30 Scott Dattalo <scott AT dattalo.com>
2936 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
2937 a nested for loop bug in the PIC port
2938 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
2941 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
2943 * support/Util/dbuf.h: remove C++ stuff to make it portable
2945 2003-03-28 Borut Razem <borut.razem AT siol.net>
2947 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
2948 literal strings in stringLiteral()
2949 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
2950 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
2953 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
2955 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
2957 2003-03-26 <johan AT balder>
2959 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
2960 * src/ds390/gen.c (saveRegisters): catched symbol abuse
2961 * src/SDCCast.c (decorateType): fixed " -v < 3"
2963 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
2965 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
2966 Added Lenny Story's debug infrastructure changes:
2967 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
2968 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
2969 * src/cdbFile.c: added
2970 * src/SDCCdebug.c: added
2971 * src/SDCCdebug.h: added
2972 * src/SDCCast.c (createFunction)
2973 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
2974 * src/SDCCmain.c (parseCmdLine, main)
2975 * src/SDCCmem.c (redoStackOffsets)
2976 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
2979 * src/avr/gen.c (genAVRCode)
2980 * src/ds390/gen.c (gen390Code)
2981 * src/mcs51/gen.c (gen51Code)
2982 * src/pic/gen.c (genpic14Code)
2983 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
2984 * src/xa51/gen.c (genXA51Code)
2985 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
2987 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2989 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
2990 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
2992 2003-03-22 <johan AT balder>
2994 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
2996 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
2998 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
2999 * doc/cdbfileformat.lyx: added, written by Lenny Story
3000 * doc/Makefile: added cdbfileformat.lyx
3001 * doc/clean.mk: added cdbfileformat.lyx
3003 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
3005 * src/mcs51/peeph.def: fix bug #705773
3007 2003-03-20 <johan AT balder>
3009 An sfr/sbit can have an "at #" AND an initializer
3010 * src/SDCCsymt.c (checkSClass):
3011 * src/SDCCmem.c (allocGlobal):
3012 * src/SDCCmem.c (allocLocal):
3013 * src/SDCCast.c (createBlock):
3015 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
3017 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
3019 2003-03-16 <johan AT balder>
3021 Undid the hackup of const and volatile, the problem is much bigger
3023 * src/SDCCast.c:1.171
3024 * src/SDCCglue.c:1.138
3025 * src/SDCCicode.c:1.146
3026 * src/SDCCsymt.c:1.150
3027 * src/SDCCval.c:1.65
3029 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
3031 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
3032 * src/ds390/gen.c (genAddrOf): fixed bug #704087
3034 2003-03-13 <johan AT balder>
3036 Hackup const and volatile modifiers in type chains a bit:
3038 * src/SDCCast.c:1.169
3039 * src/SDCCglue.c:1.136
3040 * src/SDCCicode.c:1.143
3041 * src/SDCCsymt.c1.146
3042 * src/SDCCsymt.h1.59
3043 * src/SDCCval.c:1.63
3045 2003-03-12 <johan AT balder>
3047 * src/SDCCBBlock.h: more LRH debugging junk
3048 * src/SDCCcflow.h: more LRH debugging junk
3049 * src/SDCCloop.c: more LRH debugging junk
3050 * src/SDCC.y (struct_declaration): fixed bug #697590
3051 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
3052 * src/ds390/gen.c (aopForRemat): fixed bug #700031
3053 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
3055 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3056 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
3057 test function names must now match exactly).
3058 * src/SDCCcse.c: added special case in findCheaperOp to allow
3059 extending a short integer. Makes less awful code for bug 700121 test case.
3061 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3063 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
3064 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
3066 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3068 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
3069 actually called (operandsNotEqual() was called for all
3070 operandsNotEqualX tests).
3072 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3074 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
3075 with shorter literals. Fixes bug 700121.
3077 2003-03-11 <johan AT balder>
3079 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
3081 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
3083 * src/SDCCloop.c (mergeRegions): an evil beast is dead
3084 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
3086 2003-03-10 Borut Razem <borut.razem AT siol.net>
3088 * src/SDCCmain.c: pipe preprocessor's output
3089 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3090 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3091 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3092 which closes all pipes in pipeSet set
3093 * src/SDCCset.c: free deleted item in function deleteSetItem()
3094 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3095 moved from z80 to src subproject
3096 * .version: increased version number to 2.3.4
3098 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
3100 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
3101 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
3102 * support/regression/ports/xa51/spec.mk: fix typo
3104 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
3106 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
3108 2003-03-09 Borut Razem <borut.razem AT siol.net>
3110 * src/SDCCmain.c: pipe preprocessor's output
3111 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3112 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3113 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3114 which closes all pipes in pipeSet set
3115 * src/SDCCset.c: free deleted item in function deleteSetItem()
3116 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3117 moved from z80 to src subproject
3119 2003-03-09 Borut Razem <borut.razem AT siol.net>
3121 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
3122 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
3123 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
3124 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
3125 * src/SDCCglobl.h: unification of WIN32 native definitions
3127 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3129 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
3131 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3133 * src/configure.in: check for endianess (even while cross-compiling)
3134 * src/configure: check for endianess (even while cross-compiling)
3135 * src/configure_in.h: check for endianess (even while cross-compiling)
3136 * src/avr/gen.c: remove old endianess stuff
3137 * src/mcs51/gen.c: remove old endianess stuff
3138 * src/ds390/gen.c: remove old endianess stuff
3139 * src/pic/gen.c: remove old endianess stuff
3140 * src/pic/genarith.c: remove old endianess stuff
3141 * src/pic/glue.c: fix endianess check
3142 * src/pic16/gen.c: remove old endianess stuff
3143 * src/pic16/genarith.c: remove old endianess stuff
3144 * src/pic16/glue.c: fix endianess check
3145 * src/xa51/gen.c: remove old endianess stuff
3146 * src/z80/gen.c: fix endianess check
3147 * src/SDCCglue.c: fix endianess check
3148 * src/ds390/peeph.def: fix bug 700036
3150 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3152 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
3153 * src/configure: find appropriate data-types on host for SDCC's int and long
3154 * src/configure.in: find appropriate data-types on host for SDCC's int and long
3155 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
3156 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
3158 2003-03-07 <johan AT balder>
3161 some minor cleanups before the big shot
3162 OP_DEFS and OP_USES now use Kevin's protection
3163 new option --nolabelopt
3174 * src/ds390/ralloc.c:
3175 * src/mcs51/ralloc.c:
3177 * src/xa51/ralloc.c:
3180 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
3182 * src/pic/pcode.c (get_op): fix 64 bit warnings
3183 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
3184 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
3185 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
3186 * support/regression/tests/malloc.c: fix 64 bit warnings
3188 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
3190 * src/mcs51/gen.c (genMinus): fixed bug 696436
3192 2003-03-02 Borut Razem <borut.razem AT siol.net>
3194 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
3196 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
3198 * configure.in: test for mkstemp
3199 * sdccconf_in.h: add HAVE_MKSTEMP
3201 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
3203 * device/include/ctype.h: removed warning while using --stack-auto
3204 * device/include/malloc.h: removed warning while using --stack-auto
3205 * device/include/string.h: removed warning while using --stack-auto
3207 2003-02-23 Borut Razem <borut.razem AT siol.net>
3209 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
3210 because NDEBUG is defined (see man assert)
3211 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
3213 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3215 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
3216 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
3218 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3220 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
3221 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
3223 2003-02-18 <johan AT balder>
3225 * as/mcs51/asmain.c (asmbl): module can start with a digit
3226 * as/z80/asmain.c (asmbl): module can start with a digit
3228 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
3230 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
3231 * src/asm.c: fix pipe() for Mingw32
3233 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
3235 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
3236 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
3237 make -V work again; --c1mode reads now from stdin
3238 * doc/sdccman.lyx: added --c1mode
3239 * support/Util/SDCCerr.c: new messages for c1 mode
3240 * support/Util/SDCCerr.h: new messages for c1 mode
3241 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
3243 2003-02-15 <johan AT balder>
3245 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
3247 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
3249 * doc/sdccman.lyx: Environment variables, -o and other minor things
3251 2003-02-14 <johan AT balder>
3253 * src/xa51/main.c: before anyone really tries to use it :)
3255 * Install doc's in share/sdcc/doc
3256 * removed some obsolete files
3257 * Do a proper make distclean and uninstall
3258 M Makefile.common.in
3261 M device/include/Makefile.in
3262 M device/lib/Makefile.in
3265 M sim/ucsim/doc/Makefile.in
3268 R src/xa51/peeph.rul
3269 M support/cpp2/Makefile.in
3270 M support/makebin/Makefile
3273 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
3275 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
3277 2003-02-10 Borut Razem <borut.razem AT siol.net>
3279 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
3280 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
3281 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
3282 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
3283 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
3284 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
3285 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
3286 src/z80/Makefile.bcc: Borland Makefile cleanup
3287 * as/z80/Makefile.bcc: Added Borland Makefile
3288 * support/cpp2/borland.h: Removed
3290 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
3292 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
3293 * src/SDCC.lex: new pragma NOIV
3294 * src/SDCCglobl.h: new pragma NOIV
3295 * src/SDCCmem.c: new pragma NOIV
3297 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3299 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
3301 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3303 * src/SDCCmain.c: signal handling is switched off by --debug
3304 * doc/Makefile: small fix for install; use clean.mk again
3305 * doc/clean.mk: clean *.pdf and *.html too
3307 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
3309 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
3310 * device/lib/printfl.c: fix a ds390 bug by making it portable
3311 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
3312 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
3313 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
3314 * debugger/mcs51/cmd.c: converted multi-line string literals
3315 * sim/ucsim/globals.cc: converted multi-line string literals
3316 * src/SDCCmain.c: introduced signal handler to remove temp files
3317 * doc/Makefile: small tweaks, implement clean
3318 * doc: removed generated files
3320 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3322 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
3323 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
3324 Address Record is not correctly generated for DS390."
3326 2003-02-02 Borut Razem <borut.razem AT siol.net>
3328 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
3329 * as/mcs51/asm.h: fixed compilation with Borland C
3330 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
3331 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
3332 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
3333 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
3334 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
3335 src/z80/Makefile.bcc: delete $(LIB) only if exist
3336 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
3338 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
3340 * device/include/malloc.h: introduced NULL
3341 * device/include/string.h: introduced NULL
3342 * device/include/stdlib.h: introduced NULL
3343 * device/lib/_memcpy.c: removed NULL
3344 * device/lib/_strcat.c: removed NULL
3345 * device/lib/_strchr.c: removed NULL
3346 * device/lib/_strcmp.c: removed NULL
3347 * device/lib/_strcpy.c: removed NULL
3348 * device/lib/_strcspn.c: removed NULL
3349 * device/lib/_strlen.c: removed NULL
3350 * device/lib/_strncat.c: removed NULL
3351 * device/lib/_strncmp.c: removed NULL
3352 * device/lib/_strncpy.c: removed NULL
3353 * device/lib/_strpbrk.c: removed NULL
3354 * device/lib/_strrchr.c: removed NULL
3355 * device/lib/_strspn.c: removed NULL
3356 * device/lib/_strstr.c: removed NULL
3357 * device/lib/_strtok.c: removed NULL
3358 * device/lib/malloc.c: removed NULL, include own header
3360 2003-02-02 <johan AT balder>
3362 * 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
3363 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
3364 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
3365 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
3366 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
3367 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
3369 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3371 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
3374 2003-02-01 <johan AT balder>
3376 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
3378 2003-01-31 <johan AT CP255758-A>
3380 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
3382 2003-01-30 <johan AT balder>
3384 * src/SDCCBBlock.c: automatic bug detection
3385 * src/SDCCicode.c: automatic bug detection
3387 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3389 * src/SDCCglobl.h: now --xram-size 0 works
3390 * src/SDCCmain.c: now --xram-size 0 works
3392 2003-01-29 <johan AT balder>
3394 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
3396 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3398 * as/mcs51/aslink.h: Added options --xram-size and --code-size
3399 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
3400 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
3401 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
3402 * src/SDCCglobl.h: Added options --xram-size and --code-size
3403 * src/SDCCmain.c: Added options --xram-size and --code-size
3405 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
3407 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
3408 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
3410 2003-01-27 <johan AT balder>
3412 * src/SDCC.y: fixed bug #613764
3414 2003-01-26 <johan AT balder>
3416 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
3417 * src/SDCCsymt.h: fixed bug #673374
3418 * src/SDCCglue.c: fixed bug #661910
3419 * src/SDCCast.c: fixed bug #458099 and 673374
3421 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
3423 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
3424 * as/mcs51/strcmpi.h: added
3425 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
3426 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
3427 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
3428 * as/mcs51/assym.c: strcmpi -> as_strcmpi
3429 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
3430 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
3431 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
3432 * as/mcs51/Makefile.aslink: new module strcmpi
3433 * as/mcs51/Makefile.asx8051: new module strcmpi
3434 * as/mcs51/Makefil.bcc: new module strcmpi
3435 * as/mcs51/Makefile.in: new module strcmpi
3436 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
3438 2003-01-26 <johan AT balder>
3440 * src/SDCCglue.c: reverted back to 1.124
3441 * src/SDCCast.c: reverted back to 1.156
3442 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
3444 2003-01-25 <johan AT balder>
3446 * src/SDCCglue.c: A better fix for bug #661910
3447 * src/SDCCast.c: A better fix for bug #661910
3448 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
3450 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3452 * src/Makefile.in: remove spawn.o
3453 * src/SDCCmain.c: remove spawn.h
3454 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
3455 * src/spawn.c: removed
3456 * src/spawn.h: removed
3457 * support/regression/ports/ds390/spec.mk: link with -r
3459 2003-01-24 <johan AT CP255758-A>
3461 * src/ds390/gen.c (aopOp): fixed bug #667458
3462 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
3463 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
3464 (createIvalCharPtr): an ival doesn't always have a storage class anymore
3466 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3468 * src/mcs51/peeph.def: better assembler identation by Frieder
3469 * src/mcs51/gen.c: better assembler identation by Frieder
3471 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
3473 * as/z80/string.h: removed for gcc 3.2
3474 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
3475 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
3477 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3479 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
3480 * src/SDCCpeeph.c (replaceRule): fix bug #663503
3481 * support/regression/Makefile: separate temp files for ports
3482 * support/regression/generate-cases.py: separate temp files for ports
3483 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3484 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3486 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3488 * moved tinitalk to device/examples/ds390
3490 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
3492 * as/mcs51/lkmem.c: rflag is for DS390
3493 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
3494 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
3495 (linkEdit): move mem- and map-files the same way as ihx-files
3496 * src/z80/main.c (_setDefaultOptions): removed --generic
3497 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
3498 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
3499 * src/pic/glue.c (picglue): --c1mode works again
3500 * src/pic16/glue.c (pic16glue): --c1mode works again
3501 * src/asm.c (printCLine): fix #660034
3503 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
3505 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
3506 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
3507 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
3508 * as/mcs51/lkmem (summary): better fix for sp problem
3509 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
3510 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
3511 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
3512 remove --stack-after-data
3514 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
3516 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
3517 * src/SDCCutil.c (join): ugly bug: missing '\0'
3518 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
3520 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3522 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
3524 * src/pic/main.c (_asmCmd): gpasm supports -o
3525 * src/z80/main.c: more general macros
3526 * device/lib/Makefile.in: remove intermediate files
3528 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3530 * .version: Bumped version number to 2.3.3
3531 * src/SDCCBBlock.c: new option -o
3532 * src/SDCCglobl.h: new option -o
3533 * src/SDCCglue.c: new option -o
3534 * src/SDCCmain.c: new option -o
3535 * src/asm.c: new option -o
3536 * src/ds390/main.c: new option -o
3537 * src/pic/glue.c: new option -o
3538 * src/pic/pcode.c: new option -o
3539 * src/pic/ralloc.c: new option -o
3540 * src/pic16/glue.c: new option -o
3541 * src/pic16/pcode.c: new option -o
3542 * src/pic16/ralloc.c: new option -o
3543 * src/z80/main.c: new option -o
3544 * device/lib/Makefile.in: use -o
3545 * support/regression/ports/ds390/spec.mk: use -o
3546 * support/regression/ports/gbz80/spec.mk: use -o
3547 * support/regression/ports/mcs51/spec.mk: use -o
3548 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
3549 * support/regression/ports/z80/spec.mk: use -o
3550 * support/regression/ports/ucz80/spec.mk: use -o
3551 * support/regression/ports/xa51/spec.mk: use -o
3552 * support/regression/fwk/lib/timeout.c: fix usage string
3554 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
3555 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
3557 2003-01-07 <johan AT balder>
3559 * src/SDCCast.c (decorateType): fixed bug #600035
3561 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
3562 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
3563 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
3564 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
3565 * src/pic/pcode.c: outcommented unused variable to remove warnings
3566 * src/pic/ralloc.c: outcommented unused variable to remove warnings
3568 2003-01-06 <karl AT turbobit.com>
3569 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
3572 2003-01-06 <johan AT balder>
3574 * src/SDCCicode.c: fixed array add
3576 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
3577 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
3578 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
3580 2003-01-04 <johan AT balder>
3582 * src/SDCCval.c (getNelements): fixed the initialized array of structures
3584 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3585 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
3587 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3588 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
3589 * support/regression/tests/bug-524697.c: fit mem usage into 8032
3591 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3592 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
3594 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
3595 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
3597 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3598 * src/mcs51/main.c: removed {bindir}{sep} from aslink
3600 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3602 * in \sdcc\as\mcs51\ changed these files in order to create an
3603 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
3604 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
3605 following files to include the previous two files: aslink.dsp,
3606 Makefile.aslink, Makefile.bcc, and Makefile.in.
3608 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
3609 .adb instead of .cdb
3611 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3613 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
3614 value from option --iram-size.
3616 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3618 * \sdcc\as\mcs51\lklist.c: added boundary check before using
3621 2002-09-18 <wiml AT hhhh.org>
3623 * SDCClrange.h: exposed setFromRange() and setToRange()
3624 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
3625 packRegsForAccUse() (bug 542397)
3626 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
3627 multiple times and emitting the fetch operations more than once
3628 added aopGetUsesAcc() function to allow binary operators to
3629 fetch their operands in the correct order; made genMinus() emit
3630 compact code for X = LITERAL - Y
3632 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3633 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
3634 sprintf() in line 1267.
3636 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3637 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
3640 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3641 Changes to aslink (All the changes are marked with 'JCF'):
3643 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
3646 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
3647 area BSEG. Also moves, if possible, the DATA area down into the internal
3648 ram so more space is available.
3650 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
3653 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
3654 not bytes. Function summary() which creates a memory usage summary
3655 file with extension .mem. Reports of overlaping stack and small stack
3656 size. If the space for the stack is less than 16 bytes aslink trows a
3659 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
3660 the 8051. Option 'y' for memory summary output file.
3662 Changes to sdcc (All the changes are marked with 'JCF'):
3664 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
3666 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
3667 overlaying area for it (uses RegBankUsed[4]).
3669 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
3670 bank zero as used by default. By default aslink locates the stack
3671 (equivalent to --stack-after-data). Pass option 'y' to aslink for
3672 the creation of the .mem file. Delegates the allocation of data area
3673 to aslink (it is not longer 0x30 by default). If --stack-loc passes
3674 the begining of the stack area to aslink.
3676 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
3677 glue() in SDCCglue.c creates an area for it.
3679 2002-09-03 Borut Razem <borut.razem AT siol.net>
3680 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
3681 sdcc/src/pic/glue.c:
3682 introduced atexit() handler for teporay files removal in case of
3683 errors, assertions, ...
3685 2002-08-29 Borut Razem <borut.razem AT siol.net>
3686 * sdcc/support/cpp2/auto-host_vc_in.h:
3687 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
3688 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
3689 Maybe there is a similar problem with BORLANDC? It should be checked!
3691 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
3692 corrected improper use of assert: the assignment to clr variable was done inside the assert.
3693 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
3694 was not executed, and the compiler (cl) launched a warning:
3695 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
3697 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
3698 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
3700 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
3701 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
3703 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3704 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
3705 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
3706 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3707 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
3708 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
3709 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
3710 - added Release configuration in VS projects
3711 - review of compiler an linker options
3712 - VC .exe files are generated in bin_vc directory, not to interfere
3713 with binaries generated from other projects (cygwin, mingw, bcc ...)
3715 * sdcc/src/yacc.dsp: added
3717 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
3718 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
3719 and insert the version number definitions from .version
3721 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
3723 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
3724 added - genarate auto-host.h using auto-host_vc_in.h as template
3727 removed from CVS, generated automatically
3729 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
3730 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
3732 2002-08-11 Borut Razem <borut.razem AT siol.net>
3733 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
3735 2002-08-10 Borut Razem <borut.razem AT siol.net>
3736 * src/SDCCmain.c (main):
3737 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
3738 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
3739 The consequence was that some temporary files were not removed.
3742 unification of code in functions tempfilename() and tempfile():
3743 function tempnam() is defined in Visual Studio 6.0 and .NET
3745 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
3747 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3748 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
3749 - removed compiler command line option /WX: Treats all warnings as errors
3750 - update a list of source files, included into the project
3752 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3753 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
3754 changed project type to Generic Project so that can be correcly converted to VS.NET project
3756 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
3758 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
3760 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
3762 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
3763 added return 0 statements after assert() to make compiler happy
3765 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
3766 added newline in the def file to keep MSC compiler satisfied
3768 * sdcc/src/z80/gen.c:
3769 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
3770 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
3771 - solved MSC error in function aopDump()
3773 * sdcc_vc.h: define PREFIX as "\\sdcc"
3775 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
3776 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
3778 2002-06-22 Scott Dattalo <scott AT dattalo.com>
3779 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
3780 - Rewrote the register banking algorithm.
3781 - Added pCode live-range analysis to registers (for now, only non-used and
3782 singly-used registers optimized away)
3784 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
3786 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba AT cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
3788 2002-05-10 Scott Dattalo <scott AT dattalo.com>
3789 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
3791 2002-04-22 Michael Hope <michaelh AT vroom>
3793 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
3795 * configure.in (DD_COPT): Added include support required for gbdk.
3797 * .version: Bumped version number just to increase it.
3799 * src/SDCCmain.c: Added -nostdinc to the default options.
3801 2002-04-15 Michael Hope <michaelh AT vroom>
3803 * device/lib/z80/printf.c (sprintf): Added.
3805 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
3807 * src/z80/peeph.def: Added transpose redundent load rule.
3809 * src/z80/main.c: Added force callee saves for jaune.
3811 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
3813 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
3815 2002-03-28 Johan Knol <johan AT balder>
3817 * src/SDCCval.c: fixed bug #532436
3819 2002-03-14 Scott Dattalo <scott AT dattalo.com>
3821 Added "char *Processor" field to the port structure.
3824 Added -p option. Allows port dependent processor to be specified.
3827 Initialized the new field char *Processor field to NULL in all ports
3830 Compiler generated registers for interrupt context saving
3831 were not getting allocated.
3833 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
3836 Fixed left shift. Will promote the left side of a left shift
3837 if a) left shifting more than size of operand or b) when assigned
3838 to something size > size of left side
3840 2002-03-14 Scott Dattalo <scott AT dattalo.com>
3842 tons of changes. Register allocation has been
3843 rewritten. Added customization for the various PICs. Flow
3844 analysis is restructured. ...
3850 Added. device.c is a PIC port hack to accomodate variations
3853 2002-03-13 Michael Hope <michaelh AT vroom>
3855 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
3857 2002-03-04 johanknol <johanknol AT manik>
3859 * /src/SDCCval.c: fixed
3861 const unsigned char arr[][2] = { { 0, 1 } };
3862 t18.c:1: error: Initializer element is not constant
3864 2002-03-04 bela <bela AT manik>
3866 * /device/include/mcs51reg.h:
3867 ds89c420 register definition update
3869 2002-03-03 <johan AT FRIJA>
3871 * support/Util/SDCCerr.c: did something, but don't no why anymore
3873 * support/regression/tests/bug-524691.c: made it a little less shy
3875 * src/SDCCast.c (decorateType): fixed bug #524697
3877 * src/SDCCast.c: made some lineno improvements
3879 * src/SDCCval.c (getNelements): changed warning to error
3881 * src/SDCCglue.c (printIvalArray): changed warning to error
3883 * src/SDCCicode.c: fixed a warning for mingw
3885 * src/SDCCast.c (decorateType): fixed the << promotion for ops
3887 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
3889 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
3891 * src/ds390/peeph.def:
3892 Added some more peephole rules
3894 * src/ds390/gen.c: Various fixes & enhancements
3896 * src/SDCClrange.c, src/SDCClrange.h:
3897 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
3899 * src/ds390/ralloc.c:
3900 various fixes & enhancements (ds390) specific
3902 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
3903 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
3906 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
3908 2002-03-02 <johan AT FRIJA>
3910 * src/SDCCast.c (decorateType): fixed bug #524708
3912 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
3914 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
3916 2002-03-01 Michael Hope <michaelh AT vroom>
3918 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
3920 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
3922 2002-03-01 <johan AT FRIJA>
3924 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
3926 * src/SDCCast.c (decorateType): fixed bug #524209
3928 * src/SDCCval.c (valNot): fixed bug #524195
3930 2002-02-26 <johan AT balder>
3932 * src/xa51/gen.c: fixed a warning
3934 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
3936 * src/SDCCast.c (decorateType): fixed bug #522534
3938 2002-02-23 <johan AT balder>
3940 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
3942 2002-02-22 <johan AT balder>
3944 * src/SDCCast.c: fixed bug #514865
3946 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
3948 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
3950 * sdcc/src/SDCCloop.c:
3951 Previous fix was not good. basic blocks that have "break" or "return" are
3952 not really partof a loop , but live ranges used in these blocks should
3953 be live thru the entire loop, so set partOfLoop but don't add them to
3956 2002-02-21 <johan AT FRIJA>
3958 * src/SDCCcse.c: fixed bug #514308
3960 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
3963 Fixed BUG #519583. If a conditional block ended in a return/break
3964 statement inside a loop, it was not being considered part of the loop.
3966 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
3968 2002-02-10 Karl Bongers <karl AT turbobit.com>
3971 Fixed up SDCDB debugger somewhat. Updated debugger/README
3972 with lots of comments and notes.
3974 * device/examples/test2.c:
3975 Fix bug, "red" variable not being initialized(compiler complained).
3977 * device/examples/Makefile, examples/test3.c:
3978 Add Makefile in device/examples folder, compiles test3.c
3979 for use as a multiple module SDCDB test case.
3981 * sim/ucsim/cmd.src/cmdset.cc:
3982 Took out debug printfs in ucsim "next" command.
3985 Karl and Johan start ucsim XA support. Most dissassembly working,
3986 about 75% emulation done(plenty of work remaining).
3988 * sim/ucsim/z80.src:
3989 Add Z80 support to ucsim, add test-ucz80 regression test,
3990 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
3991 Notice z80 compiler fails on examples/test3.c/crc code.
3993 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
3995 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
3996 Added support for --parms-in-bank1
3998 * src/ds390/peeph.def:
3999 added a few more peephole optimzations
4002 1) added __builtin_inp & __builtin_outp used to read in data of given length
4003 from a memory mapped port
4004 2) added __builtin_memcmp
4005 3) added __builtin_swapw swap bytes of a short
4007 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
4008 1) handle multiple send & receives from register bank1
4009 2) ralloc can now allocate DPTR1 to some liveRanges
4011 * src/SDCCsymt.c, src/SDCCsymt.h:
4012 changes to handle multiple sends & receives
4015 added some pointer arithmetic optimization
4018 added some pointer arithmetic optimizations but not stable yet so not
4019 called from anywhere (will get this working shortly)
4021 * src/SDCCopt.c: fixed for multiple sends & receives
4024 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
4025 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
4026 set preprocessor defines (depending on options)
4028 * src/SDCCicode.c, src/SDCCicode.h:
4029 changes made to handle multiple sends & receives
4032 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
4034 * src/SDCCcse.c, src/SDCCcse.h:
4035 added function findbackward def (to be used in upcoming optimization)
4037 * src/SDCCcflow.c, src/SDCCcflow.h:
4038 added function returnAtEnd - to determine if a basic block terminates with
4041 * src/SDCCast.c, src/SDCCast.h:
4042 added option parms-in-bank1
4044 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
4045 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
4046 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
4047 adjusted for --parms-in-bank1 option
4049 * device/include/string.h:
4050 donot redefine "reentrant" keyword
4052 * device/include/ds80c390.h: Added some more SFRs
4054 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4056 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
4058 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4060 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
4062 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4064 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
4066 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
4068 * Added --xram-movc option
4070 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4072 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
4074 2002-01-11 Johan Knol
4076 * Added math lib of Jesus Calvino-Fraga
4078 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
4080 * src/SDCCmain.c (processFile): fix processing of ../../src.c
4081 * support/regression/Makefile: new target test-mcs51-stack-auto
4082 * support/regression/ports/mcs51-stack-auto/spec.mk: added
4084 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4086 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
4088 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4090 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
4092 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4094 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
4096 * src/SDCCglue.h: add definition for printIvalChar()
4098 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4100 * src/SDCCast.c: fix #498138 by Johan
4102 * src/SDCCglue.c: fix #498138 by Johan
4104 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4106 * support/regression/Makefile: fix clean
4108 * support/regression/ports/ds390/support.c: fix transmission of last character
4110 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
4112 * /sdcc/src/ds390/gen.c:
4113 a) improved computing address of stack variable
4114 b) took out some #if 0 code
4115 c) improved parmBytes adjustment
4116 d) improved genPlusIncr & genMinusIncr
4117 e) genCmp could generate bad code (when left assigned to DPTR)
4118 f) Fixed bug in hasInc
4120 * /sdcc/src/ds390/ralloc.c:
4121 a) packRegsForSupport could mess up live information (Fixed)
4122 b) packRegsDPTRuse could be incorrect for left & right shift
4124 * /sdcc/src/mcs51/ralloc.c:
4125 packRegsForSupport could mess up the live information (Fixed)
4127 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
4129 * /sdcc/src/SDCCast.c:
4130 can reverse a loop even if function call is present as long
4131 as the loop control variable is local & is not passed as parameter
4133 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4135 * /sdcc/ChangeLog: *** empty log message ***
4137 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
4138 More builtin function additions for TININative
4140 * /sdcc/src/ds390/ralloc.c:
4141 Had broken the regression testsuite
4143 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
4145 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
4146 Added funcattr hasStackParms will be set for reentrant functions when there
4147 are paramteres on the stack, this helps in minimizing frame pointer generation
4148 typeFromStr can handle function pointers now
4150 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
4151 *** empty log message ***
4153 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4155 * /src/ds390/gen.c, /src/ds390/main.c:
4156 More builtin function additions for TININative
4158 * /src/ds390/ralloc.c:
4159 Had broken the regression testsuite
4161 * /src/SDCCast.c: Fixed a bug in dumptree
4163 * /src/SDCCsymt.c, /src/SDCCsymt.h:
4164 Added funcattr hasStackParms will be set for reentrant functions when there
4165 are paramteres on the stack, this helps in minimizing frame pointer generation
4166 typeFromStr can handle function pointers now
4168 * /doc/builtins.txt, /doc/TININative.txt:
4169 *** empty log message ***
4172 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4174 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
4175 ALPHA version for -mTININative
4177 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
4178 updated to reflect changes in the port structure
4181 added function do_assemble (similar to do_link) if non-null this function
4182 will be called to do assembly (-mTININative) requires a multi command
4184 added function genAssemblerEnd will be called to generate assembler Epilogue
4187 added _JavaNative to debug info printing
4189 * /src/SDCCmain.c: added option --tini-libid
4190 added port->do_assemble function (-mTININative) has a multi command assemble
4192 * /src/SDCCglue.c: Disabled "constExpr" check
4193 added port->genAssemblerEnd function
4195 * /src/SDCCglobl.h: Added option --tini-libid value
4198 tookout optimizeCompare from the header (has no external references)
4200 * /src/SDCCast.c: made one more function "static"
4202 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
4204 * src/z80/mappings.i: Added z80asm support.
4206 * src/z80/main.c: Added z80asm support on --asm=z80asm
4208 * src/z80/gen.c: Fixed asm portability issues.
4210 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
4212 * src/SDCCglue.c (printExterns): Added global/extern split.
4214 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
4216 * support/regression/Makefile: added test for mcs51 model large
4218 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
4220 * support/regression/ports/gbz80/spec.mk: added -mgbz80
4222 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
4224 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
4226 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
4228 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
4230 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
4232 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
4234 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
4236 * support/regression/tests/simplefloat.c: Port to mcs51.
4238 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
4239 * support/regression/tests/bug-485362.c: Added.
4241 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
4243 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
4245 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
4247 * src/z80/gen.c (aopDump): Added a dump function.
4249 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
4250 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
4252 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
4254 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
4256 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
4258 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
4260 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
4262 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
4264 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
4266 * support/regression/ports/ds390/support.c: Use tinibios.
4268 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
4270 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
4272 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
4273 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
4275 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
4277 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
4279 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
4281 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
4283 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
4284 (packRegsForIYUse): Created and optimised.
4286 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4288 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
4289 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4291 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
4293 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
4295 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
4297 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4299 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
4301 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
4303 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4305 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
4307 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
4309 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
4311 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4313 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
4314 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
4315 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
4317 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
4319 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
4320 (genNotFloat): Added.
4321 (genUminusFloat): Added.
4323 * device/lib/z80/Makefile: Added floating pt stubs.
4325 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
4327 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
4329 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
4331 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4333 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
4335 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
4337 * sdcc/support/regression/Makefile: Add port ds390.
4339 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
4341 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
4343 * sdcc/support/regression/ports/ds390/spec.mk: Added.
4345 * sdcc/support/regression/ports/ds390/support.c: Added.
4347 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
4349 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
4351 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
4353 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4355 * device/include/malloc.h: Added z80 and gbz80 support.
4357 * device/lib/gbz80/heap.s: Added.
4359 * device/lib/z80/heap.s: Added.
4361 * device/lib/malloc.c: Added z80 and gbz80 support.
4363 * support/regression/tests/malloc.c (testMalloc): Added.
4365 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
4367 * support/regression/tests/bug-478094.c: Added.
4369 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
4371 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
4373 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
4375 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
4377 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
4379 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
4381 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
4383 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4385 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
4387 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
4389 * support/regression/tests/bug-477927.c: Added.
4391 * src/z80/peeph.def: Added minor rules.
4393 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
4395 * src/z80/peeph.def: Added jump optimisation modification.
4397 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
4399 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
4401 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
4403 * support/regression/tests/funptrs.c: Added.
4405 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
4407 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
4409 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
4411 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
4413 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
4415 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
4416 (movLeft2ResultLong): Created.
4418 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
4419 (joinPushes): Added. Joins two char pushes into a word push.
4421 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
4423 * support/cpp2/Makefile.in (install): Added creation of dest dir.
4425 * support/makebin/Makefile (install): Added creation of dest dir.
4427 2001-10-24 Karl Bongers <karl AT turbobit.com>
4429 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
4431 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
4433 * src/z80/ralloc.c: Turned off faulty pack for one use.
4435 * src/z80/peeph-gbz80.def: Removed redundent restart options.
4437 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
4439 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
4441 * support/regression/Makefile: Improved clean
4443 * support/regression/ports/gbz80/spec.mk: Added clean
4445 * support/regression/ports/host/spec.mk: Added clean
4447 * support/regression/ports/z80/spec.mk: Added clean
4449 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
4451 * support/regression/ports/mcs51/timeout.c: little improvements
4453 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
4455 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
4457 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
4459 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
4461 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
4463 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
4465 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
4467 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
4468 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
4470 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
4472 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
4474 * src/mcs51/main.c (_linkCmd): Added bin path to command.
4476 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
4478 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
4480 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
4482 * support/regression/tests/longor.c: Added.
4484 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
4486 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
4488 * as/mcs51/aslink.h: define PATH_MAX
4490 * as/mcs51/asm.h: define PATH_MAX
4492 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
4494 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
4496 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
4498 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
4500 * src/SDCCglobl.h: define PATH_MAX
4502 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
4504 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
4506 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
4508 * src/z80/gen.c (gencjneshort): Fixed
4510 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
4512 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
4514 * support/regression/tests/bug-469671.c: Added.
4516 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
4518 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
4520 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
4522 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
4524 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
4526 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
4528 * src/device/lib/_mulint.c : removed hint: nooverlay bug
4530 * src/device/lib/_mullong.c : removed hint: nooverlay bug
4532 * src/device/lib/_divuint.c : removed hint: nooverlay bug
4534 * src/device/lib/_divulong.c: removed hint: nooverlay bug
4536 * src/device/lib/_moduint.c : removed hint: nooverlay bug
4538 * src/device/lib/_modulong.c: removed hint: nooverlay bug
4540 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
4542 * 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.
4544 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
4546 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
4548 2001-10-07 <johan AT FRIJA>
4550 * device/lib/gets.c (gets): fixed the return value.
4552 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
4553 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
4555 * 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.
4557 * 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.
4559 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
4561 * src/pic/gen.c: Removed Safe_strdup.
4563 * configure.in: Added option to enable libgc support.
4565 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
4566 (bitVectUnion): Optimised.
4567 (bitVectIntersect): Optimised.
4568 (bitVectBitsInCommon): Optimised.
4569 (bitVectCplAnd): Optimised.
4571 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
4573 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4575 * src/SDCCmain.c: distinguish between assembler debug and plain options
4577 * src/avr/main.c: remove standard assembler options
4579 * src/ds390/main.c: remove standard assembler options
4581 * src/mcs51/main.c: remove standard assembler options
4583 * src/port.h: removed "PENDING" comment
4585 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4587 * src/device/lib/_mulint.c : new, with assember functions
4589 * src/device/lib/_mullong.c : new, with assember functions
4591 * src/device/lib/_divuint.c : with assember functions
4593 * src/device/lib/_divsint.c : with assember functions
4595 * src/device/lib/_divulong.c: with assember functions
4597 * src/device/lib/_divslong.c: with assember functions
4599 * src/device/lib/_moduint.c : with assember functions
4601 * src/device/lib/_modsint.c : with assember functions
4603 * src/device/lib/_modulong.c: with assember functions
4605 * src/device/lib/_modslong.c: with assember functions
4607 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
4609 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
4611 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
4612 replaced _mululong.c and _mulslong.c by _mullong.c
4614 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4616 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
4618 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4620 * src/SDCCglue.c: test, if win32api is available for MINGW
4622 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4624 * src/SDCCsymt.c: no more _modifier in printTypeChain()
4625 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
4626 * support/regression/ports/gbz80/spec.mk: removed GENERIC
4627 * support/regression/ports/host/spec.mk: removed GENERIC
4628 * support/regression/ports/mcs51/spec.mk: removed GENERIC
4629 * support/regression/ports/z80/spec.mk: removed GENERIC
4631 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
4633 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
4635 * support/regression/tests/bug-467035.c: Created.
4637 2001-10-01 <johan AT FRIJA>
4639 * src/SDCC.y: fixed bug #466586 part 1
4641 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
4643 * SDCCicode.c: z80 has no generic pointers
4644 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
4646 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
4648 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
4650 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
4652 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
4654 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
4656 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
4658 * configure.in: Fixed up so that ucsim is only configured once.
4660 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
4662 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
4663 (getPathDifference): As above.
4665 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
4667 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
4669 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
4670 * .version: Updated to 2.3.1
4672 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
4673 Added copyright header.
4675 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
4676 (assemble): Added support for macro based assembler commands.
4677 (linkEdit): Added support for macro based linker commands.
4678 (preProcess): Changed the pre-processor to use macros.
4679 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
4680 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
4682 * device/lib/z80/crt0.s: Added module name for debugging.
4684 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
4686 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4688 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
4690 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
4692 * src/Makefile.in: Added SDCCmacro and SDCCutil
4694 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
4696 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4698 2001-09-16 <johan AT FRIJA>
4700 * 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.
4702 2001-09-15 <johan AT FRIJA>
4704 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
4705 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
4707 2001-09-11 <johan AT FRIJA>
4709 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
4711 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
4713 * support/regression/tests/bug-460444.c: Added test case.
4715 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
4716 (genCast): Added justification for all of the asserts.
4718 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
4720 * support/regression/support.c: _xdata replaced by xdata
4722 * support/regression/spec.mk: removed _generic
4724 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
4726 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
4728 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
4729 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
4731 * src/z80/peeph.def: Added a rule to optimise shift then compare.
4733 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
4735 * support/regression/tests/bug-460010.c: Added test case.
4737 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
4739 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
4741 * support/regression/Makefile: inter-port-clean adjusted for mcs51
4743 * support/regression/testfwk.c: removed workaround for bug #436344
4745 * support/regression/tests/bp.c: use less memory with mcs51
4747 * support/regression/tests/bug-441448.c: use less memory
4749 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
4751 * support/regression/collate-results.py: typo
4753 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
4755 * support/regression/tests/fetchoverlap.c: Added new test case.
4757 * support/regression/tests/bp.c: Added new test case.
4759 * support/regression/tests/bug-448984.c: Added new test case.
4761 * support/regression/tests/pow2shifts.c: Added new test case.
4763 * src/z80/gen.c: Turned off the noise it normally generates for the release.
4764 (genlshTwo): Fixed right shift for count > 8.
4766 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
4768 2001-09-08 <johan AT FRIJA>
4770 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
4772 2001-09-07 <johan AT FRIJA>
4774 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
4776 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
4778 2001-09-06 <johan AT FRIJA>
4780 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
4781 * bernhard noted me at this: "() equals to (void)" (1.38)
4783 2001-09-05 <johan AT FRIJA>
4785 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
4787 2001-09-04 <johan AT FRIJA>
4789 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
4792 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
4794 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
4796 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
4798 * link/z80/aslink.h: Fixed path for PATH_MAX
4800 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
4802 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
4804 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
4806 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
4808 * 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.
4810 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
4812 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
4813 (genCmp): Fixed up genCmp for the GB with longs.
4815 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
4817 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
4819 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
4821 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
4823 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
4825 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
4827 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
4829 * 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.
4831 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
4833 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
4835 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
4837 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
4839 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4841 * sim/ucsim/configure: little improvement of Cygwin-detection
4842 * sim/ucsim/configure.in: little improvement of Cygwin-detection
4843 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
4844 * support/regression/tests/bug-221100.c: small changes for mcs51
4845 * support/regression/tests/bug-221168.c: small changes for mcs51
4846 * support/regression/tests/bug-227710.c: small changes for mcs51
4847 * support/regression/tests/staticinit.c: small changes for mcs51
4848 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
4849 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
4850 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601