1 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3 * src/SDCCicode.c (geniCodeParms),
4 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
5 function pointers, fixed function pointer bugs #861242 and #861896
7 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9 * device/include/c8051f000.h,
10 * device/include/c8051f120.h,
11 * device/include/c8051f300.h: added header files for Silicon
12 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
14 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
16 * src/SDCCast.c (processParams): added new type flow and restructured
17 (gatherAutoInit): added new type flow
18 (addCast): cosmetic changes
19 (getLeftResultType): added new type flow for array indices, patch
20 provided by Stas, see FR #877103
21 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
22 array index patch by Stas
23 * src/SDCCast.h: added prototype getResultTypeFromType()
25 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
26 * src/pic/glue.c (pic14emitStaticSeg),
27 * src/pic16/glue.c (pic16emitStaticSeg),
28 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
29 for initialization of symbols
30 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
31 * support/Util/SDCCerr.h:
32 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
33 * .version: bumped version number to 2.3.8
34 * device/include/Makefile.in (install),
35 * doc/Makefile (install): changed to 'rm `find ...`' construct to
38 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
40 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
41 Slade Rich fixed an optimization bug
42 * src/pic/pcodepeep.c,
44 * doc/Makefile (install): added test for directory
46 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
48 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
49 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
50 * src/pic/ralloc.c (getRegPtr, getRegGpr),
51 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
52 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
53 * as/mcs51/asexpr.c (term),
54 * as/hc08/asexpr.c (term): fixed bug #887146
56 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
58 * src/z80/gen.c (genMult): handle single byte result product
59 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
60 DUMMY_READ_VOLATILE (fixed bug #886367)
62 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
64 * support/regression/tests/libmullong.c: fixed logic, on little endian
65 hosts we ended without a mullong_wrapper()
67 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
69 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
70 virus/worm forged address usage.
72 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
74 Fixed promotion, it should be done on AST level:
75 * src/SDCCast.c (addCast): added promotion to int
76 (decorateType): updated call to upCast()
77 * src/SDCCicode.c (geniCodeLeftShift): removed call to
78 usualUnaryConversions()
80 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
82 * support/regression/tests/literalop.c (mulWrapper): Added a
83 wrapper to remove integer overflow warnings.
85 * support/regression/tests/float_trans.c: Made work on host.
87 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
90 * support/regression/generate-cases.py (main): Changed from inline
93 * doc/Makefile (install): Changed to depth first to get rid of
94 missing directory install warning.
96 * as/Makefile (install-doc): Made work on Mac.
98 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
100 * src/SDCCast.c: added an additional type flow in decorateType() of
101 opposite direction, see feature request #860006; it's enabled at runtime
102 by setting the environment variable SDCC_NEWTYPEFLOW
103 * src/SDCCast.h: changed prototype of decorateType()
104 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
105 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
106 'char' to 'int' can be omitted, if both operands are 'unsigned char';
107 see feature request #877103
108 * src/SDCCval.c: updated call of decorateType()
109 (valBitwise): fixed bug #882876
110 (valMinus): added promotion
111 (valLogicAndOr): result is unsigned
112 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
113 * src/SDCCsymt.c (computeType),
114 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
115 must not cause an unsigned operation
116 * src/pic/glue (pic14emitRegularMap),
117 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
119 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
121 * src/pic/pcode.c (PCodeID): commented out left over debug code
123 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
125 * support/valdiag/tests/overflow.c: added shift tests
133 * src/pic/pcodepeep.c,
134 * src/pic/pcoderegs.c,
136 * src/pic/ralloc.h: applied patch from Slade Rich;
137 added support for multiple code pages and multiple RAM banks on the
138 PIC 14 port. The ASM files now no longer simply assume all the
139 code / RAM are in the same page / bank. This means the linker can
140 safely allocate code/RAM of separate ASM files to different pages/banks.
141 * doc/sdccman.lyx: added Slade's tips
142 * src/mcs51/peeph.def: fixed bug #880768
144 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
146 * src/hc08/ralloc.c (rematStr): fixed bug #879282
147 * src/SDCCast.c (decorateType): fixed bug #880197
149 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
151 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
154 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
155 strtof is not part of C89 and isn't included with Mac OS X.
157 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
159 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
160 shiftL2Left2Result): fixed bug #879326
161 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
162 (genMultOneByte): fixed bug in signed vs unsigned multiplication
163 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
164 address fetch for clr instruction
165 * device/lib/hc08/_mulint.c: created optimized assembly version
166 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
168 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
170 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
171 proposed in FR #877103
173 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
175 * src/SDCCval.c (cheapestVal): added missing checks
176 * src/SDCCicode.c (usualBinaryConversions): fixed condition
177 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
179 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
181 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
184 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
186 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
187 loaded with the linker search paths (-L arguments) and the libraries
188 to be linked with the current source (-l arguments). Changes
189 currently will affect only the pic16 port.
190 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
191 include path the port specific paths and port specific libraries,
192 * gplink command now contains the $3 argument,
193 * src/pic16/device.h,
194 * src/pic16/device.c,: structure PIC_device is made public and
195 renamed to PIC16_device, the same for variable Pics which is renamed
196 to Pics16. Updated all references to them.
197 * src/pic16/glue.c (pic16glue): corrected bug with code
198 initialization which bypassed the variable initializations block.
200 * device/lib/pic16/Makefile.rules: removed --penable-stack from
201 COMPILE_FLAGS and added the --nostdinc option
203 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
205 * device/include/mc68hc908jb8.h: Register defs for another member
206 of the hc08 family. Contributed by Bjorn Bringert - thanks!
208 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
210 Documenting changes from previous commits.
211 * configure.in (version 1.56),
212 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
213 when generating output files to configure the pic16 library,
214 but now I've commented it out, since gputils aren't installed in the
215 SF compile farm, so library won't compile
217 * device/lib/Makefile.in (version 1.56): initially I've added in
218 target 'all' the prerequestive 'model-pic16' so it compiled the
219 pic16 library, but now I've commented it out for the same reasons
221 * added targets 'model-pic16' and 'objects-pic16' to compile the
223 * added target 'port-specific-objects-pic16' to handle the
224 generated libraries and copy them into the build/ directory
225 * added target 'clean-intermediate-pic16' to clean intermediate
226 files into pic16 directory
227 * in target 'installdirs' added line to create directory pic16 in
228 the installation path
230 * device/include/Makefile.in (version 1.11): in target 'install'
231 added lines to copy all header files to installation path,
232 * in target 'installdirs' added line create directory for pic16
233 headers in the installation path
235 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
237 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
240 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
243 * device/lib/configure.in,
244 * device/lib/configure: fixed for autoconf 2.57
246 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
248 * src/z80/main.c (_parseOptions): fixed the portmode= command line
249 option so that it actually works. Made it specific to the z80, since
250 the gbz80 doesn't have these kinds of I/O ports.
252 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
254 * device/include/z180.h,
255 * device/lib/_memcpy.c,
256 * device/lib/_memmove.c,
257 * device/lib/_mulint.c,
258 * device/lib/ser_ir.c,
259 * device/lib/ser_ir_cts_rts.c,
260 * device/lib/_strcmp.c,
261 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
262 * src/z80/main.c (_process_pragma): add support for pragmas bank and
263 portmode; added deprecation warning for bank= and protmode= forms.
264 Also, guard against buffer overflow.
265 * src/z80/gen.c (aopGet): generate better code for sfr banked read
267 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
269 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
270 changed interrupt vector table generation to only emit declared vectors.
271 * device/include/Makefile.in: added missing backslash
272 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
274 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
276 Mainly changes to support compilation of the device libraries
277 * src/pic16/device.c: stack is allocated via symbol and not
278 via literal number. The symbol is placed in the corresponding
279 position of the data ram
280 * (pic16_dump_section): relocatable and absolute uninitialized
281 data are now emitted in sorted order to reduce section naming,
282 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
283 weren't marked as being in the access bank,
285 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
287 Added portion of GNU PIC Library under the directory
288 device/include/pic16 and device/lib/pic16. These files
289 contain the declarations of SFRs for the PIC18Fxx2 devices.
290 The directory is initialized via configure from toplevel.
292 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
294 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
295 the spilllocations to be compared correctly
297 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
299 * src/SDCCast.c (decorateType): fixed bug introduced today
301 2004-01-12 Borut Razem <borut.razem AT siol.net>
303 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
304 doc/sdccman.lyx: upper case pragmas are deprecated
306 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
308 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
309 in simpler and even better code
311 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
313 * src/SDCCicode.c (operandOperation): fixed bug #874819
314 * src/SDCCast.c (decorateType): fixed
315 char foo (unsigned long ul) { return ul > 0; }
317 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
319 * doc/sdccman.lyx: Moved and added some sections, small changes
320 all over. Telling LaTeX to be less strict with word spacing
321 to better keep the right margin. Changed some notes about
322 maintainance of the ports in section 3.2.1 - is it OK like this?
324 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
327 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
328 convilong): modified to inform the pic16 port that builtin functions
331 PIC16 PORT specific changes:
332 * src/pic16/device.c pic16_dump_equates() added,
333 processor registers declared internally by the port are emitted in
334 the translation as equates,
335 * src/pic16/gen.c: inline code is passed unprocessed to the
337 * (pic16_popGetLit2): fnuction modified to take second operand as
338 pCodeOp pointer and not as literal,
339 * (popRegFromIdx): prefixed with pic16_,
340 * (pic16_popCombine2): modified to receive already allocated pCode
342 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
343 * (genFunction): initializes local stack frame and pushes on stack
344 all the registers used by this function,
345 * (genEndFunction): restores all registers from stack and restores
347 * src/pic16/glue.c (pic16emitRegularMap): various changes and
349 * (pic16glue): changed the program startup sequence,
350 * added new dbName code 'A' for functions placed in absolute section
351 * src/pic16/main.c: added function attribute _naked,
352 * added pragma 'code' to place a fnuction at an absolute address,
353 * added command line arguments --debug-ralloc and --pcode-verbose,
354 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
355 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
356 * (pic16_newpCodeOpLit2): modified to take the second operand as
358 * (pic16_printpBlock): modified to emit each function in a separate
360 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
361 UPPER for immediate operands,
362 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
364 * src/pic16/peeph.def: all peepholes with movff are commented out,
365 because there is a problem in the pcode peep optimizer,
366 * src/pic16/ralloc.c: the register allocator can now reuse local
367 function symbols for another function. This saves register usage.
368 * src/pic16/ralloc.h: added flag isLocal in structure regs,
370 Added file src/pic16/NOTES with information about program writing on
371 the current port version.
373 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
375 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
376 and peephole 252 (array access)
378 2004-01-09 Borut Razem <borut.razem AT siol.net>
380 * src/SDCCmain.c : fixed #872250: -l command line defined library
381 files are scanned before standard library files
383 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
385 * src/SDCCast.c (decorateType): fixed bug #874046
387 2004-01-09 Borut Razem <borut.razem AT siol.net>
389 * support/scripts/sdcc.nsi: remove previous installation
391 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
393 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
394 bytes for last interrupt vector (mcs51)
395 * sdcc.spec: fixed typo
397 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
399 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
400 gen51Code): more efficient parameter receive for --model-large
403 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
406 * src/z80/main.c: added missed needLinkerScript flags (more than
407 one port structure defined in these file)
408 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
411 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
413 * src/SDCCmain.c: removed various references to DEFAULT_PORT
414 * src/port.h: added flag needLinkerScript in port->linker
415 structure to inform whether to create a .lnk file or not,
423 * src/z80/main.c: changed appropriately to configure
424 needLinkerScript flag
426 * src/pic16/gen.c (genAddrOf): fixed bug #863624
427 * src/pic/glue.c: added variable udata_section_name to
428 override default uninitialized data segment definition for
429 devices only with SHAREBANK memory (reported from Erik Epetrich)
430 * (pic14emitOverlay): modified to emit a commented overlay segment
431 directive when no overlay data exist
432 * (picglue): modified to emit uninitialized data segment
433 according to udata_section_name
434 * src/pic/main.c (_pic14_parseOptions): added command line
435 options --udata-section-name=[name] to override default
436 udata definition name
437 * modified _linkCmd and _asmCmd to include compiler passed
438 arguments via -W option
439 * src/pic16/main.c: added $l in _asmCmd, changed extension for
440 object file from '.rel' to '.o' in port->linker structure,
441 changed size of fptr from 2 to 3 in port structure
443 2004-01-07 Borut Razem <borut.razem AT siol.net>
445 * support/scripts/sdcc.nsi: update PATH
446 * support/scripts/sdcc.ico: craeted
448 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
450 * device/include/Makefile.in: fix install
451 * doc/Makefile: fix install
453 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
455 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
457 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
458 how the function variable allocation summary is displayed; also
459 include information about variables allocated to the overlay
462 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
464 * as/mcs51/lkmain.c: Help about -Y option
465 * as/mcs51/lkarea.c: Fixed gcc warnings
467 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
469 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
471 * support/valdiag/tests/overflow.c: added
472 * src/SDCCast.c (decorateType),
473 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
476 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
478 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
481 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
483 A python script to validate compiler diagnostic messages. It can be
484 used to verify that sdcc complains about bad c source code and
485 gives a good location of the error.
486 * support/valdiag/Makefile,
487 * support/valdiag/valdiag.py,
488 * support/valdiag/tests/*
490 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
492 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
493 * src/SDCCsymt.c (newEnumType),
495 * support/Util/SDCCerr.c,
496 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
498 * support/regression/tests/enum.c: added test for enum values that
499 require at least 2 bytes of storage.
501 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
503 * src/common.h: added ifndef/define/endif macros
504 around the header file.
505 Bug reported from Jesus Calvino-Fraga
507 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
510 * device/include/Makefile.in: don't install CVS directories
511 * device/lib/Makefile.in: added removal of CVS directories after install
512 * doc/Makefile: fixed install, added local_icons
513 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
514 * src/mcs51/gen.c (genRightShift): fixed bug #870788
515 * src/ds390/gen.c (genRightShift): fixed bug #870788
516 * src/SDCCast.c (decorateType): fixed bug #870781
518 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
520 PIC16 port related changes:
521 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
522 added variable stackPos,
524 * gen.c: genCall, assignResultValue: added support for
525 pushing/retrieving function parameters to/from stack,
526 genFunction,genEndFunction: setup stack frame for the
528 genAddrOf: will be changed according to bug 863624
530 * added files genutils.c and genutils.h which contain gen*
531 debugged and optimised functions extracted from gen.c
533 * glue.c: added variable 'externs' which holds extern symbols,
534 pic16emitRegularMap: is modified to properly handle relocatable
535 symbols under the new scheme,
536 pic16createInterruptVect: is modified
537 pic16printPublics: is modified to emit 'global' assembler directives,
538 added pic16_printExterns to print extern symbols,
539 pic16glue: initializes stack/frame pointer in the beginning of
540 the assembly output. Temporary hack, will be corrected later,
541 because gplink yet does not support stack and SDCC does not
542 yet support a type of crt0.o object to create the final binary.
544 * Removed many lines that contain 8051 legacy code.
545 * The code is finally placed under a 'code' directive.
546 * Added port specific options.
548 * _process_pragma: simplified since now we do not need *special*
549 include file to define SFR registers. But a separate header
550 will be needed. This will be developed later.
551 * _pic16_parseOptions: added, parses port specific options:
552 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
553 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
554 --preplace-udata-with=
556 * _pic16_setDefaultOptions: modified to initialize section names,
557 but hack is temporarly out of order since it needs improvement.
558 * _pic16_genAssemblerPreamble: configuration words are emitted by
559 their address instead of their name. This part is incomplete and
560 supports only the 18Fxx2 devices. Other devices will emit an error
561 during assembly since they do not contain the same set of config
563 * _pic16_genIVT: is modified,
565 * pcode.c: added definitions for some hardware registers that are needed
567 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
568 All PCI entries are updated. Now LFSR is supported.
569 * Removed pic16_pciTRIS is mentioned by mdubuc in source
570 * added pic16_newpCodeOpLit2 to support instructions with
571 two literal arguments
572 * pic16_pCode2str: corrected code that emits assembler instructions
573 with two literal operands and those that have an access bit modifier
574 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
575 this fixes a bug which caused some labels to be lost, when an
576 assembler directive was added, i.e. banksel,
577 * pic16_FixRegisterBanking: improved logic that causes the insertion
579 * InlineFunction: functions that are called once, are not any more
580 inlined. This can be a port option in the future,
582 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
584 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
585 hold the corresponding uninitialized symbols,
586 * pic16_allocProcessorRegister: registers have explicit marked the
588 * pic16_allocInternalRegister: registers are explicit marked as
590 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
591 processing list, so bit registers were lost,
594 * ralloc.h: added field 'accessBank' and original symbol operand
595 in register definition,
596 * removed the field isMapped from register definition,
598 ** Several functions have been removed from various sources:
599 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
600 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
601 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
602 pic16_assignRelocatableRegisters
604 ** others have been introduced:
605 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
606 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
608 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
610 * support/scripts/inc2h.pl: changed definition of BIT_AT
611 to emit 'sbit at' instead of 'bit at'. This was a request.
613 PIC16 port related preliminary changes:
614 * gen.c: prefixed function popRegFromString with
615 pic16_ and all references to it corrected
616 * pcode.c: all pic16_pc_* hardware registers prefixed
618 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
619 * ralloc.c: newReg(): when register is REG_SFR then
621 pic16_allocProcessorRegister(): marks register wasUsed=0
622 pic16_writeUsedRegs(): added a call to assign processor
623 registers via pic16_assignFixedRegisters
625 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
627 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
628 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
629 variables in unused register banks. Also the SSEG is placed
630 wherever there is enough space for it, and IDATA can be anywhere
631 in internal RAM. For now compile using -Wl-Y[stack_size].
632 The mem file is different for this option as well, since it
633 makes no sense of talking about DSEG lenght.
635 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
637 * src/SDCClrange.c: fixed bug 869095 that caused segfault
638 in certain cases, e.g. when ROM assignment, patch provided
639 from Albert den Haan.
641 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
643 Many signedness and type propagation fixes:
644 * src/SDCCicode.c: made geniCodeCast() static
645 replaced SPEC_ by IS_ (cosmetic)
646 (operandOperation): fixed div and mod operation
647 (usualBinaryConversions): added support for promotion of char
648 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
649 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
650 (geniCodeAdd): an array index will stay unsigned, even if promoted
652 (geniCodeArray): ditto
653 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
654 * src/SDCCsymt.c (computeType): added more support for char;
655 promotion of char is selectable by promoteCharToInt, fixed signedness
657 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
658 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
659 * src/SDCCval (val*): replaced signedness calculation by
661 rearranged if-branches (cosmetic)
662 (valShift): added warning W_SHIFT_CHANGED
663 (valCompare): fixed problem with different types
664 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
665 * support/regression/tests/literalop.c: added many cases
666 * support/regression/tests/ast_constant_folding.c: changed finally to
668 * .version: new year, new version: 2.3.7
669 * src/SDCCmain.c (main): applied patch #866468
670 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
671 provided by Scott Bronson
672 * doc/sdccman.lyx: updated documentation for sdcdb
673 updated and added chapter tips
675 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
677 * src/SDCCsymt.h: missing from yesterday's commits
679 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
681 * src/SDCC.y (struct_or_union_specifier),
682 * support/Util/SDCCerr.c,
683 * support/Util/SDCCerr.h: verify that struct & union tags are used
686 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
688 * src/SDCCglobl.h: missing from yesterday's commits
690 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
692 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
693 sft_attributes, struct_declaration, parameter_declaration,
694 type_name, start_block, declaration_list),
695 * src/SDCC.lex (check_type): support redefinition of typedef names
697 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
699 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
700 aligned xdata arrays. Erik helped me with the if clause.
702 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
704 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
707 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
710 * src/SDCCast.c (newAst_),
712 * src/SDCCicode.c (ast2iCode, newiCode),
714 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
715 expr, statement, expression_statement, selection_statement,
716 iteration_statement, expr_opt, jump_statement): foundation for tracking
718 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
721 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
723 * support/Util/SDCCerr.c,
725 * src/SDCCast.c (createCase, createDefault, decorateType),
726 * src/SDCClabel.c (labelUnreach),
727 * src/SDCC.y (labeled_statement, jump_statement): More improvements
729 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
730 (with thanks to Stas Sergeev)
731 * device/include/time.h,
732 * device/lib/time.c (CheckTime): suppress unreachable code warning
734 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
736 * src/SDCCast.c (createIvalCharPtr),
737 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
739 * support/regression/tests/nullstring.c: tests for these two bugs
741 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
743 * support/Util/SDCCerr.h,
744 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
745 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
746 about storage class and 'at' used inside struct or union
747 * src/SDCCBBlock.c (iCodeFromeBBlock),
748 * src/SDCCcse.c (ifxOptimize),
749 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
750 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
751 printIval, emitStaticSeg, emitOverlay),
752 * src/SDCClabel.c (deleteIfx),
753 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
754 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
755 gatherAutoInit, processParms),
756 * support/Util/SDCCerr.h,
757 * support/Util/SDCCerr.c (werrorfl): Support for better error location
758 reporting for post-parse errors.
760 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
762 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
763 implicit casts via union; they don't work on big endian systems
764 (possible fix for bug #861138)
766 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
768 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
769 * src/mcs51/main.c: fixed the fix for bug #737001
771 2003-12-15 Borut Razem <borut.razem AT siol.net>
773 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
775 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
777 * support/makebin/makebin.c: put output in binary mode
779 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
781 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
782 xdata and data memory on startup. Set the environment variable
783 SDCC_NOGENRAMCLEAR to disable this.
784 * src/mcs51/peephole.def,
785 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
786 (allows non-interrupt and interrupt code to safely compete for a resource
787 without the non-interrupt code having to disable interrupts)
789 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
791 * src/SDCCicode.c (geniCodeAdd),
792 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
793 with valFromType if type might be a pointer and host is big endian).
794 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
795 types, not just integer types.
796 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
797 multiply defined with mismatching "at" address.
799 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
801 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
802 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
803 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
804 with embedded nulls (fixed bug #753752)
806 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
808 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
809 Apparently this did not see much testing (endless loop)
811 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
813 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
815 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
817 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
818 gracefully handle NULL memmap pointers
820 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
822 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
823 instead of deleting the iCode when an operand is volatile
824 * src/z80/gen.c (genDummyRead),
825 * src/mcs51/gen.c (genDummyRead),
826 * src/ds390/gen.c (genDummyRead),
827 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
829 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
830 * src/SDCC.y: fixed bug #850420
832 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
834 Applied z80 i/o port patch from Peter Townson and fixed some operators
835 to better handle operands in A register.
836 * device/include/z180.h
842 * src/z80/peeph-z80.def
846 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
848 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
850 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
852 * device/lib/hc08/_mullong.c: Removed extra #endif
854 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
856 * sim/ucsim/hc08.src/inst.cc,
857 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
859 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
860 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
861 * device/include/stdarg.h: fixed varargs for hc08
862 * device/lib/Makefile.in,
863 * device/lib/hc08/Makefile,
864 * device/lib/hc08/_mulint.c,
865 * device/lib/hc08/_mullong.c: fixed some endian problems
867 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
869 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
870 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
871 * device/lib/_gptrget.c,
872 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
874 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
876 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
877 * src/SDCCast.c (astErrors): fixed bug #846007
878 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
880 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
882 * src/SDCCast.c (decorateType): disabled a transformation I added in
883 revision 1.188 (access to fields of a structure at an absolute address);
884 it breaks with bitfields, extern declarations, and gcse analysis.
885 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
886 could be assigned through a pointer, so don't complain.
887 * src/SDCCast.c (astErrors),
889 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
891 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
893 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
894 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
895 output of __config directives, since gpasm now supports them
896 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
897 pre-processor macro, i.e. -DMCU=p18f452
898 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
899 and modified to handle 'cast' icode similarly to '=' icode
900 * src/pic16/device.h (typedef struct PIC_device): added field
901 'extMIface' to indicate that chip has external memory interface
902 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
903 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
906 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
908 * src/SDCC.y (pointer): fixed bug #846006
909 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
910 * src/SDCCast.c (decorateType): fixed bug #846009
911 * src/ds390/peeph.def,
912 * src/ds390/gen.c (genAnd, genOr),
913 * src/mcs51/peeph.def,
914 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
916 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
918 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
925 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
929 * src/SDCCbitv.c: added function to free a bitvector
931 * src/SDCClrange.c: added function to recompute the liveranges
933 * src/ds390/ralloc.c,
935 * src/mcs51/ralloc.c,
937 * src/pic16/ralloc.c,
939 * src/z80/ralloc.c: recompute the liveranges after register packing
941 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
943 * src/SDCCloop.c (newInduction): fixed bug #845630
945 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
947 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
948 inadvertantly left behind from my 2003-11-12 change
950 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
952 Updated headers I neglected to commit yesterday.
956 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
958 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
959 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
960 * src/SDCCopt.c (eBBlockFromiCode),
961 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
962 the creation of the key hash table from the sequencing so it can be used
963 earlier (for some GCSE bug fixes still pending)
965 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
967 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
968 * support/regression/tests/addsub.c: testing genPlus shortcut
970 2003-11-15 Borut Razem <borut.razem AT siol.net>
972 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
974 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
976 * src/SDCCcse.c (cseBBlock): fixed bug #527779
977 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
978 ordering is immaterial.
979 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
981 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
983 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
984 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
985 (SIGSEV) of bug #840381
986 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
987 unlink new file before rename if new and old filenames are the same)
989 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
991 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
992 uninitialized variables) for the mcs51. Set environment variable
993 SDCC_GENRAMCLEAR to test.
994 xdata initialization slightly shorter
996 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
999 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
1000 #838241 & 780691 (basicly the same bug)
1001 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
1002 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
1004 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
1006 * src/SDCCmain.c (linkEdit): "fix" #834252
1008 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1010 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
1012 * src/SDCC.y: fixed bug #819403
1014 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1016 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
1017 the reentrant attribute.
1018 * src/hc08/gen.c (genPackBits): added missing stack readjustment
1019 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
1021 * src/SDCCast.c (decorateType): fixed bug with storage class not being
1022 updated during pointer dereference; f.e. ~(((char *)1)*) was being
1023 erroneously reduced to a literal.
1024 * src/hc08/ralloc.c (packRegisters, rematStr),
1025 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
1028 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1030 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
1031 * doc/sdccman.lyx: changed from 'article' to 'book'
1032 * doc/Makefile: readded test_suite_spec and cdbfileformat
1034 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
1036 * device/include/stdlib.h: include malloc.h to comply with ANSI
1037 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
1039 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1041 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
1042 * doc/clean.mk: also remove *.out files
1043 * doc/sdccman.lyx: some additions, larger top/bottom margins
1045 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1047 * src/SDCC.y: fixed bug #837365
1048 * support/regression/tests/bitopcse.c
1049 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
1050 a symbol (might be valop instead)
1051 * device/lib/Makefile.in: added errno.c to HC08SOURCES
1052 * device/lib/clean.mk: added hc08 to the cleaning list
1054 2003-11-04 Borut Razem <borut.razem AT siol.net>
1056 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
1058 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1059 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
1060 malloc is declared in standard stdlib.h
1062 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1064 * device/lib/hc08/Makefile: need to clean .rel not .o files
1065 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
1067 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1077 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
1078 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
1079 tests (which uses the port's oclsExpense function)
1085 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
1087 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1089 * src/SDCCcse.c (ifxOptimize),
1090 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
1091 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
1092 deleting the IFX iCode.
1093 * src/hc08/ralloc.c: reduced unneeded slocs
1094 * src/hc08/gen.c: fixed bug in asmopToBoolean
1096 2003-11-04 Borut Razem <borut.razem AT siol.net>
1098 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
1099 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1100 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
1101 transferred to configure
1103 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
1105 Use headers defined in the C[++] standards:
1106 * sim/ucsim/gui.src/serio.src/fileio.cc
1107 * sim/ucsim/gui.src/serio.src/frontend.cc
1108 * sim/ucsim/gui.src/serio.src/main.cc
1109 * sim/ucsim/gui.src/serio.src/posix_signal.cc
1110 * support/Util/NewAlloc.c
1116 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1118 * Added MSVC projects for hc08 assembler and linker:
1119 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
1120 /as/hc08/link_hc08.dsp
1122 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
1124 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
1126 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
1128 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
1130 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1132 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
1134 2003-10-31 Borut Razem <borut.razem AT siol.net>
1136 * support/cpp2/cpplib.h,
1137 support/cpp2/cpplib.c,
1138 support/cpp2/cpplex.c,
1139 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
1140 to switch _asm block preprocessing on / off. Default is
1141 #pragma preproc_asm +
1143 2003-10-31 Borut Razem <borut.razem AT siol.net>
1145 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
1146 when outputting comment blocks (when executed with -C option) and
1147 _asm (SDCPP specific) blocks
1149 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1151 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
1153 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
1155 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
1157 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
1159 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
1160 * src/SDCCast.c (decorateType): fixed bug #832664
1162 2003-10-31 Borut Razem <borut.razem AT siol.net>
1164 * support\cpp2\cpplex.c: fixed for SDCPP:
1165 comments(when executed with -C option) and _asm blocks
1166 were included even if they where in skipped #if block.
1167 Applied solution from GCC cpp 3.3.2
1169 2003-10-31 Borut Razem <borut.razem AT siol.net>
1171 * src/SDCC.lex: sdcc now understands both formats:
1172 '# <line_number> <file_name>' and
1173 '#line <line_number> <file_name>'
1174 * support/cpp2/cppmain.c: sdcpp now generates the standard
1175 '# <line_number> <file_name>' instead of former
1176 '#line <line_number> <file_name>'
1178 2003-10-30 Borut Razem <borut.razem AT siol.net>
1180 * support/cpp2/cpphash.h,
1181 * support/cpp2/cpplib.h
1182 * support/cpp2/cpplex.c,
1183 * support/cpp2/cppmain.c,
1184 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
1186 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1188 Fixed a number of problems revealed by bug #827883.
1189 * src/SDCCloop.c (loopInvariants): Spill location of the
1190 result operand should be recomputed if extracted from
1191 a loop. Also, don't extract assignments of an iTemp
1193 * src/SDCCast.c (isConformingBody): loop reversal should
1194 not occur if the control variable is involved with a
1195 relational operator.
1197 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1199 * .version: bumped to 2.3.6 to reflect the big improvements
1200 made by Erik and Klaus. Thanks!
1202 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
1204 Replaced the livrange code.
1205 * src/SDCClrange.c: added new LR code
1207 * src/SDCCBBlock.h: removed remainig parts from old LR code
1208 * src/ds390/ralloc.c,
1209 * src/ds390/gen.c: minor fixes to make it work with new code
1211 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1216 * src/hc08/ralloc.c: Fix various warnings related to the hc08
1217 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
1218 (tweaked fix for bug #818696)
1220 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1222 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
1224 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1227 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
1228 * src/mcs51/gen.c (gencjneshort),
1229 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
1230 more efficient (per Scott Bronson's suggestion)
1232 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1234 Extended the semantics of the critical keyword to include
1235 individual statements. See RFE #827755 and #799831
1240 * support/Util/SDCCerr.c
1241 * support/Util/SDCCerr.h
1246 2003-10-19 Borut Razem <borut.razem AT siol.net>
1248 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
1250 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1252 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
1254 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
1255 and predecrement operand is displayed
1257 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1259 * src/SDCCval.c (valMinus): fixed bug #826041
1261 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1263 Some hc08 related updates that I missed earlier
1264 * sim/ucsim/stypes.h
1265 * support/regression/ports/hc08/spec.mk
1267 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1269 New target "hc08" for the Motorola 68hc08 family of micros
1277 * sim/ucsim/hc08.src/*
1278 * sim/ucsim/configure.in
1279 * src/ucsim/configure
1280 * sim/ucsim/packages_in.mk
1283 * device/include/mc68hc908qy.h
1285 * device/lib/Makefile.in
1286 * support/regression/ports/hc08/*
1287 * support/regression/Makefile
1289 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1291 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
1293 * src/ds390/gen.c (genCast): fixed bug #821957
1295 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1297 * device/lib/logf.c: "fixed" overlay bug
1298 * support/regression/ports/host/spec.mk: added m library
1299 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
1300 * support/regression/tests/float_trans: added (for Eric)
1302 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
1304 * src/mcs51/gen.c (genCpl): fixed bug
1305 http://sf.net/mailarchive/message.php?msg_id=6263915
1307 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
1309 * src/SDCCast.c (decorateType): added extended constant folding
1310 * src/SDCCsymt.c (computeType): cleanup
1311 * src/SDCCval.c (valShift): minor optimization
1312 * support/regression/tests/ast_constant_folding.c: added
1314 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1316 * src/SDCCmain.c: removed some unintended changes
1318 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1320 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
1321 * src/z80/gen.c: fixed part of bug #817589
1322 * src/SDCCsymt.c (checkFunction): fixed bug #817895
1324 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
1326 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
1337 * src/ds390/ralloc.c
1339 * src/mcs51/ralloc.c
1341 * src/pic16/ralloc.c
1344 * src/z80/gen.c: removed unused label "release:"
1346 2003-10-06 Borut Razem <borut.razem AT siol.net>
1348 * src/SDCC.lex: removed definition of unused variables
1349 save_optimize and save_options
1351 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1353 * clean.mk: removed '=' in "-maxdepth=1"
1354 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
1355 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
1357 2003-10-06 Borut Razem <borut.razem AT siol.net>
1359 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
1360 my_unput() replaced by unput()
1362 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
1364 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
1365 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
1366 type-punned pointer will break strict-aliasing rules"
1367 Old LR behaviour is again default; Klaus' LR can be choosen by
1368 defining the environment variable LRKLAUS
1372 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
1373 * clean.mk: fixed removal of files in bin/CVS/
1374 * device/lib/clean.mk: fixed removal of directories small and large
1375 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
1377 * src/SDCCval.c: removed superflous test for pedantic
1379 2003-10-05 Borut Razem <borut.razem AT siol.net>
1381 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
1382 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
1383 message "unmatched #pragma SAVE and #pragma RESTORE"
1385 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1387 * doc/sdccman.lyx: various additions and updates (interrupts, inline
1388 assembly, critical functions, atomic, nojtbound)
1390 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
1392 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
1398 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1401 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1403 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1405 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1406 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
1407 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
1409 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1411 * src/z80/gen.c (genRet): fixed bug #524753
1412 * src/z80/gen.c (genCast): fixed internal error on cast from
1414 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
1415 fix for bug #477835 to the z80
1416 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
1417 for tracking iCodes in the peephole optimizer for z80
1419 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1421 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
1422 the other part of bug #814548
1423 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
1425 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
1427 * src/SDCCcse.c: fixed part of bug #814548
1429 2003-09-28 Borut Razem <borut.razem AT siol.net>
1431 * src/asm.c: rewrite of printILine() to use temporary file instead
1433 * src/xa51/main.c: commented out declaration of int rewinds
1435 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1437 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
1439 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1441 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
1442 * src/asm.c (printILine): Fixed bug #811015
1444 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1446 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
1449 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1451 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
1452 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
1453 to correctly handle general case of AOP_PAIRPTR
1454 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
1456 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1458 * src/mcs51/ralloc.c (fillGaps),
1459 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
1460 register positioning bug)
1462 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
1464 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
1466 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1468 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
1469 genCodePointerGet, genGenPointerGet, genFarPointerSet,
1470 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
1471 (ralloc doesn't intentionally do this now, but perhaps later)
1472 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
1473 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
1474 register positioning bugs (Fixed bug #762602 and #795325)
1475 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
1477 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
1478 lines that --i-code-in-asm generates
1480 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1482 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
1483 trying to fclose a FILE* that was already closed.
1485 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1487 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
1488 of const struct should be treated as if const themselves)
1490 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
1492 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
1494 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1496 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
1497 Unix (/n) and DOS (/r/n) line terminations.
1499 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1501 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
1504 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1506 * src/mcs51/gen.c (genFunction, genEndFunction),
1507 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
1508 and restore of EA so that stack offsets to parameters are
1509 correct when using both critical and reentrant/stack-auto.
1510 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
1511 size (can be triggered in error if sloc is shared between
1512 different sized objects)
1513 * device/include/float.h: fixed macros to explicitly use
1514 unsigned long where needed
1516 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
1518 Feature req. 799831: added code to allow nesting of critical functions
1519 * src/mcs51/gen.c (genFunction, genEndFunction)
1520 * src/ds390/gen.c (genFunction, genEndFunction)
1522 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1524 * src/SDCCsymt.c (sclsFromPtr),
1526 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
1527 support for standard C idiom of memory mapped variables; for
1528 example, *((xdata int*)0x1234) = 1 is now internally equivalent
1529 to xdata int at 0x1234 tempvar = 1.
1530 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
1531 provided by Akiya ISHIDA
1533 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
1535 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
1536 * src/SDCCval.c (constVal): added reduction from int to char
1537 * src/SDCCval.c (valMult, valDiv): fixed sign handling
1538 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
1539 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
1541 * support/regression/tests/shifts.c: fixed
1543 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1545 * src/z80/gen.c (genXor): Fixed bug #805445
1547 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1549 Fixed bug #621531 (const & volatile confusion in the type chain).
1550 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
1551 refer to the const or volatile state of the pointer itself.
1563 * src/pic16/ralloc.c
1564 * support/regression/tests/const.c
1566 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1568 When checking for duplicated modules, use absolute paths
1569 instead of relative paths. Files changed:
1574 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1576 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
1578 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1580 * device/include/string.h: added size_t typedef, changed
1581 prototypes to use size_t, eliminated separate reentrant and
1582 non-reentrant declarations, added _memmove declaration
1583 * device/lib/_memcpy.c: changed to use size_t instead of int,
1584 changed /4 to >>2 to avoid division library call
1585 * device/lib/_memcmp.c,
1586 * device/lib/_memset.c,
1587 * device/lib/_strncat.c,
1588 * device/lib/_strncpy.c,
1589 * device/lib/_strncmp.c: changed to use size_t instead of int
1590 * device/lib/_memmove.c: new file (fixed bug #772294)
1591 * device/lib/Makefile.in: added _memmove.c
1592 * device/lib/z80/asm_strings.s: fixed bug #772290
1593 * support/regression/tests/bitfields.c: attempt to fix host assertion
1594 failure on amd64-unknown-linux2.2
1596 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1598 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
1599 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
1600 * as/z80/asmain.c (main): fixed bug #801766
1602 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
1604 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
1607 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1609 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
1610 reported in bug #800609
1612 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
1614 * Top header beautifications in src/pic16 directory:
1615 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
1616 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
1617 pcoderegs.h, ralloc.c, ralloc.h
1618 * main.c: added top header and GPL license notice
1619 * pcode.c: fixed the if-conditional warning
1621 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
1623 * device/lib/_mullong.c: replaced int by short for gcc
1625 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1627 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
1628 and JUMPTABLE iCodes properly now (worked by accident before)
1629 * src/mcs51/gen.c (leftRightUseAcc),
1630 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
1631 iCode properly now. Use getSize instead of nRegs since a & b
1632 aren't part of the nRegs tally.
1634 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
1636 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
1637 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
1638 before instructions that use the _STATUS register
1640 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
1642 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
1643 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
1644 fetching of the pointer
1645 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
1646 copied from genNearPointerSet()
1647 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
1648 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
1649 If they pop r0/r1 they must be called in the opposite order than aopOp().
1650 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
1651 (resp. --stack-auto), prepared for --xstack
1653 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1655 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
1657 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
1659 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
1660 these ports have their own __sdcc_external_start()
1662 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
1664 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
1665 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
1666 type for bits was changed. It resulted in bit variables becoming
1667 global, which is not permitted in PIC 14 assembly output.
1669 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1671 * doc/sdccman.lyx: various additions and updates. Rearranged sections
1673 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1675 Z80 and MCS51 linkers complaint if a public symbol is defined
1676 in more than one library module:
1680 * as/mcs51/Makefile.in
1682 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1684 A few small changes that speed up the peephole optimizer.
1688 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1690 Try to make the peephole optimizer smarter by maintaining
1691 an association between the assembly source code and the
1692 iCodes that originated them. Put this information to use
1693 with a new peephole rule condition "notVolatile" so that
1694 the rules can be aggressive yet still safe.
1699 * src/mcs51/peeph.def
1701 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1705 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
1706 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
1707 if the left or right operand symbols have the accuse flag set.
1709 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1711 Changed the type of the result of the ! (NOT) operator to char;
1712 previously it returned the same type as the source. This allows
1713 us to eliminate all the genFloatNot functions (all of its target
1714 implementations were very buggy) since !float can use the same
1717 * src/SDCCicode.c (ast2iCode): ! returns char
1718 * src/mcs51/gen.c (genNot, genNotFloat),
1719 * src/ds390/gen.c (genNot, genNotFloat),
1720 * src/z80/gen.c (genNot, genNotFloat),
1721 * src/pic/gen.c (genNot, genNotFloat),
1722 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
1724 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
1726 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
1727 1. Interrupt would not compile properly. Ensure PCLATH register is saved
1728 during interrupts. Ensure WSAVE is located at a shared bank address.
1729 2. Fixed page selection in some places
1730 3. Fixed BTFSS/C to where necessary use registers directly and not simply
1731 the registers name strings.
1732 4. Fixed "signed / unsigned compare" compiler warnings.
1733 5. The PIC port manages its own allocation of the general purpose
1734 registers, but makes no attempt to reuse them. As a result when
1735 compiling it soon runs out of general purpose registers. Some
1736 additional code was added to the files pcode.c and device.c to walk
1737 through the function call tree and rename the registers so that they
1747 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
1748 genPlus() & genMinus() when the result is the same as left or right
1750 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1752 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
1754 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1756 Made bitfield a distinct type from bit so that bitfields
1757 convert as per ANSI C and bits retain their traditional
1758 boolean style behaviour. Implemented bitfield support in
1766 * src/ds390/gen.c: bit v bitfield split
1767 * src/z80/gen.c: New support for bitfields
1768 * support/regression/tests/bitfields.c: reenabled z80,
1771 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1773 Rules 246.x, 247.x relate to bitfields, the others speed up
1774 access to xdata mapped I/O devices.
1776 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
1778 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1780 Cleaned up genPackBits and genUnpackBits and added two helper
1781 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
1782 for literal assignments in genPackBits (thanks to Frieder for
1788 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1790 Fixed bug #748310 (pointer to function type mishandled when the
1791 function name is omitted). Also fixed a SIGSEGV when a function
1792 attribute (reentrant, etc) is used on a non-function or on a
1793 function but misplaced before the parameter list.
1795 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
1797 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
1798 * support/Util/SDCCerr.h,
1799 * support/Util/SDCCerr.c: Added func attr misuse error msg
1801 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
1803 Fixed bug #787649 by anonymous
1804 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
1805 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
1807 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1809 Fixed numerous bitfield problems.
1811 * src/SDCC.y: More bitfield related error checking
1813 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
1814 * support/Util/SDCCerr.h,
1815 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
1816 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
1817 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
1818 * support/regression/tests/bitfields.c: tests added
1820 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1822 Made the constant following the "interrupt" keyword optional. If
1823 omitted, the function will not automatically be given an entry
1824 in the interrupt vector table (similar to #pragma NOIV, but
1825 less syntacticly kludgy). The interrupt number is also now
1826 range checked. Also fixed a bug in the high order bit example
1833 * support/Util/SDCCerr.c
1834 * support/Util/SDCCerr.h
1837 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
1839 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
1840 * src/SDCCicode.c (operandOperation): rewritten some ops
1841 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
1842 * src/SDCCsymt.c (computeType): literals are handled the same way as any
1844 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
1845 be re-activated by defining REDUCE_LITERALS)
1846 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
1847 unsigned, but are signed by default
1848 * src/SDCCval.c (constVal): rearranged
1849 * src/SDCCval.c (valMod): preliminary fix
1850 * src/SDCCval.c (valCastLiteral): use TYPE_* types
1851 * support/regression/literalop.c: added, work in progress
1853 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1855 Generate warnings for useless declarations like "char data;"
1856 that don't do what new users expect.
1859 * support/Util/SDCCerr.h
1860 * support/Util/SDCCerr.c
1862 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
1864 * src/SDCCval.c (valMult): fix overflow detection of negative int
1866 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1868 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
1870 Changes to support big endian targets:
1883 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
1885 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
1886 * device/lib/time.c: fixed warning "integer overflow in expression"
1888 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
1890 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
1891 * src/SDCCval.c (constVal): changed default to signed; hex and octal
1892 constants are unsigned; added recognition of "u" flag for unsigned
1893 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
1894 * src/SDCCval.c (valDiv, valMod): fixed signdness
1895 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
1896 signedness of modulo, left and right shift
1897 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
1898 * support/Util/SDCCerr.h: added warning W_INT_OVL
1899 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
1900 * src/SDCCast.c (ast_print): improved output of constants
1902 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1904 Fixed some warnings when building with MSVC:
1917 * support\cpp2\cpplib.c
1921 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
1923 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
1925 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1927 * support\librarian\clean.mk: Do not remove Makefile.
1928 * support\librarian\Makefile: added.
1930 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1932 Added librarian to MSVC build:
1935 * support\librarian\librarian.dsp
1937 'configure' not needed for librarian, removed:
1938 * support\librarian\configure
1939 * support\librarian\configure.in
1940 * support\librarian\config_in.h
1941 * support\librarian\Makefile.in
1943 Hopefully these ones built the librarian and the rest of sdcc properly:
1945 * Makefile.common.in
1947 Messed up 'configure', so revert to previous version:
1951 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
1953 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
1954 there, while the mantissa of a double is "only" 53 bits wide.
1956 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1958 Adding sdcclib to the build. MSVC project coming soon.
1959 Files added/changed:
1961 * support\librarian\clean.mk
1962 * support\librarian\configure
1963 * support\librarian\configure.in
1964 * support\librarian\config_in.h
1965 * support\librarian\Makefile.bcc
1966 * support\librarian\Makefile.in
1967 * support\librarian\sdcclib.c
1970 * Makefile.common.in
1974 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1976 Linker now complaints if linked modules have conflicting options, for
1977 example, one compiled using --model-large and another one compiled with
1978 --model-small. The following files were modified:
2000 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2002 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
2003 as/mcs51/lklibr.c: Generate a warning when a library is not found.
2005 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
2007 * src/z80/mappings.i: fix _mul[us][int,long] entries
2009 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2011 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
2013 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2015 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
2016 * support/regression/tests/bitopcse.c: added
2024 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2026 added support for new library format to z80, gbz80 linkers:
2032 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
2034 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
2035 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
2037 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
2039 added DUMMY_READ_VOLATILE:
2048 * src/SDCCcse.c (algebraicOpts): many improvements
2049 * src/SDCCcse.h: removed algebraicOpts()
2050 * src/SDCCicode.c (picDummyRead): added
2052 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2054 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
2055 "Insufficient space in data memory".
2057 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2059 * src/mcs51/gen.c: fixed bug #771358
2060 * src/z80/gen.c: fixed bug #759087
2062 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
2064 * src/pic16/glue.c: minor cleanup by Vangelis
2066 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2068 * device/include/regc515c.h: fixed #758477
2069 * device/lib/_gptrget.c: saving some cycles in generic pointer get
2070 * device/lib/_gptrput.c: saved a few bytes
2071 * my tab spacing is 8, yours too?)
2072 * device/lib/_ser.c: process RX bytes earlier than TX bytes
2073 * device/lib/serial.c: process RX bytes earlier than TX bytes
2074 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
2076 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2078 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
2080 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2082 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
2084 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
2086 * device/lib/Makefile.in: bad fix, reverted to 1.43
2088 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
2090 * device/lib/Makefile.in: added missing z80 object files
2092 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
2094 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
2095 pic16 progress by Vangelis:
2110 * pic16/pcodepeep.c:
2113 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2115 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
2117 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2119 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
2120 added gbz80 build to MSVC project.
2121 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
2122 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
2123 from 8051 stuff and setup so it links using a .lnk file.
2125 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2127 * support/librarian/sdcclib.c: sdcc librarian.
2128 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
2131 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2133 * as/mcs51/lkmain.c: properly handle extensions in function afile.
2135 2003-07-02 Borut Razem <borut.razem AT siol.net>
2137 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
2138 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
2139 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
2140 src/xa51/main.c, src/z80/main.c:
2141 virtualization of glue() function: each port has it's own glue function,
2142 which is accessed by do_glue function pointer in PORT.general structure
2144 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
2146 * DS800C400 fun, improved ROM interface and tinibios.
2148 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
2150 * More support for DS80C400. Now includes beginning of interface to ROM.
2152 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
2154 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
2156 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2158 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
2160 2003-06-19 Borut Razem <borut.razem AT siol.net>
2162 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
2164 2003-06-19 Borut Razem <borut.razem AT siol.net>
2166 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
2167 fixed Z80 port - crt0.o: cannot open.
2169 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
2171 * support/Util/MySystem.c (merge_command): revert bad fix
2173 2003-06-18 Borut Razem <borut.razem AT siol.net>
2175 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
2177 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2179 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2180 option --use-stdout sends errors to stdout instead of stderr.
2182 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
2184 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
2186 2003-06-15 Borut Razem <borut.razem AT siol.net>
2188 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
2189 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
2190 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
2191 fixed width array of pointers replaced with sets;
2192 multiple include and lib paths ared transferred to preprocessor and linker
2193 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
2194 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
2195 fixed width array of pointers
2196 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
2197 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
2198 fixupPath(), getPathDifference()
2199 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
2200 fixed width array of pointers
2202 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
2204 * src/pic16/ralloc.c: fix warnings
2205 * src/pic16/pcode.c: fix warning
2207 2003-06-10 Scott Dattalo <scott AT dattalo.com>
2209 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
2210 know all the details, but essentially this set of changes enable
2211 the pic16 port to generate movff instructions and generate assembler
2216 * src/pic16/pcode.c:
2217 * src/pic16/device.c:
2219 * src/pic16/pcode.h:
2220 * src/pic16/pcoderegs.c:
2221 * src/pic16/ralloc.c:
2222 * src/pic16/ralloc.h:
2224 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2226 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2227 added option --vc, so sdcc errors and warnings are compatible with
2228 Microsoft Visual Studio.
2230 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2232 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
2233 device/lib/libfloat.lib: added atof function.
2235 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2237 * doc/sdccman.lyx: updated to Lyx 1.3
2238 * doc/cdbfileformat.lyx: updated to Lyx 1.3
2239 * doc/test_suite_spec.lyx: updated to Lyx 1.3
2240 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
2242 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
2244 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
2246 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2248 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
2249 additions to the "related tools/documentation" section
2251 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
2253 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
2255 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
2257 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
2258 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
2260 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
2262 * doc/sdccman.lyx: fix double dash and other minor things
2263 * doc/Makefile: fix double dash
2265 2003-05-28 Karl Bongers(patches from Martin Helmling)
2266 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
2267 condition and ignore commands.
2269 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2271 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
2272 is in parts still quite out of date, I did changes as far as I felt makes sense
2273 for a non-native english speaker.
2274 Please feel free to add to the manual or to correct my changes.
2275 * doc/Makefile: undid touching the date of intermediate tex files.
2277 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2279 * doc/sdccman.lyx: Manual has an index now
2281 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
2283 Finalize muluint/mulsint and mululong/mulslong merging:
2284 * device/lib/_mulint.c
2285 * device/lib/_mullong.c
2286 * device/lib/gbz80/mul.s
2287 * device/lib/gbz80/stubs.s
2288 * device/lib/z80/mul.s
2289 * device/lib/z80/stubs.s
2290 * src/SDCCsymt.c (initCSupport)
2292 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2294 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
2295 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
2296 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
2297 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
2300 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2302 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
2303 the regression tests I'm not brave enough to enable 245.b, 245.c
2304 * doc/sdccman.lyx: added latex preamble for hyperref package.
2305 Using pdflatex this will give you a hyperlinked pdf file with
2306 bookmarks. (prepend '%' before /usepackage if this breaks something)
2308 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2310 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
2312 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
2314 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
2316 2003-05-21 <johan AT balder>
2318 * src/SDCCglue.c (printIval): fixed bug #739934
2320 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2322 Applied patch from bug 737905 (renamed yylineo to mylineno):
2329 * src/pic16/pcode.c: Cleaned warnings
2330 * src/pic16/pcodeflow.c: Cleaned warnings
2331 * src/pic16/pcoderegs.c: Cleaned warnings
2333 2003-05-19 Scott Dattalo <scott AT dattalo.com>
2335 * src/pic16/pcode.c: Cleaned warnings
2336 * src/pic16/pcodepeep.c: Cleaned warnings
2337 * src/pic16/ralloc.c: Cleaned warnings
2339 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
2341 * doc/sdccman.lyx: fixed bug 739745
2342 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
2344 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
2346 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
2347 it can be defined with CFLAGS when running configure
2348 * src/SDCCmain.c: fixed compiling + linking with object files
2350 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
2352 * configure.in: configure for pic16 port,
2353 added --disable-pic16-port
2354 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
2355 * src/SDCCmain.c: linkOptions is changed to set *,
2356 added if/endif conditional macros to remove options help
2357 messages from optionsTable when a port is not configured, added
2358 support for the PIc16 port in the ports table, when executing
2359 the compiler with no port specified on command line, a default
2360 port is selected with the new macro DEFAULT_PORT which is
2361 defined in port.h, in setDefaultOptions() linkOptions is removed
2362 from initialization assignment, since now it is a set,
2363 parseCmdLine uses setParseWithComma for linkOptions, in
2364 linkEdit() linkOptions are accessed with new function indexSet()
2365 which returns the i'th item of a set variable. See SDCCset.c, in
2366 linkEdit() when calling buildCmdLine(), added linkOptions as
2367 last argument. Now users can pass arguments to gplink via the
2368 -Wl option, main() uses pic16glue() to glue up pic16 programs
2369 * src/SDCCpeeph.c: various changes to support pic16
2370 * src/SDCCset.c: added function void *indexSet(set *, int) to
2371 return the i'th item of the set
2372 * src/SDCCset.h: added function prototype for indexSet()
2373 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
2374 * src/clean.mk: added pic16 in CLEANALLPORTS variable
2375 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
2376 added macro DEFAULT_PORT
2377 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
2378 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
2380 * src/pic16/glue.c: commented out some error producing lines
2381 * src/pic16/main.c: __config directives are commented out to stop
2382 gpasm complaining and test the linkage with gplink, _linkCmd and
2383 _asmCmd changed to be more gplink and gpasm friendly
2384 * src/pic16/peeph.def: peep rule 3 is commented out, since it
2385 produced an error when parsed, peep rule 12 is added to utilize
2386 movff, but it is commented out since the pCode does not support
2387 yet a command with 2 address arguments
2389 2003-05-18 <johan AT balder>
2391 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2392 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2393 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
2395 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
2396 Added feature to script commands from file.
2398 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
2400 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
2401 * src/SDCCutil.c: include ctype.h for win32
2403 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
2405 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
2407 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
2409 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
2410 Fixed so you can set breakpoints prior to run, run does not stop
2411 on entry now. Add tbreak. Other enhancements and fixes for use
2414 2003-05-12 Borut Razem <borut.razem AT siol.net>
2416 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
2418 2003-05-11 Borut Razem <borut.razem AT siol.net>
2420 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
2421 the path of bin directory, so that PATH is the only env. variable, which has to be set
2422 in case of standard installation.
2423 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
2424 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
2425 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
2427 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2429 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
2430 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
2431 temp files are in the port dir; clean the gen/test directory when
2432 generating new test.c
2433 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
2434 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
2435 * support/regression/tests/zeropad.c: added
2437 2003-05-09 <johan AT balder>
2439 * src/SDCCglue.c: fixed bug #597940
2441 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
2443 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2444 cache sfr, optimize next,step, fix off by one sourceline,
2445 support ddd list function.
2446 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
2448 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
2450 * support/regression/HTMLgen.py: added compare_s2f()
2451 * support/regression/Makefile: redo 1.27
2452 * support/regression/generate-cases.py: redo 1.5
2454 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
2456 * support/regression/tests/float.c: workaround 33 bit hex constant
2457 * support/regression/tests/simplefloat.c: fix division for host
2459 2003-04-29 Scott Dattalo <scott AT dattalo.com>
2461 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
2462 that tame's the PIC's over-aggressive optimizer.
2464 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2466 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
2469 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
2471 Initial support for DS80C400. "Hello world" runs on TINIm400
2474 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
2476 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2477 * Some notes on ddd usage added in debugger/README
2478 Martin Helmling adding more features and fixes for ddd GUI debugger.
2479 Code added for nexti, stepi, up, down, and other adjustments.
2481 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
2483 * src/pic/pCodepeep.c non-wildcard asmops are now handled
2484 * src/pic/peeph.def Added two rules to optimize carry manipulation
2485 * src/pic/* removed debug printfs
2487 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
2489 * debugger/mcs51/cmd.c: added header newalloc.h
2491 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
2493 * as/Makefile: new EXEEXT
2494 * as/z80/Makefile: remove trailing slash of BUILDIR
2495 * as/z80/clean.mk: new EXEEXT
2496 * Makefile.common.in: add to CFLAGS (and others), don't replace it
2497 * support/cpp2/Makefile.in: new EXEEXT
2498 * src/pic/glue.c (pic14emitRegularMap): fixed warning
2500 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
2502 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
2503 EXEEXT was introduced to fix all related problems with targets
2504 "clean", "install" and "uninstall"; a couple of further flaws
2505 especially with "clean" have been fixed too
2506 * as/mcs51/Makefile.in
2511 * debugger/mcs51/Makefile.in
2512 * debugger/mcs51/clean.mk
2514 * link/z80/Makefile.in
2517 * packihx/Makefile.in
2519 * sim/ucsim/Makefile
2520 * sim/ucsim/clean.mk
2521 * sim/ucsim/avr.src/Makefile.in
2522 * sim/ucsim/avr.src/clean.mk
2523 * sim/ucsim/s51.src/Makefile.in
2524 * sim/ucsim/s51.src/clean.mk
2525 * sim/ucsim/xa.src/Makefile.in
2526 * sim/ucsim/xa.src/clean.mk
2527 * sim/ucsim/z80.src/Makefile.in
2528 * sim/ucsim/z80.src/clean.mk
2529 * sim/ucsim/main_in.mk
2530 * sim/ucsim/packages_in.mk
2531 * sim/ucsim/gui.src/Makefile.in
2532 * sim/ucsim/gui.src/serio.src/Makefile.in
2533 * sim/ucsim/gui.src/serio.src/clean.mk
2536 * support/cpp2/Makefile.in
2537 * support/cpp2/clean.mk
2538 * support/makebin/Makefile
2539 * support/makebin/clean.mk
2540 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
2541 * doc/sdccman.lyx: --program-suffix no longer needed
2543 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
2545 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
2546 Martin Helmling added support for ddd GUI debugger.
2547 Code added to display assembly, set variables, and other commands
2548 to interface to ddd.
2550 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
2552 * as/Makefile: fix target clean
2553 * as/clean.mk: fix target clean
2554 * as/z80/clean.mk: fix target clean
2556 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
2558 * Makefile.common.in: added AT EXEEXT AT
2559 * configure.in: removed all mingw32 stuff
2560 * configure: rebuilt from configure.in
2561 * doc/sdccman.lyx: updated section "installation"
2562 * support/scripts/sdcc_mingw32: adapted to configure
2563 * support/scripts/sdcc_cygwin_mingw32: added
2565 2003-04-22 Scott Dattalo <scott AT dattalo.com>
2567 * src/pic Added object file support for the PIC port
2568 * src/pic Applied patch from Craig Franklin (this started the object file support)
2569 * src/regression Updated the PIC regression tests for object files
2571 2003-04-20 Borut Razem <borut.razem AT siol.net>
2573 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
2574 lklex.c: In function `getfid':
2575 lklex.c:203: warning: array subscript has type `char'
2576 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
2577 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
2578 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
2579 stack handling macros
2581 2003-04-19 Borut Razem <borut.razem AT siol.net>
2583 * "handling space characters in file path" task:
2584 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
2585 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
2586 * support/Util/MySystem.h: make it self-sufficient
2587 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
2588 src/z80/main.c, sdcc/as/mcs51/lklex.c:
2589 handling space characters in file path
2590 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
2591 (it will be used by assemblers, which have their own includes, e.g. gpasm)
2592 * support/Util/MySystem.c: handling space characters in executable's path
2594 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
2596 * as/z80/Makefile: fix permanent rebuild of z80
2597 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
2598 * support/regression/tests/bitfields.c: added Johan's bitfields.c
2600 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
2602 * src/SDCCopt.c: add special case optimization to replace modulo by
2603 a power of two with a bitwise AND.
2605 2003-04-18 <johan AT balder>
2607 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
2609 2003-04-17 <johan AT balder>
2611 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
2612 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
2614 2003-04-13 Borut Razem <borut.razem AT siol.net>
2616 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
2617 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
2618 fixed mingw problem in adl_NORMALIZE_PATH
2620 2003-04-12 Borut Razem <borut.razem AT siol.net>
2622 * fixed "#pragma SAVE/RESTORE can not be nested":
2623 * src/SDCC.lex: reworked pragma handling functions
2624 * sdcc/src/SDCCglobl.h: reworked stack handling macros
2625 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
2627 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
2629 * src/SDCCutil.c (pathEquivalent): defined but not used
2630 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
2631 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
2632 * configure: rebuilt from configure.in
2633 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2634 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2635 * device/include/Makefile.in: replace sdcc_datadir
2636 * device/lib/Makefile.in: replace sdcc_datadir
2637 * Makefile.common.in: add LDFLAGS from configure
2638 * packihx/Makefile.in: use LDFLAGS
2639 * src/Makefile.in: use LDFLAGS
2640 * support/cpp2/Makefile.in: add LDFLAGS from configure
2641 * support/makebin/Makefile: use LDFLAGS
2642 * .version: bumped version number to 2.3.5
2644 2003-04-12 Borut Razem <borut.razem AT siol.net>
2646 * completed "different paths" task:
2647 * src/SDCCmacro.c: fixed bug in handling quotes
2648 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
2649 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
2651 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
2653 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
2655 2003-04-11 kevin Vigor <kevin AT vigor.nu>
2657 * ds390/gen.c ds390/peeph.def: fix bug 706781
2659 2003-04-11 Borut Razem <borut.razem AT siol.net>
2661 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
2663 2003-04-10 Scott Dattalo <scott AT dattalo.com>
2665 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
2666 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
2667 set - this bit used to not be set...).
2668 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
2669 bad code in PIC Port
2670 * src/regression/and2.c added to test bug 609268
2671 * src/regression/Makefile added and2.c to regression test
2674 2003-04-08 <johan AT CP255758-A>
2676 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
2677 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
2678 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
2680 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
2682 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
2684 * support/cpp2/Makefile.in: fix bug #487815
2685 * configure: rebuilt from configure.in
2686 * Makefile.common.in: docdir changed, new path suffixes
2687 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2688 * sdcc_vc_in.h: reflect changes from sdccconf.h
2689 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
2690 * src/SDCCutil.h: remove BINDIR hack
2691 * doc/sdccman.lyx: update new path hierarchy
2693 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
2695 * src/SDCCpeeph.c: added okToRemoveSLOC test
2697 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
2699 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
2701 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
2703 * src/SDCCpeeph.c: added labelIsReturnOnly test
2704 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
2706 2003-04-05 <johan AT balder>
2708 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
2709 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
2710 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
2711 * src/SDCCast.c: fixed a warning
2712 * src/SDCCast.h: fixed a warning
2713 * src/SDCCicode.c (operandFromAst): fixed a warning
2715 2003-04-04 <johan AT balder>
2717 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
2718 * src/SDCCast.c (decorateType): fixed bug #715076
2719 * src/SDCC.y: fixed bug #702907
2721 2003-04-03 <johan AT balder>
2723 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
2724 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
2725 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
2726 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
2727 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
2729 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
2731 * _decdptr.c: fix return values
2732 * _gptrget.c: fix return values
2733 * _gptrgetc.c: fix return values
2734 * _gptrput.c: fix return values
2735 * _mulint.c: fix return values
2736 * as/z80/Makefile: fix 'make -j' problem
2738 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
2740 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
2741 * configure.in: big cleanup, updated to autoconf 2.5x
2742 * configure: rebuilt from configure.in
2743 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2744 * sdcc_vc_in.h: reflect changes from sdccconf.h
2745 * doc/Makefile: fixed a flaw in "make install"
2747 2003-04-02 <johan AT balder>
2749 * src/ds390/gen.c (genCmp): no comments
2750 * src/mcs51/gen.c (genCmp): no comments
2751 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
2752 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
2754 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
2756 * support/regression/generate-cases.py: place generated file in given sub directory
2757 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
2758 * support/regression/Makefile: improvements for 'make -j';
2759 side effect: it's simpler and faster now
2761 2003-03-31 Borut Razem <borut.razem AT siol.net>
2763 * src/z80/main.c: link-{port} and as-{port} defined without path
2764 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
2766 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
2768 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
2770 2003-03-30 Borut Razem <borut.razem AT siol.net>
2772 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
2773 changed type of list parameter to set
2774 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
2775 * src/port.h: changed type of do_assemble() parameter to set
2776 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
2777 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
2778 definition of "cppoutfilename" macro with NULL value in preProcess()
2779 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
2780 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
2781 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
2782 replaced with set *binPathSet
2783 * shash_add() deallocates the item, if allready exsists, before adding the new one
2784 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
2786 2003-03-30 Scott Dattalo <scott AT dattalo.com>
2788 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
2789 a nested for loop bug in the PIC port
2790 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
2793 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
2795 * support/Util/dbuf.h: remove C++ stuff to make it portable
2797 2003-03-28 Borut Razem <borut.razem AT siol.net>
2799 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
2800 literal strings in stringLiteral()
2801 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
2802 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
2805 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
2807 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
2809 2003-03-26 <johan AT balder>
2811 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
2812 * src/ds390/gen.c (saveRegisters): catched symbol abuse
2813 * src/SDCCast.c (decorateType): fixed " -v < 3"
2815 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
2817 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
2818 Added Lenny Story's debug infrastructure changes:
2819 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
2820 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
2821 * src/cdbFile.c: added
2822 * src/SDCCdebug.c: added
2823 * src/SDCCdebug.h: added
2824 * src/SDCCast.c (createFunction)
2825 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
2826 * src/SDCCmain.c (parseCmdLine, main)
2827 * src/SDCCmem.c (redoStackOffsets)
2828 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
2831 * src/avr/gen.c (genAVRCode)
2832 * src/ds390/gen.c (gen390Code)
2833 * src/mcs51/gen.c (gen51Code)
2834 * src/pic/gen.c (genpic14Code)
2835 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
2836 * src/xa51/gen.c (genXA51Code)
2837 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
2839 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2841 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
2842 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
2844 2003-03-22 <johan AT balder>
2846 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
2848 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
2850 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
2851 * doc/cdbfileformat.lyx: added, written by Lenny Story
2852 * doc/Makefile: added cdbfileformat.lyx
2853 * doc/clean.mk: added cdbfileformat.lyx
2855 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
2857 * src/mcs51/peeph.def: fix bug #705773
2859 2003-03-20 <johan AT balder>
2861 An sfr/sbit can have an "at #" AND an initializer
2862 * src/SDCCsymt.c (checkSClass):
2863 * src/SDCCmem.c (allocGlobal):
2864 * src/SDCCmem.c (allocLocal):
2865 * src/SDCCast.c (createBlock):
2867 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
2869 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
2871 2003-03-16 <johan AT balder>
2873 Undid the hackup of const and volatile, the problem is much bigger
2875 * src/SDCCast.c:1.171
2876 * src/SDCCglue.c:1.138
2877 * src/SDCCicode.c:1.146
2878 * src/SDCCsymt.c:1.150
2879 * src/SDCCval.c:1.65
2881 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
2883 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
2884 * src/ds390/gen.c (genAddrOf): fixed bug #704087
2886 2003-03-13 <johan AT balder>
2888 Hackup const and volatile modifiers in type chains a bit:
2890 * src/SDCCast.c:1.169
2891 * src/SDCCglue.c:1.136
2892 * src/SDCCicode.c:1.143
2893 * src/SDCCsymt.c1.146
2894 * src/SDCCsymt.h1.59
2895 * src/SDCCval.c:1.63
2897 2003-03-12 <johan AT balder>
2899 * src/SDCCBBlock.h: more LRH debugging junk
2900 * src/SDCCcflow.h: more LRH debugging junk
2901 * src/SDCCloop.c: more LRH debugging junk
2902 * src/SDCC.y (struct_declaration): fixed bug #697590
2903 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
2904 * src/ds390/gen.c (aopForRemat): fixed bug #700031
2905 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
2907 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
2908 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
2909 test function names must now match exactly).
2910 * src/SDCCcse.c: added special case in findCheaperOp to allow
2911 extending a short integer. Makes less awful code for bug 700121 test case.
2913 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2915 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
2916 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
2918 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
2920 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
2921 actually called (operandsNotEqual() was called for all
2922 operandsNotEqualX tests).
2924 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
2926 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
2927 with shorter literals. Fixes bug 700121.
2929 2003-03-11 <johan AT balder>
2931 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
2933 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
2935 * src/SDCCloop.c (mergeRegions): an evil beast is dead
2936 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
2938 2003-03-10 Borut Razem <borut.razem AT siol.net>
2940 * src/SDCCmain.c: pipe preprocessor's output
2941 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
2942 * sdcc_vc_in.h: define pclose as _pclose for WIN32
2943 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
2944 which closes all pipes in pipeSet set
2945 * src/SDCCset.c: free deleted item in function deleteSetItem()
2946 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
2947 moved from z80 to src subproject
2948 * .version: increased version number to 2.3.4
2950 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
2952 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
2953 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
2954 * support/regression/ports/xa51/spec.mk: fix typo
2956 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
2958 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
2960 2003-03-09 Borut Razem <borut.razem AT siol.net>
2962 * src/SDCCmain.c: pipe preprocessor's output
2963 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
2964 * sdcc_vc_in.h: define pclose as _pclose for WIN32
2965 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
2966 which closes all pipes in pipeSet set
2967 * src/SDCCset.c: free deleted item in function deleteSetItem()
2968 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
2969 moved from z80 to src subproject
2971 2003-03-09 Borut Razem <borut.razem AT siol.net>
2973 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
2974 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
2975 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
2976 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
2977 * src/SDCCglobl.h: unification of WIN32 native definitions
2979 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2981 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
2983 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
2985 * src/configure.in: check for endianess (even while cross-compiling)
2986 * src/configure: check for endianess (even while cross-compiling)
2987 * src/configure_in.h: check for endianess (even while cross-compiling)
2988 * src/avr/gen.c: remove old endianess stuff
2989 * src/mcs51/gen.c: remove old endianess stuff
2990 * src/ds390/gen.c: remove old endianess stuff
2991 * src/pic/gen.c: remove old endianess stuff
2992 * src/pic/genarith.c: remove old endianess stuff
2993 * src/pic/glue.c: fix endianess check
2994 * src/pic16/gen.c: remove old endianess stuff
2995 * src/pic16/genarith.c: remove old endianess stuff
2996 * src/pic16/glue.c: fix endianess check
2997 * src/xa51/gen.c: remove old endianess stuff
2998 * src/z80/gen.c: fix endianess check
2999 * src/SDCCglue.c: fix endianess check
3000 * src/ds390/peeph.def: fix bug 700036
3002 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3004 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
3005 * src/configure: find appropriate data-types on host for SDCC's int and long
3006 * src/configure.in: find appropriate data-types on host for SDCC's int and long
3007 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
3008 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
3010 2003-03-07 <johan AT balder>
3013 some minor cleanups before the big shot
3014 OP_DEFS and OP_USES now use Kevin's protection
3015 new option --nolabelopt
3026 * src/ds390/ralloc.c:
3027 * src/mcs51/ralloc.c:
3029 * src/xa51/ralloc.c:
3032 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
3034 * src/pic/pcode.c (get_op): fix 64 bit warnings
3035 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
3036 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
3037 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
3038 * support/regression/tests/malloc.c: fix 64 bit warnings
3040 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
3042 * src/mcs51/gen.c (genMinus): fixed bug 696436
3044 2003-03-02 Borut Razem <borut.razem AT siol.net>
3046 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
3048 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
3050 * configure.in: test for mkstemp
3051 * sdccconf_in.h: add HAVE_MKSTEMP
3053 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
3055 * device/include/ctype.h: removed warning while using --stack-auto
3056 * device/include/malloc.h: removed warning while using --stack-auto
3057 * device/include/string.h: removed warning while using --stack-auto
3059 2003-02-23 Borut Razem <borut.razem AT siol.net>
3061 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
3062 because NDEBUG is defined (see man assert)
3063 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
3065 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3067 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
3068 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
3070 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3072 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
3073 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
3075 2003-02-18 <johan AT balder>
3077 * as/mcs51/asmain.c (asmbl): module can start with a digit
3078 * as/z80/asmain.c (asmbl): module can start with a digit
3080 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
3082 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
3083 * src/asm.c: fix pipe() for Mingw32
3085 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
3087 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
3088 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
3089 make -V work again; --c1mode reads now from stdin
3090 * doc/sdccman.lyx: added --c1mode
3091 * support/Util/SDCCerr.c: new messages for c1 mode
3092 * support/Util/SDCCerr.h: new messages for c1 mode
3093 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
3095 2003-02-15 <johan AT balder>
3097 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
3099 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
3101 * doc/sdccman.lyx: Environment variables, -o and other minor things
3103 2003-02-14 <johan AT balder>
3105 * src/xa51/main.c: before anyone really tries to use it :)
3107 * Install doc's in share/sdcc/doc
3108 * removed some obsolete files
3109 * Do a proper make distclean and uninstall
3110 M Makefile.common.in
3113 M device/include/Makefile.in
3114 M device/lib/Makefile.in
3117 M sim/ucsim/doc/Makefile.in
3120 R src/xa51/peeph.rul
3121 M support/cpp2/Makefile.in
3122 M support/makebin/Makefile
3125 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
3127 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
3129 2003-02-10 Borut Razem <borut.razem AT siol.net>
3131 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
3132 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
3133 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
3134 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
3135 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
3136 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
3137 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
3138 src/z80/Makefile.bcc: Borland Makefile cleanup
3139 * as/z80/Makefile.bcc: Added Borland Makefile
3140 * support/cpp2/borland.h: Removed
3142 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
3144 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
3145 * src/SDCC.lex: new pragma NOIV
3146 * src/SDCCglobl.h: new pragma NOIV
3147 * src/SDCCmem.c: new pragma NOIV
3149 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3151 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
3153 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3155 * src/SDCCmain.c: signal handling is switched off by --debug
3156 * doc/Makefile: small fix for install; use clean.mk again
3157 * doc/clean.mk: clean *.pdf and *.html too
3159 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
3161 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
3162 * device/lib/printfl.c: fix a ds390 bug by making it portable
3163 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
3164 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
3165 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
3166 * debugger/mcs51/cmd.c: converted multi-line string literals
3167 * sim/ucsim/globals.cc: converted multi-line string literals
3168 * src/SDCCmain.c: introduced signal handler to remove temp files
3169 * doc/Makefile: small tweaks, implement clean
3170 * doc: removed generated files
3172 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3174 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
3175 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
3176 Address Record is not correctly generated for DS390."
3178 2003-02-02 Borut Razem <borut.razem AT siol.net>
3180 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
3181 * as/mcs51/asm.h: fixed compilation with Borland C
3182 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
3183 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
3184 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
3185 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
3186 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
3187 src/z80/Makefile.bcc: delete $(LIB) only if exist
3188 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
3190 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
3192 * device/include/malloc.h: introduced NULL
3193 * device/include/string.h: introduced NULL
3194 * device/include/stdlib.h: introduced NULL
3195 * device/lib/_memcpy.c: removed NULL
3196 * device/lib/_strcat.c: removed NULL
3197 * device/lib/_strchr.c: removed NULL
3198 * device/lib/_strcmp.c: removed NULL
3199 * device/lib/_strcpy.c: removed NULL
3200 * device/lib/_strcspn.c: removed NULL
3201 * device/lib/_strlen.c: removed NULL
3202 * device/lib/_strncat.c: removed NULL
3203 * device/lib/_strncmp.c: removed NULL
3204 * device/lib/_strncpy.c: removed NULL
3205 * device/lib/_strpbrk.c: removed NULL
3206 * device/lib/_strrchr.c: removed NULL
3207 * device/lib/_strspn.c: removed NULL
3208 * device/lib/_strstr.c: removed NULL
3209 * device/lib/_strtok.c: removed NULL
3210 * device/lib/malloc.c: removed NULL, include own header
3212 2003-02-02 <johan AT balder>
3214 * 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
3215 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
3216 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
3217 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
3218 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
3219 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
3221 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3223 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
3226 2003-02-01 <johan AT balder>
3228 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
3230 2003-01-31 <johan AT CP255758-A>
3232 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
3234 2003-01-30 <johan AT balder>
3236 * src/SDCCBBlock.c: automatic bug detection
3237 * src/SDCCicode.c: automatic bug detection
3239 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3241 * src/SDCCglobl.h: now --xram-size 0 works
3242 * src/SDCCmain.c: now --xram-size 0 works
3244 2003-01-29 <johan AT balder>
3246 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
3248 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3250 * as/mcs51/aslink.h: Added options --xram-size and --code-size
3251 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
3252 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
3253 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
3254 * src/SDCCglobl.h: Added options --xram-size and --code-size
3255 * src/SDCCmain.c: Added options --xram-size and --code-size
3257 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
3259 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
3260 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
3262 2003-01-27 <johan AT balder>
3264 * src/SDCC.y: fixed bug #613764
3266 2003-01-26 <johan AT balder>
3268 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
3269 * src/SDCCsymt.h: fixed bug #673374
3270 * src/SDCCglue.c: fixed bug #661910
3271 * src/SDCCast.c: fixed bug #458099 and 673374
3273 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
3275 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
3276 * as/mcs51/strcmpi.h: added
3277 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
3278 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
3279 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
3280 * as/mcs51/assym.c: strcmpi -> as_strcmpi
3281 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
3282 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
3283 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
3284 * as/mcs51/Makefile.aslink: new module strcmpi
3285 * as/mcs51/Makefile.asx8051: new module strcmpi
3286 * as/mcs51/Makefil.bcc: new module strcmpi
3287 * as/mcs51/Makefile.in: new module strcmpi
3288 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
3290 2003-01-26 <johan AT balder>
3292 * src/SDCCglue.c: reverted back to 1.124
3293 * src/SDCCast.c: reverted back to 1.156
3294 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
3296 2003-01-25 <johan AT balder>
3298 * src/SDCCglue.c: A better fix for bug #661910
3299 * src/SDCCast.c: A better fix for bug #661910
3300 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
3302 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3304 * src/Makefile.in: remove spawn.o
3305 * src/SDCCmain.c: remove spawn.h
3306 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
3307 * src/spawn.c: removed
3308 * src/spawn.h: removed
3309 * support/regression/ports/ds390/spec.mk: link with -r
3311 2003-01-24 <johan AT CP255758-A>
3313 * src/ds390/gen.c (aopOp): fixed bug #667458
3314 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
3315 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
3316 (createIvalCharPtr): an ival doesn't always have a storage class anymore
3318 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
3320 * src/mcs51/peeph.def: better assembler identation by Frieder
3321 * src/mcs51/gen.c: better assembler identation by Frieder
3323 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
3325 * as/z80/string.h: removed for gcc 3.2
3326 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
3327 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
3329 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3331 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
3332 * src/SDCCpeeph.c (replaceRule): fix bug #663503
3333 * support/regression/Makefile: separate temp files for ports
3334 * support/regression/generate-cases.py: separate temp files for ports
3335 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3336 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3338 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3340 * moved tinitalk to device/examples/ds390
3342 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
3344 * as/mcs51/lkmem.c: rflag is for DS390
3345 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
3346 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
3347 (linkEdit): move mem- and map-files the same way as ihx-files
3348 * src/z80/main.c (_setDefaultOptions): removed --generic
3349 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
3350 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
3351 * src/pic/glue.c (picglue): --c1mode works again
3352 * src/pic16/glue.c (pic16glue): --c1mode works again
3353 * src/asm.c (printCLine): fix #660034
3355 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
3357 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
3358 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
3359 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
3360 * as/mcs51/lkmem (summary): better fix for sp problem
3361 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
3362 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
3363 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
3364 remove --stack-after-data
3366 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
3368 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
3369 * src/SDCCutil.c (join): ugly bug: missing '\0'
3370 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
3372 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3374 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
3376 * src/pic/main.c (_asmCmd): gpasm supports -o
3377 * src/z80/main.c: more general macros
3378 * device/lib/Makefile.in: remove intermediate files
3380 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3382 * .version: Bumped version number to 2.3.3
3383 * src/SDCCBBlock.c: new option -o
3384 * src/SDCCglobl.h: new option -o
3385 * src/SDCCglue.c: new option -o
3386 * src/SDCCmain.c: new option -o
3387 * src/asm.c: new option -o
3388 * src/ds390/main.c: new option -o
3389 * src/pic/glue.c: new option -o
3390 * src/pic/pcode.c: new option -o
3391 * src/pic/ralloc.c: new option -o
3392 * src/pic16/glue.c: new option -o
3393 * src/pic16/pcode.c: new option -o
3394 * src/pic16/ralloc.c: new option -o
3395 * src/z80/main.c: new option -o
3396 * device/lib/Makefile.in: use -o
3397 * support/regression/ports/ds390/spec.mk: use -o
3398 * support/regression/ports/gbz80/spec.mk: use -o
3399 * support/regression/ports/mcs51/spec.mk: use -o
3400 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
3401 * support/regression/ports/z80/spec.mk: use -o
3402 * support/regression/ports/ucz80/spec.mk: use -o
3403 * support/regression/ports/xa51/spec.mk: use -o
3404 * support/regression/fwk/lib/timeout.c: fix usage string
3406 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
3407 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
3409 2003-01-07 <johan AT balder>
3411 * src/SDCCast.c (decorateType): fixed bug #600035
3413 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
3414 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
3415 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
3416 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
3417 * src/pic/pcode.c: outcommented unused variable to remove warnings
3418 * src/pic/ralloc.c: outcommented unused variable to remove warnings
3420 2003-01-06 <karl AT turbobit.com>
3421 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
3424 2003-01-06 <johan AT balder>
3426 * src/SDCCicode.c: fixed array add
3428 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
3429 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
3430 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
3432 2003-01-04 <johan AT balder>
3434 * src/SDCCval.c (getNelements): fixed the initialized array of structures
3436 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3437 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
3439 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3440 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
3441 * support/regression/tests/bug-524697.c: fit mem usage into 8032
3443 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3444 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
3446 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
3447 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
3449 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3450 * src/mcs51/main.c: removed {bindir}{sep} from aslink
3452 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3454 * in \sdcc\as\mcs51\ changed these files in order to create an
3455 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
3456 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
3457 following files to include the previous two files: aslink.dsp,
3458 Makefile.aslink, Makefile.bcc, and Makefile.in.
3460 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
3461 .adb instead of .cdb
3463 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3465 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
3466 value from option --iram-size.
3468 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3470 * \sdcc\as\mcs51\lklist.c: added boundary check before using
3473 2002-09-18 <wiml AT hhhh.org>
3475 * SDCClrange.h: exposed setFromRange() and setToRange()
3476 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
3477 packRegsForAccUse() (bug 542397)
3478 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
3479 multiple times and emitting the fetch operations more than once
3480 added aopGetUsesAcc() function to allow binary operators to
3481 fetch their operands in the correct order; made genMinus() emit
3482 compact code for X = LITERAL - Y
3484 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3485 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
3486 sprintf() in line 1267.
3488 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3489 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
3492 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3493 Changes to aslink (All the changes are marked with 'JCF'):
3495 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
3498 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
3499 area BSEG. Also moves, if possible, the DATA area down into the internal
3500 ram so more space is available.
3502 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
3505 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
3506 not bytes. Function summary() which creates a memory usage summary
3507 file with extension .mem. Reports of overlaping stack and small stack
3508 size. If the space for the stack is less than 16 bytes aslink trows a
3511 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
3512 the 8051. Option 'y' for memory summary output file.
3514 Changes to sdcc (All the changes are marked with 'JCF'):
3516 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
3518 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
3519 overlaying area for it (uses RegBankUsed[4]).
3521 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
3522 bank zero as used by default. By default aslink locates the stack
3523 (equivalent to --stack-after-data). Pass option 'y' to aslink for
3524 the creation of the .mem file. Delegates the allocation of data area
3525 to aslink (it is not longer 0x30 by default). If --stack-loc passes
3526 the begining of the stack area to aslink.
3528 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
3529 glue() in SDCCglue.c creates an area for it.
3531 2002-09-03 Borut Razem <borut.razem AT siol.net>
3532 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
3533 sdcc/src/pic/glue.c:
3534 introduced atexit() handler for teporay files removal in case of
3535 errors, assertions, ...
3537 2002-08-29 Borut Razem <borut.razem AT siol.net>
3538 * sdcc/support/cpp2/auto-host_vc_in.h:
3539 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
3540 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
3541 Maybe there is a similar problem with BORLANDC? It should be checked!
3543 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
3544 corrected improper use of assert: the assignment to clr variable was done inside the assert.
3545 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
3546 was not executed, and the compiler (cl) launched a warning:
3547 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
3549 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
3550 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
3552 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
3553 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
3555 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3556 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
3557 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
3558 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3559 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
3560 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
3561 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
3562 - added Release configuration in VS projects
3563 - review of compiler an linker options
3564 - VC .exe files are generated in bin_vc directory, not to interfere
3565 with binaries generated from other projects (cygwin, mingw, bcc ...)
3567 * sdcc/src/yacc.dsp: added
3569 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
3570 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
3571 and insert the version number definitions from .version
3573 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
3575 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
3576 added - genarate auto-host.h using auto-host_vc_in.h as template
3579 removed from CVS, generated automatically
3581 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
3582 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
3584 2002-08-11 Borut Razem <borut.razem AT siol.net>
3585 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
3587 2002-08-10 Borut Razem <borut.razem AT siol.net>
3588 * src/SDCCmain.c (main):
3589 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
3590 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
3591 The consequence was that some temporary files were not removed.
3594 unification of code in functions tempfilename() and tempfile():
3595 function tempnam() is defined in Visual Studio 6.0 and .NET
3597 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
3599 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3600 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
3601 - removed compiler command line option /WX: Treats all warnings as errors
3602 - update a list of source files, included into the project
3604 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3605 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
3606 changed project type to Generic Project so that can be correcly converted to VS.NET project
3608 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
3610 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
3612 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
3614 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
3615 added return 0 statements after assert() to make compiler happy
3617 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
3618 added newline in the def file to keep MSC compiler satisfied
3620 * sdcc/src/z80/gen.c:
3621 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
3622 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
3623 - solved MSC error in function aopDump()
3625 * sdcc_vc.h: define PREFIX as "\\sdcc"
3627 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
3628 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
3630 2002-06-22 Scott Dattalo <scott AT dattalo.com>
3631 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
3632 - Rewrote the register banking algorithm.
3633 - Added pCode live-range analysis to registers (for now, only non-used and
3634 singly-used registers optimized away)
3636 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
3638 * 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.
3640 2002-05-10 Scott Dattalo <scott AT dattalo.com>
3641 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
3643 2002-04-22 Michael Hope <michaelh AT vroom>
3645 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
3647 * configure.in (DD_COPT): Added include support required for gbdk.
3649 * .version: Bumped version number just to increase it.
3651 * src/SDCCmain.c: Added -nostdinc to the default options.
3653 2002-04-15 Michael Hope <michaelh AT vroom>
3655 * device/lib/z80/printf.c (sprintf): Added.
3657 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
3659 * src/z80/peeph.def: Added transpose redundent load rule.
3661 * src/z80/main.c: Added force callee saves for jaune.
3663 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
3665 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
3667 2002-03-28 Johan Knol <johan AT balder>
3669 * src/SDCCval.c: fixed bug #532436
3671 2002-03-14 Scott Dattalo <scott AT dattalo.com>
3673 Added "char *Processor" field to the port structure.
3676 Added -p option. Allows port dependent processor to be specified.
3679 Initialized the new field char *Processor field to NULL in all ports
3682 Compiler generated registers for interrupt context saving
3683 were not getting allocated.
3685 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
3688 Fixed left shift. Will promote the left side of a left shift
3689 if a) left shifting more than size of operand or b) when assigned
3690 to something size > size of left side
3692 2002-03-14 Scott Dattalo <scott AT dattalo.com>
3694 tons of changes. Register allocation has been
3695 rewritten. Added customization for the various PICs. Flow
3696 analysis is restructured. ...
3702 Added. device.c is a PIC port hack to accomodate variations
3705 2002-03-13 Michael Hope <michaelh AT vroom>
3707 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
3709 2002-03-04 johanknol <johanknol AT manik>
3711 * /src/SDCCval.c: fixed
3713 const unsigned char arr[][2] = { { 0, 1 } };
3714 t18.c:1: error: Initializer element is not constant
3716 2002-03-04 bela <bela AT manik>
3718 * /device/include/mcs51reg.h:
3719 ds89c420 register definition update
3721 2002-03-03 <johan AT FRIJA>
3723 * support/Util/SDCCerr.c: did something, but don't no why anymore
3725 * support/regression/tests/bug-524691.c: made it a little less shy
3727 * src/SDCCast.c (decorateType): fixed bug #524697
3729 * src/SDCCast.c: made some lineno improvements
3731 * src/SDCCval.c (getNelements): changed warning to error
3733 * src/SDCCglue.c (printIvalArray): changed warning to error
3735 * src/SDCCicode.c: fixed a warning for mingw
3737 * src/SDCCast.c (decorateType): fixed the << promotion for ops
3739 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
3741 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
3743 * src/ds390/peeph.def:
3744 Added some more peephole rules
3746 * src/ds390/gen.c: Various fixes & enhancements
3748 * src/SDCClrange.c, src/SDCClrange.h:
3749 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
3751 * src/ds390/ralloc.c:
3752 various fixes & enhancements (ds390) specific
3754 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
3755 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
3758 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
3760 2002-03-02 <johan AT FRIJA>
3762 * src/SDCCast.c (decorateType): fixed bug #524708
3764 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
3766 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
3768 2002-03-01 Michael Hope <michaelh AT vroom>
3770 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
3772 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
3774 2002-03-01 <johan AT FRIJA>
3776 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
3778 * src/SDCCast.c (decorateType): fixed bug #524209
3780 * src/SDCCval.c (valNot): fixed bug #524195
3782 2002-02-26 <johan AT balder>
3784 * src/xa51/gen.c: fixed a warning
3786 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
3788 * src/SDCCast.c (decorateType): fixed bug #522534
3790 2002-02-23 <johan AT balder>
3792 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
3794 2002-02-22 <johan AT balder>
3796 * src/SDCCast.c: fixed bug #514865
3798 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
3800 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
3802 * sdcc/src/SDCCloop.c:
3803 Previous fix was not good. basic blocks that have "break" or "return" are
3804 not really partof a loop , but live ranges used in these blocks should
3805 be live thru the entire loop, so set partOfLoop but don't add them to
3808 2002-02-21 <johan AT FRIJA>
3810 * src/SDCCcse.c: fixed bug #514308
3812 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
3815 Fixed BUG #519583. If a conditional block ended in a return/break
3816 statement inside a loop, it was not being considered part of the loop.
3818 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
3820 2002-02-10 Karl Bongers <karl AT turbobit.com>
3823 Fixed up SDCDB debugger somewhat. Updated debugger/README
3824 with lots of comments and notes.
3826 * device/examples/test2.c:
3827 Fix bug, "red" variable not being initialized(compiler complained).
3829 * device/examples/Makefile, examples/test3.c:
3830 Add Makefile in device/examples folder, compiles test3.c
3831 for use as a multiple module SDCDB test case.
3833 * sim/ucsim/cmd.src/cmdset.cc:
3834 Took out debug printfs in ucsim "next" command.
3837 Karl and Johan start ucsim XA support. Most dissassembly working,
3838 about 75% emulation done(plenty of work remaining).
3840 * sim/ucsim/z80.src:
3841 Add Z80 support to ucsim, add test-ucz80 regression test,
3842 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
3843 Notice z80 compiler fails on examples/test3.c/crc code.
3845 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
3847 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
3848 Added support for --parms-in-bank1
3850 * src/ds390/peeph.def:
3851 added a few more peephole optimzations
3854 1) added __builtin_inp & __builtin_outp used to read in data of given length
3855 from a memory mapped port
3856 2) added __builtin_memcmp
3857 3) added __builtin_swapw swap bytes of a short
3859 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
3860 1) handle multiple send & receives from register bank1
3861 2) ralloc can now allocate DPTR1 to some liveRanges
3863 * src/SDCCsymt.c, src/SDCCsymt.h:
3864 changes to handle multiple sends & receives
3867 added some pointer arithmetic optimization
3870 added some pointer arithmetic optimizations but not stable yet so not
3871 called from anywhere (will get this working shortly)
3873 * src/SDCCopt.c: fixed for multiple sends & receives
3876 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
3877 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
3878 set preprocessor defines (depending on options)
3880 * src/SDCCicode.c, src/SDCCicode.h:
3881 changes made to handle multiple sends & receives
3884 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
3886 * src/SDCCcse.c, src/SDCCcse.h:
3887 added function findbackward def (to be used in upcoming optimization)
3889 * src/SDCCcflow.c, src/SDCCcflow.h:
3890 added function returnAtEnd - to determine if a basic block terminates with
3893 * src/SDCCast.c, src/SDCCast.h:
3894 added option parms-in-bank1
3896 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
3897 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
3898 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
3899 adjusted for --parms-in-bank1 option
3901 * device/include/string.h:
3902 donot redefine "reentrant" keyword
3904 * device/include/ds80c390.h: Added some more SFRs
3906 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
3908 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
3910 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
3912 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
3914 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
3916 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
3918 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
3920 * Added --xram-movc option
3922 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
3924 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
3926 2002-01-11 Johan Knol
3928 * Added math lib of Jesus Calvino-Fraga
3930 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
3932 * src/SDCCmain.c (processFile): fix processing of ../../src.c
3933 * support/regression/Makefile: new target test-mcs51-stack-auto
3934 * support/regression/ports/mcs51-stack-auto/spec.mk: added
3936 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
3938 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
3940 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
3942 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
3944 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3946 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
3948 * src/SDCCglue.h: add definition for printIvalChar()
3950 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
3952 * src/SDCCast.c: fix #498138 by Johan
3954 * src/SDCCglue.c: fix #498138 by Johan
3956 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
3958 * support/regression/Makefile: fix clean
3960 * support/regression/ports/ds390/support.c: fix transmission of last character
3962 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
3964 * /sdcc/src/ds390/gen.c:
3965 a) improved computing address of stack variable
3966 b) took out some #if 0 code
3967 c) improved parmBytes adjustment
3968 d) improved genPlusIncr & genMinusIncr
3969 e) genCmp could generate bad code (when left assigned to DPTR)
3970 f) Fixed bug in hasInc
3972 * /sdcc/src/ds390/ralloc.c:
3973 a) packRegsForSupport could mess up live information (Fixed)
3974 b) packRegsDPTRuse could be incorrect for left & right shift
3976 * /sdcc/src/mcs51/ralloc.c:
3977 packRegsForSupport could mess up the live information (Fixed)
3979 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
3981 * /sdcc/src/SDCCast.c:
3982 can reverse a loop even if function call is present as long
3983 as the loop control variable is local & is not passed as parameter
3985 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
3987 * /sdcc/ChangeLog: *** empty log message ***
3989 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
3990 More builtin function additions for TININative
3992 * /sdcc/src/ds390/ralloc.c:
3993 Had broken the regression testsuite
3995 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
3997 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
3998 Added funcattr hasStackParms will be set for reentrant functions when there
3999 are paramteres on the stack, this helps in minimizing frame pointer generation
4000 typeFromStr can handle function pointers now
4002 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
4003 *** empty log message ***
4005 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4007 * /src/ds390/gen.c, /src/ds390/main.c:
4008 More builtin function additions for TININative
4010 * /src/ds390/ralloc.c:
4011 Had broken the regression testsuite
4013 * /src/SDCCast.c: Fixed a bug in dumptree
4015 * /src/SDCCsymt.c, /src/SDCCsymt.h:
4016 Added funcattr hasStackParms will be set for reentrant functions when there
4017 are paramteres on the stack, this helps in minimizing frame pointer generation
4018 typeFromStr can handle function pointers now
4020 * /doc/builtins.txt, /doc/TININative.txt:
4021 *** empty log message ***
4024 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
4026 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
4027 ALPHA version for -mTININative
4029 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
4030 updated to reflect changes in the port structure
4033 added function do_assemble (similar to do_link) if non-null this function
4034 will be called to do assembly (-mTININative) requires a multi command
4036 added function genAssemblerEnd will be called to generate assembler Epilogue
4039 added _JavaNative to debug info printing
4041 * /src/SDCCmain.c: added option --tini-libid
4042 added port->do_assemble function (-mTININative) has a multi command assemble
4044 * /src/SDCCglue.c: Disabled "constExpr" check
4045 added port->genAssemblerEnd function
4047 * /src/SDCCglobl.h: Added option --tini-libid value
4050 tookout optimizeCompare from the header (has no external references)
4052 * /src/SDCCast.c: made one more function "static"
4054 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
4056 * src/z80/mappings.i: Added z80asm support.
4058 * src/z80/main.c: Added z80asm support on --asm=z80asm
4060 * src/z80/gen.c: Fixed asm portability issues.
4062 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
4064 * src/SDCCglue.c (printExterns): Added global/extern split.
4066 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
4068 * support/regression/Makefile: added test for mcs51 model large
4070 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
4072 * support/regression/ports/gbz80/spec.mk: added -mgbz80
4074 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
4076 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
4078 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
4080 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
4082 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
4084 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
4086 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
4088 * support/regression/tests/simplefloat.c: Port to mcs51.
4090 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
4091 * support/regression/tests/bug-485362.c: Added.
4093 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
4095 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
4097 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
4099 * src/z80/gen.c (aopDump): Added a dump function.
4101 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
4102 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
4104 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
4106 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
4108 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
4110 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
4112 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
4114 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
4116 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
4118 * support/regression/ports/ds390/support.c: Use tinibios.
4120 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
4122 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
4124 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
4125 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
4127 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
4129 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
4131 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
4133 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
4135 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
4136 (packRegsForIYUse): Created and optimised.
4138 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4140 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
4141 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4143 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
4145 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
4147 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
4149 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4151 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
4153 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
4155 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4157 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
4159 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
4161 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
4163 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
4165 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
4166 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
4167 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
4169 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
4171 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
4172 (genNotFloat): Added.
4173 (genUminusFloat): Added.
4175 * device/lib/z80/Makefile: Added floating pt stubs.
4177 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
4179 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
4181 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
4183 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
4185 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
4187 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
4189 * sdcc/support/regression/Makefile: Add port ds390.
4191 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
4193 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
4195 * sdcc/support/regression/ports/ds390/spec.mk: Added.
4197 * sdcc/support/regression/ports/ds390/support.c: Added.
4199 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
4201 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
4203 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
4205 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4207 * device/include/malloc.h: Added z80 and gbz80 support.
4209 * device/lib/gbz80/heap.s: Added.
4211 * device/lib/z80/heap.s: Added.
4213 * device/lib/malloc.c: Added z80 and gbz80 support.
4215 * support/regression/tests/malloc.c (testMalloc): Added.
4217 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
4219 * support/regression/tests/bug-478094.c: Added.
4221 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
4223 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
4225 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
4227 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
4229 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
4231 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
4233 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
4235 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
4237 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
4239 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
4241 * support/regression/tests/bug-477927.c: Added.
4243 * src/z80/peeph.def: Added minor rules.
4245 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
4247 * src/z80/peeph.def: Added jump optimisation modification.
4249 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
4251 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
4253 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
4255 * support/regression/tests/funptrs.c: Added.
4257 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
4259 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
4261 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
4263 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
4265 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
4267 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
4268 (movLeft2ResultLong): Created.
4270 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
4271 (joinPushes): Added. Joins two char pushes into a word push.
4273 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
4275 * support/cpp2/Makefile.in (install): Added creation of dest dir.
4277 * support/makebin/Makefile (install): Added creation of dest dir.
4279 2001-10-24 Karl Bongers <karl AT turbobit.com>
4281 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
4283 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
4285 * src/z80/ralloc.c: Turned off faulty pack for one use.
4287 * src/z80/peeph-gbz80.def: Removed redundent restart options.
4289 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
4291 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
4293 * support/regression/Makefile: Improved clean
4295 * support/regression/ports/gbz80/spec.mk: Added clean
4297 * support/regression/ports/host/spec.mk: Added clean
4299 * support/regression/ports/z80/spec.mk: Added clean
4301 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
4303 * support/regression/ports/mcs51/timeout.c: little improvements
4305 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
4307 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
4309 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
4311 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
4313 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
4315 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
4317 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
4319 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
4320 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
4322 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
4324 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
4326 * src/mcs51/main.c (_linkCmd): Added bin path to command.
4328 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
4330 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
4332 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
4334 * support/regression/tests/longor.c: Added.
4336 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
4338 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
4340 * as/mcs51/aslink.h: define PATH_MAX
4342 * as/mcs51/asm.h: define PATH_MAX
4344 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
4346 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
4348 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
4350 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
4352 * src/SDCCglobl.h: define PATH_MAX
4354 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
4356 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
4358 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
4360 * src/z80/gen.c (gencjneshort): Fixed
4362 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
4364 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
4366 * support/regression/tests/bug-469671.c: Added.
4368 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
4370 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
4372 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
4374 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
4376 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
4378 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
4380 * src/device/lib/_mulint.c : removed hint: nooverlay bug
4382 * src/device/lib/_mullong.c : removed hint: nooverlay bug
4384 * src/device/lib/_divuint.c : removed hint: nooverlay bug
4386 * src/device/lib/_divulong.c: removed hint: nooverlay bug
4388 * src/device/lib/_moduint.c : removed hint: nooverlay bug
4390 * src/device/lib/_modulong.c: removed hint: nooverlay bug
4392 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
4394 * 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.
4396 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
4398 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
4400 2001-10-07 <johan AT FRIJA>
4402 * device/lib/gets.c (gets): fixed the return value.
4404 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
4405 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
4407 * 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.
4409 * 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.
4411 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
4413 * src/pic/gen.c: Removed Safe_strdup.
4415 * configure.in: Added option to enable libgc support.
4417 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
4418 (bitVectUnion): Optimised.
4419 (bitVectIntersect): Optimised.
4420 (bitVectBitsInCommon): Optimised.
4421 (bitVectCplAnd): Optimised.
4423 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
4425 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4427 * src/SDCCmain.c: distinguish between assembler debug and plain options
4429 * src/avr/main.c: remove standard assembler options
4431 * src/ds390/main.c: remove standard assembler options
4433 * src/mcs51/main.c: remove standard assembler options
4435 * src/port.h: removed "PENDING" comment
4437 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4439 * src/device/lib/_mulint.c : new, with assember functions
4441 * src/device/lib/_mullong.c : new, with assember functions
4443 * src/device/lib/_divuint.c : with assember functions
4445 * src/device/lib/_divsint.c : with assember functions
4447 * src/device/lib/_divulong.c: with assember functions
4449 * src/device/lib/_divslong.c: with assember functions
4451 * src/device/lib/_moduint.c : with assember functions
4453 * src/device/lib/_modsint.c : with assember functions
4455 * src/device/lib/_modulong.c: with assember functions
4457 * src/device/lib/_modslong.c: with assember functions
4459 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
4461 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
4463 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
4464 replaced _mululong.c and _mulslong.c by _mullong.c
4466 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4468 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
4470 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4472 * src/SDCCglue.c: test, if win32api is available for MINGW
4474 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4476 * src/SDCCsymt.c: no more _modifier in printTypeChain()
4477 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
4478 * support/regression/ports/gbz80/spec.mk: removed GENERIC
4479 * support/regression/ports/host/spec.mk: removed GENERIC
4480 * support/regression/ports/mcs51/spec.mk: removed GENERIC
4481 * support/regression/ports/z80/spec.mk: removed GENERIC
4483 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
4485 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
4487 * support/regression/tests/bug-467035.c: Created.
4489 2001-10-01 <johan AT FRIJA>
4491 * src/SDCC.y: fixed bug #466586 part 1
4493 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
4495 * SDCCicode.c: z80 has no generic pointers
4496 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
4498 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
4500 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
4502 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
4504 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
4506 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
4508 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
4510 * configure.in: Fixed up so that ucsim is only configured once.
4512 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
4514 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
4515 (getPathDifference): As above.
4517 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
4519 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
4521 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
4522 * .version: Updated to 2.3.1
4524 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
4525 Added copyright header.
4527 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
4528 (assemble): Added support for macro based assembler commands.
4529 (linkEdit): Added support for macro based linker commands.
4530 (preProcess): Changed the pre-processor to use macros.
4531 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
4532 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
4534 * device/lib/z80/crt0.s: Added module name for debugging.
4536 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
4538 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4540 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
4542 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
4544 * src/Makefile.in: Added SDCCmacro and SDCCutil
4546 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
4548 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4550 2001-09-16 <johan AT FRIJA>
4552 * 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.
4554 2001-09-15 <johan AT FRIJA>
4556 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
4557 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
4559 2001-09-11 <johan AT FRIJA>
4561 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
4563 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
4565 * support/regression/tests/bug-460444.c: Added test case.
4567 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
4568 (genCast): Added justification for all of the asserts.
4570 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
4572 * support/regression/support.c: _xdata replaced by xdata
4574 * support/regression/spec.mk: removed _generic
4576 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
4578 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
4580 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
4581 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
4583 * src/z80/peeph.def: Added a rule to optimise shift then compare.
4585 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
4587 * support/regression/tests/bug-460010.c: Added test case.
4589 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
4591 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
4593 * support/regression/Makefile: inter-port-clean adjusted for mcs51
4595 * support/regression/testfwk.c: removed workaround for bug #436344
4597 * support/regression/tests/bp.c: use less memory with mcs51
4599 * support/regression/tests/bug-441448.c: use less memory
4601 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
4603 * support/regression/collate-results.py: typo
4605 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
4607 * support/regression/tests/fetchoverlap.c: Added new test case.
4609 * support/regression/tests/bp.c: Added new test case.
4611 * support/regression/tests/bug-448984.c: Added new test case.
4613 * support/regression/tests/pow2shifts.c: Added new test case.
4615 * src/z80/gen.c: Turned off the noise it normally generates for the release.
4616 (genlshTwo): Fixed right shift for count > 8.
4618 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
4620 2001-09-08 <johan AT FRIJA>
4622 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
4624 2001-09-07 <johan AT FRIJA>
4626 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
4628 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
4630 2001-09-06 <johan AT FRIJA>
4632 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
4633 * bernhard noted me at this: "() equals to (void)" (1.38)
4635 2001-09-05 <johan AT FRIJA>
4637 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
4639 2001-09-04 <johan AT FRIJA>
4641 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
4644 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
4646 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
4648 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
4650 * link/z80/aslink.h: Fixed path for PATH_MAX
4652 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
4654 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
4656 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
4658 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
4660 * 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.
4662 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
4664 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
4665 (genCmp): Fixed up genCmp for the GB with longs.
4667 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
4669 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
4671 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
4673 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
4675 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
4677 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
4679 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
4681 * 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.
4683 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
4685 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
4687 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
4689 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
4691 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4693 * sim/ucsim/configure: little improvement of Cygwin-detection
4694 * sim/ucsim/configure.in: little improvement of Cygwin-detection
4695 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
4696 * support/regression/tests/bug-221100.c: small changes for mcs51
4697 * support/regression/tests/bug-221168.c: small changes for mcs51
4698 * support/regression/tests/bug-227710.c: small changes for mcs51
4699 * support/regression/tests/staticinit.c: small changes for mcs51
4700 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
4701 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
4702 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601