1 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3 * device/include/c8051f120.h,
4 * device/include/c8051f300.h,
5 * device/include/c8051f310.h: added/updated header files for Silicon
6 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
8 in new section Submitting patches
10 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
13 genFarPointerGet, genCodePointerGet, genGenPointerGet,
14 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
16 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
17 genFarPointerGet, genCodePointerGet, genGenPointerGet,
18 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
20 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
21 genFarPointerGet, genCodePointerGet, genGenPointerGet,
22 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
24 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
25 genFarPointerGet, genCodePointerGet, genGenPointerGet,
26 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
27 genGenPointerSet): fixed bug #892400
28 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
29 to eliminate build warnings.
30 * src/SDCCast.c (processParms),
31 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
33 * support/valdiag/valdiag.py: added GCC to the list of defines active
34 when compiling with gcc
36 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
38 * support/Util/SDCCerr.h,
39 * support/Util/SDCCerr.c,
40 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
41 with an incomplete type (fixed bug #883734)
42 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
44 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
46 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
48 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
50 * src/SDCCast.c (decorateType),
51 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
52 function pointer implementation
53 * support/regression/tests/funptrs.c: added tests to verify both forms
54 of function pointers work correctly. Added tests to verify parameters
55 are passed in the correct order.
57 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
59 * device.c (regCompare): registers are sorted by ascending
60 address and increasing size,
61 * main.c (_pic16_finaliseOptions): removed the declaration
62 of compiler macro MCU. Now a macro of the format pic18fxxxx
63 will be defined from the command line
65 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
66 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
68 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
69 PCOP_RLCF was overwritten!
70 * gen.c (genSkip) commented out calls to pic16_emitcode,
71 * (genCmpEQ) fixed "long" compares, only high word did get compared,
73 * (genRRC) added debugging info,
74 * (shiftL2Left2Result) Fixed bug, if offr > offl. Result got
75 overwritten while shifting,
76 * (shiftR2Left2Result) Fixed bug, if offr < offl. Result got
77 overwritten while shifting,
80 * (shiftLLeftOrResult),
81 * (shiftRLeftOrResult),
83 * (shiftLLong) Implemented with pic16_emitpcode
84 * (genlshFour) Replaced pic16_aopPut with pic16_emitpcode,
85 * (genLeftShift) Fixed bug, operand for shift by variable always
86 was "and"ed with 0x0f,
87 * (genLeftShiftLiteral),
89 * (genRightShiftLiteral) added debugging info,
90 * (genrshFour) added comment,
91 * (genRightShift) determined signedness from operand "left"
94 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
96 * src/SDCCicode.c (geniCodeParms),
97 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
98 function pointers, fixed function pointer bugs #861242 and #861896
100 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
102 * device/include/c8051f000.h,
103 * device/include/c8051f120.h,
104 * device/include/c8051f300.h: added header files for Silicon
105 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
107 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
109 * src/SDCCast.c (processParams): added new type flow and restructured
110 (gatherAutoInit): added new type flow
111 (addCast): cosmetic changes
112 (getLeftResultType): added new type flow for array indices, patch
113 provided by Stas, see FR #877103
114 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
115 array index patch by Stas
116 * src/SDCCast.h: added prototype getResultTypeFromType()
118 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
119 * src/pic/glue.c (pic14emitStaticSeg),
120 * src/pic16/glue.c (pic16emitStaticSeg),
121 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
122 for initialization of symbols
123 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
124 * support/Util/SDCCerr.h:
125 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
126 * .version: bumped version number to 2.3.8
127 * device/include/Makefile.in (install),
128 * doc/Makefile (install): changed to 'rm `find ...`' construct to
131 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
133 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
134 Slade Rich fixed an optimization bug
135 * src/pic/pcodepeep.c,
136 * src/pic/pcoderegs.c
137 * doc/Makefile (install): added test for directory
139 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
141 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
142 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
143 * src/pic/ralloc.c (getRegPtr, getRegGpr),
144 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
145 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
146 * as/mcs51/asexpr.c (term),
147 * as/hc08/asexpr.c (term): fixed bug #887146
149 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
151 * src/z80/gen.c (genMult): handle single byte result product
152 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
153 DUMMY_READ_VOLATILE (fixed bug #886367)
155 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
157 * support/regression/tests/libmullong.c: fixed logic, on little endian
158 hosts we ended without a mullong_wrapper()
160 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
162 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
163 virus/worm forged address usage.
165 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
167 Fixed promotion, it should be done on AST level:
168 * src/SDCCast.c (addCast): added promotion to int
169 (decorateType): updated call to upCast()
170 * src/SDCCicode.c (geniCodeLeftShift): removed call to
171 usualUnaryConversions()
173 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
175 * support/regression/tests/literalop.c (mulWrapper): Added a
176 wrapper to remove integer overflow warnings.
178 * support/regression/tests/float_trans.c: Made work on host.
180 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
183 * support/regression/generate-cases.py (main): Changed from inline
186 * doc/Makefile (install): Changed to depth first to get rid of
187 missing directory install warning.
189 * as/Makefile (install-doc): Made work on Mac.
191 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
193 * src/SDCCast.c: added an additional type flow in decorateType() of
194 opposite direction, see feature request #860006; it's enabled at runtime
195 by setting the environment variable SDCC_NEWTYPEFLOW
196 * src/SDCCast.h: changed prototype of decorateType()
197 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
198 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
199 'char' to 'int' can be omitted, if both operands are 'unsigned char';
200 see feature request #877103
201 * src/SDCCval.c: updated call of decorateType()
202 (valBitwise): fixed bug #882876
203 (valMinus): added promotion
204 (valLogicAndOr): result is unsigned
205 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
206 * src/SDCCsymt.c (computeType),
207 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
208 must not cause an unsigned operation
209 * src/pic/glue (pic14emitRegularMap),
210 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
212 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
214 * src/pic/pcode.c (PCodeID): commented out left over debug code
216 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
218 * support/valdiag/tests/overflow.c: added shift tests
226 * src/pic/pcodepeep.c,
227 * src/pic/pcoderegs.c,
229 * src/pic/ralloc.h: applied patch from Slade Rich;
230 added support for multiple code pages and multiple RAM banks on the
231 PIC 14 port. The ASM files now no longer simply assume all the
232 code / RAM are in the same page / bank. This means the linker can
233 safely allocate code/RAM of separate ASM files to different pages/banks.
234 * doc/sdccman.lyx: added Slade's tips
235 * src/mcs51/peeph.def: fixed bug #880768
237 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
239 * src/hc08/ralloc.c (rematStr): fixed bug #879282
240 * src/SDCCast.c (decorateType): fixed bug #880197
242 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
244 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
247 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
248 strtof is not part of C89 and isn't included with Mac OS X.
250 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
252 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
253 shiftL2Left2Result): fixed bug #879326
254 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
255 (genMultOneByte): fixed bug in signed vs unsigned multiplication
256 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
257 address fetch for clr instruction
258 * device/lib/hc08/_mulint.c: created optimized assembly version
259 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
261 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
263 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
264 proposed in FR #877103
266 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
268 * src/SDCCval.c (cheapestVal): added missing checks
269 * src/SDCCicode.c (usualBinaryConversions): fixed condition
270 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
272 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
274 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
277 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
279 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
280 loaded with the linker search paths (-L arguments) and the libraries
281 to be linked with the current source (-l arguments). Changes
282 currently will affect only the pic16 port.
283 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
284 include path the port specific paths and port specific libraries,
285 * gplink command now contains the $3 argument,
286 * src/pic16/device.h,
287 * src/pic16/device.c,: structure PIC_device is made public and
288 renamed to PIC16_device, the same for variable Pics which is renamed
289 to Pics16. Updated all references to them.
290 * src/pic16/glue.c (pic16glue): corrected bug with code
291 initialization which bypassed the variable initializations block.
293 * device/lib/pic16/Makefile.rules: removed --penable-stack from
294 COMPILE_FLAGS and added the --nostdinc option
296 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
298 * device/include/mc68hc908jb8.h: Register defs for another member
299 of the hc08 family. Contributed by Bjorn Bringert - thanks!
301 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
303 Documenting changes from previous commits.
304 * configure.in (version 1.56),
305 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
306 when generating output files to configure the pic16 library,
307 but now I've commented it out, since gputils aren't installed in the
308 SF compile farm, so library won't compile
310 * device/lib/Makefile.in (version 1.56): initially I've added in
311 target 'all' the prerequestive 'model-pic16' so it compiled the
312 pic16 library, but now I've commented it out for the same reasons
314 * added targets 'model-pic16' and 'objects-pic16' to compile the
316 * added target 'port-specific-objects-pic16' to handle the
317 generated libraries and copy them into the build/ directory
318 * added target 'clean-intermediate-pic16' to clean intermediate
319 files into pic16 directory
320 * in target 'installdirs' added line to create directory pic16 in
321 the installation path
323 * device/include/Makefile.in (version 1.11): in target 'install'
324 added lines to copy all header files to installation path,
325 * in target 'installdirs' added line create directory for pic16
326 headers in the installation path
328 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
330 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
333 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
336 * device/lib/configure.in,
337 * device/lib/configure: fixed for autoconf 2.57
339 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
341 * src/z80/main.c (_parseOptions): fixed the portmode= command line
342 option so that it actually works. Made it specific to the z80, since
343 the gbz80 doesn't have these kinds of I/O ports.
345 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
347 * device/include/z180.h,
348 * device/lib/_memcpy.c,
349 * device/lib/_memmove.c,
350 * device/lib/_mulint.c,
351 * device/lib/ser_ir.c,
352 * device/lib/ser_ir_cts_rts.c,
353 * device/lib/_strcmp.c,
354 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
355 * src/z80/main.c (_process_pragma): add support for pragmas bank and
356 portmode; added deprecation warning for bank= and protmode= forms.
357 Also, guard against buffer overflow.
358 * src/z80/gen.c (aopGet): generate better code for sfr banked read
360 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
362 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
363 changed interrupt vector table generation to only emit declared vectors.
364 * device/include/Makefile.in: added missing backslash
365 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
367 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
369 Mainly changes to support compilation of the device libraries
370 * src/pic16/device.c: stack is allocated via symbol and not
371 via literal number. The symbol is placed in the corresponding
372 position of the data ram
373 * (pic16_dump_section): relocatable and absolute uninitialized
374 data are now emitted in sorted order to reduce section naming,
375 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
376 weren't marked as being in the access bank,
378 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
380 Added portion of GNU PIC Library under the directory
381 device/include/pic16 and device/lib/pic16. These files
382 contain the declarations of SFRs for the PIC18Fxx2 devices.
383 The directory is initialized via configure from toplevel.
385 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
387 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
388 the spilllocations to be compared correctly
390 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
392 * src/SDCCast.c (decorateType): fixed bug introduced today
394 2004-01-12 Borut Razem <borut.razem AT siol.net>
396 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
397 doc/sdccman.lyx: upper case pragmas are deprecated
399 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
401 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
402 in simpler and even better code
404 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
406 * src/SDCCicode.c (operandOperation): fixed bug #874819
407 * src/SDCCast.c (decorateType): fixed
408 char foo (unsigned long ul) { return ul > 0; }
410 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
412 * doc/sdccman.lyx: Moved and added some sections, small changes
413 all over. Telling LaTeX to be less strict with word spacing
414 to better keep the right margin. Changed some notes about
415 maintainance of the ports in section 3.2.1 - is it OK like this?
417 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
420 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
421 convilong): modified to inform the pic16 port that builtin functions
424 PIC16 PORT specific changes:
425 * src/pic16/device.c pic16_dump_equates() added,
426 processor registers declared internally by the port are emitted in
427 the translation as equates,
428 * src/pic16/gen.c: inline code is passed unprocessed to the
430 * (pic16_popGetLit2): fnuction modified to take second operand as
431 pCodeOp pointer and not as literal,
432 * (popRegFromIdx): prefixed with pic16_,
433 * (pic16_popCombine2): modified to receive already allocated pCode
435 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
436 * (genFunction): initializes local stack frame and pushes on stack
437 all the registers used by this function,
438 * (genEndFunction): restores all registers from stack and restores
440 * src/pic16/glue.c (pic16emitRegularMap): various changes and
442 * (pic16glue): changed the program startup sequence,
443 * added new dbName code 'A' for functions placed in absolute section
444 * src/pic16/main.c: added function attribute _naked,
445 * added pragma 'code' to place a fnuction at an absolute address,
446 * added command line arguments --debug-ralloc and --pcode-verbose,
447 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
448 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
449 * (pic16_newpCodeOpLit2): modified to take the second operand as
451 * (pic16_printpBlock): modified to emit each function in a separate
453 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
454 UPPER for immediate operands,
455 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
457 * src/pic16/peeph.def: all peepholes with movff are commented out,
458 because there is a problem in the pcode peep optimizer,
459 * src/pic16/ralloc.c: the register allocator can now reuse local
460 function symbols for another function. This saves register usage.
461 * src/pic16/ralloc.h: added flag isLocal in structure regs,
463 Added file src/pic16/NOTES with information about program writing on
464 the current port version.
466 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
468 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
469 and peephole 252 (array access)
471 2004-01-09 Borut Razem <borut.razem AT siol.net>
473 * src/SDCCmain.c : fixed #872250: -l command line defined library
474 files are scanned before standard library files
476 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
478 * src/SDCCast.c (decorateType): fixed bug #874046
480 2004-01-09 Borut Razem <borut.razem AT siol.net>
482 * support/scripts/sdcc.nsi: remove previous installation
484 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
486 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
487 bytes for last interrupt vector (mcs51)
488 * sdcc.spec: fixed typo
490 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
492 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
493 gen51Code): more efficient parameter receive for --model-large
496 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
499 * src/z80/main.c: added missed needLinkerScript flags (more than
500 one port structure defined in these file)
501 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
504 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
506 * src/SDCCmain.c: removed various references to DEFAULT_PORT
507 * src/port.h: added flag needLinkerScript in port->linker
508 structure to inform whether to create a .lnk file or not,
516 * src/z80/main.c: changed appropriately to configure
517 needLinkerScript flag
519 * src/pic16/gen.c (genAddrOf): fixed bug #863624
520 * src/pic/glue.c: added variable udata_section_name to
521 override default uninitialized data segment definition for
522 devices only with SHAREBANK memory (reported from Erik Epetrich)
523 * (pic14emitOverlay): modified to emit a commented overlay segment
524 directive when no overlay data exist
525 * (picglue): modified to emit uninitialized data segment
526 according to udata_section_name
527 * src/pic/main.c (_pic14_parseOptions): added command line
528 options --udata-section-name=[name] to override default
529 udata definition name
530 * modified _linkCmd and _asmCmd to include compiler passed
531 arguments via -W option
532 * src/pic16/main.c: added $l in _asmCmd, changed extension for
533 object file from '.rel' to '.o' in port->linker structure,
534 changed size of fptr from 2 to 3 in port structure
536 2004-01-07 Borut Razem <borut.razem AT siol.net>
538 * support/scripts/sdcc.nsi: update PATH
539 * support/scripts/sdcc.ico: craeted
541 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
543 * device/include/Makefile.in: fix install
544 * doc/Makefile: fix install
546 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
548 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
550 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
551 how the function variable allocation summary is displayed; also
552 include information about variables allocated to the overlay
555 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
557 * as/mcs51/lkmain.c: Help about -Y option
558 * as/mcs51/lkarea.c: Fixed gcc warnings
560 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
562 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
564 * support/valdiag/tests/overflow.c: added
565 * src/SDCCast.c (decorateType),
566 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
569 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
571 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
574 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
576 A python script to validate compiler diagnostic messages. It can be
577 used to verify that sdcc complains about bad c source code and
578 gives a good location of the error.
579 * support/valdiag/Makefile,
580 * support/valdiag/valdiag.py,
581 * support/valdiag/tests/*
583 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
585 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
586 * src/SDCCsymt.c (newEnumType),
588 * support/Util/SDCCerr.c,
589 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
591 * support/regression/tests/enum.c: added test for enum values that
592 require at least 2 bytes of storage.
594 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
596 * src/common.h: added ifndef/define/endif macros
597 around the header file.
598 Bug reported from Jesus Calvino-Fraga
600 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
603 * device/include/Makefile.in: don't install CVS directories
604 * device/lib/Makefile.in: added removal of CVS directories after install
605 * doc/Makefile: fixed install, added local_icons
606 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
607 * src/mcs51/gen.c (genRightShift): fixed bug #870788
608 * src/ds390/gen.c (genRightShift): fixed bug #870788
609 * src/SDCCast.c (decorateType): fixed bug #870781
611 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
613 PIC16 port related changes:
614 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
615 added variable stackPos,
617 * gen.c: genCall, assignResultValue: added support for
618 pushing/retrieving function parameters to/from stack,
619 genFunction,genEndFunction: setup stack frame for the
621 genAddrOf: will be changed according to bug 863624
623 * added files genutils.c and genutils.h which contain gen*
624 debugged and optimised functions extracted from gen.c
626 * glue.c: added variable 'externs' which holds extern symbols,
627 pic16emitRegularMap: is modified to properly handle relocatable
628 symbols under the new scheme,
629 pic16createInterruptVect: is modified
630 pic16printPublics: is modified to emit 'global' assembler directives,
631 added pic16_printExterns to print extern symbols,
632 pic16glue: initializes stack/frame pointer in the beginning of
633 the assembly output. Temporary hack, will be corrected later,
634 because gplink yet does not support stack and SDCC does not
635 yet support a type of crt0.o object to create the final binary.
637 * Removed many lines that contain 8051 legacy code.
638 * The code is finally placed under a 'code' directive.
639 * Added port specific options.
641 * _process_pragma: simplified since now we do not need *special*
642 include file to define SFR registers. But a separate header
643 will be needed. This will be developed later.
644 * _pic16_parseOptions: added, parses port specific options:
645 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
646 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
647 --preplace-udata-with=
649 * _pic16_setDefaultOptions: modified to initialize section names,
650 but hack is temporarly out of order since it needs improvement.
651 * _pic16_genAssemblerPreamble: configuration words are emitted by
652 their address instead of their name. This part is incomplete and
653 supports only the 18Fxx2 devices. Other devices will emit an error
654 during assembly since they do not contain the same set of config
656 * _pic16_genIVT: is modified,
658 * pcode.c: added definitions for some hardware registers that are needed
660 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
661 All PCI entries are updated. Now LFSR is supported.
662 * Removed pic16_pciTRIS is mentioned by mdubuc in source
663 * added pic16_newpCodeOpLit2 to support instructions with
664 two literal arguments
665 * pic16_pCode2str: corrected code that emits assembler instructions
666 with two literal operands and those that have an access bit modifier
667 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
668 this fixes a bug which caused some labels to be lost, when an
669 assembler directive was added, i.e. banksel,
670 * pic16_FixRegisterBanking: improved logic that causes the insertion
672 * InlineFunction: functions that are called once, are not any more
673 inlined. This can be a port option in the future,
675 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
677 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
678 hold the corresponding uninitialized symbols,
679 * pic16_allocProcessorRegister: registers have explicit marked the
681 * pic16_allocInternalRegister: registers are explicit marked as
683 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
684 processing list, so bit registers were lost,
687 * ralloc.h: added field 'accessBank' and original symbol operand
688 in register definition,
689 * removed the field isMapped from register definition,
691 ** Several functions have been removed from various sources:
692 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
693 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
694 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
695 pic16_assignRelocatableRegisters
697 ** others have been introduced:
698 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
699 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
701 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
703 * support/scripts/inc2h.pl: changed definition of BIT_AT
704 to emit 'sbit at' instead of 'bit at'. This was a request.
706 PIC16 port related preliminary changes:
707 * gen.c: prefixed function popRegFromString with
708 pic16_ and all references to it corrected
709 * pcode.c: all pic16_pc_* hardware registers prefixed
711 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
712 * ralloc.c: newReg(): when register is REG_SFR then
714 pic16_allocProcessorRegister(): marks register wasUsed=0
715 pic16_writeUsedRegs(): added a call to assign processor
716 registers via pic16_assignFixedRegisters
718 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
720 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
721 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
722 variables in unused register banks. Also the SSEG is placed
723 wherever there is enough space for it, and IDATA can be anywhere
724 in internal RAM. For now compile using -Wl-Y[stack_size].
725 The mem file is different for this option as well, since it
726 makes no sense of talking about DSEG lenght.
728 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
730 * src/SDCClrange.c: fixed bug 869095 that caused segfault
731 in certain cases, e.g. when ROM assignment, patch provided
732 from Albert den Haan.
734 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
736 Many signedness and type propagation fixes:
737 * src/SDCCicode.c: made geniCodeCast() static
738 replaced SPEC_ by IS_ (cosmetic)
739 (operandOperation): fixed div and mod operation
740 (usualBinaryConversions): added support for promotion of char
741 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
742 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
743 (geniCodeAdd): an array index will stay unsigned, even if promoted
745 (geniCodeArray): ditto
746 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
747 * src/SDCCsymt.c (computeType): added more support for char;
748 promotion of char is selectable by promoteCharToInt, fixed signedness
750 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
751 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
752 * src/SDCCval (val*): replaced signedness calculation by
754 rearranged if-branches (cosmetic)
755 (valShift): added warning W_SHIFT_CHANGED
756 (valCompare): fixed problem with different types
757 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
758 * support/regression/tests/literalop.c: added many cases
759 * support/regression/tests/ast_constant_folding.c: changed finally to
761 * .version: new year, new version: 2.3.7
762 * src/SDCCmain.c (main): applied patch #866468
763 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
764 provided by Scott Bronson
765 * doc/sdccman.lyx: updated documentation for sdcdb
766 updated and added chapter tips
768 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
770 * src/SDCCsymt.h: missing from yesterday's commits
772 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
774 * src/SDCC.y (struct_or_union_specifier),
775 * support/Util/SDCCerr.c,
776 * support/Util/SDCCerr.h: verify that struct & union tags are used
779 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
781 * src/SDCCglobl.h: missing from yesterday's commits
783 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
785 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
786 sft_attributes, struct_declaration, parameter_declaration,
787 type_name, start_block, declaration_list),
788 * src/SDCC.lex (check_type): support redefinition of typedef names
790 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
792 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
793 aligned xdata arrays. Erik helped me with the if clause.
795 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
797 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
800 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
803 * src/SDCCast.c (newAst_),
805 * src/SDCCicode.c (ast2iCode, newiCode),
807 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
808 expr, statement, expression_statement, selection_statement,
809 iteration_statement, expr_opt, jump_statement): foundation for tracking
811 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
814 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
816 * support/Util/SDCCerr.c,
818 * src/SDCCast.c (createCase, createDefault, decorateType),
819 * src/SDCClabel.c (labelUnreach),
820 * src/SDCC.y (labeled_statement, jump_statement): More improvements
822 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
823 (with thanks to Stas Sergeev)
824 * device/include/time.h,
825 * device/lib/time.c (CheckTime): suppress unreachable code warning
827 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
829 * src/SDCCast.c (createIvalCharPtr),
830 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
832 * support/regression/tests/nullstring.c: tests for these two bugs
834 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
836 * support/Util/SDCCerr.h,
837 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
838 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
839 about storage class and 'at' used inside struct or union
840 * src/SDCCBBlock.c (iCodeFromeBBlock),
841 * src/SDCCcse.c (ifxOptimize),
842 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
843 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
844 printIval, emitStaticSeg, emitOverlay),
845 * src/SDCClabel.c (deleteIfx),
846 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
847 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
848 gatherAutoInit, processParms),
849 * support/Util/SDCCerr.h,
850 * support/Util/SDCCerr.c (werrorfl): Support for better error location
851 reporting for post-parse errors.
853 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
855 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
856 implicit casts via union; they don't work on big endian systems
857 (possible fix for bug #861138)
859 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
861 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
862 * src/mcs51/main.c: fixed the fix for bug #737001
864 2003-12-15 Borut Razem <borut.razem AT siol.net>
866 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
868 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
870 * support/makebin/makebin.c: put output in binary mode
872 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
874 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
875 xdata and data memory on startup. Set the environment variable
876 SDCC_NOGENRAMCLEAR to disable this.
877 * src/mcs51/peephole.def,
878 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
879 (allows non-interrupt and interrupt code to safely compete for a resource
880 without the non-interrupt code having to disable interrupts)
882 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
884 * src/SDCCicode.c (geniCodeAdd),
885 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
886 with valFromType if type might be a pointer and host is big endian).
887 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
888 types, not just integer types.
889 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
890 multiply defined with mismatching "at" address.
892 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
894 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
895 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
896 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
897 with embedded nulls (fixed bug #753752)
899 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
901 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
902 Apparently this did not see much testing (endless loop)
904 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
906 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
908 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
910 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
911 gracefully handle NULL memmap pointers
913 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
915 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
916 instead of deleting the iCode when an operand is volatile
917 * src/z80/gen.c (genDummyRead),
918 * src/mcs51/gen.c (genDummyRead),
919 * src/ds390/gen.c (genDummyRead),
920 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
922 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
923 * src/SDCC.y: fixed bug #850420
925 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
927 Applied z80 i/o port patch from Peter Townson and fixed some operators
928 to better handle operands in A register.
929 * device/include/z180.h
935 * src/z80/peeph-z80.def
939 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
941 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
943 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
945 * device/lib/hc08/_mullong.c: Removed extra #endif
947 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
949 * sim/ucsim/hc08.src/inst.cc,
950 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
952 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
953 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
954 * device/include/stdarg.h: fixed varargs for hc08
955 * device/lib/Makefile.in,
956 * device/lib/hc08/Makefile,
957 * device/lib/hc08/_mulint.c,
958 * device/lib/hc08/_mullong.c: fixed some endian problems
960 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
962 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
963 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
964 * device/lib/_gptrget.c,
965 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
967 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
969 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
970 * src/SDCCast.c (astErrors): fixed bug #846007
971 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
973 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
975 * src/SDCCast.c (decorateType): disabled a transformation I added in
976 revision 1.188 (access to fields of a structure at an absolute address);
977 it breaks with bitfields, extern declarations, and gcse analysis.
978 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
979 could be assigned through a pointer, so don't complain.
980 * src/SDCCast.c (astErrors),
982 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
984 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
986 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
987 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
988 output of __config directives, since gpasm now supports them
989 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
990 pre-processor macro, i.e. -DMCU=p18f452
991 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
992 and modified to handle 'cast' icode similarly to '=' icode
993 * src/pic16/device.h (typedef struct PIC_device): added field
994 'extMIface' to indicate that chip has external memory interface
995 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
996 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
999 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1001 * src/SDCC.y (pointer): fixed bug #846006
1002 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
1003 * src/SDCCast.c (decorateType): fixed bug #846009
1004 * src/ds390/peeph.def,
1005 * src/ds390/gen.c (genAnd, genOr),
1006 * src/mcs51/peeph.def,
1007 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
1009 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1011 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
1018 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
1022 * src/SDCCbitv.c: added function to free a bitvector
1024 * src/SDCClrange.c: added function to recompute the liveranges
1026 * src/ds390/ralloc.c,
1027 * src/hc08/ralloc.c,
1028 * src/mcs51/ralloc.c,
1030 * src/pic16/ralloc.c,
1031 * src/xa51/ralloc.c,
1032 * src/z80/ralloc.c: recompute the liveranges after register packing
1034 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
1036 * src/SDCCloop.c (newInduction): fixed bug #845630
1038 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1040 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
1041 inadvertantly left behind from my 2003-11-12 change
1043 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1045 Updated headers I neglected to commit yesterday.
1049 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1051 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
1052 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
1053 * src/SDCCopt.c (eBBlockFromiCode),
1054 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
1055 the creation of the key hash table from the sequencing so it can be used
1056 earlier (for some GCSE bug fixes still pending)
1058 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1060 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
1061 * support/regression/tests/addsub.c: testing genPlus shortcut
1063 2003-11-15 Borut Razem <borut.razem AT siol.net>
1065 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
1067 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1069 * src/SDCCcse.c (cseBBlock): fixed bug #527779
1070 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
1071 ordering is immaterial.
1072 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
1074 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1076 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
1077 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
1078 (SIGSEV) of bug #840381
1079 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
1080 unlink new file before rename if new and old filenames are the same)
1082 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1084 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
1085 uninitialized variables) for the mcs51. Set environment variable
1086 SDCC_GENRAMCLEAR to test.
1087 xdata initialization slightly shorter
1089 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1092 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
1093 #838241 & 780691 (basicly the same bug)
1094 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
1095 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
1097 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
1099 * src/SDCCmain.c (linkEdit): "fix" #834252
1101 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1103 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
1105 * src/SDCC.y: fixed bug #819403
1107 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1109 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
1110 the reentrant attribute.
1111 * src/hc08/gen.c (genPackBits): added missing stack readjustment
1112 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
1114 * src/SDCCast.c (decorateType): fixed bug with storage class not being
1115 updated during pointer dereference; f.e. ~(((char *)1)*) was being
1116 erroneously reduced to a literal.
1117 * src/hc08/ralloc.c (packRegisters, rematStr),
1118 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
1121 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1123 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
1124 * doc/sdccman.lyx: changed from 'article' to 'book'
1125 * doc/Makefile: readded test_suite_spec and cdbfileformat
1127 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
1129 * device/include/stdlib.h: include malloc.h to comply with ANSI
1130 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
1132 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1134 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
1135 * doc/clean.mk: also remove *.out files
1136 * doc/sdccman.lyx: some additions, larger top/bottom margins
1138 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1140 * src/SDCC.y: fixed bug #837365
1141 * support/regression/tests/bitopcse.c
1142 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
1143 a symbol (might be valop instead)
1144 * device/lib/Makefile.in: added errno.c to HC08SOURCES
1145 * device/lib/clean.mk: added hc08 to the cleaning list
1147 2003-11-04 Borut Razem <borut.razem AT siol.net>
1149 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
1151 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1152 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
1153 malloc is declared in standard stdlib.h
1155 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1157 * device/lib/hc08/Makefile: need to clean .rel not .o files
1158 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
1160 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1170 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
1171 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
1172 tests (which uses the port's oclsExpense function)
1178 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
1180 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1182 * src/SDCCcse.c (ifxOptimize),
1183 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
1184 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
1185 deleting the IFX iCode.
1186 * src/hc08/ralloc.c: reduced unneeded slocs
1187 * src/hc08/gen.c: fixed bug in asmopToBoolean
1189 2003-11-04 Borut Razem <borut.razem AT siol.net>
1191 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
1192 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1193 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
1194 transferred to configure
1196 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
1198 Use headers defined in the C[++] standards:
1199 * sim/ucsim/gui.src/serio.src/fileio.cc
1200 * sim/ucsim/gui.src/serio.src/frontend.cc
1201 * sim/ucsim/gui.src/serio.src/main.cc
1202 * sim/ucsim/gui.src/serio.src/posix_signal.cc
1203 * support/Util/NewAlloc.c
1209 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1211 * Added MSVC projects for hc08 assembler and linker:
1212 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
1213 /as/hc08/link_hc08.dsp
1215 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
1217 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
1219 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
1221 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
1223 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1225 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
1227 2003-10-31 Borut Razem <borut.razem AT siol.net>
1229 * support/cpp2/cpplib.h,
1230 support/cpp2/cpplib.c,
1231 support/cpp2/cpplex.c,
1232 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
1233 to switch _asm block preprocessing on / off. Default is
1234 #pragma preproc_asm +
1236 2003-10-31 Borut Razem <borut.razem AT siol.net>
1238 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
1239 when outputting comment blocks (when executed with -C option) and
1240 _asm (SDCPP specific) blocks
1242 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1244 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
1246 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
1248 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
1250 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
1252 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
1253 * src/SDCCast.c (decorateType): fixed bug #832664
1255 2003-10-31 Borut Razem <borut.razem AT siol.net>
1257 * support\cpp2\cpplex.c: fixed for SDCPP:
1258 comments(when executed with -C option) and _asm blocks
1259 were included even if they where in skipped #if block.
1260 Applied solution from GCC cpp 3.3.2
1262 2003-10-31 Borut Razem <borut.razem AT siol.net>
1264 * src/SDCC.lex: sdcc now understands both formats:
1265 '# <line_number> <file_name>' and
1266 '#line <line_number> <file_name>'
1267 * support/cpp2/cppmain.c: sdcpp now generates the standard
1268 '# <line_number> <file_name>' instead of former
1269 '#line <line_number> <file_name>'
1271 2003-10-30 Borut Razem <borut.razem AT siol.net>
1273 * support/cpp2/cpphash.h,
1274 * support/cpp2/cpplib.h
1275 * support/cpp2/cpplex.c,
1276 * support/cpp2/cppmain.c,
1277 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
1279 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1281 Fixed a number of problems revealed by bug #827883.
1282 * src/SDCCloop.c (loopInvariants): Spill location of the
1283 result operand should be recomputed if extracted from
1284 a loop. Also, don't extract assignments of an iTemp
1286 * src/SDCCast.c (isConformingBody): loop reversal should
1287 not occur if the control variable is involved with a
1288 relational operator.
1290 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1292 * .version: bumped to 2.3.6 to reflect the big improvements
1293 made by Erik and Klaus. Thanks!
1295 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
1297 Replaced the livrange code.
1298 * src/SDCClrange.c: added new LR code
1300 * src/SDCCBBlock.h: removed remainig parts from old LR code
1301 * src/ds390/ralloc.c,
1302 * src/ds390/gen.c: minor fixes to make it work with new code
1304 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1309 * src/hc08/ralloc.c: Fix various warnings related to the hc08
1310 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
1311 (tweaked fix for bug #818696)
1313 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1315 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
1317 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1320 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
1321 * src/mcs51/gen.c (gencjneshort),
1322 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
1323 more efficient (per Scott Bronson's suggestion)
1325 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1327 Extended the semantics of the critical keyword to include
1328 individual statements. See RFE #827755 and #799831
1333 * support/Util/SDCCerr.c
1334 * support/Util/SDCCerr.h
1339 2003-10-19 Borut Razem <borut.razem AT siol.net>
1341 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
1343 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1345 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
1347 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
1348 and predecrement operand is displayed
1350 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1352 * src/SDCCval.c (valMinus): fixed bug #826041
1354 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1356 Some hc08 related updates that I missed earlier
1357 * sim/ucsim/stypes.h
1358 * support/regression/ports/hc08/spec.mk
1360 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1362 New target "hc08" for the Motorola 68hc08 family of micros
1370 * sim/ucsim/hc08.src/*
1371 * sim/ucsim/configure.in
1372 * src/ucsim/configure
1373 * sim/ucsim/packages_in.mk
1376 * device/include/mc68hc908qy.h
1378 * device/lib/Makefile.in
1379 * support/regression/ports/hc08/*
1380 * support/regression/Makefile
1382 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1384 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
1386 * src/ds390/gen.c (genCast): fixed bug #821957
1388 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1390 * device/lib/logf.c: "fixed" overlay bug
1391 * support/regression/ports/host/spec.mk: added m library
1392 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
1393 * support/regression/tests/float_trans: added (for Eric)
1395 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
1397 * src/mcs51/gen.c (genCpl): fixed bug
1398 http://sf.net/mailarchive/message.php?msg_id=6263915
1400 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
1402 * src/SDCCast.c (decorateType): added extended constant folding
1403 * src/SDCCsymt.c (computeType): cleanup
1404 * src/SDCCval.c (valShift): minor optimization
1405 * support/regression/tests/ast_constant_folding.c: added
1407 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1409 * src/SDCCmain.c: removed some unintended changes
1411 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1413 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
1414 * src/z80/gen.c: fixed part of bug #817589
1415 * src/SDCCsymt.c (checkFunction): fixed bug #817895
1417 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
1419 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
1430 * src/ds390/ralloc.c
1432 * src/mcs51/ralloc.c
1434 * src/pic16/ralloc.c
1437 * src/z80/gen.c: removed unused label "release:"
1439 2003-10-06 Borut Razem <borut.razem AT siol.net>
1441 * src/SDCC.lex: removed definition of unused variables
1442 save_optimize and save_options
1444 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1446 * clean.mk: removed '=' in "-maxdepth=1"
1447 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
1448 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
1450 2003-10-06 Borut Razem <borut.razem AT siol.net>
1452 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
1453 my_unput() replaced by unput()
1455 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
1457 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
1458 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
1459 type-punned pointer will break strict-aliasing rules"
1460 Old LR behaviour is again default; Klaus' LR can be choosen by
1461 defining the environment variable LRKLAUS
1465 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
1466 * clean.mk: fixed removal of files in bin/CVS/
1467 * device/lib/clean.mk: fixed removal of directories small and large
1468 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
1470 * src/SDCCval.c: removed superflous test for pedantic
1472 2003-10-05 Borut Razem <borut.razem AT siol.net>
1474 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
1475 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
1476 message "unmatched #pragma SAVE and #pragma RESTORE"
1478 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1480 * doc/sdccman.lyx: various additions and updates (interrupts, inline
1481 assembly, critical functions, atomic, nojtbound)
1483 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
1485 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
1491 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1494 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1496 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1498 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1499 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
1500 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
1502 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1504 * src/z80/gen.c (genRet): fixed bug #524753
1505 * src/z80/gen.c (genCast): fixed internal error on cast from
1507 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
1508 fix for bug #477835 to the z80
1509 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
1510 for tracking iCodes in the peephole optimizer for z80
1512 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1514 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
1515 the other part of bug #814548
1516 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
1518 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
1520 * src/SDCCcse.c: fixed part of bug #814548
1522 2003-09-28 Borut Razem <borut.razem AT siol.net>
1524 * src/asm.c: rewrite of printILine() to use temporary file instead
1526 * src/xa51/main.c: commented out declaration of int rewinds
1528 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1530 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
1532 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1534 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
1535 * src/asm.c (printILine): Fixed bug #811015
1537 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1539 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
1542 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1544 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
1545 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
1546 to correctly handle general case of AOP_PAIRPTR
1547 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
1549 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1551 * src/mcs51/ralloc.c (fillGaps),
1552 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
1553 register positioning bug)
1555 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
1557 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
1559 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1561 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
1562 genCodePointerGet, genGenPointerGet, genFarPointerSet,
1563 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
1564 (ralloc doesn't intentionally do this now, but perhaps later)
1565 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
1566 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
1567 register positioning bugs (Fixed bug #762602 and #795325)
1568 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
1570 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
1571 lines that --i-code-in-asm generates
1573 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1575 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
1576 trying to fclose a FILE* that was already closed.
1578 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1580 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
1581 of const struct should be treated as if const themselves)
1583 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
1585 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
1587 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1589 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
1590 Unix (/n) and DOS (/r/n) line terminations.
1592 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1594 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
1597 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1599 * src/mcs51/gen.c (genFunction, genEndFunction),
1600 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
1601 and restore of EA so that stack offsets to parameters are
1602 correct when using both critical and reentrant/stack-auto.
1603 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
1604 size (can be triggered in error if sloc is shared between
1605 different sized objects)
1606 * device/include/float.h: fixed macros to explicitly use
1607 unsigned long where needed
1609 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
1611 Feature req. 799831: added code to allow nesting of critical functions
1612 * src/mcs51/gen.c (genFunction, genEndFunction)
1613 * src/ds390/gen.c (genFunction, genEndFunction)
1615 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1617 * src/SDCCsymt.c (sclsFromPtr),
1619 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
1620 support for standard C idiom of memory mapped variables; for
1621 example, *((xdata int*)0x1234) = 1 is now internally equivalent
1622 to xdata int at 0x1234 tempvar = 1.
1623 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
1624 provided by Akiya ISHIDA
1626 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
1628 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
1629 * src/SDCCval.c (constVal): added reduction from int to char
1630 * src/SDCCval.c (valMult, valDiv): fixed sign handling
1631 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
1632 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
1634 * support/regression/tests/shifts.c: fixed
1636 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1638 * src/z80/gen.c (genXor): Fixed bug #805445
1640 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1642 Fixed bug #621531 (const & volatile confusion in the type chain).
1643 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
1644 refer to the const or volatile state of the pointer itself.
1656 * src/pic16/ralloc.c
1657 * support/regression/tests/const.c
1659 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1661 When checking for duplicated modules, use absolute paths
1662 instead of relative paths. Files changed:
1667 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1669 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
1671 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1673 * device/include/string.h: added size_t typedef, changed
1674 prototypes to use size_t, eliminated separate reentrant and
1675 non-reentrant declarations, added _memmove declaration
1676 * device/lib/_memcpy.c: changed to use size_t instead of int,
1677 changed /4 to >>2 to avoid division library call
1678 * device/lib/_memcmp.c,
1679 * device/lib/_memset.c,
1680 * device/lib/_strncat.c,
1681 * device/lib/_strncpy.c,
1682 * device/lib/_strncmp.c: changed to use size_t instead of int
1683 * device/lib/_memmove.c: new file (fixed bug #772294)
1684 * device/lib/Makefile.in: added _memmove.c
1685 * device/lib/z80/asm_strings.s: fixed bug #772290
1686 * support/regression/tests/bitfields.c: attempt to fix host assertion
1687 failure on amd64-unknown-linux2.2
1689 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1691 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
1692 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
1693 * as/z80/asmain.c (main): fixed bug #801766
1695 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
1697 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
1700 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1702 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
1703 reported in bug #800609
1705 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
1707 * Top header beautifications in src/pic16 directory:
1708 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
1709 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
1710 pcoderegs.h, ralloc.c, ralloc.h
1711 * main.c: added top header and GPL license notice
1712 * pcode.c: fixed the if-conditional warning
1714 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
1716 * device/lib/_mullong.c: replaced int by short for gcc
1718 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1720 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
1721 and JUMPTABLE iCodes properly now (worked by accident before)
1722 * src/mcs51/gen.c (leftRightUseAcc),
1723 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
1724 iCode properly now. Use getSize instead of nRegs since a & b
1725 aren't part of the nRegs tally.
1727 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
1729 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
1730 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
1731 before instructions that use the _STATUS register
1733 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
1735 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
1736 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
1737 fetching of the pointer
1738 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
1739 copied from genNearPointerSet()
1740 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
1741 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
1742 If they pop r0/r1 they must be called in the opposite order than aopOp().
1743 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
1744 (resp. --stack-auto), prepared for --xstack
1746 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1748 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
1750 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
1752 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
1753 these ports have their own __sdcc_external_start()
1755 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
1757 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
1758 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
1759 type for bits was changed. It resulted in bit variables becoming
1760 global, which is not permitted in PIC 14 assembly output.
1762 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1764 * doc/sdccman.lyx: various additions and updates. Rearranged sections
1766 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1768 Z80 and MCS51 linkers complaint if a public symbol is defined
1769 in more than one library module:
1773 * as/mcs51/Makefile.in
1775 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1777 A few small changes that speed up the peephole optimizer.
1781 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1783 Try to make the peephole optimizer smarter by maintaining
1784 an association between the assembly source code and the
1785 iCodes that originated them. Put this information to use
1786 with a new peephole rule condition "notVolatile" so that
1787 the rules can be aggressive yet still safe.
1792 * src/mcs51/peeph.def
1794 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1798 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
1799 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
1800 if the left or right operand symbols have the accuse flag set.
1802 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1804 Changed the type of the result of the ! (NOT) operator to char;
1805 previously it returned the same type as the source. This allows
1806 us to eliminate all the genFloatNot functions (all of its target
1807 implementations were very buggy) since !float can use the same
1810 * src/SDCCicode.c (ast2iCode): ! returns char
1811 * src/mcs51/gen.c (genNot, genNotFloat),
1812 * src/ds390/gen.c (genNot, genNotFloat),
1813 * src/z80/gen.c (genNot, genNotFloat),
1814 * src/pic/gen.c (genNot, genNotFloat),
1815 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
1817 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
1819 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
1820 1. Interrupt would not compile properly. Ensure PCLATH register is saved
1821 during interrupts. Ensure WSAVE is located at a shared bank address.
1822 2. Fixed page selection in some places
1823 3. Fixed BTFSS/C to where necessary use registers directly and not simply
1824 the registers name strings.
1825 4. Fixed "signed / unsigned compare" compiler warnings.
1826 5. The PIC port manages its own allocation of the general purpose
1827 registers, but makes no attempt to reuse them. As a result when
1828 compiling it soon runs out of general purpose registers. Some
1829 additional code was added to the files pcode.c and device.c to walk
1830 through the function call tree and rename the registers so that they
1840 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
1841 genPlus() & genMinus() when the result is the same as left or right
1843 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1845 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
1847 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1849 Made bitfield a distinct type from bit so that bitfields
1850 convert as per ANSI C and bits retain their traditional
1851 boolean style behaviour. Implemented bitfield support in
1859 * src/ds390/gen.c: bit v bitfield split
1860 * src/z80/gen.c: New support for bitfields
1861 * support/regression/tests/bitfields.c: reenabled z80,
1864 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1866 Rules 246.x, 247.x relate to bitfields, the others speed up
1867 access to xdata mapped I/O devices.
1869 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
1871 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1873 Cleaned up genPackBits and genUnpackBits and added two helper
1874 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
1875 for literal assignments in genPackBits (thanks to Frieder for
1881 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1883 Fixed bug #748310 (pointer to function type mishandled when the
1884 function name is omitted). Also fixed a SIGSEGV when a function
1885 attribute (reentrant, etc) is used on a non-function or on a
1886 function but misplaced before the parameter list.
1888 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
1890 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
1891 * support/Util/SDCCerr.h,
1892 * support/Util/SDCCerr.c: Added func attr misuse error msg
1894 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
1896 Fixed bug #787649 by anonymous
1897 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
1898 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
1900 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1902 Fixed numerous bitfield problems.
1904 * src/SDCC.y: More bitfield related error checking
1906 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
1907 * support/Util/SDCCerr.h,
1908 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
1909 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
1910 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
1911 * support/regression/tests/bitfields.c: tests added
1913 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1915 Made the constant following the "interrupt" keyword optional. If
1916 omitted, the function will not automatically be given an entry
1917 in the interrupt vector table (similar to #pragma NOIV, but
1918 less syntacticly kludgy). The interrupt number is also now
1919 range checked. Also fixed a bug in the high order bit example
1926 * support/Util/SDCCerr.c
1927 * support/Util/SDCCerr.h
1930 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
1932 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
1933 * src/SDCCicode.c (operandOperation): rewritten some ops
1934 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
1935 * src/SDCCsymt.c (computeType): literals are handled the same way as any
1937 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
1938 be re-activated by defining REDUCE_LITERALS)
1939 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
1940 unsigned, but are signed by default
1941 * src/SDCCval.c (constVal): rearranged
1942 * src/SDCCval.c (valMod): preliminary fix
1943 * src/SDCCval.c (valCastLiteral): use TYPE_* types
1944 * support/regression/literalop.c: added, work in progress
1946 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1948 Generate warnings for useless declarations like "char data;"
1949 that don't do what new users expect.
1952 * support/Util/SDCCerr.h
1953 * support/Util/SDCCerr.c
1955 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
1957 * src/SDCCval.c (valMult): fix overflow detection of negative int
1959 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1961 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
1963 Changes to support big endian targets:
1976 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
1978 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
1979 * device/lib/time.c: fixed warning "integer overflow in expression"
1981 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
1983 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
1984 * src/SDCCval.c (constVal): changed default to signed; hex and octal
1985 constants are unsigned; added recognition of "u" flag for unsigned
1986 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
1987 * src/SDCCval.c (valDiv, valMod): fixed signdness
1988 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
1989 signedness of modulo, left and right shift
1990 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
1991 * support/Util/SDCCerr.h: added warning W_INT_OVL
1992 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
1993 * src/SDCCast.c (ast_print): improved output of constants
1995 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1997 Fixed some warnings when building with MSVC:
2010 * support\cpp2\cpplib.c
2014 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
2016 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
2018 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2020 * support\librarian\clean.mk: Do not remove Makefile.
2021 * support\librarian\Makefile: added.
2023 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2025 Added librarian to MSVC build:
2028 * support\librarian\librarian.dsp
2030 'configure' not needed for librarian, removed:
2031 * support\librarian\configure
2032 * support\librarian\configure.in
2033 * support\librarian\config_in.h
2034 * support\librarian\Makefile.in
2036 Hopefully these ones built the librarian and the rest of sdcc properly:
2038 * Makefile.common.in
2040 Messed up 'configure', so revert to previous version:
2044 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
2046 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
2047 there, while the mantissa of a double is "only" 53 bits wide.
2049 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2051 Adding sdcclib to the build. MSVC project coming soon.
2052 Files added/changed:
2054 * support\librarian\clean.mk
2055 * support\librarian\configure
2056 * support\librarian\configure.in
2057 * support\librarian\config_in.h
2058 * support\librarian\Makefile.bcc
2059 * support\librarian\Makefile.in
2060 * support\librarian\sdcclib.c
2063 * Makefile.common.in
2067 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2069 Linker now complaints if linked modules have conflicting options, for
2070 example, one compiled using --model-large and another one compiled with
2071 --model-small. The following files were modified:
2093 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2095 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
2096 as/mcs51/lklibr.c: Generate a warning when a library is not found.
2098 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
2100 * src/z80/mappings.i: fix _mul[us][int,long] entries
2102 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2104 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
2106 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2108 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
2109 * support/regression/tests/bitopcse.c: added
2117 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2119 added support for new library format to z80, gbz80 linkers:
2125 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2127 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
2128 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
2130 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
2132 added DUMMY_READ_VOLATILE:
2141 * src/SDCCcse.c (algebraicOpts): many improvements
2142 * src/SDCCcse.h: removed algebraicOpts()
2143 * src/SDCCicode.c (picDummyRead): added
2145 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2147 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
2148 "Insufficient space in data memory".
2150 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2152 * src/mcs51/gen.c: fixed bug #771358
2153 * src/z80/gen.c: fixed bug #759087
2155 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
2157 * src/pic16/glue.c: minor cleanup by Vangelis
2159 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2161 * device/include/regc515c.h: fixed #758477
2162 * device/lib/_gptrget.c: saving some cycles in generic pointer get
2163 * device/lib/_gptrput.c: saved a few bytes
2164 * my tab spacing is 8, yours too?)
2165 * device/lib/_ser.c: process RX bytes earlier than TX bytes
2166 * device/lib/serial.c: process RX bytes earlier than TX bytes
2167 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
2169 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2171 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
2173 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2175 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
2177 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
2179 * device/lib/Makefile.in: bad fix, reverted to 1.43
2181 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
2183 * device/lib/Makefile.in: added missing z80 object files
2185 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
2187 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
2188 pic16 progress by Vangelis:
2203 * pic16/pcodepeep.c:
2206 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2208 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
2210 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2212 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
2213 added gbz80 build to MSVC project.
2214 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
2215 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
2216 from 8051 stuff and setup so it links using a .lnk file.
2218 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2220 * support/librarian/sdcclib.c: sdcc librarian.
2221 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
2224 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2226 * as/mcs51/lkmain.c: properly handle extensions in function afile.
2228 2003-07-02 Borut Razem <borut.razem AT siol.net>
2230 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
2231 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
2232 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
2233 src/xa51/main.c, src/z80/main.c:
2234 virtualization of glue() function: each port has it's own glue function,
2235 which is accessed by do_glue function pointer in PORT.general structure
2237 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
2239 * DS800C400 fun, improved ROM interface and tinibios.
2241 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
2243 * More support for DS80C400. Now includes beginning of interface to ROM.
2245 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
2247 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
2249 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2251 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
2253 2003-06-19 Borut Razem <borut.razem AT siol.net>
2255 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
2257 2003-06-19 Borut Razem <borut.razem AT siol.net>
2259 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
2260 fixed Z80 port - crt0.o: cannot open.
2262 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
2264 * support/Util/MySystem.c (merge_command): revert bad fix
2266 2003-06-18 Borut Razem <borut.razem AT siol.net>
2268 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
2270 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2272 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2273 option --use-stdout sends errors to stdout instead of stderr.
2275 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
2277 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
2279 2003-06-15 Borut Razem <borut.razem AT siol.net>
2281 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
2282 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
2283 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
2284 fixed width array of pointers replaced with sets;
2285 multiple include and lib paths ared transferred to preprocessor and linker
2286 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
2287 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
2288 fixed width array of pointers
2289 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
2290 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
2291 fixupPath(), getPathDifference()
2292 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
2293 fixed width array of pointers
2295 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
2297 * src/pic16/ralloc.c: fix warnings
2298 * src/pic16/pcode.c: fix warning
2300 2003-06-10 Scott Dattalo <scott AT dattalo.com>
2302 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
2303 know all the details, but essentially this set of changes enable
2304 the pic16 port to generate movff instructions and generate assembler
2309 * src/pic16/pcode.c:
2310 * src/pic16/device.c:
2312 * src/pic16/pcode.h:
2313 * src/pic16/pcoderegs.c:
2314 * src/pic16/ralloc.c:
2315 * src/pic16/ralloc.h:
2317 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2319 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2320 added option --vc, so sdcc errors and warnings are compatible with
2321 Microsoft Visual Studio.
2323 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2325 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
2326 device/lib/libfloat.lib: added atof function.
2328 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2330 * doc/sdccman.lyx: updated to Lyx 1.3
2331 * doc/cdbfileformat.lyx: updated to Lyx 1.3
2332 * doc/test_suite_spec.lyx: updated to Lyx 1.3
2333 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
2335 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
2337 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
2339 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2341 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
2342 additions to the "related tools/documentation" section
2344 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
2346 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
2348 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
2350 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
2351 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
2353 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
2355 * doc/sdccman.lyx: fix double dash and other minor things
2356 * doc/Makefile: fix double dash
2358 2003-05-28 Karl Bongers(patches from Martin Helmling)
2359 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
2360 condition and ignore commands.
2362 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2364 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
2365 is in parts still quite out of date, I did changes as far as I felt makes sense
2366 for a non-native english speaker.
2367 Please feel free to add to the manual or to correct my changes.
2368 * doc/Makefile: undid touching the date of intermediate tex files.
2370 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2372 * doc/sdccman.lyx: Manual has an index now
2374 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
2376 Finalize muluint/mulsint and mululong/mulslong merging:
2377 * device/lib/_mulint.c
2378 * device/lib/_mullong.c
2379 * device/lib/gbz80/mul.s
2380 * device/lib/gbz80/stubs.s
2381 * device/lib/z80/mul.s
2382 * device/lib/z80/stubs.s
2383 * src/SDCCsymt.c (initCSupport)
2385 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2387 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
2388 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
2389 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
2390 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
2393 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2395 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
2396 the regression tests I'm not brave enough to enable 245.b, 245.c
2397 * doc/sdccman.lyx: added latex preamble for hyperref package.
2398 Using pdflatex this will give you a hyperlinked pdf file with
2399 bookmarks. (prepend '%' before /usepackage if this breaks something)
2401 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2403 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
2405 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
2407 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
2409 2003-05-21 <johan AT balder>
2411 * src/SDCCglue.c (printIval): fixed bug #739934
2413 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2415 Applied patch from bug 737905 (renamed yylineo to mylineno):
2422 * src/pic16/pcode.c: Cleaned warnings
2423 * src/pic16/pcodeflow.c: Cleaned warnings
2424 * src/pic16/pcoderegs.c: Cleaned warnings
2426 2003-05-19 Scott Dattalo <scott AT dattalo.com>
2428 * src/pic16/pcode.c: Cleaned warnings
2429 * src/pic16/pcodepeep.c: Cleaned warnings
2430 * src/pic16/ralloc.c: Cleaned warnings
2432 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2434 * doc/sdccman.lyx: fixed bug 739745
2435 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
2437 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
2439 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
2440 it can be defined with CFLAGS when running configure
2441 * src/SDCCmain.c: fixed compiling + linking with object files
2443 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
2445 * configure.in: configure for pic16 port,
2446 added --disable-pic16-port
2447 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
2448 * src/SDCCmain.c: linkOptions is changed to set *,
2449 added if/endif conditional macros to remove options help
2450 messages from optionsTable when a port is not configured, added
2451 support for the PIc16 port in the ports table, when executing
2452 the compiler with no port specified on command line, a default
2453 port is selected with the new macro DEFAULT_PORT which is
2454 defined in port.h, in setDefaultOptions() linkOptions is removed
2455 from initialization assignment, since now it is a set,
2456 parseCmdLine uses setParseWithComma for linkOptions, in
2457 linkEdit() linkOptions are accessed with new function indexSet()
2458 which returns the i'th item of a set variable. See SDCCset.c, in
2459 linkEdit() when calling buildCmdLine(), added linkOptions as
2460 last argument. Now users can pass arguments to gplink via the
2461 -Wl option, main() uses pic16glue() to glue up pic16 programs
2462 * src/SDCCpeeph.c: various changes to support pic16
2463 * src/SDCCset.c: added function void *indexSet(set *, int) to
2464 return the i'th item of the set
2465 * src/SDCCset.h: added function prototype for indexSet()
2466 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
2467 * src/clean.mk: added pic16 in CLEANALLPORTS variable
2468 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
2469 added macro DEFAULT_PORT
2470 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
2471 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
2473 * src/pic16/glue.c: commented out some error producing lines
2474 * src/pic16/main.c: __config directives are commented out to stop
2475 gpasm complaining and test the linkage with gplink, _linkCmd and
2476 _asmCmd changed to be more gplink and gpasm friendly
2477 * src/pic16/peeph.def: peep rule 3 is commented out, since it
2478 produced an error when parsed, peep rule 12 is added to utilize
2479 movff, but it is commented out since the pCode does not support
2480 yet a command with 2 address arguments
2482 2003-05-18 <johan AT balder>
2484 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2485 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2486 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
2488 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
2489 Added feature to script commands from file.
2491 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
2493 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
2494 * src/SDCCutil.c: include ctype.h for win32
2496 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
2498 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
2500 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
2502 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
2503 Fixed so you can set breakpoints prior to run, run does not stop
2504 on entry now. Add tbreak. Other enhancements and fixes for use
2507 2003-05-12 Borut Razem <borut.razem AT siol.net>
2509 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
2511 2003-05-11 Borut Razem <borut.razem AT siol.net>
2513 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
2514 the path of bin directory, so that PATH is the only env. variable, which has to be set
2515 in case of standard installation.
2516 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
2517 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
2518 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
2520 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2522 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
2523 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
2524 temp files are in the port dir; clean the gen/test directory when
2525 generating new test.c
2526 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
2527 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
2528 * support/regression/tests/zeropad.c: added
2530 2003-05-09 <johan AT balder>
2532 * src/SDCCglue.c: fixed bug #597940
2534 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
2536 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2537 cache sfr, optimize next,step, fix off by one sourceline,
2538 support ddd list function.
2539 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
2541 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2543 * support/regression/HTMLgen.py: added compare_s2f()
2544 * support/regression/Makefile: redo 1.27
2545 * support/regression/generate-cases.py: redo 1.5
2547 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
2549 * support/regression/tests/float.c: workaround 33 bit hex constant
2550 * support/regression/tests/simplefloat.c: fix division for host
2552 2003-04-29 Scott Dattalo <scott AT dattalo.com>
2554 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
2555 that tame's the PIC's over-aggressive optimizer.
2557 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2559 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
2562 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
2564 Initial support for DS80C400. "Hello world" runs on TINIm400
2567 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
2569 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2570 * Some notes on ddd usage added in debugger/README
2571 Martin Helmling adding more features and fixes for ddd GUI debugger.
2572 Code added for nexti, stepi, up, down, and other adjustments.
2574 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
2576 * src/pic/pCodepeep.c non-wildcard asmops are now handled
2577 * src/pic/peeph.def Added two rules to optimize carry manipulation
2578 * src/pic/* removed debug printfs
2580 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
2582 * debugger/mcs51/cmd.c: added header newalloc.h
2584 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
2586 * as/Makefile: new EXEEXT
2587 * as/z80/Makefile: remove trailing slash of BUILDIR
2588 * as/z80/clean.mk: new EXEEXT
2589 * Makefile.common.in: add to CFLAGS (and others), don't replace it
2590 * support/cpp2/Makefile.in: new EXEEXT
2591 * src/pic/glue.c (pic14emitRegularMap): fixed warning
2593 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
2595 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
2596 EXEEXT was introduced to fix all related problems with targets
2597 "clean", "install" and "uninstall"; a couple of further flaws
2598 especially with "clean" have been fixed too
2599 * as/mcs51/Makefile.in
2604 * debugger/mcs51/Makefile.in
2605 * debugger/mcs51/clean.mk
2607 * link/z80/Makefile.in
2610 * packihx/Makefile.in
2612 * sim/ucsim/Makefile
2613 * sim/ucsim/clean.mk
2614 * sim/ucsim/avr.src/Makefile.in
2615 * sim/ucsim/avr.src/clean.mk
2616 * sim/ucsim/s51.src/Makefile.in
2617 * sim/ucsim/s51.src/clean.mk
2618 * sim/ucsim/xa.src/Makefile.in
2619 * sim/ucsim/xa.src/clean.mk
2620 * sim/ucsim/z80.src/Makefile.in
2621 * sim/ucsim/z80.src/clean.mk
2622 * sim/ucsim/main_in.mk
2623 * sim/ucsim/packages_in.mk
2624 * sim/ucsim/gui.src/Makefile.in
2625 * sim/ucsim/gui.src/serio.src/Makefile.in
2626 * sim/ucsim/gui.src/serio.src/clean.mk
2629 * support/cpp2/Makefile.in
2630 * support/cpp2/clean.mk
2631 * support/makebin/Makefile
2632 * support/makebin/clean.mk
2633 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
2634 * doc/sdccman.lyx: --program-suffix no longer needed
2636 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
2638 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
2639 Martin Helmling added support for ddd GUI debugger.
2640 Code added to display assembly, set variables, and other commands
2641 to interface to ddd.
2643 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
2645 * as/Makefile: fix target clean
2646 * as/clean.mk: fix target clean
2647 * as/z80/clean.mk: fix target clean
2649 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
2651 * Makefile.common.in: added AT EXEEXT AT
2652 * configure.in: removed all mingw32 stuff
2653 * configure: rebuilt from configure.in
2654 * doc/sdccman.lyx: updated section "installation"
2655 * support/scripts/sdcc_mingw32: adapted to configure
2656 * support/scripts/sdcc_cygwin_mingw32: added
2658 2003-04-22 Scott Dattalo <scott AT dattalo.com>
2660 * src/pic Added object file support for the PIC port
2661 * src/pic Applied patch from Craig Franklin (this started the object file support)
2662 * src/regression Updated the PIC regression tests for object files
2664 2003-04-20 Borut Razem <borut.razem AT siol.net>
2666 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
2667 lklex.c: In function `getfid':
2668 lklex.c:203: warning: array subscript has type `char'
2669 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
2670 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
2671 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
2672 stack handling macros
2674 2003-04-19 Borut Razem <borut.razem AT siol.net>
2676 * "handling space characters in file path" task:
2677 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
2678 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
2679 * support/Util/MySystem.h: make it self-sufficient
2680 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
2681 src/z80/main.c, sdcc/as/mcs51/lklex.c:
2682 handling space characters in file path
2683 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
2684 (it will be used by assemblers, which have their own includes, e.g. gpasm)
2685 * support/Util/MySystem.c: handling space characters in executable's path
2687 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
2689 * as/z80/Makefile: fix permanent rebuild of z80
2690 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
2691 * support/regression/tests/bitfields.c: added Johan's bitfields.c
2693 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
2695 * src/SDCCopt.c: add special case optimization to replace modulo by
2696 a power of two with a bitwise AND.
2698 2003-04-18 <johan AT balder>
2700 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
2702 2003-04-17 <johan AT balder>
2704 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
2705 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
2707 2003-04-13 Borut Razem <borut.razem AT siol.net>
2709 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
2710 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
2711 fixed mingw problem in adl_NORMALIZE_PATH
2713 2003-04-12 Borut Razem <borut.razem AT siol.net>
2715 * fixed "#pragma SAVE/RESTORE can not be nested":
2716 * src/SDCC.lex: reworked pragma handling functions
2717 * sdcc/src/SDCCglobl.h: reworked stack handling macros
2718 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
2720 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
2722 * src/SDCCutil.c (pathEquivalent): defined but not used
2723 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
2724 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
2725 * configure: rebuilt from configure.in
2726 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2727 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2728 * device/include/Makefile.in: replace sdcc_datadir
2729 * device/lib/Makefile.in: replace sdcc_datadir
2730 * Makefile.common.in: add LDFLAGS from configure
2731 * packihx/Makefile.in: use LDFLAGS
2732 * src/Makefile.in: use LDFLAGS
2733 * support/cpp2/Makefile.in: add LDFLAGS from configure
2734 * support/makebin/Makefile: use LDFLAGS
2735 * .version: bumped version number to 2.3.5
2737 2003-04-12 Borut Razem <borut.razem AT siol.net>
2739 * completed "different paths" task:
2740 * src/SDCCmacro.c: fixed bug in handling quotes
2741 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
2742 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
2744 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
2746 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
2748 2003-04-11 kevin Vigor <kevin AT vigor.nu>
2750 * ds390/gen.c ds390/peeph.def: fix bug 706781
2752 2003-04-11 Borut Razem <borut.razem AT siol.net>
2754 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
2756 2003-04-10 Scott Dattalo <scott AT dattalo.com>
2758 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
2759 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
2760 set - this bit used to not be set...).
2761 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
2762 bad code in PIC Port
2763 * src/regression/and2.c added to test bug 609268
2764 * src/regression/Makefile added and2.c to regression test
2767 2003-04-08 <johan AT CP255758-A>
2769 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
2770 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
2771 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
2773 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
2775 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
2777 * support/cpp2/Makefile.in: fix bug #487815
2778 * configure: rebuilt from configure.in
2779 * Makefile.common.in: docdir changed, new path suffixes
2780 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2781 * sdcc_vc_in.h: reflect changes from sdccconf.h
2782 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
2783 * src/SDCCutil.h: remove BINDIR hack
2784 * doc/sdccman.lyx: update new path hierarchy
2786 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
2788 * src/SDCCpeeph.c: added okToRemoveSLOC test
2790 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
2792 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
2794 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
2796 * src/SDCCpeeph.c: added labelIsReturnOnly test
2797 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
2799 2003-04-05 <johan AT balder>
2801 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
2802 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
2803 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
2804 * src/SDCCast.c: fixed a warning
2805 * src/SDCCast.h: fixed a warning
2806 * src/SDCCicode.c (operandFromAst): fixed a warning
2808 2003-04-04 <johan AT balder>
2810 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
2811 * src/SDCCast.c (decorateType): fixed bug #715076
2812 * src/SDCC.y: fixed bug #702907
2814 2003-04-03 <johan AT balder>
2816 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
2817 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
2818 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
2819 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
2820 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
2822 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
2824 * _decdptr.c: fix return values
2825 * _gptrget.c: fix return values
2826 * _gptrgetc.c: fix return values
2827 * _gptrput.c: fix return values
2828 * _mulint.c: fix return values
2829 * as/z80/Makefile: fix 'make -j' problem
2831 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
2833 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
2834 * configure.in: big cleanup, updated to autoconf 2.5x
2835 * configure: rebuilt from configure.in
2836 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2837 * sdcc_vc_in.h: reflect changes from sdccconf.h
2838 * doc/Makefile: fixed a flaw in "make install"
2840 2003-04-02 <johan AT balder>
2842 * src/ds390/gen.c (genCmp): no comments
2843 * src/mcs51/gen.c (genCmp): no comments
2844 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
2845 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
2847 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
2849 * support/regression/generate-cases.py: place generated file in given sub directory
2850 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
2851 * support/regression/Makefile: improvements for 'make -j';
2852 side effect: it's simpler and faster now
2854 2003-03-31 Borut Razem <borut.razem AT siol.net>
2856 * src/z80/main.c: link-{port} and as-{port} defined without path
2857 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
2859 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
2861 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
2863 2003-03-30 Borut Razem <borut.razem AT siol.net>
2865 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
2866 changed type of list parameter to set
2867 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
2868 * src/port.h: changed type of do_assemble() parameter to set
2869 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
2870 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
2871 definition of "cppoutfilename" macro with NULL value in preProcess()
2872 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
2873 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
2874 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
2875 replaced with set *binPathSet
2876 * shash_add() deallocates the item, if allready exsists, before adding the new one
2877 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
2879 2003-03-30 Scott Dattalo <scott AT dattalo.com>
2881 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
2882 a nested for loop bug in the PIC port
2883 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
2886 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
2888 * support/Util/dbuf.h: remove C++ stuff to make it portable
2890 2003-03-28 Borut Razem <borut.razem AT siol.net>
2892 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
2893 literal strings in stringLiteral()
2894 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
2895 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
2898 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
2900 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
2902 2003-03-26 <johan AT balder>
2904 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
2905 * src/ds390/gen.c (saveRegisters): catched symbol abuse
2906 * src/SDCCast.c (decorateType): fixed " -v < 3"
2908 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
2910 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
2911 Added Lenny Story's debug infrastructure changes:
2912 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
2913 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
2914 * src/cdbFile.c: added
2915 * src/SDCCdebug.c: added
2916 * src/SDCCdebug.h: added
2917 * src/SDCCast.c (createFunction)
2918 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
2919 * src/SDCCmain.c (parseCmdLine, main)
2920 * src/SDCCmem.c (redoStackOffsets)
2921 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
2924 * src/avr/gen.c (genAVRCode)
2925 * src/ds390/gen.c (gen390Code)
2926 * src/mcs51/gen.c (gen51Code)
2927 * src/pic/gen.c (genpic14Code)
2928 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
2929 * src/xa51/gen.c (genXA51Code)
2930 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
2932 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2934 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
2935 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
2937 2003-03-22 <johan AT balder>
2939 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
2941 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
2943 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
2944 * doc/cdbfileformat.lyx: added, written by Lenny Story
2945 * doc/Makefile: added cdbfileformat.lyx
2946 * doc/clean.mk: added cdbfileformat.lyx
2948 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
2950 * src/mcs51/peeph.def: fix bug #705773
2952 2003-03-20 <johan AT balder>
2954 An sfr/sbit can have an "at #" AND an initializer
2955 * src/SDCCsymt.c (checkSClass):
2956 * src/SDCCmem.c (allocGlobal):
2957 * src/SDCCmem.c (allocLocal):
2958 * src/SDCCast.c (createBlock):
2960 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
2962 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
2964 2003-03-16 <johan AT balder>
2966 Undid the hackup of const and volatile, the problem is much bigger
2968 * src/SDCCast.c:1.171
2969 * src/SDCCglue.c:1.138
2970 * src/SDCCicode.c:1.146
2971 * src/SDCCsymt.c:1.150
2972 * src/SDCCval.c:1.65
2974 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
2976 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
2977 * src/ds390/gen.c (genAddrOf): fixed bug #704087
2979 2003-03-13 <johan AT balder>
2981 Hackup const and volatile modifiers in type chains a bit:
2983 * src/SDCCast.c:1.169
2984 * src/SDCCglue.c:1.136
2985 * src/SDCCicode.c:1.143
2986 * src/SDCCsymt.c1.146
2987 * src/SDCCsymt.h1.59
2988 * src/SDCCval.c:1.63
2990 2003-03-12 <johan AT balder>
2992 * src/SDCCBBlock.h: more LRH debugging junk
2993 * src/SDCCcflow.h: more LRH debugging junk
2994 * src/SDCCloop.c: more LRH debugging junk
2995 * src/SDCC.y (struct_declaration): fixed bug #697590
2996 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
2997 * src/ds390/gen.c (aopForRemat): fixed bug #700031
2998 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
3000 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3001 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
3002 test function names must now match exactly).
3003 * src/SDCCcse.c: added special case in findCheaperOp to allow
3004 extending a short integer. Makes less awful code for bug 700121 test case.
3006 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3008 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
3009 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
3011 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3013 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
3014 actually called (operandsNotEqual() was called for all
3015 operandsNotEqualX tests).
3017 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3019 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
3020 with shorter literals. Fixes bug 700121.
3022 2003-03-11 <johan AT balder>
3024 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
3026 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
3028 * src/SDCCloop.c (mergeRegions): an evil beast is dead
3029 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
3031 2003-03-10 Borut Razem <borut.razem AT siol.net>
3033 * src/SDCCmain.c: pipe preprocessor's output
3034 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3035 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3036 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3037 which closes all pipes in pipeSet set
3038 * src/SDCCset.c: free deleted item in function deleteSetItem()
3039 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3040 moved from z80 to src subproject
3041 * .version: increased version number to 2.3.4
3043 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
3045 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
3046 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
3047 * support/regression/ports/xa51/spec.mk: fix typo
3049 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
3051 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
3053 2003-03-09 Borut Razem <borut.razem AT siol.net>
3055 * src/SDCCmain.c: pipe preprocessor's output
3056 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3057 * sdcc_vc_in.h: define pclose as _pclose for WIN32
3058 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3059 which closes all pipes in pipeSet set
3060 * src/SDCCset.c: free deleted item in function deleteSetItem()
3061 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3062 moved from z80 to src subproject
3064 2003-03-09 Borut Razem <borut.razem AT siol.net>
3066 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
3067 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
3068 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
3069 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
3070 * src/SDCCglobl.h: unification of WIN32 native definitions
3072 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3074 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
3076 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3078 * src/configure.in: check for endianess (even while cross-compiling)
3079 * src/configure: check for endianess (even while cross-compiling)
3080 * src/configure_in.h: check for endianess (even while cross-compiling)
3081 * src/avr/gen.c: remove old endianess stuff
3082 * src/mcs51/gen.c: remove old endianess stuff
3083 * src/ds390/gen.c: remove old endianess stuff
3084 * src/pic/gen.c: remove old endianess stuff
3085 * src/pic/genarith.c: remove old endianess stuff
3086 * src/pic/glue.c: fix endianess check
3087 * src/pic16/gen.c: remove old endianess stuff
3088 * src/pic16/genarith.c: remove old endianess stuff
3089 * src/pic16/glue.c: fix endianess check
3090 * src/xa51/gen.c: remove old endianess stuff
3091 * src/z80/gen.c: fix endianess check
3092 * src/SDCCglue.c: fix endianess check
3093 * src/ds390/peeph.def: fix bug 700036
3095 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3097 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
3098 * src/configure: find appropriate data-types on host for SDCC's int and long
3099 * src/configure.in: find appropriate data-types on host for SDCC's int and long
3100 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
3101 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
3103 2003-03-07 <johan AT balder>
3106 some minor cleanups before the big shot
3107 OP_DEFS and OP_USES now use Kevin's protection
3108 new option --nolabelopt
3119 * src/ds390/ralloc.c:
3120 * src/mcs51/ralloc.c:
3122 * src/xa51/ralloc.c:
3125 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
3127 * src/pic/pcode.c (get_op): fix 64 bit warnings
3128 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
3129 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
3130 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
3131 * support/regression/tests/malloc.c: fix 64 bit warnings
3133 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
3135 * src/mcs51/gen.c (genMinus): fixed bug 696436
3137 2003-03-02 Borut Razem <borut.razem AT siol.net>
3139 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
3141 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
3143 * configure.in: test for mkstemp
3144 * sdccconf_in.h: add HAVE_MKSTEMP
3146 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
3148 * device/include/ctype.h: removed warning while using --stack-auto
3149 * device/include/malloc.h: removed warning while using --stack-auto
3150 * device/include/string.h: removed warning while using --stack-auto
3152 2003-02-23 Borut Razem <borut.razem AT siol.net>
3154 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
3155 because NDEBUG is defined (see man assert)
3156 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
3158 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3160 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
3161 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
3163 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3165 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
3166 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
3168 2003-02-18 <johan AT balder>
3170 * as/mcs51/asmain.c (asmbl): module can start with a digit
3171 * as/z80/asmain.c (asmbl): module can start with a digit
3173 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
3175 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
3176 * src/asm.c: fix pipe() for Mingw32
3178 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
3180 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
3181 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
3182 make -V work again; --c1mode reads now from stdin
3183 * doc/sdccman.lyx: added --c1mode
3184 * support/Util/SDCCerr.c: new messages for c1 mode
3185 * support/Util/SDCCerr.h: new messages for c1 mode
3186 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
3188 2003-02-15 <johan AT balder>
3190 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
3192 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
3194 * doc/sdccman.lyx: Environment variables, -o and other minor things
3196 2003-02-14 <johan AT balder>
3198 * src/xa51/main.c: before anyone really tries to use it :)
3200 * Install doc's in share/sdcc/doc
3201 * removed some obsolete files
3202 * Do a proper make distclean and uninstall
3203 M Makefile.common.in
3206 M device/include/Makefile.in
3207 M device/lib/Makefile.in
3210 M sim/ucsim/doc/Makefile.in
3213 R src/xa51/peeph.rul
3214 M support/cpp2/Makefile.in
3215 M support/makebin/Makefile
3218 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
3220 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
3222 2003-02-10 Borut Razem <borut.razem AT siol.net>
3224 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
3225 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
3226 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
3227 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
3228 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
3229 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
3230 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
3231 src/z80/Makefile.bcc: Borland Makefile cleanup
3232 * as/z80/Makefile.bcc: Added Borland Makefile
3233 * support/cpp2/borland.h: Removed
3235 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
3237 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
3238 * src/SDCC.lex: new pragma NOIV
3239 * src/SDCCglobl.h: new pragma NOIV
3240 * src/SDCCmem.c: new pragma NOIV
3242 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3244 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
3246 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3248 * src/SDCCmain.c: signal handling is switched off by --debug
3249 * doc/Makefile: small fix for install; use clean.mk again
3250 * doc/clean.mk: clean *.pdf and *.html too
3252 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
3254 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
3255 * device/lib/printfl.c: fix a ds390 bug by making it portable
3256 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
3257 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
3258 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
3259 * debugger/mcs51/cmd.c: converted multi-line string literals
3260 * sim/ucsim/globals.cc: converted multi-line string literals
3261 * src/SDCCmain.c: introduced signal handler to remove temp files
3262 * doc/Makefile: small tweaks, implement clean
3263 * doc: removed generated files
3265 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3267 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
3268 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
3269 Address Record is not correctly generated for DS390."
3271 2003-02-02 Borut Razem <borut.razem AT siol.net>
3273 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
3274 * as/mcs51/asm.h: fixed compilation with Borland C
3275 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
3276 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
3277 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
3278 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
3279 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
3280 src/z80/Makefile.bcc: delete $(LIB) only if exist
3281 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
3283 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
3285 * device/include/malloc.h: introduced NULL
3286 * device/include/string.h: introduced NULL
3287 * device/include/stdlib.h: introduced NULL
3288 * device/lib/_memcpy.c: removed NULL
3289 * device/lib/_strcat.c: removed NULL
3290 * device/lib/_strchr.c: removed NULL
3291 * device/lib/_strcmp.c: removed NULL
3292 * device/lib/_strcpy.c: removed NULL
3293 * device/lib/_strcspn.c: removed NULL
3294 * device/lib/_strlen.c: removed NULL
3295 * device/lib/_strncat.c: removed NULL
3296 * device/lib/_strncmp.c: removed NULL
3297 * device/lib/_strncpy.c: removed NULL
3298 * device/lib/_strpbrk.c: removed NULL
3299 * device/lib/_strrchr.c: removed NULL
3300 * device/lib/_strspn.c: removed NULL
3301 * device/lib/_strstr.c: removed NULL
3302 * device/lib/_strtok.c: removed NULL
3303 * device/lib/malloc.c: removed NULL, include own header
3305 2003-02-02 <johan AT balder>
3307 * 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
3308 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
3309 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
3310 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
3311 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
3312 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
3314 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3316 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
3319 2003-02-01 <johan AT balder>
3321 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
3323 2003-01-31 <johan AT CP255758-A>
3325 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
3327 2003-01-30 <johan AT balder>
3329 * src/SDCCBBlock.c: automatic bug detection
3330 * src/SDCCicode.c: automatic bug detection
3332 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3334 * src/SDCCglobl.h: now --xram-size 0 works
3335 * src/SDCCmain.c: now --xram-size 0 works
3337 2003-01-29 <johan AT balder>
3339 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
3341 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3343 * as/mcs51/aslink.h: Added options --xram-size and --code-size
3344 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
3345 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
3346 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
3347 * src/SDCCglobl.h: Added options --xram-size and --code-size
3348 * src/SDCCmain.c: Added options --xram-size and --code-size
3350 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
3352 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
3353 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
3355 2003-01-27 <johan AT balder>
3357 * src/SDCC.y: fixed bug #613764
3359 2003-01-26 <johan AT balder>
3361 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
3362 * src/SDCCsymt.h: fixed bug #673374
3363 * src/SDCCglue.c: fixed bug #661910
3364 * src/SDCCast.c: fixed bug #458099 and 673374
3366 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
3368 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
3369 * as/mcs51/strcmpi.h: added
3370 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
3371 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
3372 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
3373 * as/mcs51/assym.c: strcmpi -> as_strcmpi
3374 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
3375 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
3376 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
3377 * as/mcs51/Makefile.aslink: new module strcmpi
3378 * as/mcs51/Makefile.asx8051: new module strcmpi
3379 * as/mcs51/Makefil.bcc: new module strcmpi
3380 * as/mcs51/Makefile.in: new module strcmpi
3381 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
3383 2003-01-26 <johan AT balder>
3385 * src/SDCCglue.c: reverted back to 1.124
3386 * src/SDCCast.c: reverted back to 1.156
3387 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
3389 2003-01-25 <johan AT balder>
3391 * src/SDCCglue.c: A better fix for bug #661910
3392 * src/SDCCast.c: A better fix for bug #661910
3393 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
3395 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3397 * src/Makefile.in: remove spawn.o
3398 * src/SDCCmain.c: remove spawn.h
3399 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
3400 * src/spawn.c: removed
3401 * src/spawn.h: removed
3402 * support/regression/ports/ds390/spec.mk: link with -r
3404 2003-01-24 <johan AT CP255758-A>
3406 * src/ds390/gen.c (aopOp): fixed bug #667458
3407 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
3408 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
3409 (createIvalCharPtr): an ival doesn't always have a storage class anymore
3411 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3413 * src/mcs51/peeph.def: better assembler identation by Frieder
3414 * src/mcs51/gen.c: better assembler identation by Frieder
3416 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
3418 * as/z80/string.h: removed for gcc 3.2
3419 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
3420 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
3422 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3424 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
3425 * src/SDCCpeeph.c (replaceRule): fix bug #663503
3426 * support/regression/Makefile: separate temp files for ports
3427 * support/regression/generate-cases.py: separate temp files for ports
3428 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3429 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3431 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3433 * moved tinitalk to device/examples/ds390
3435 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
3437 * as/mcs51/lkmem.c: rflag is for DS390
3438 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
3439 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
3440 (linkEdit): move mem- and map-files the same way as ihx-files
3441 * src/z80/main.c (_setDefaultOptions): removed --generic
3442 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
3443 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
3444 * src/pic/glue.c (picglue): --c1mode works again
3445 * src/pic16/glue.c (pic16glue): --c1mode works again
3446 * src/asm.c (printCLine): fix #660034
3448 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
3450 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
3451 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
3452 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
3453 * as/mcs51/lkmem (summary): better fix for sp problem
3454 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
3455 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
3456 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
3457 remove --stack-after-data
3459 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
3461 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
3462 * src/SDCCutil.c (join): ugly bug: missing '\0'
3463 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
3465 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3467 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
3469 * src/pic/main.c (_asmCmd): gpasm supports -o
3470 * src/z80/main.c: more general macros
3471 * device/lib/Makefile.in: remove intermediate files
3473 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3475 * .version: Bumped version number to 2.3.3
3476 * src/SDCCBBlock.c: new option -o
3477 * src/SDCCglobl.h: new option -o
3478 * src/SDCCglue.c: new option -o
3479 * src/SDCCmain.c: new option -o
3480 * src/asm.c: new option -o
3481 * src/ds390/main.c: new option -o
3482 * src/pic/glue.c: new option -o
3483 * src/pic/pcode.c: new option -o
3484 * src/pic/ralloc.c: new option -o
3485 * src/pic16/glue.c: new option -o
3486 * src/pic16/pcode.c: new option -o
3487 * src/pic16/ralloc.c: new option -o
3488 * src/z80/main.c: new option -o
3489 * device/lib/Makefile.in: use -o
3490 * support/regression/ports/ds390/spec.mk: use -o
3491 * support/regression/ports/gbz80/spec.mk: use -o
3492 * support/regression/ports/mcs51/spec.mk: use -o
3493 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
3494 * support/regression/ports/z80/spec.mk: use -o
3495 * support/regression/ports/ucz80/spec.mk: use -o
3496 * support/regression/ports/xa51/spec.mk: use -o
3497 * support/regression/fwk/lib/timeout.c: fix usage string
3499 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
3500 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
3502 2003-01-07 <johan AT balder>
3504 * src/SDCCast.c (decorateType): fixed bug #600035
3506 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
3507 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
3508 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
3509 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
3510 * src/pic/pcode.c: outcommented unused variable to remove warnings
3511 * src/pic/ralloc.c: outcommented unused variable to remove warnings
3513 2003-01-06 <karl AT turbobit.com>
3514 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
3517 2003-01-06 <johan AT balder>
3519 * src/SDCCicode.c: fixed array add
3521 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
3522 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
3523 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
3525 2003-01-04 <johan AT balder>
3527 * src/SDCCval.c (getNelements): fixed the initialized array of structures
3529 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3530 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
3532 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3533 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
3534 * support/regression/tests/bug-524697.c: fit mem usage into 8032
3536 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3537 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
3539 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
3540 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
3542 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3543 * src/mcs51/main.c: removed {bindir}{sep} from aslink
3545 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3547 * in \sdcc\as\mcs51\ changed these files in order to create an
3548 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
3549 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
3550 following files to include the previous two files: aslink.dsp,
3551 Makefile.aslink, Makefile.bcc, and Makefile.in.
3553 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
3554 .adb instead of .cdb
3556 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3558 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
3559 value from option --iram-size.
3561 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3563 * \sdcc\as\mcs51\lklist.c: added boundary check before using
3566 2002-09-18 <wiml AT hhhh.org>
3568 * SDCClrange.h: exposed setFromRange() and setToRange()
3569 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
3570 packRegsForAccUse() (bug 542397)
3571 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
3572 multiple times and emitting the fetch operations more than once
3573 added aopGetUsesAcc() function to allow binary operators to
3574 fetch their operands in the correct order; made genMinus() emit
3575 compact code for X = LITERAL - Y
3577 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3578 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
3579 sprintf() in line 1267.
3581 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3582 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
3585 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3586 Changes to aslink (All the changes are marked with 'JCF'):
3588 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
3591 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
3592 area BSEG. Also moves, if possible, the DATA area down into the internal
3593 ram so more space is available.
3595 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
3598 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
3599 not bytes. Function summary() which creates a memory usage summary
3600 file with extension .mem. Reports of overlaping stack and small stack
3601 size. If the space for the stack is less than 16 bytes aslink trows a
3604 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
3605 the 8051. Option 'y' for memory summary output file.
3607 Changes to sdcc (All the changes are marked with 'JCF'):
3609 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
3611 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
3612 overlaying area for it (uses RegBankUsed[4]).
3614 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
3615 bank zero as used by default. By default aslink locates the stack
3616 (equivalent to --stack-after-data). Pass option 'y' to aslink for
3617 the creation of the .mem file. Delegates the allocation of data area
3618 to aslink (it is not longer 0x30 by default). If --stack-loc passes
3619 the begining of the stack area to aslink.
3621 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
3622 glue() in SDCCglue.c creates an area for it.
3624 2002-09-03 Borut Razem <borut.razem AT siol.net>
3625 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
3626 sdcc/src/pic/glue.c:
3627 introduced atexit() handler for teporay files removal in case of
3628 errors, assertions, ...
3630 2002-08-29 Borut Razem <borut.razem AT siol.net>
3631 * sdcc/support/cpp2/auto-host_vc_in.h:
3632 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
3633 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
3634 Maybe there is a similar problem with BORLANDC? It should be checked!
3636 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
3637 corrected improper use of assert: the assignment to clr variable was done inside the assert.
3638 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
3639 was not executed, and the compiler (cl) launched a warning:
3640 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
3642 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
3643 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
3645 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
3646 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
3648 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3649 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
3650 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
3651 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3652 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
3653 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
3654 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
3655 - added Release configuration in VS projects
3656 - review of compiler an linker options
3657 - VC .exe files are generated in bin_vc directory, not to interfere
3658 with binaries generated from other projects (cygwin, mingw, bcc ...)
3660 * sdcc/src/yacc.dsp: added
3662 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
3663 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
3664 and insert the version number definitions from .version
3666 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
3668 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
3669 added - genarate auto-host.h using auto-host_vc_in.h as template
3672 removed from CVS, generated automatically
3674 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
3675 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
3677 2002-08-11 Borut Razem <borut.razem AT siol.net>
3678 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
3680 2002-08-10 Borut Razem <borut.razem AT siol.net>
3681 * src/SDCCmain.c (main):
3682 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
3683 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
3684 The consequence was that some temporary files were not removed.
3687 unification of code in functions tempfilename() and tempfile():
3688 function tempnam() is defined in Visual Studio 6.0 and .NET
3690 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
3692 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3693 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
3694 - removed compiler command line option /WX: Treats all warnings as errors
3695 - update a list of source files, included into the project
3697 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3698 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
3699 changed project type to Generic Project so that can be correcly converted to VS.NET project
3701 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
3703 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
3705 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
3707 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
3708 added return 0 statements after assert() to make compiler happy
3710 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
3711 added newline in the def file to keep MSC compiler satisfied
3713 * sdcc/src/z80/gen.c:
3714 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
3715 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
3716 - solved MSC error in function aopDump()
3718 * sdcc_vc.h: define PREFIX as "\\sdcc"
3720 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
3721 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
3723 2002-06-22 Scott Dattalo <scott AT dattalo.com>
3724 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
3725 - Rewrote the register banking algorithm.
3726 - Added pCode live-range analysis to registers (for now, only non-used and
3727 singly-used registers optimized away)
3729 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
3731 * 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.
3733 2002-05-10 Scott Dattalo <scott AT dattalo.com>
3734 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
3736 2002-04-22 Michael Hope <michaelh AT vroom>
3738 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
3740 * configure.in (DD_COPT): Added include support required for gbdk.
3742 * .version: Bumped version number just to increase it.
3744 * src/SDCCmain.c: Added -nostdinc to the default options.
3746 2002-04-15 Michael Hope <michaelh AT vroom>
3748 * device/lib/z80/printf.c (sprintf): Added.
3750 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
3752 * src/z80/peeph.def: Added transpose redundent load rule.
3754 * src/z80/main.c: Added force callee saves for jaune.
3756 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
3758 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
3760 2002-03-28 Johan Knol <johan AT balder>
3762 * src/SDCCval.c: fixed bug #532436
3764 2002-03-14 Scott Dattalo <scott AT dattalo.com>
3766 Added "char *Processor" field to the port structure.
3769 Added -p option. Allows port dependent processor to be specified.
3772 Initialized the new field char *Processor field to NULL in all ports
3775 Compiler generated registers for interrupt context saving
3776 were not getting allocated.
3778 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
3781 Fixed left shift. Will promote the left side of a left shift
3782 if a) left shifting more than size of operand or b) when assigned
3783 to something size > size of left side
3785 2002-03-14 Scott Dattalo <scott AT dattalo.com>
3787 tons of changes. Register allocation has been
3788 rewritten. Added customization for the various PICs. Flow
3789 analysis is restructured. ...
3795 Added. device.c is a PIC port hack to accomodate variations
3798 2002-03-13 Michael Hope <michaelh AT vroom>
3800 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
3802 2002-03-04 johanknol <johanknol AT manik>
3804 * /src/SDCCval.c: fixed
3806 const unsigned char arr[][2] = { { 0, 1 } };
3807 t18.c:1: error: Initializer element is not constant
3809 2002-03-04 bela <bela AT manik>
3811 * /device/include/mcs51reg.h:
3812 ds89c420 register definition update
3814 2002-03-03 <johan AT FRIJA>
3816 * support/Util/SDCCerr.c: did something, but don't no why anymore
3818 * support/regression/tests/bug-524691.c: made it a little less shy
3820 * src/SDCCast.c (decorateType): fixed bug #524697
3822 * src/SDCCast.c: made some lineno improvements
3824 * src/SDCCval.c (getNelements): changed warning to error
3826 * src/SDCCglue.c (printIvalArray): changed warning to error
3828 * src/SDCCicode.c: fixed a warning for mingw
3830 * src/SDCCast.c (decorateType): fixed the << promotion for ops
3832 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
3834 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
3836 * src/ds390/peeph.def:
3837 Added some more peephole rules
3839 * src/ds390/gen.c: Various fixes & enhancements
3841 * src/SDCClrange.c, src/SDCClrange.h:
3842 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
3844 * src/ds390/ralloc.c:
3845 various fixes & enhancements (ds390) specific
3847 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
3848 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
3851 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
3853 2002-03-02 <johan AT FRIJA>
3855 * src/SDCCast.c (decorateType): fixed bug #524708
3857 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
3859 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
3861 2002-03-01 Michael Hope <michaelh AT vroom>
3863 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
3865 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
3867 2002-03-01 <johan AT FRIJA>
3869 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
3871 * src/SDCCast.c (decorateType): fixed bug #524209
3873 * src/SDCCval.c (valNot): fixed bug #524195
3875 2002-02-26 <johan AT balder>
3877 * src/xa51/gen.c: fixed a warning
3879 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
3881 * src/SDCCast.c (decorateType): fixed bug #522534
3883 2002-02-23 <johan AT balder>
3885 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
3887 2002-02-22 <johan AT balder>
3889 * src/SDCCast.c: fixed bug #514865
3891 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
3893 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
3895 * sdcc/src/SDCCloop.c:
3896 Previous fix was not good. basic blocks that have "break" or "return" are
3897 not really partof a loop , but live ranges used in these blocks should
3898 be live thru the entire loop, so set partOfLoop but don't add them to
3901 2002-02-21 <johan AT FRIJA>
3903 * src/SDCCcse.c: fixed bug #514308
3905 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
3908 Fixed BUG #519583. If a conditional block ended in a return/break
3909 statement inside a loop, it was not being considered part of the loop.
3911 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
3913 2002-02-10 Karl Bongers <karl AT turbobit.com>
3916 Fixed up SDCDB debugger somewhat. Updated debugger/README
3917 with lots of comments and notes.
3919 * device/examples/test2.c:
3920 Fix bug, "red" variable not being initialized(compiler complained).
3922 * device/examples/Makefile, examples/test3.c:
3923 Add Makefile in device/examples folder, compiles test3.c
3924 for use as a multiple module SDCDB test case.
3926 * sim/ucsim/cmd.src/cmdset.cc:
3927 Took out debug printfs in ucsim "next" command.
3930 Karl and Johan start ucsim XA support. Most dissassembly working,
3931 about 75% emulation done(plenty of work remaining).
3933 * sim/ucsim/z80.src:
3934 Add Z80 support to ucsim, add test-ucz80 regression test,
3935 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
3936 Notice z80 compiler fails on examples/test3.c/crc code.
3938 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
3940 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
3941 Added support for --parms-in-bank1
3943 * src/ds390/peeph.def:
3944 added a few more peephole optimzations
3947 1) added __builtin_inp & __builtin_outp used to read in data of given length
3948 from a memory mapped port
3949 2) added __builtin_memcmp
3950 3) added __builtin_swapw swap bytes of a short
3952 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
3953 1) handle multiple send & receives from register bank1
3954 2) ralloc can now allocate DPTR1 to some liveRanges
3956 * src/SDCCsymt.c, src/SDCCsymt.h:
3957 changes to handle multiple sends & receives
3960 added some pointer arithmetic optimization
3963 added some pointer arithmetic optimizations but not stable yet so not
3964 called from anywhere (will get this working shortly)
3966 * src/SDCCopt.c: fixed for multiple sends & receives
3969 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
3970 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
3971 set preprocessor defines (depending on options)
3973 * src/SDCCicode.c, src/SDCCicode.h:
3974 changes made to handle multiple sends & receives
3977 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
3979 * src/SDCCcse.c, src/SDCCcse.h:
3980 added function findbackward def (to be used in upcoming optimization)
3982 * src/SDCCcflow.c, src/SDCCcflow.h:
3983 added function returnAtEnd - to determine if a basic block terminates with
3986 * src/SDCCast.c, src/SDCCast.h:
3987 added option parms-in-bank1
3989 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
3990 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
3991 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
3992 adjusted for --parms-in-bank1 option
3994 * device/include/string.h:
3995 donot redefine "reentrant" keyword
3997 * device/include/ds80c390.h: Added some more SFRs
3999 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4001 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
4003 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
4005 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
4007 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
4009 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
4011 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
4013 * Added --xram-movc option
4015 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4017 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
4019 2002-01-11 Johan Knol
4021 * Added math lib of Jesus Calvino-Fraga
4023 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
4025 * src/SDCCmain.c (processFile): fix processing of ../../src.c
4026 * support/regression/Makefile: new target test-mcs51-stack-auto
4027 * support/regression/ports/mcs51-stack-auto/spec.mk: added
4029 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4031 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
4033 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
4035 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
4037 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4039 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
4041 * src/SDCCglue.h: add definition for printIvalChar()
4043 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4045 * src/SDCCast.c: fix #498138 by Johan
4047 * src/SDCCglue.c: fix #498138 by Johan
4049 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
4051 * support/regression/Makefile: fix clean
4053 * support/regression/ports/ds390/support.c: fix transmission of last character
4055 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
4057 * /sdcc/src/ds390/gen.c:
4058 a) improved computing address of stack variable
4059 b) took out some #if 0 code
4060 c) improved parmBytes adjustment
4061 d) improved genPlusIncr & genMinusIncr
4062 e) genCmp could generate bad code (when left assigned to DPTR)
4063 f) Fixed bug in hasInc
4065 * /sdcc/src/ds390/ralloc.c:
4066 a) packRegsForSupport could mess up live information (Fixed)
4067 b) packRegsDPTRuse could be incorrect for left & right shift
4069 * /sdcc/src/mcs51/ralloc.c:
4070 packRegsForSupport could mess up the live information (Fixed)
4072 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
4074 * /sdcc/src/SDCCast.c:
4075 can reverse a loop even if function call is present as long
4076 as the loop control variable is local & is not passed as parameter
4078 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4080 * /sdcc/ChangeLog: *** empty log message ***
4082 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
4083 More builtin function additions for TININative
4085 * /sdcc/src/ds390/ralloc.c:
4086 Had broken the regression testsuite
4088 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
4090 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
4091 Added funcattr hasStackParms will be set for reentrant functions when there
4092 are paramteres on the stack, this helps in minimizing frame pointer generation
4093 typeFromStr can handle function pointers now
4095 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
4096 *** empty log message ***
4098 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4100 * /src/ds390/gen.c, /src/ds390/main.c:
4101 More builtin function additions for TININative
4103 * /src/ds390/ralloc.c:
4104 Had broken the regression testsuite
4106 * /src/SDCCast.c: Fixed a bug in dumptree
4108 * /src/SDCCsymt.c, /src/SDCCsymt.h:
4109 Added funcattr hasStackParms will be set for reentrant functions when there
4110 are paramteres on the stack, this helps in minimizing frame pointer generation
4111 typeFromStr can handle function pointers now
4113 * /doc/builtins.txt, /doc/TININative.txt:
4114 *** empty log message ***
4117 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4119 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
4120 ALPHA version for -mTININative
4122 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
4123 updated to reflect changes in the port structure
4126 added function do_assemble (similar to do_link) if non-null this function
4127 will be called to do assembly (-mTININative) requires a multi command
4129 added function genAssemblerEnd will be called to generate assembler Epilogue
4132 added _JavaNative to debug info printing
4134 * /src/SDCCmain.c: added option --tini-libid
4135 added port->do_assemble function (-mTININative) has a multi command assemble
4137 * /src/SDCCglue.c: Disabled "constExpr" check
4138 added port->genAssemblerEnd function
4140 * /src/SDCCglobl.h: Added option --tini-libid value
4143 tookout optimizeCompare from the header (has no external references)
4145 * /src/SDCCast.c: made one more function "static"
4147 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
4149 * src/z80/mappings.i: Added z80asm support.
4151 * src/z80/main.c: Added z80asm support on --asm=z80asm
4153 * src/z80/gen.c: Fixed asm portability issues.
4155 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
4157 * src/SDCCglue.c (printExterns): Added global/extern split.
4159 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
4161 * support/regression/Makefile: added test for mcs51 model large
4163 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
4165 * support/regression/ports/gbz80/spec.mk: added -mgbz80
4167 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
4169 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
4171 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
4173 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
4175 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
4177 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
4179 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
4181 * support/regression/tests/simplefloat.c: Port to mcs51.
4183 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
4184 * support/regression/tests/bug-485362.c: Added.
4186 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
4188 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
4190 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
4192 * src/z80/gen.c (aopDump): Added a dump function.
4194 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
4195 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
4197 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
4199 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
4201 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
4203 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
4205 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
4207 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
4209 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
4211 * support/regression/ports/ds390/support.c: Use tinibios.
4213 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
4215 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
4217 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
4218 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
4220 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
4222 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
4224 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
4226 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
4228 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
4229 (packRegsForIYUse): Created and optimised.
4231 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4233 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
4234 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4236 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
4238 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
4240 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
4242 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4244 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
4246 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
4248 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4250 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
4252 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
4254 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
4256 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4258 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
4259 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
4260 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
4262 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
4264 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
4265 (genNotFloat): Added.
4266 (genUminusFloat): Added.
4268 * device/lib/z80/Makefile: Added floating pt stubs.
4270 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
4272 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
4274 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
4276 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4278 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
4280 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
4282 * sdcc/support/regression/Makefile: Add port ds390.
4284 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
4286 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
4288 * sdcc/support/regression/ports/ds390/spec.mk: Added.
4290 * sdcc/support/regression/ports/ds390/support.c: Added.
4292 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
4294 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
4296 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
4298 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4300 * device/include/malloc.h: Added z80 and gbz80 support.
4302 * device/lib/gbz80/heap.s: Added.
4304 * device/lib/z80/heap.s: Added.
4306 * device/lib/malloc.c: Added z80 and gbz80 support.
4308 * support/regression/tests/malloc.c (testMalloc): Added.
4310 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
4312 * support/regression/tests/bug-478094.c: Added.
4314 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
4316 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
4318 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
4320 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
4322 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
4324 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
4326 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
4328 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4330 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
4332 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
4334 * support/regression/tests/bug-477927.c: Added.
4336 * src/z80/peeph.def: Added minor rules.
4338 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
4340 * src/z80/peeph.def: Added jump optimisation modification.
4342 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
4344 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
4346 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
4348 * support/regression/tests/funptrs.c: Added.
4350 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
4352 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
4354 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
4356 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
4358 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
4360 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
4361 (movLeft2ResultLong): Created.
4363 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
4364 (joinPushes): Added. Joins two char pushes into a word push.
4366 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
4368 * support/cpp2/Makefile.in (install): Added creation of dest dir.
4370 * support/makebin/Makefile (install): Added creation of dest dir.
4372 2001-10-24 Karl Bongers <karl AT turbobit.com>
4374 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
4376 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
4378 * src/z80/ralloc.c: Turned off faulty pack for one use.
4380 * src/z80/peeph-gbz80.def: Removed redundent restart options.
4382 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
4384 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
4386 * support/regression/Makefile: Improved clean
4388 * support/regression/ports/gbz80/spec.mk: Added clean
4390 * support/regression/ports/host/spec.mk: Added clean
4392 * support/regression/ports/z80/spec.mk: Added clean
4394 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
4396 * support/regression/ports/mcs51/timeout.c: little improvements
4398 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
4400 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
4402 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
4404 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
4406 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
4408 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
4410 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
4412 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
4413 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
4415 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
4417 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
4419 * src/mcs51/main.c (_linkCmd): Added bin path to command.
4421 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
4423 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
4425 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
4427 * support/regression/tests/longor.c: Added.
4429 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
4431 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
4433 * as/mcs51/aslink.h: define PATH_MAX
4435 * as/mcs51/asm.h: define PATH_MAX
4437 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
4439 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
4441 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
4443 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
4445 * src/SDCCglobl.h: define PATH_MAX
4447 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
4449 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
4451 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
4453 * src/z80/gen.c (gencjneshort): Fixed
4455 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
4457 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
4459 * support/regression/tests/bug-469671.c: Added.
4461 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
4463 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
4465 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
4467 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
4469 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
4471 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
4473 * src/device/lib/_mulint.c : removed hint: nooverlay bug
4475 * src/device/lib/_mullong.c : removed hint: nooverlay bug
4477 * src/device/lib/_divuint.c : removed hint: nooverlay bug
4479 * src/device/lib/_divulong.c: removed hint: nooverlay bug
4481 * src/device/lib/_moduint.c : removed hint: nooverlay bug
4483 * src/device/lib/_modulong.c: removed hint: nooverlay bug
4485 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
4487 * 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.
4489 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
4491 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
4493 2001-10-07 <johan AT FRIJA>
4495 * device/lib/gets.c (gets): fixed the return value.
4497 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
4498 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
4500 * 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.
4502 * 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.
4504 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
4506 * src/pic/gen.c: Removed Safe_strdup.
4508 * configure.in: Added option to enable libgc support.
4510 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
4511 (bitVectUnion): Optimised.
4512 (bitVectIntersect): Optimised.
4513 (bitVectBitsInCommon): Optimised.
4514 (bitVectCplAnd): Optimised.
4516 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
4518 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4520 * src/SDCCmain.c: distinguish between assembler debug and plain options
4522 * src/avr/main.c: remove standard assembler options
4524 * src/ds390/main.c: remove standard assembler options
4526 * src/mcs51/main.c: remove standard assembler options
4528 * src/port.h: removed "PENDING" comment
4530 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4532 * src/device/lib/_mulint.c : new, with assember functions
4534 * src/device/lib/_mullong.c : new, with assember functions
4536 * src/device/lib/_divuint.c : with assember functions
4538 * src/device/lib/_divsint.c : with assember functions
4540 * src/device/lib/_divulong.c: with assember functions
4542 * src/device/lib/_divslong.c: with assember functions
4544 * src/device/lib/_moduint.c : with assember functions
4546 * src/device/lib/_modsint.c : with assember functions
4548 * src/device/lib/_modulong.c: with assember functions
4550 * src/device/lib/_modslong.c: with assember functions
4552 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
4554 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
4556 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
4557 replaced _mululong.c and _mulslong.c by _mullong.c
4559 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4561 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
4563 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4565 * src/SDCCglue.c: test, if win32api is available for MINGW
4567 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4569 * src/SDCCsymt.c: no more _modifier in printTypeChain()
4570 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
4571 * support/regression/ports/gbz80/spec.mk: removed GENERIC
4572 * support/regression/ports/host/spec.mk: removed GENERIC
4573 * support/regression/ports/mcs51/spec.mk: removed GENERIC
4574 * support/regression/ports/z80/spec.mk: removed GENERIC
4576 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
4578 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
4580 * support/regression/tests/bug-467035.c: Created.
4582 2001-10-01 <johan AT FRIJA>
4584 * src/SDCC.y: fixed bug #466586 part 1
4586 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
4588 * SDCCicode.c: z80 has no generic pointers
4589 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
4591 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
4593 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
4595 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
4597 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
4599 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
4601 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
4603 * configure.in: Fixed up so that ucsim is only configured once.
4605 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
4607 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
4608 (getPathDifference): As above.
4610 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
4612 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
4614 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
4615 * .version: Updated to 2.3.1
4617 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
4618 Added copyright header.
4620 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
4621 (assemble): Added support for macro based assembler commands.
4622 (linkEdit): Added support for macro based linker commands.
4623 (preProcess): Changed the pre-processor to use macros.
4624 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
4625 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
4627 * device/lib/z80/crt0.s: Added module name for debugging.
4629 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
4631 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4633 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
4635 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
4637 * src/Makefile.in: Added SDCCmacro and SDCCutil
4639 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
4641 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4643 2001-09-16 <johan AT FRIJA>
4645 * 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.
4647 2001-09-15 <johan AT FRIJA>
4649 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
4650 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
4652 2001-09-11 <johan AT FRIJA>
4654 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
4656 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
4658 * support/regression/tests/bug-460444.c: Added test case.
4660 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
4661 (genCast): Added justification for all of the asserts.
4663 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
4665 * support/regression/support.c: _xdata replaced by xdata
4667 * support/regression/spec.mk: removed _generic
4669 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
4671 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
4673 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
4674 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
4676 * src/z80/peeph.def: Added a rule to optimise shift then compare.
4678 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
4680 * support/regression/tests/bug-460010.c: Added test case.
4682 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
4684 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
4686 * support/regression/Makefile: inter-port-clean adjusted for mcs51
4688 * support/regression/testfwk.c: removed workaround for bug #436344
4690 * support/regression/tests/bp.c: use less memory with mcs51
4692 * support/regression/tests/bug-441448.c: use less memory
4694 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
4696 * support/regression/collate-results.py: typo
4698 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
4700 * support/regression/tests/fetchoverlap.c: Added new test case.
4702 * support/regression/tests/bp.c: Added new test case.
4704 * support/regression/tests/bug-448984.c: Added new test case.
4706 * support/regression/tests/pow2shifts.c: Added new test case.
4708 * src/z80/gen.c: Turned off the noise it normally generates for the release.
4709 (genlshTwo): Fixed right shift for count > 8.
4711 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
4713 2001-09-08 <johan AT FRIJA>
4715 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
4717 2001-09-07 <johan AT FRIJA>
4719 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
4721 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
4723 2001-09-06 <johan AT FRIJA>
4725 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
4726 * bernhard noted me at this: "() equals to (void)" (1.38)
4728 2001-09-05 <johan AT FRIJA>
4730 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
4732 2001-09-04 <johan AT FRIJA>
4734 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
4737 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
4739 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
4741 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
4743 * link/z80/aslink.h: Fixed path for PATH_MAX
4745 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
4747 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
4749 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
4751 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
4753 * 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.
4755 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
4757 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
4758 (genCmp): Fixed up genCmp for the GB with longs.
4760 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
4762 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
4764 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
4766 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
4768 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
4770 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
4772 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
4774 * 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.
4776 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
4778 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
4780 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
4782 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
4784 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4786 * sim/ucsim/configure: little improvement of Cygwin-detection
4787 * sim/ucsim/configure.in: little improvement of Cygwin-detection
4788 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
4789 * support/regression/tests/bug-221100.c: small changes for mcs51
4790 * support/regression/tests/bug-221168.c: small changes for mcs51
4791 * support/regression/tests/bug-227710.c: small changes for mcs51
4792 * support/regression/tests/staticinit.c: small changes for mcs51
4793 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
4794 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
4795 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601