1 2004-01-12 Bernhard Held <bernhard@bernhardheld.de>
3 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
4 in simpler and even better code
6 2004-01-11 Bernhard Held <bernhard@bernhardheld.de>
8 * src/SDCCicode.c (operandOperation): fixed bug #874819
9 * src/SDCCast.c (decorateType): fixed
10 char foo (unsigned long ul) { return ul > 0; }
12 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann@web.de>
14 * doc/sdccman.lyx: Moved and added some sections, small changes
15 all over. Telling LaTeX to be less strict with word spacing
16 to better keep the right margin. Changed some notes about
17 maintainance of the ports in section 3.2.1 - is it OK like this?
19 2004-01-11 Vangelis Rokas <vrokas@otenet.gr>
22 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
23 convilong): modified to inform the pic16 port that builtin functions
26 PIC16 PORT specific changes:
27 * src/pic16/device.c pic16_dump_equates() added,
28 processor registers declared internally by the port are emitted in
29 the translation as equates,
30 * src/pic16/gen.c: inline code is passed unprocessed to the
32 * (pic16_popGetLit2): fnuction modified to take second operand as
33 pCodeOp pointer and not as literal,
34 * (popRegFromIdx): prefixed with pic16_,
35 * (pic16_popCombine2): modified to receive already allocated pCode
37 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
38 * (genFunction): initializes local stack frame and pushes on stack
39 all the registers used by this function,
40 * (genEndFunction): restores all registers from stack and restores
42 * src/pic16/glue.c (pic16emitRegularMap): various changes and
44 * (pic16glue): changed the program startup sequence,
45 * added new dbName code 'A' for functions placed in absolute section
46 * src/pic16/main.c: added function attribute _naked,
47 * added pragma 'code' to place a fnuction at an absolute address,
48 * added command line arguments --debug-ralloc and --pcode-verbose,
49 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
50 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
51 * (pic16_newpCodeOpLit2): modified to take the second operand as
53 * (pic16_printpBlock): modified to emit each function in a separate
55 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
56 UPPER for immediate operands,
57 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
59 * src/pic16/peeph.def: all peepholes with movff are commented out,
60 because there is a problem in the pcode peep optimizer,
61 * src/pic16/ralloc.c: the register allocator can now reuse local
62 function symbols for another function. This saves register usage.
63 * src/pic16/ralloc.h: added flag isLocal in structure regs,
65 Added file src/pic16/NOTES with information about program writing on
66 the current port version.
68 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann@web.de>
70 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
71 and peephole 252 (array access)
73 2004-01-09 Borut Razem <borut.razem@siol.net>
75 * src/SDCCmain.c : fixed #872250: -l command line defined library
76 files are scanned before standard library files
78 2004-01-10 Erik Petrich <epetrich@ivorytower.norman.ok.us>
80 * src/SDCCast.c (decorateType): fixed bug #874046
82 2004-01-09 Borut Razem <borut.razem@siol.net>
84 * support/scripts/sdcc.nsi: remove previous installation
86 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
88 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
89 bytes for last interrupt vector (mcs51)
90 * sdcc.spec: fixed typo
92 2004-01-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
94 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
95 gen51Code): more efficient parameter receive for --model-large
98 2004-01-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
101 * src/z80/main.c: added missed needLinkerScript flags (more than
102 one port structure defined in these file)
103 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
106 2004-01-08 Vangelis Rokas <vrokas@otenet.gr>
108 * src/SDCCmain.c: removed various references to DEFAULT_PORT
109 * src/port.h: added flag needLinkerScript in port->linker
110 structure to inform whether to create a .lnk file or not,
118 * src/z80/main.c: changed appropriately to configure
119 needLinkerScript flag
121 * src/pic16/gen.c (genAddrOf): fixed bug #863624
122 * src/pic/glue.c: added variable udata_section_name to
123 override default uninitialized data segment definition for
124 devices only with SHAREBANK memory (reported from Erik Epetrich)
125 * (pic14emitOverlay): modified to emit a commented overlay segment
126 directive when no overlay data exist
127 * (picglue): modified to emit uninitialized data segment
128 according to udata_section_name
129 * src/pic/main.c (_pic14_parseOptions): added command line
130 options --udata-section-name=[name] to override default
131 udata definition name
132 * modified _linkCmd and _asmCmd to include compiler passed
133 arguments via -W option
134 * src/pic16/main.c: added $l in _asmCmd, changed extension for
135 object file from '.rel' to '.o' in port->linker structure,
136 changed size of fptr from 2 to 3 in port structure
138 2004-01-07 Borut Razem <borut.razem@siol.net>
140 * support/scripts/sdcc.nsi: update PATH
141 * support/scripts/sdcc.ico: craeted
143 2004-01-07 Bernhard Held <bernhard@bernhardheld.de>
145 * device/include/Makefile.in: fix install
146 * doc/Makefile: fix install
148 2004-01-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
150 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
152 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
153 how the function variable allocation summary is displayed; also
154 include information about variables allocated to the overlay
157 2004-01-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
159 * as/mcs51/lkmain.c: Help about -Y option
160 * as/mcs51/lkarea.c: Fixed gcc warnings
162 2004-01-06 Bernhard Held <bernhard@bernhardheld.de>
164 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
166 * support/valdiag/tests/overflow.c: added
167 * src/SDCCast.c (decorateType),
168 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
171 2004-01-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
173 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
176 2004-01-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
178 A python script to validate compiler diagnostic messages. It can be
179 used to verify that sdcc complains about bad c source code and
180 gives a good location of the error.
181 * support/valdiag/Makefile,
182 * support/valdiag/valdiag.py,
183 * support/valdiag/tests/*
185 2004-01-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
187 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
188 * src/SDCCsymt.c (newEnumType),
190 * support/Util/SDCCerr.c,
191 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
193 * support/regression/tests/enum.c: added test for enum values that
194 require at least 2 bytes of storage.
196 2004-01-06 Vangelis Rokas <vrokas@otenet.gr>
198 * src/common.h: added ifndef/define/endif macros
199 around the header file.
200 Bug reported from Jesus Calvino-Fraga
202 2004-01-06 Bernhard Held <bernhard@bernhardheld.de>
205 * device/include/Makefile.in: don't install CVS directories
206 * device/lib/Makefile.in: added removal of CVS directories after install
207 * doc/Makefile: fixed install, added local_icons
208 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
209 * src/mcs51/gen.c (genRightShift): fixed bug #870788
210 * src/ds390/gen.c (genRightShift): fixed bug #870788
211 * src/SDCCast.c (decorateType): fixed bug #870781
213 2004-01-06 Vangelis Rokas <vrokas@otenet.gr>
215 PIC16 port related changes:
216 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
217 added variable stackPos,
219 * gen.c: genCall, assignResultValue: added support for
220 pushing/retrieving function parameters to/from stack,
221 genFunction,genEndFunction: setup stack frame for the
223 genAddrOf: will be changed according to bug 863624
225 * added files genutils.c and genutils.h which contain gen*
226 debugged and optimised functions extracted from gen.c
228 * glue.c: added variable 'externs' which holds extern symbols,
229 pic16emitRegularMap: is modified to properly handle relocatable
230 symbols under the new scheme,
231 pic16createInterruptVect: is modified
232 pic16printPublics: is modified to emit 'global' assembler directives,
233 added pic16_printExterns to print extern symbols,
234 pic16glue: initializes stack/frame pointer in the beginning of
235 the assembly output. Temporary hack, will be corrected later,
236 because gplink yet does not support stack and SDCC does not
237 yet support a type of crt0.o object to create the final binary.
239 * Removed many lines that contain 8051 legacy code.
240 * The code is finally placed under a 'code' directive.
241 * Added port specific options.
243 * _process_pragma: simplified since now we do not need *special*
244 include file to define SFR registers. But a separate header
245 will be needed. This will be developed later.
246 * _pic16_parseOptions: added, parses port specific options:
247 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
248 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
249 --preplace-udata-with=
251 * _pic16_setDefaultOptions: modified to initialize section names,
252 but hack is temporarly out of order since it needs improvement.
253 * _pic16_genAssemblerPreamble: configuration words are emitted by
254 their address instead of their name. This part is incomplete and
255 supports only the 18Fxx2 devices. Other devices will emit an error
256 during assembly since they do not contain the same set of config
258 * _pic16_genIVT: is modified,
260 * pcode.c: added definitions for some hardware registers that are needed
262 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
263 All PCI entries are updated. Now LFSR is supported.
264 * Removed pic16_pciTRIS is mentioned by mdubuc in source
265 * added pic16_newpCodeOpLit2 to support instructions with
266 two literal arguments
267 * pic16_pCode2str: corrected code that emits assembler instructions
268 with two literal operands and those that have an access bit modifier
269 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
270 this fixes a bug which caused some labels to be lost, when an
271 assembler directive was added, i.e. banksel,
272 * pic16_FixRegisterBanking: improved logic that causes the insertion
274 * InlineFunction: functions that are called once, are not any more
275 inlined. This can be a port option in the future,
277 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
279 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
280 hold the corresponding uninitialized symbols,
281 * pic16_allocProcessorRegister: registers have explicit marked the
283 * pic16_allocInternalRegister: registers are explicit marked as
285 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
286 processing list, so bit registers were lost,
289 * ralloc.h: added field 'accessBank' and original symbol operand
290 in register definition,
291 * removed the field isMapped from register definition,
293 ** Several functions have been removed from various sources:
294 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
295 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
296 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
297 pic16_assignRelocatableRegisters
299 ** others have been introduced:
300 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
301 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
303 2004-01-05 Vangelis Rokas <vrokas@otenet.gr>
305 * support/scripts/inc2h.pl: changed definition of BIT_AT
306 to emit 'sbit at' instead of 'bit at'. This was a request.
308 PIC16 port related preliminary changes:
309 * gen.c: prefixed function popRegFromString with
310 pic16_ and all references to it corrected
311 * pcode.c: all pic16_pc_* hardware registers prefixed
313 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
314 * ralloc.c: newReg(): when register is REG_SFR then
316 pic16_allocProcessorRegister(): marks register wasUsed=0
317 pic16_writeUsedRegs(): added a call to assign processor
318 registers via pic16_assignFixedRegisters
320 2004-01-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
322 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
323 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
324 variables in unused register banks. Also the SSEG is placed
325 wherever there is enough space for it, and IDATA can be anywhere
326 in internal RAM. For now compile using -Wl-Y[stack_size].
327 The mem file is different for this option as well, since it
328 makes no sense of talking about DSEG lenght.
330 2004-01-02 Vangelis Rokas <vrokas@otenet.gr>
332 * src/SDCClrange.c: fixed bug 869095 that caused segfault
333 in certain cases, e.g. when ROM assignment, patch provided
334 from Albert den Haan.
336 2004-01-01 Bernhard Held <bernhard@bernhardheld.de>
338 Many signedness and type propagation fixes:
339 * src/SDCCicode.c: made geniCodeCast() static
340 replaced SPEC_ by IS_ (cosmetic)
341 (operandOperation): fixed div and mod operation
342 (usualBinaryConversions): added support for promotion of char
343 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
344 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
345 (geniCodeAdd): an array index will stay unsigned, even if promoted
347 (geniCodeArray): ditto
348 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
349 * src/SDCCsymt.c (computeType): added more support for char;
350 promotion of char is selectable by promoteCharToInt, fixed signedness
352 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
353 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
354 * src/SDCCval (val*): replaced signedness calculation by
356 rearranged if-branches (cosmetic)
357 (valShift): added warning W_SHIFT_CHANGED
358 (valCompare): fixed problem with different types
359 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
360 * support/regression/tests/literalop.c: added many cases
361 * support/regression/tests/ast_constant_folding.c: changed finally to
363 * .version: new year, new version: 2.3.7
364 * src/SDCCmain.c (main): applied patch #866468
365 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
366 provided by Scott Bronson
367 * doc/sdccman.lyx: updated documentation for sdcdb
368 updated and added chapter tips
370 2004-01-01 Erik Petrich <epetrich@ivorytower.norman.ok.us>
372 * src/SDCCsymt.h: missing from yesterday's commits
374 2003-12-31 Erik Petrich <epetrich@ivorytower.norman.ok.us>
376 * src/SDCC.y (struct_or_union_specifier),
377 * support/Util/SDCCerr.c,
378 * support/Util/SDCCerr.h: verify that struct & union tags are used
381 2003-12-29 Erik Petrich <epetrich@ivorytower.norman.ok.us>
383 * src/SDCCglobl.h: missing from yesterday's commits
385 2003-12-28 Erik Petrich <epetrich@ivorytower.norman.ok.us>
387 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
388 sft_attributes, struct_declaration, parameter_declaration,
389 type_name, start_block, declaration_list),
390 * src/SDCC.lex (check_type): support redefinition of typedef names
392 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
394 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
395 aligned xdata arrays. Erik helped me with the if clause.
397 2003-12-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
399 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
402 2003-12-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
405 * src/SDCCast.c (newAst_),
407 * src/SDCCicode.c (ast2iCode, newiCode),
409 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
410 expr, statement, expression_statement, selection_statement,
411 iteration_statement, expr_opt, jump_statement): foundation for tracking
413 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
416 2003-12-19 Erik Petrich <epetrich@ivorytower.norman.ok.us>
418 * support/Util/SDCCerr.c,
420 * src/SDCCast.c (createCase, createDefault, decorateType),
421 * src/SDCClabel.c (labelUnreach),
422 * src/SDCC.y (labeled_statement, jump_statement): More improvements
424 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
425 (with thanks to Stas Sergeev)
426 * device/include/time.h,
427 * device/lib/time.c (CheckTime): suppress unreachable code warning
429 2003-12-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
431 * src/SDCCast.c (createIvalCharPtr),
432 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
434 * support/regression/tests/nullstring.c: tests for these two bugs
436 2003-12-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
438 * support/Util/SDCCerr.h,
439 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
440 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
441 about storage class and 'at' used inside struct or union
442 * src/SDCCBBlock.c (iCodeFromeBBlock),
443 * src/SDCCcse.c (ifxOptimize),
444 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
445 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
446 printIval, emitStaticSeg, emitOverlay),
447 * src/SDCClabel.c (deleteIfx),
448 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
449 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
450 gatherAutoInit, processParms),
451 * support/Util/SDCCerr.h,
452 * support/Util/SDCCerr.c (werrorfl): Support for better error location
453 reporting for post-parse errors.
455 2003-12-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
457 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
458 implicit casts via union; they don't work on big endian systems
459 (possible fix for bug #861138)
461 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann@web.de>
463 (committed by Erik Petrich <epetrich@ivorytower.norman.ok.us> on Frieder's behalf)
464 * src/mcs51/main.c: fixed the fix for bug #737001
466 2003-12-15 Borut Razem <borut.razem@siol.net>
468 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
470 2003-12-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
472 * support/makebin/makebin.c: put output in binary mode
474 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann@web.de>
476 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
477 xdata and data memory on startup. Set the environment variable
478 SDCC_NOGENRAMCLEAR to disable this.
479 * src/mcs51/peephole.def,
480 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
481 (allows non-interrupt and interrupt code to safely compete for a resource
482 without the non-interrupt code having to disable interrupts)
484 2003-12-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
486 * src/SDCCicode.c (geniCodeAdd),
487 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
488 with valFromType if type might be a pointer and host is big endian).
489 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
490 types, not just integer types.
491 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
492 multiply defined with mismatching "at" address.
494 2003-12-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
496 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
497 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
498 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
499 with embedded nulls (fixed bug #753752)
501 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann@web.de>
503 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
504 Apparently this did not see much testing (endless loop)
506 2003-12-11 Erik Petrich <epetrich@ivorytower.norman.ok.us>
508 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
510 2003-12-10 Erik Petrich <epetrich@ivorytower.norman.ok.us>
512 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
513 gracefully handle NULL memmap pointers
515 2003-12-08 Erik Petrich <epetrich@ivorytower.norman.ok.us>
517 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
518 instead of deleting the iCode when an operand is volatile
519 * src/z80/gen.c (genDummyRead),
520 * src/mcs51/gen.c (genDummyRead),
521 * src/ds390/gen.c (genDummyRead),
522 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
524 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
525 * src/SDCC.y: fixed bug #850420
527 2003-12-05 Erik Petrich <epetrich@ivorytower.norman.ok.us>
529 Applied z80 i/o port patch from Peter Townson and fixed some operators
530 to better handle operands in A register.
531 * device/include/z180.h
537 * src/z80/peeph-z80.def
541 2003-12-03 Erik Petrich <epetrich@ivorytower.norman.ok.us>
543 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
545 2003-12-01 Erik Petrich <epetrich@ivorytower.norman.ok.us>
547 * device/lib/hc08/_mullong.c: Removed extra #endif
549 2003-12-01 Erik Petrich <epetrich@ivorytower.norman.ok.us>
551 * sim/ucsim/hc08.src/inst.cc,
552 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
554 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
555 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
556 * device/include/stdarg.h: fixed varargs for hc08
557 * device/lib/Makefile.in,
558 * device/lib/hc08/Makefile,
559 * device/lib/hc08/_mulint.c,
560 * device/lib/hc08/_mullong.c: fixed some endian problems
562 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
564 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
565 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
566 * device/lib/_gptrget.c,
567 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
569 2003-11-27 Erik Petrich <epetrich@ivorytower.norman.ok.us>
571 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
572 * src/SDCCast.c (astErrors): fixed bug #846007
573 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
575 2003-11-26 Erik Petrich <epetrich@ivorytower.norman.ok.us>
577 * src/SDCCast.c (decorateType): disabled a transformation I added in
578 revision 1.188 (access to fields of a structure at an absolute address);
579 it breaks with bitfields, extern declarations, and gcse analysis.
580 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
581 could be assigned through a pointer, so don't complain.
582 * src/SDCCast.c (astErrors),
584 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
586 2003-11-26 Vangelis Rokas <vrokas@otenet.gr>
588 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
589 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
590 output of __config directives, since gpasm now supports them
591 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
592 pre-processor macro, i.e. -DMCU=p18f452
593 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
594 and modified to handle 'cast' icode similarly to '=' icode
595 * src/pic16/device.h (typedef struct PIC_device): added field
596 'extMIface' to indicate that chip has external memory interface
597 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
598 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
601 2003-11-26 Erik Petrich <epetrich@ivorytower.norman.ok.us>
603 * src/SDCC.y (pointer): fixed bug #846006
604 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
605 * src/SDCCast.c (decorateType): fixed bug #846009
606 * src/ds390/peeph.def,
607 * src/ds390/gen.c (genAnd, genOr),
608 * src/mcs51/peeph.def,
609 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
611 2003-11-25 Erik Petrich <epetrich@ivorytower.norman.ok.us>
613 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
620 2003-11-23 Klaus Flittner <klaus_flittner@gmx.de>
624 * src/SDCCbitv.c: added function to free a bitvector
626 * src/SDCClrange.c: added function to recompute the liveranges
628 * src/ds390/ralloc.c,
630 * src/mcs51/ralloc.c,
632 * src/pic16/ralloc.c,
634 * src/z80/ralloc.c: recompute the liveranges after register packing
636 2003-11-21 Klaus Flittner <klaus_flittner@gmx.de>
638 * src/SDCCloop.c (newInduction): fixed bug #845630
640 2003-11-21 Erik Petrich <epetrich@ivorytower.norman.ok.us>
642 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
643 inadvertantly left behind from my 2003-11-12 change
645 2003-11-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
647 Updated headers I neglected to commit yesterday.
651 2003-11-19 Erik Petrich <epetrich@ivorytower.norman.ok.us>
653 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
654 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
655 * src/SDCCopt.c (eBBlockFromiCode),
656 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
657 the creation of the key hash table from the sequencing so it can be used
658 earlier (for some GCSE bug fixes still pending)
660 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann@web.de>
662 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
663 * support/regression/tests/addsub.c: testing genPlus shortcut
665 2003-11-15 Borut Razem <borut.razem@siol.net>
667 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
669 2003-11-15 Erik Petrich <epetrich@ivorytower.norman.ok.us>
671 * src/SDCCcse.c (cseBBlock): fixed bug #527779
672 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
673 ordering is immaterial.
674 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
676 2003-11-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
678 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
679 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
680 (SIGSEV) of bug #840381
681 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
682 unlink new file before rename if new and old filenames are the same)
684 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann@web.de>
686 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
687 uninitialized variables) for the mcs51. Set environment variable
688 SDCC_GENRAMCLEAR to test.
689 xdata initialization slightly shorter
691 2003-11-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
694 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
695 #838241 & 780691 (basicly the same bug)
696 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
697 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
699 2003-11-11 Bernhard Held <bernhard@bernhardheld.de>
701 * src/SDCCmain.c (linkEdit): "fix" #834252
703 2003-11-11 Erik Petrich <epetrich@ivorytower.norman.ok.us>
705 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
707 * src/SDCC.y: fixed bug #819403
709 2003-11-08 Erik Petrich <epetrich@ivorytower.norman.ok.us>
711 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
712 the reentrant attribute.
713 * src/hc08/gen.c (genPackBits): added missing stack readjustment
714 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
716 * src/SDCCast.c (decorateType): fixed bug with storage class not being
717 updated during pointer dereference; f.e. ~(((char *)1)*) was being
718 erroneously reduced to a literal.
719 * src/hc08/ralloc.c (packRegisters, rematStr),
720 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
723 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann@web.de>
725 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
726 * doc/sdccman.lyx: changed from 'article' to 'book'
727 * doc/Makefile: readded test_suite_spec and cdbfileformat
729 2003-11-08 Bernhard Held <bernhard@bernhardheld.de>
731 * device/include/stdlib.h: include malloc.h to comply with ANSI
732 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
734 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann@web.de>
736 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
737 * doc/clean.mk: also remove *.out files
738 * doc/sdccman.lyx: some additions, larger top/bottom margins
740 2003-11-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
742 * src/SDCC.y: fixed bug #837365
743 * support/regression/tests/bitopcse.c
744 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
745 a symbol (might be valop instead)
746 * device/lib/Makefile.in: added errno.c to HC08SOURCES
747 * device/lib/clean.mk: added hc08 to the cleaning list
749 2003-11-04 Borut Razem <borut.razem@siol.net>
751 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
753 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
754 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
755 malloc is declared in standard stdlib.h
757 2003-11-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
759 * device/lib/hc08/Makefile: need to clean .rel not .o files
760 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
762 2003-11-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
772 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
773 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
774 tests (which uses the port's oclsExpense function)
780 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
782 2003-11-04 Erik Petrich <epetrich@ivorytower.norman.ok.us>
784 * src/SDCCcse.c (ifxOptimize),
785 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
786 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
787 deleting the IFX iCode.
788 * src/hc08/ralloc.c: reduced unneeded slocs
789 * src/hc08/gen.c: fixed bug in asmopToBoolean
791 2003-11-04 Borut Razem <borut.razem@siol.net>
793 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
794 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
795 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
796 transferred to configure
798 2003-11-03 Bernhard Held <bernhard@bernhardheld.de>
800 Use headers defined in the C[++] standards:
801 * sim/ucsim/gui.src/serio.src/fileio.cc
802 * sim/ucsim/gui.src/serio.src/frontend.cc
803 * sim/ucsim/gui.src/serio.src/main.cc
804 * sim/ucsim/gui.src/serio.src/posix_signal.cc
805 * support/Util/NewAlloc.c
811 2003-11-03 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
813 * Added MSVC projects for hc08 assembler and linker:
814 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
815 /as/hc08/link_hc08.dsp
817 2003-11-03 Martin Helmling <Martin.Helmling@octo-soft.de>
819 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
821 2003-11-02 Bernhard Held <bernhard@bernhardheld.de>
823 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
825 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann@web.de>
827 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
829 2003-10-31 Borut Razem <borut.razem@siol.net>
831 * support/cpp2/cpplib.h,
832 support/cpp2/cpplib.c,
833 support/cpp2/cpplex.c,
834 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
835 to switch _asm block preprocessing on / off. Default is
836 #pragma preproc_asm +
838 2003-10-31 Borut Razem <borut.razem@siol.net>
840 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
841 when outputting comment blocks (when executed with -C option) and
842 _asm (SDCPP specific) blocks
844 2003-10-31 Erik Petrich <epetrich@ivorytower.norman.ok.us>
846 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
848 2003-10-31 Klaus Flittner <klaus_flittner@gmx.de>
850 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
852 2003-10-31 Bernhard Held <bernhard@bernhardheld.de>
854 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
855 * src/SDCCast.c (decorateType): fixed bug #832664
857 2003-10-31 Borut Razem <borut.razem@siol.net>
859 * support\cpp2\cpplex.c: fixed for SDCPP:
860 comments(when executed with -C option) and _asm blocks
861 were included even if they where in skipped #if block.
862 Applied solution from GCC cpp 3.3.2
864 2003-10-31 Borut Razem <borut.razem@siol.net>
866 * src/SDCC.lex: sdcc now understands both formats:
867 '# <line_number> <file_name>' and
868 '#line <line_number> <file_name>'
869 * support/cpp2/cppmain.c: sdcpp now generates the standard
870 '# <line_number> <file_name>' instead of former
871 '#line <line_number> <file_name>'
873 2003-10-30 Borut Razem <borut.razem@siol.net>
875 * support/cpp2/cpphash.h,
876 * support/cpp2/cpplib.h
877 * support/cpp2/cpplex.c,
878 * support/cpp2/cppmain.c,
879 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
881 2003-10-30 Erik Petrich <epetrich@ivorytower.norman.ok.us>
883 Fixed a number of problems revealed by bug #827883.
884 * src/SDCCloop.c (loopInvariants): Spill location of the
885 result operand should be recomputed if extracted from
886 a loop. Also, don't extract assignments of an iTemp
888 * src/SDCCast.c (isConformingBody): loop reversal should
889 not occur if the control variable is involved with a
892 2003-10-28 Bernhard Held <bernhard@bernhardheld.de>
894 * .version: bumped to 2.3.6 to reflect the big improvements
895 made by Erik and Klaus. Thanks!
897 2003-10-28 Klaus Flittner <klaus_flittner@gmx.de>
899 Replaced the livrange code.
900 * src/SDCClrange.c: added new LR code
902 * src/SDCCBBlock.h: removed remainig parts from old LR code
903 * src/ds390/ralloc.c,
904 * src/ds390/gen.c: minor fixes to make it work with new code
906 2003-10-28 Erik Petrich <epetrich@ivorytower.norman.ok.us>
911 * src/hc08/ralloc.c: Fix various warnings related to the hc08
912 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
913 (tweaked fix for bug #818696)
915 2003-10-23 Erik Petrich <epetrich@ivorytower.norman.ok.us>
917 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
919 2003-10-23 Erik Petrich <epetrich@ivorytower.norman.ok.us>
922 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
923 * src/mcs51/gen.c (gencjneshort),
924 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
925 more efficient (per Scott Bronson's suggestion)
927 2003-10-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
929 Extended the semantics of the critical keyword to include
930 individual statements. See RFE #827755 and #799831
935 * support/Util/SDCCerr.c
936 * support/Util/SDCCerr.h
941 2003-10-19 Borut Razem <borut.razem@siol.net>
943 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
945 2003-10-19 Erik Petrich <epetrich@ivorytower.norman.ok.us>
947 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
949 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
950 and predecrement operand is displayed
952 2003-10-13 Bernhard Held <bernhard@bernhardheld.de>
954 * src/SDCCval.c (valMinus): fixed bug #826041
956 2003-10-15 Erik Petrich <epetrich@ivorytower.norman.ok.us>
958 Some hc08 related updates that I missed earlier
960 * support/regression/ports/hc08/spec.mk
962 2003-10-15 Erik Petrich <epetrich@ivorytower.norman.ok.us>
964 New target "hc08" for the Motorola 68hc08 family of micros
972 * sim/ucsim/hc08.src/*
973 * sim/ucsim/configure.in
974 * src/ucsim/configure
975 * sim/ucsim/packages_in.mk
978 * device/include/mc68hc908qy.h
980 * device/lib/Makefile.in
981 * support/regression/ports/hc08/*
982 * support/regression/Makefile
984 2003-10-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
986 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
988 * src/ds390/gen.c (genCast): fixed bug #821957
990 2003-10-13 Bernhard Held <bernhard@bernhardheld.de>
992 * device/lib/logf.c: "fixed" overlay bug
993 * support/regression/ports/host/spec.mk: added m library
994 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
995 * support/regression/tests/float_trans: added (for Eric)
997 2003-10-12 Bernhard Held <bernhard@bernhardheld.de>
999 * src/mcs51/gen.c (genCpl): fixed bug
1000 http://sf.net/mailarchive/message.php?msg_id=6263915
1002 2003-10-10 Bernhard Held <bernhard@bernhardheld.de>
1004 * src/SDCCast.c (decorateType): added extended constant folding
1005 * src/SDCCsymt.c (computeType): cleanup
1006 * src/SDCCval.c (valShift): minor optimization
1007 * support/regression/tests/ast_constant_folding.c: added
1009 2003-10-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1011 * src/SDCCmain.c: removed some unintended changes
1013 2003-10-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1015 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
1016 * src/z80/gen.c: fixed part of bug #817589
1017 * src/SDCCsymt.c (checkFunction): fixed bug #817895
1019 2003-10-08 Bernhard Held <bernhard@bernhardheld.de>
1021 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
1032 * src/ds390/ralloc.c
1034 * src/mcs51/ralloc.c
1036 * src/pic16/ralloc.c
1039 * src/z80/gen.c: removed unused label "release:"
1041 2003-10-06 Borut Razem <borut.razem@siol.net>
1043 * src/SDCC.lex: removed definition of unused variables
1044 save_optimize and save_options
1046 2003-10-06 Bernhard Held <bernhard@bernhardheld.de>
1048 * clean.mk: removed '=' in "-maxdepth=1"
1049 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
1050 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
1052 2003-10-06 Borut Razem <borut.razem@siol.net>
1054 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
1055 my_unput() replaced by unput()
1057 2003-10-05 Bernhard Held <bernhard@bernhardheld.de>
1059 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
1060 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
1061 type-punned pointer will break strict-aliasing rules"
1062 Old LR behaviour is again default; Klaus' LR can be choosen by
1063 defining the environment variable LRKLAUS
1067 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
1068 * clean.mk: fixed removal of files in bin/CVS/
1069 * device/lib/clean.mk: fixed removal of directories small and large
1070 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
1072 * src/SDCCval.c: removed superflous test for pedantic
1074 2003-10-05 Borut Razem <borut.razem@siol.net>
1076 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
1077 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
1078 message "unmatched #pragma SAVE and #pragma RESTORE"
1080 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1082 * doc/sdccman.lyx: various additions and updates (interrupts, inline
1083 assembly, critical functions, atomic, nojtbound)
1085 2003-10-04 Bernhard Held <bernhard@bernhardheld.de>
1087 Applied liferange patch from Klaus Flittner <klaus_flittner@gmx.de>
1093 2003-10-03 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1096 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1098 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1100 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1101 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
1102 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
1104 2003-10-02 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1106 * src/z80/gen.c (genRet): fixed bug #524753
1107 * src/z80/gen.c (genCast): fixed internal error on cast from
1109 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
1110 fix for bug #477835 to the z80
1111 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
1112 for tracking iCodes in the peephole optimizer for z80
1114 2003-10-01 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1116 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
1117 the other part of bug #814548
1118 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
1120 2003-09-30 Bernhard Held <bernhard@bernhardheld.de>
1122 * src/SDCCcse.c: fixed part of bug #814548
1124 2003-09-28 Borut Razem <borut.razem@siol.net>
1126 * src/asm.c: rewrite of printILine() to use temporary file instead
1128 * src/xa51/main.c: commented out declaration of int rewinds
1130 2003-09-27 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1132 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
1134 2003-09-26 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1136 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
1137 * src/asm.c (printILine): Fixed bug #811015
1139 2003-09-22 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1141 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
1144 2003-09-21 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1146 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
1147 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
1148 to correctly handle general case of AOP_PAIRPTR
1149 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
1151 2003-09-21 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1153 * src/mcs51/ralloc.c (fillGaps),
1154 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
1155 register positioning bug)
1157 2003-09-21 Bernhard Held <bernhard@bernhardheld.de>
1159 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
1161 2003-09-19 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1163 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
1164 genCodePointerGet, genGenPointerGet, genFarPointerSet,
1165 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
1166 (ralloc doesn't intentionally do this now, but perhaps later)
1167 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
1168 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
1169 register positioning bugs (Fixed bug #762602 and #795325)
1170 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
1172 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
1173 lines that --i-code-in-asm generates
1175 2003-09-18 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1177 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
1178 trying to fclose a FILE* that was already closed.
1180 2003-09-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1182 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
1183 of const struct should be treated as if const themselves)
1185 2003-09-18 Bernhard Held <bernhard@bernhardheld.de>
1187 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
1189 2003-07-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1191 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
1192 Unix (/n) and DOS (/r/n) line terminations.
1194 2003-09-17 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1196 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
1199 2003-09-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1201 * src/mcs51/gen.c (genFunction, genEndFunction),
1202 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
1203 and restore of EA so that stack offsets to parameters are
1204 correct when using both critical and reentrant/stack-auto.
1205 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
1206 size (can be triggered in error if sloc is shared between
1207 different sized objects)
1208 * device/include/float.h: fixed macros to explicitly use
1209 unsigned long where needed
1211 2003-09-15 Bernhard Held <bernhard@bernhardheld.de>
1213 Feature req. 799831: added code to allow nesting of critical functions
1214 * src/mcs51/gen.c (genFunction, genEndFunction)
1215 * src/ds390/gen.c (genFunction, genEndFunction)
1217 2003-09-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1219 * src/SDCCsymt.c (sclsFromPtr),
1221 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
1222 support for standard C idiom of memory mapped variables; for
1223 example, *((xdata int*)0x1234) = 1 is now internally equivalent
1224 to xdata int at 0x1234 tempvar = 1.
1225 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
1226 provided by Akiya ISHIDA
1228 2003-09-13 Bernhard Held <bernhard@bernhardheld.de>
1230 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
1231 * src/SDCCval.c (constVal): added reduction from int to char
1232 * src/SDCCval.c (valMult, valDiv): fixed sign handling
1233 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
1234 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
1236 * support/regression/tests/shifts.c: fixed
1238 2003-09-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1240 * src/z80/gen.c (genXor): Fixed bug #805445
1242 2003-09-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1244 Fixed bug #621531 (const & volatile confusion in the type chain).
1245 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
1246 refer to the const or volatile state of the pointer itself.
1258 * src/pic16/ralloc.c
1259 * support/regression/tests/const.c
1261 2003-09-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1263 When checking for duplicated modules, use absolute paths
1264 instead of relative paths. Files changed:
1269 2003-09-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1271 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
1273 2003-09-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1275 * device/include/string.h: added size_t typedef, changed
1276 prototypes to use size_t, eliminated separate reentrant and
1277 non-reentrant declarations, added _memmove declaration
1278 * device/lib/_memcpy.c: changed to use size_t instead of int,
1279 changed /4 to >>2 to avoid division library call
1280 * device/lib/_memcmp.c,
1281 * device/lib/_memset.c,
1282 * device/lib/_strncat.c,
1283 * device/lib/_strncpy.c,
1284 * device/lib/_strncmp.c: changed to use size_t instead of int
1285 * device/lib/_memmove.c: new file (fixed bug #772294)
1286 * device/lib/Makefile.in: added _memmove.c
1287 * device/lib/z80/asm_strings.s: fixed bug #772290
1288 * support/regression/tests/bitfields.c: attempt to fix host assertion
1289 failure on amd64-unknown-linux2.2
1291 2003-09-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1293 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
1294 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
1295 * as/z80/asmain.c (main): fixed bug #801766
1297 2003-09-06 Bernhard Held <bernhard@bernhardheld.de>
1299 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
1302 2003-09-05 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1304 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
1305 reported in bug #800609
1307 2003-09-04 Vangelis Rokas <vrokas@otenet.gr>
1309 * Top header beautifications in src/pic16 directory:
1310 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
1311 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
1312 pcoderegs.h, ralloc.c, ralloc.h
1313 * main.c: added top header and GPL license notice
1314 * pcode.c: fixed the if-conditional warning
1316 2003-09-04 Bernhard Held <bernhard@bernhardheld.de>
1318 * device/lib/_mullong.c: replaced int by short for gcc
1320 2003-08-31 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1322 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
1323 and JUMPTABLE iCodes properly now (worked by accident before)
1324 * src/mcs51/gen.c (leftRightUseAcc),
1325 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
1326 iCode properly now. Use getSize instead of nRegs since a & b
1327 aren't part of the nRegs tally.
1329 2003-08-31 Vangelis Rokas <vrokas@otenet.gr>
1331 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
1332 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
1333 before instructions that use the _STATUS register
1335 2003-08-31 Bernhard Held <bernhard@bernhardheld.de>
1337 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
1338 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
1339 fetching of the pointer
1340 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
1341 copied from genNearPointerSet()
1342 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
1343 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
1344 If they pop r0/r1 they must be called in the opposite order than aopOp().
1345 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
1346 (resp. --stack-auto), prepared for --xstack
1348 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1350 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
1352 2003-08-28 Bernhard Held <bernhard@bernhardheld.de>
1354 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
1355 these ports have their own __sdcc_external_start()
1357 2003-08-26 Bernhard Held <bernhard@bernhardheld.de>
1359 pic patch provided by Slade Rich <slade_rich@yahoo.com>
1360 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
1361 type for bits was changed. It resulted in bit variables becoming
1362 global, which is not permitted in PIC 14 assembly output.
1364 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1366 * doc/sdccman.lyx: various additions and updates. Rearranged sections
1368 2003-08-22 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1370 Z80 and MCS51 linkers complaint if a public symbol is defined
1371 in more than one library module:
1375 * as/mcs51/Makefile.in
1377 2003-08-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1379 A few small changes that speed up the peephole optimizer.
1383 2003-08-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1385 Try to make the peephole optimizer smarter by maintaining
1386 an association between the assembly source code and the
1387 iCodes that originated them. Put this information to use
1388 with a new peephole rule condition "notVolatile" so that
1389 the rules can be aggressive yet still safe.
1394 * src/mcs51/peeph.def
1396 2003-08-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1400 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
1401 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
1402 if the left or right operand symbols have the accuse flag set.
1404 2003-08-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1406 Changed the type of the result of the ! (NOT) operator to char;
1407 previously it returned the same type as the source. This allows
1408 us to eliminate all the genFloatNot functions (all of its target
1409 implementations were very buggy) since !float can use the same
1412 * src/SDCCicode.c (ast2iCode): ! returns char
1413 * src/mcs51/gen.c (genNot, genNotFloat),
1414 * src/ds390/gen.c (genNot, genNotFloat),
1415 * src/z80/gen.c (genNot, genNotFloat),
1416 * src/pic/gen.c (genNot, genNotFloat),
1417 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
1419 2003-08-19 Bernhard Held <bernhard@bernhardheld.de>
1421 pic patch provided by Slade Rich <slade_rich@yahoo.com>
1422 1. Interrupt would not compile properly. Ensure PCLATH register is saved
1423 during interrupts. Ensure WSAVE is located at a shared bank address.
1424 2. Fixed page selection in some places
1425 3. Fixed BTFSS/C to where necessary use registers directly and not simply
1426 the registers name strings.
1427 4. Fixed "signed / unsigned compare" compiler warnings.
1428 5. The PIC port manages its own allocation of the general purpose
1429 registers, but makes no attempt to reuse them. As a result when
1430 compiling it soon runs out of general purpose registers. Some
1431 additional code was added to the files pcode.c and device.c to walk
1432 through the function call tree and rename the registers so that they
1442 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
1443 genPlus() & genMinus() when the result is the same as left or right
1445 2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1447 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
1449 2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1451 Made bitfield a distinct type from bit so that bitfields
1452 convert as per ANSI C and bits retain their traditional
1453 boolean style behaviour. Implemented bitfield support in
1461 * src/ds390/gen.c: bit v bitfield split
1462 * src/z80/gen.c: New support for bitfields
1463 * support/regression/tests/bitfields.c: reenabled z80,
1466 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1468 Rules 246.x, 247.x relate to bitfields, the others speed up
1469 access to xdata mapped I/O devices.
1471 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
1473 2003-08-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1475 Cleaned up genPackBits and genUnpackBits and added two helper
1476 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
1477 for literal assignments in genPackBits (thanks to Frieder for
1483 2003-08-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1485 Fixed bug #748310 (pointer to function type mishandled when the
1486 function name is omitted). Also fixed a SIGSEGV when a function
1487 attribute (reentrant, etc) is used on a non-function or on a
1488 function but misplaced before the parameter list.
1490 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
1492 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
1493 * support/Util/SDCCerr.h,
1494 * support/Util/SDCCerr.c: Added func attr misuse error msg
1496 2003-08-13 Bernhard Held <bernhard@bernhardheld.de>
1498 Fixed bug #787649 by anonymous
1499 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
1500 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
1502 2003-08-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1504 Fixed numerous bitfield problems.
1506 * src/SDCC.y: More bitfield related error checking
1508 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
1509 * support/Util/SDCCerr.h,
1510 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
1511 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
1512 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
1513 * support/regression/tests/bitfields.c: tests added
1515 2003-08-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1517 Made the constant following the "interrupt" keyword optional. If
1518 omitted, the function will not automatically be given an entry
1519 in the interrupt vector table (similar to #pragma NOIV, but
1520 less syntacticly kludgy). The interrupt number is also now
1521 range checked. Also fixed a bug in the high order bit example
1528 * support/Util/SDCCerr.c
1529 * support/Util/SDCCerr.h
1532 2003-08-13 Bernhard Held <bernhard@bernhardheld.de>
1534 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
1535 * src/SDCCicode.c (operandOperation): rewritten some ops
1536 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
1537 * src/SDCCsymt.c (computeType): literals are handled the same way as any
1539 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
1540 be re-activated by defining REDUCE_LITERALS)
1541 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
1542 unsigned, but are signed by default
1543 * src/SDCCval.c (constVal): rearranged
1544 * src/SDCCval.c (valMod): preliminary fix
1545 * src/SDCCval.c (valCastLiteral): use TYPE_* types
1546 * support/regression/literalop.c: added, work in progress
1548 2003-08-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1550 Generate warnings for useless declarations like "char data;"
1551 that don't do what new users expect.
1554 * support/Util/SDCCerr.h
1555 * support/Util/SDCCerr.c
1557 2003-08-09 Bernhard Held <bernhard@bernhardheld.de>
1559 * src/SDCCval.c (valMult): fix overflow detection of negative int
1561 2003-08-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1563 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
1565 Changes to support big endian targets:
1578 2003-08-06 Bernhard Held <bernhard@bernhardheld.de>
1580 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
1581 * device/lib/time.c: fixed warning "integer overflow in expression"
1583 2003-08-05 Bernhard Held <bernhard@bernhardheld.de>
1585 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
1586 * src/SDCCval.c (constVal): changed default to signed; hex and octal
1587 constants are unsigned; added recognition of "u" flag for unsigned
1588 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
1589 * src/SDCCval.c (valDiv, valMod): fixed signdness
1590 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
1591 signedness of modulo, left and right shift
1592 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
1593 * support/Util/SDCCerr.h: added warning W_INT_OVL
1594 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
1595 * src/SDCCast.c (ast_print): improved output of constants
1597 2003-08-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1599 Fixed some warnings when building with MSVC:
1612 * support\cpp2\cpplib.c
1616 2003-08-03 Bernhard Held <bernhard@bernhardheld.de>
1618 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth@isi.edu>
1620 2003-08-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1622 * support\librarian\clean.mk: Do not remove Makefile.
1623 * support\librarian\Makefile: added.
1625 2003-08-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1627 Added librarian to MSVC build:
1630 * support\librarian\librarian.dsp
1632 'configure' not needed for librarian, removed:
1633 * support\librarian\configure
1634 * support\librarian\configure.in
1635 * support\librarian\config_in.h
1636 * support\librarian\Makefile.in
1638 Hopefully these ones built the librarian and the rest of sdcc properly:
1640 * Makefile.common.in
1642 Messed up 'configure', so revert to previous version:
1646 2003-07-31 Bernhard Held <bernhard@bernhardheld.de>
1648 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
1649 there, while the mantissa of a double is "only" 53 bits wide.
1651 2003-07-31 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1653 Adding sdcclib to the build. MSVC project coming soon.
1654 Files added/changed:
1656 * support\librarian\clean.mk
1657 * support\librarian\configure
1658 * support\librarian\configure.in
1659 * support\librarian\config_in.h
1660 * support\librarian\Makefile.bcc
1661 * support\librarian\Makefile.in
1662 * support\librarian\sdcclib.c
1665 * Makefile.common.in
1669 2003-07-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1671 Linker now complaints if linked modules have conflicting options, for
1672 example, one compiled using --model-large and another one compiled with
1673 --model-small. The following files were modified:
1695 2003-07-28 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1697 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
1698 as/mcs51/lklibr.c: Generate a warning when a library is not found.
1700 2003-07-28 Bernhard Held <bernhard@bernhardheld.de>
1702 * src/z80/mappings.i: fix _mul[us][int,long] entries
1704 2003-07-26 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1706 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
1708 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
1710 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
1711 * support/regression/tests/bitopcse.c: added
1719 2003-07-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1721 added support for new library format to z80, gbz80 linkers:
1727 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
1729 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
1730 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
1732 2003-07-23 Bernhard Held <bernhard@bernhardheld.de>
1734 added DUMMY_READ_VOLATILE:
1743 * src/SDCCcse.c (algebraicOpts): many improvements
1744 * src/SDCCcse.h: removed algebraicOpts()
1745 * src/SDCCicode.c (picDummyRead): added
1747 2003-07-23 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1749 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
1750 "Insufficient space in data memory".
1752 2003-07-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1754 * src/mcs51/gen.c: fixed bug #771358
1755 * src/z80/gen.c: fixed bug #759087
1757 2003-07-20 Bernhard Held <bernhard@bernhardheld.de>
1759 * src/pic16/glue.c: minor cleanup by Vangelis
1761 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1763 * device/include/regc515c.h: fixed #758477
1764 * device/lib/_gptrget.c: saving some cycles in generic pointer get
1765 * device/lib/_gptrput.c: saved a few bytes
1766 * my tab spacing is 8, yours too?)
1767 * device/lib/_ser.c: process RX bytes earlier than TX bytes
1768 * device/lib/serial.c: process RX bytes earlier than TX bytes
1769 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
1771 2003-07-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1773 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
1775 2003-07-17 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1777 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
1779 2003-07-17 Bernhard Held <bernhard@bernhardheld.de>
1781 * device/lib/Makefile.in: bad fix, reverted to 1.43
1783 2003-07-16 Bernhard Held <bernhard@bernhardheld.de>
1785 * device/lib/Makefile.in: added missing z80 object files
1787 2003-07-14 Bernhard Held <bernhard@bernhardheld.de>
1789 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
1790 pic16 progress by Vangelis:
1805 * pic16/pcodepeep.c:
1808 2003-07-13 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1810 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
1812 2003-07-12 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1814 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
1815 added gbz80 build to MSVC project.
1816 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
1817 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
1818 from 8051 stuff and setup so it links using a .lnk file.
1820 2003-07-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1822 * support/librarian/sdcclib.c: sdcc librarian.
1823 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
1826 2003-07-03 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1828 * as/mcs51/lkmain.c: properly handle extensions in function afile.
1830 2003-07-02 Borut Razem <borut.razem@siol.net>
1832 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
1833 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
1834 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
1835 src/xa51/main.c, src/z80/main.c:
1836 virtualization of glue() function: each port has it's own glue function,
1837 which is accessed by do_glue function pointer in PORT.general structure
1839 2003-07-01 Kevin Vigor <kevin@vigor.nu>
1841 * DS800C400 fun, improved ROM interface and tinibios.
1843 2003-06-27 Kevin Vigor <kevin@vigor.nu>
1845 * More support for DS80C400. Now includes beginning of interface to ROM.
1847 2003-06-25 Bernhard Held <bernhard@bernhardheld.de>
1849 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
1851 2003-06-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1853 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
1855 2003-06-19 Borut Razem <borut.razem@siol.net>
1857 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
1859 2003-06-19 Borut Razem <borut.razem@siol.net>
1861 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
1862 fixed Z80 port - crt0.o: cannot open.
1864 2003-06-19 Bernhard Held <bernhard@bernhardheld.de>
1866 * support/Util/MySystem.c (merge_command): revert bad fix
1868 2003-06-18 Borut Razem <borut.razem@siol.net>
1870 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
1872 2003-06-18 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1874 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
1875 option --use-stdout sends errors to stdout instead of stderr.
1877 2003-06-18 Bernhard Held <bernhard@bernhardheld.de>
1879 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
1881 2003-06-15 Borut Razem <borut.razem@siol.net>
1883 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
1884 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
1885 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
1886 fixed width array of pointers replaced with sets;
1887 multiple include and lib paths ared transferred to preprocessor and linker
1888 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
1889 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
1890 fixed width array of pointers
1891 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
1892 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
1893 fixupPath(), getPathDifference()
1894 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
1895 fixed width array of pointers
1897 2003-06-11 Bernhard Held <bernhard@bernhardheld.de>
1899 * src/pic16/ralloc.c: fix warnings
1900 * src/pic16/pcode.c: fix warning
1902 2003-06-10 Scott Dattalo <scott@dattalo.com>
1904 Scott D. for Vangelis Rokas (vrokas@otenet.gr). I (scott) don't
1905 know all the details, but essentially this set of changes enable
1906 the pic16 port to generate movff instructions and generate assembler
1911 * src/pic16/pcode.c:
1912 * src/pic16/device.c:
1914 * src/pic16/pcode.h:
1915 * src/pic16/pcoderegs.c:
1916 * src/pic16/ralloc.c:
1917 * src/pic16/ralloc.h:
1919 2003-06-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1921 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
1922 added option --vc, so sdcc errors and warnings are compatible with
1923 Microsoft Visual Studio.
1925 2003-06-07 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1927 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
1928 device/lib/libfloat.lib: added atof function.
1930 2003-06-04 Bernhard Held <bernhard@bernhardheld.de>
1932 * doc/sdccman.lyx: updated to Lyx 1.3
1933 * doc/cdbfileformat.lyx: updated to Lyx 1.3
1934 * doc/test_suite_spec.lyx: updated to Lyx 1.3
1935 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
1937 2003-06-03 Bernhard Held <bernhard@bernhardheld.de>
1939 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas@otenet.gr>
1941 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1943 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
1944 additions to the "related tools/documentation" section
1946 2003-06-02 Bernhard Held <bernhard@bernhardheld.de>
1948 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
1950 2003-05-29 Bernhard Held <bernhard@bernhardheld.de>
1952 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn@vt.edu>
1953 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
1955 2003-05-28 Bernhard Held <bernhard@bernhardheld.de>
1957 * doc/sdccman.lyx: fix double dash and other minor things
1958 * doc/Makefile: fix double dash
1960 2003-05-28 Karl Bongers(patches from Martin Helmling)
1961 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
1962 condition and ignore commands.
1964 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1966 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
1967 is in parts still quite out of date, I did changes as far as I felt makes sense
1968 for a non-native english speaker.
1969 Please feel free to add to the manual or to correct my changes.
1970 * doc/Makefile: undid touching the date of intermediate tex files.
1972 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1974 * doc/sdccman.lyx: Manual has an index now
1976 2003-05-25 Bernhard Held <bernhard@bernhardheld.de>
1978 Finalize muluint/mulsint and mululong/mulslong merging:
1979 * device/lib/_mulint.c
1980 * device/lib/_mullong.c
1981 * device/lib/gbz80/mul.s
1982 * device/lib/gbz80/stubs.s
1983 * device/lib/z80/mul.s
1984 * device/lib/z80/stubs.s
1985 * src/SDCCsymt.c (initCSupport)
1987 2003-05-25 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1989 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
1990 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
1991 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
1992 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
1995 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1997 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
1998 the regression tests I'm not brave enough to enable 245.b, 245.c
1999 * doc/sdccman.lyx: added latex preamble for hyperref package.
2000 Using pdflatex this will give you a hyperlinked pdf file with
2001 bookmarks. (prepend '%' before /usepackage if this breaks something)
2003 2003-05-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2005 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
2007 2003-05-22 Bernhard Held <bernhard@bernhardheld.de>
2009 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
2011 2003-05-21 <johan@balder>
2013 * src/SDCCglue.c (printIval): fixed bug #739934
2015 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
2017 Applied patch from bug 737905 (renamed yylineo to mylineno):
2024 * src/pic16/pcode.c: Cleaned warnings
2025 * src/pic16/pcodeflow.c: Cleaned warnings
2026 * src/pic16/pcoderegs.c: Cleaned warnings
2028 2003-05-19 Scott Dattalo <scott@dattalo.com>
2030 * src/pic16/pcode.c: Cleaned warnings
2031 * src/pic16/pcodepeep.c: Cleaned warnings
2032 * src/pic16/ralloc.c: Cleaned warnings
2034 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
2036 * doc/sdccman.lyx: fixed bug 739745
2037 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
2039 2003-05-18 Bernhard Held <bernhard@bernhardheld.de>
2041 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
2042 it can be defined with CFLAGS when running configure
2043 * src/SDCCmain.c: fixed compiling + linking with object files
2045 2003-05-18 Vangelis Rokas (vrokas@otenet.gr)
2047 * configure.in: configure for pic16 port,
2048 added --disable-pic16-port
2049 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
2050 * src/SDCCmain.c: linkOptions is changed to set *,
2051 added if/endif conditional macros to remove options help
2052 messages from optionsTable when a port is not configured, added
2053 support for the PIc16 port in the ports table, when executing
2054 the compiler with no port specified on command line, a default
2055 port is selected with the new macro DEFAULT_PORT which is
2056 defined in port.h, in setDefaultOptions() linkOptions is removed
2057 from initialization assignment, since now it is a set,
2058 parseCmdLine uses setParseWithComma for linkOptions, in
2059 linkEdit() linkOptions are accessed with new function indexSet()
2060 which returns the i'th item of a set variable. See SDCCset.c, in
2061 linkEdit() when calling buildCmdLine(), added linkOptions as
2062 last argument. Now users can pass arguments to gplink via the
2063 -Wl option, main() uses pic16glue() to glue up pic16 programs
2064 * src/SDCCpeeph.c: various changes to support pic16
2065 * src/SDCCset.c: added function void *indexSet(set *, int) to
2066 return the i'th item of the set
2067 * src/SDCCset.h: added function prototype for indexSet()
2068 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
2069 * src/clean.mk: added pic16 in CLEANALLPORTS variable
2070 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
2071 added macro DEFAULT_PORT
2072 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
2073 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
2075 * src/pic16/glue.c: commented out some error producing lines
2076 * src/pic16/main.c: __config directives are commented out to stop
2077 gpasm complaining and test the linkage with gplink, _linkCmd and
2078 _asmCmd changed to be more gplink and gpasm friendly
2079 * src/pic16/peeph.def: peep rule 3 is commented out, since it
2080 produced an error when parsed, peep rule 12 is added to utilize
2081 movff, but it is commented out since the pCode does not support
2082 yet a command with 2 address arguments
2084 2003-05-18 <johan@balder>
2086 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2087 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2088 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
2090 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
2091 Added feature to script commands from file.
2093 2003-05-14 Bernhard Held <bernhard@bernhardheld.de>
2095 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
2096 * src/SDCCutil.c: include ctype.h for win32
2098 2003-05-13 Bernhard Held <bernhard@bernhardheld.de>
2100 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
2102 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
2104 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
2105 Fixed so you can set breakpoints prior to run, run does not stop
2106 on entry now. Add tbreak. Other enhancements and fixes for use
2109 2003-05-12 Borut Razem <borut.razem@siol.net>
2111 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
2113 2003-05-11 Borut Razem <borut.razem@siol.net>
2115 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
2116 the path of bin directory, so that PATH is the only env. variable, which has to be set
2117 in case of standard installation.
2118 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
2119 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
2120 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
2122 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
2124 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
2125 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
2126 temp files are in the port dir; clean the gen/test directory when
2127 generating new test.c
2128 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
2129 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
2130 * support/regression/tests/zeropad.c: added
2132 2003-05-09 <johan@balder>
2134 * src/SDCCglue.c: fixed bug #597940
2136 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
2138 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2139 cache sfr, optimize next,step, fix off by one sourceline,
2140 support ddd list function.
2141 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
2143 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
2145 * support/regression/HTMLgen.py: added compare_s2f()
2146 * support/regression/Makefile: redo 1.27
2147 * support/regression/generate-cases.py: redo 1.5
2149 2003-04-30 Bernhard Held <bernhard@bernhardheld.de>
2151 * support/regression/tests/float.c: workaround 33 bit hex constant
2152 * support/regression/tests/simplefloat.c: fix division for host
2154 2003-04-29 Scott Dattalo <scott@dattalo.com>
2156 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim@jimhawkridge.uk.eu.org>
2157 that tame's the PIC's over-aggressive optimizer.
2159 2003-04-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2161 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
2164 2003-04-29 Kevin Vigor <kevin@vigor.nu>
2166 Initial support for DS80C400. "Hello world" runs on TINIm400
2169 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
2171 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2172 * Some notes on ddd usage added in debugger/README
2173 Martin Helmling adding more features and fixes for ddd GUI debugger.
2174 Code added for nexti, stepi, up, down, and other adjustments.
2176 2003-04-28 Scott Dattalo <scott@DATTALO.COM>
2178 * src/pic/pCodepeep.c non-wildcard asmops are now handled
2179 * src/pic/peeph.def Added two rules to optimize carry manipulation
2180 * src/pic/* removed debug printfs
2182 2003-04-28 Bernhard Held <bernhard@bernhardheld.de>
2184 * debugger/mcs51/cmd.c: added header newalloc.h
2186 2003-04-26 Bernhard Held <bernhard@bernhardheld.de>
2188 * as/Makefile: new EXEEXT
2189 * as/z80/Makefile: remove trailing slash of BUILDIR
2190 * as/z80/clean.mk: new EXEEXT
2191 * Makefile.common.in: add to CFLAGS (and others), don't replace it
2192 * support/cpp2/Makefile.in: new EXEEXT
2193 * src/pic/glue.c (pic14emitRegularMap): fixed warning
2195 2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
2197 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
2198 EXEEXT was introduced to fix all related problems with targets
2199 "clean", "install" and "uninstall"; a couple of further flaws
2200 especially with "clean" have been fixed too
2201 * as/mcs51/Makefile.in
2206 * debugger/mcs51/Makefile.in
2207 * debugger/mcs51/clean.mk
2209 * link/z80/Makefile.in
2212 * packihx/Makefile.in
2214 * sim/ucsim/Makefile
2215 * sim/ucsim/clean.mk
2216 * sim/ucsim/avr.src/Makefile.in
2217 * sim/ucsim/avr.src/clean.mk
2218 * sim/ucsim/s51.src/Makefile.in
2219 * sim/ucsim/s51.src/clean.mk
2220 * sim/ucsim/xa.src/Makefile.in
2221 * sim/ucsim/xa.src/clean.mk
2222 * sim/ucsim/z80.src/Makefile.in
2223 * sim/ucsim/z80.src/clean.mk
2224 * sim/ucsim/main_in.mk
2225 * sim/ucsim/packages_in.mk
2226 * sim/ucsim/gui.src/Makefile.in
2227 * sim/ucsim/gui.src/serio.src/Makefile.in
2228 * sim/ucsim/gui.src/serio.src/clean.mk
2231 * support/cpp2/Makefile.in
2232 * support/cpp2/clean.mk
2233 * support/makebin/Makefile
2234 * support/makebin/clean.mk
2235 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
2236 * doc/sdccman.lyx: --program-suffix no longer needed
2238 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
2240 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
2241 Martin Helmling added support for ddd GUI debugger.
2242 Code added to display assembly, set variables, and other commands
2243 to interface to ddd.
2245 2003-04-23 Bernhard Held <bernhard@bernhardheld.de>
2247 * as/Makefile: fix target clean
2248 * as/clean.mk: fix target clean
2249 * as/z80/clean.mk: fix target clean
2251 2003-04-22 Bernhard Held <bernhard@bernhardheld.de>
2253 * Makefile.common.in: added @EXEEXT@
2254 * configure.in: removed all mingw32 stuff
2255 * configure: rebuilt from configure.in
2256 * doc/sdccman.lyx: updated section "installation"
2257 * support/scripts/sdcc_mingw32: adapted to configure
2258 * support/scripts/sdcc_cygwin_mingw32: added
2260 2003-04-22 Scott Dattalo <scott@dattalo.com>
2262 * src/pic Added object file support for the PIC port
2263 * src/pic Applied patch from Craig Franklin (this started the object file support)
2264 * src/regression Updated the PIC regression tests for object files
2266 2003-04-20 Borut Razem <borut.razem@siol.net>
2268 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
2269 lklex.c: In function `getfid':
2270 lklex.c:203: warning: array subscript has type `char'
2271 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
2272 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
2273 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
2274 stack handling macros
2276 2003-04-19 Borut Razem <borut.razem@siol.net>
2278 * "handling space characters in file path" task:
2279 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
2280 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
2281 * support/Util/MySystem.h: make it self-sufficient
2282 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
2283 src/z80/main.c, sdcc/as/mcs51/lklex.c:
2284 handling space characters in file path
2285 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
2286 (it will be used by assemblers, which have their own includes, e.g. gpasm)
2287 * support/Util/MySystem.c: handling space characters in executable's path
2289 2003-04-19 Bernhard Held <bernhard@bernhardheld.de>
2291 * as/z80/Makefile: fix permanent rebuild of z80
2292 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
2293 * support/regression/tests/bitfields.c: added Johan's bitfields.c
2295 2003-04-18 Kevin Vigor <kevin@vigor.nu>
2297 * src/SDCCopt.c: add special case optimization to replace modulo by
2298 a power of two with a bitwise AND.
2300 2003-04-18 <johan@balder>
2302 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
2304 2003-04-17 <johan@balder>
2306 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
2307 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
2309 2003-04-13 Borut Razem <borut.razem@siol.net>
2311 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
2312 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
2313 fixed mingw problem in adl_NORMALIZE_PATH
2315 2003-04-12 Borut Razem <borut.razem@siol.net>
2317 * fixed "#pragma SAVE/RESTORE can not be nested":
2318 * src/SDCC.lex: reworked pragma handling functions
2319 * sdcc/src/SDCCglobl.h: reworked stack handling macros
2320 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
2322 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
2324 * src/SDCCutil.c (pathEquivalent): defined but not used
2325 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
2326 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
2327 * configure: rebuilt from configure.in
2328 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2329 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2330 * device/include/Makefile.in: replace sdcc_datadir
2331 * device/lib/Makefile.in: replace sdcc_datadir
2332 * Makefile.common.in: add LDFLAGS from configure
2333 * packihx/Makefile.in: use LDFLAGS
2334 * src/Makefile.in: use LDFLAGS
2335 * support/cpp2/Makefile.in: add LDFLAGS from configure
2336 * support/makebin/Makefile: use LDFLAGS
2337 * .version: bumped version number to 2.3.5
2339 2003-04-12 Borut Razem <borut.razem@siol.net>
2341 * completed "different paths" task:
2342 * src/SDCCmacro.c: fixed bug in handling quotes
2343 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
2344 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
2346 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
2348 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
2350 2003-04-11 kevin Vigor <kevin@vigor.nu>
2352 * ds390/gen.c ds390/peeph.def: fix bug 706781
2354 2003-04-11 Borut Razem <borut.razem@siol.net>
2356 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
2358 2003-04-10 Scott Dattalo <scott@dattalo.com>
2360 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
2361 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
2362 set - this bit used to not be set...).
2363 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
2364 bad code in PIC Port
2365 * src/regression/and2.c added to test bug 609268
2366 * src/regression/Makefile added and2.c to regression test
2369 2003-04-08 <johan@CP255758-A>
2371 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
2372 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
2373 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
2375 2003-04-07 Bernhard Held <bernhard@bernhardheld.de>
2377 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
2379 * support/cpp2/Makefile.in: fix bug #487815
2380 * configure: rebuilt from configure.in
2381 * Makefile.common.in: docdir changed, new path suffixes
2382 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2383 * sdcc_vc_in.h: reflect changes from sdccconf.h
2384 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
2385 * src/SDCCutil.h: remove BINDIR hack
2386 * doc/sdccman.lyx: update new path hierarchy
2388 2003-04-06 Paul Stoffregen <paul@pjrc.com>
2390 * src/SDCCpeeph.c: added okToRemoveSLOC test
2392 2003-04-06 Paul Stoffregen <paul@pjrc.com>
2394 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
2396 2003-04-06 Paul Stoffregen <paul@pjrc.com>
2398 * src/SDCCpeeph.c: added labelIsReturnOnly test
2399 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
2401 2003-04-05 <johan@balder>
2403 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
2404 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
2405 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
2406 * src/SDCCast.c: fixed a warning
2407 * src/SDCCast.h: fixed a warning
2408 * src/SDCCicode.c (operandFromAst): fixed a warning
2410 2003-04-04 <johan@balder>
2412 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
2413 * src/SDCCast.c (decorateType): fixed bug #715076
2414 * src/SDCC.y: fixed bug #702907
2416 2003-04-03 <johan@balder>
2418 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
2419 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
2420 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
2421 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
2422 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
2424 2003-04-03 Bernhard Held <bernhard@bernhardheld.de>
2426 * _decdptr.c: fix return values
2427 * _gptrget.c: fix return values
2428 * _gptrgetc.c: fix return values
2429 * _gptrput.c: fix return values
2430 * _mulint.c: fix return values
2431 * as/z80/Makefile: fix 'make -j' problem
2433 2003-04-02 Bernhard Held <bernhard@bernhardheld.de>
2435 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
2436 * configure.in: big cleanup, updated to autoconf 2.5x
2437 * configure: rebuilt from configure.in
2438 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2439 * sdcc_vc_in.h: reflect changes from sdccconf.h
2440 * doc/Makefile: fixed a flaw in "make install"
2442 2003-04-02 <johan@balder>
2444 * src/ds390/gen.c (genCmp): no comments
2445 * src/mcs51/gen.c (genCmp): no comments
2446 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
2447 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
2449 2003-04-01 Bernhard Held <bernhard@bernhardheld.de>
2451 * support/regression/generate-cases.py: place generated file in given sub directory
2452 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
2453 * support/regression/Makefile: improvements for 'make -j';
2454 side effect: it's simpler and faster now
2456 2003-03-31 Borut Razem <borut.razem@siol.net>
2458 * src/z80/main.c: link-{port} and as-{port} defined without path
2459 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
2461 2003-03-31 Bernhard Held <bernhard@bernhardheld.de>
2463 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
2465 2003-03-30 Borut Razem <borut.razem@siol.net>
2467 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
2468 changed type of list parameter to set
2469 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
2470 * src/port.h: changed type of do_assemble() parameter to set
2471 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
2472 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
2473 definition of "cppoutfilename" macro with NULL value in preProcess()
2474 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
2475 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
2476 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
2477 replaced with set *binPathSet
2478 * shash_add() deallocates the item, if allready exsists, before adding the new one
2479 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
2481 2003-03-30 Scott Dattalo <scott@dattalo.com>
2483 * src/pic/gen.c: Commit patch from Steve Tell <tell@telltronics.org> that fixes
2484 a nested for loop bug in the PIC port
2485 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
2488 2003-03-29 Bernhard Held <bernhard@bernhardheld.de>
2490 * support/Util/dbuf.h: remove C++ stuff to make it portable
2492 2003-03-28 Borut Razem <borut.razem@siol.net>
2494 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
2495 literal strings in stringLiteral()
2496 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
2497 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
2500 2003-03-27 Paul Stoffregen <paul@pjrc.com>
2502 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
2504 2003-03-26 <johan@balder>
2506 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
2507 * src/ds390/gen.c (saveRegisters): catched symbol abuse
2508 * src/SDCCast.c (decorateType): fixed " -v < 3"
2510 2003-03-23 Bernhard Held <bernhard@bernhardheld.de>
2512 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
2513 Added Lenny Story's debug infrastructure changes:
2514 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
2515 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
2516 * src/cdbFile.c: added
2517 * src/SDCCdebug.c: added
2518 * src/SDCCdebug.h: added
2519 * src/SDCCast.c (createFunction)
2520 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
2521 * src/SDCCmain.c (parseCmdLine, main)
2522 * src/SDCCmem.c (redoStackOffsets)
2523 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
2526 * src/avr/gen.c (genAVRCode)
2527 * src/ds390/gen.c (gen390Code)
2528 * src/mcs51/gen.c (gen51Code)
2529 * src/pic/gen.c (genpic14Code)
2530 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
2531 * src/xa51/gen.c (genXA51Code)
2532 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
2534 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2536 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
2537 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
2539 2003-03-22 <johan@balder>
2541 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
2543 2003-03-21 Bernhard Held <bernhard@bernhardheld.de>
2545 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
2546 * doc/cdbfileformat.lyx: added, written by Lenny Story
2547 * doc/Makefile: added cdbfileformat.lyx
2548 * doc/clean.mk: added cdbfileformat.lyx
2550 2003-03-20 Bernhard Held <bernhard@bernhardheld.de>
2552 * src/mcs51/peeph.def: fix bug #705773
2554 2003-03-20 <johan@balder>
2556 An sfr/sbit can have an "at #" AND an initializer
2557 * src/SDCCsymt.c (checkSClass):
2558 * src/SDCCmem.c (allocGlobal):
2559 * src/SDCCmem.c (allocLocal):
2560 * src/SDCCast.c (createBlock):
2562 2003-03-17 Bernhard Held <bernhard@bernhardheld.de>
2564 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
2566 2003-03-16 <johan@balder>
2568 Undid the hackup of const and volatile, the problem is much bigger
2570 * src/SDCCast.c:1.171
2571 * src/SDCCglue.c:1.138
2572 * src/SDCCicode.c:1.146
2573 * src/SDCCsymt.c:1.150
2574 * src/SDCCval.c:1.65
2576 2003-03-15 Bernhard Held <bernhard@bernhardheld.de>
2578 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
2579 * src/ds390/gen.c (genAddrOf): fixed bug #704087
2581 2003-03-13 <johan@balder>
2583 Hackup const and volatile modifiers in type chains a bit:
2585 * src/SDCCast.c:1.169
2586 * src/SDCCglue.c:1.136
2587 * src/SDCCicode.c:1.143
2588 * src/SDCCsymt.c1.146
2589 * src/SDCCsymt.h1.59
2590 * src/SDCCval.c:1.63
2592 2003-03-12 <johan@balder>
2594 * src/SDCCBBlock.h: more LRH debugging junk
2595 * src/SDCCcflow.h: more LRH debugging junk
2596 * src/SDCCloop.c: more LRH debugging junk
2597 * src/SDCC.y (struct_declaration): fixed bug #697590
2598 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
2599 * src/ds390/gen.c (aopForRemat): fixed bug #700031
2600 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
2602 2003-03-11 Kevin Vigor <kevin@vigor.nu>
2603 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
2604 test function names must now match exactly).
2605 * src/SDCCcse.c: added special case in findCheaperOp to allow
2606 extending a short integer. Makes less awful code for bug 700121 test case.
2608 2003-03-11 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2610 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
2611 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
2613 2003-03-11 Kevin Vigor <kevin@vigor.nu>
2615 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
2616 actually called (operandsNotEqual() was called for all
2617 operandsNotEqualX tests).
2619 2003-03-11 Kevin Vigor <kevin@vigor.nu>
2621 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
2622 with shorter literals. Fixes bug 700121.
2624 2003-03-11 <johan@balder>
2626 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
2628 2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
2630 * src/SDCCloop.c (mergeRegions): an evil beast is dead
2631 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
2633 2003-03-10 Borut Razem <borut.razem@siol.net>
2635 * src/SDCCmain.c: pipe preprocessor's output
2636 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
2637 * sdcc_vc_in.h: define pclose as _pclose for WIN32
2638 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
2639 which closes all pipes in pipeSet set
2640 * src/SDCCset.c: free deleted item in function deleteSetItem()
2641 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
2642 moved from z80 to src subproject
2643 * .version: increased version number to 2.3.4
2645 2003-03-10 Bernhard Held <bernhard@bernhardheld.de>
2647 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
2648 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
2649 * support/regression/ports/xa51/spec.mk: fix typo
2651 2003-03-09 Bernhard Held <bernhard@bernhardheld.de>
2653 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
2655 2003-03-09 Borut Razem <borut.razem@siol.net>
2657 * src/SDCCmain.c: pipe preprocessor's output
2658 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
2659 * sdcc_vc_in.h: define pclose as _pclose for WIN32
2660 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
2661 which closes all pipes in pipeSet set
2662 * src/SDCCset.c: free deleted item in function deleteSetItem()
2663 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
2664 moved from z80 to src subproject
2666 2003-03-09 Borut Razem <borut.razem@siol.net>
2668 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
2669 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
2670 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
2671 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
2672 * src/SDCCglobl.h: unification of WIN32 native definitions
2674 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2676 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
2678 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
2680 * src/configure.in: check for endianess (even while cross-compiling)
2681 * src/configure: check for endianess (even while cross-compiling)
2682 * src/configure_in.h: check for endianess (even while cross-compiling)
2683 * src/avr/gen.c: remove old endianess stuff
2684 * src/mcs51/gen.c: remove old endianess stuff
2685 * src/ds390/gen.c: remove old endianess stuff
2686 * src/pic/gen.c: remove old endianess stuff
2687 * src/pic/genarith.c: remove old endianess stuff
2688 * src/pic/glue.c: fix endianess check
2689 * src/pic16/gen.c: remove old endianess stuff
2690 * src/pic16/genarith.c: remove old endianess stuff
2691 * src/pic16/glue.c: fix endianess check
2692 * src/xa51/gen.c: remove old endianess stuff
2693 * src/z80/gen.c: fix endianess check
2694 * src/SDCCglue.c: fix endianess check
2695 * src/ds390/peeph.def: fix bug 700036
2697 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
2699 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
2700 * src/configure: find appropriate data-types on host for SDCC's int and long
2701 * src/configure.in: find appropriate data-types on host for SDCC's int and long
2702 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
2703 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
2705 2003-03-07 <johan@balder>
2708 some minor cleanups before the big shot
2709 OP_DEFS and OP_USES now use Kevin's protection
2710 new option --nolabelopt
2721 * src/ds390/ralloc.c:
2722 * src/mcs51/ralloc.c:
2724 * src/xa51/ralloc.c:
2727 2003-03-06 Bernhard Held <bernhard@bernhardheld.de>
2729 * src/pic/pcode.c (get_op): fix 64 bit warnings
2730 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
2731 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
2732 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
2733 * support/regression/tests/malloc.c: fix 64 bit warnings
2735 2003-03-04 Bernhard Held <bernhard@bernhardheld.de>
2737 * src/mcs51/gen.c (genMinus): fixed bug 696436
2739 2003-03-02 Borut Razem <borut.razem@siol.net>
2741 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
2743 2003-02-26 Bernhard Held <bernhard@bernhardheld.de>
2745 * configure.in: test for mkstemp
2746 * sdccconf_in.h: add HAVE_MKSTEMP
2748 2003-02-24 Bernhard Held <bernhard@bernhardheld.de>
2750 * device/include/ctype.h: removed warning while using --stack-auto
2751 * device/include/malloc.h: removed warning while using --stack-auto
2752 * device/include/string.h: removed warning while using --stack-auto
2754 2003-02-23 Borut Razem <borut.razem@siol.net>
2756 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
2757 because NDEBUG is defined (see man assert)
2758 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
2760 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2762 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
2763 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
2765 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2767 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
2768 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
2770 2003-02-18 <johan@balder>
2772 * as/mcs51/asmain.c (asmbl): module can start with a digit
2773 * as/z80/asmain.c (asmbl): module can start with a digit
2775 2003-02-16 Bernhard Held <bernhard@bernhardheld.de>
2777 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
2778 * src/asm.c: fix pipe() for Mingw32
2780 2003-02-15 Bernhard Held <bernhard@bernhardheld.de>
2782 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
2783 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
2784 make -V work again; --c1mode reads now from stdin
2785 * doc/sdccman.lyx: added --c1mode
2786 * support/Util/SDCCerr.c: new messages for c1 mode
2787 * support/Util/SDCCerr.h: new messages for c1 mode
2788 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
2790 2003-02-15 <johan@balder>
2792 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
2794 2003-02-14 Bernhard Held <bernhard@bernhardheld.de>
2796 * doc/sdccman.lyx: Environment variables, -o and other minor things
2798 2003-02-14 <johan@balder>
2800 * src/xa51/main.c: before anyone really tries to use it :)
2802 * Install doc's in share/sdcc/doc
2803 * removed some obsolete files
2804 * Do a proper make distclean and uninstall
2805 M Makefile.common.in
2808 M device/include/Makefile.in
2809 M device/lib/Makefile.in
2812 M sim/ucsim/doc/Makefile.in
2815 R src/xa51/peeph.rul
2816 M support/cpp2/Makefile.in
2817 M support/makebin/Makefile
2820 2003-02-13 Bernhard Held <bernhard@bernhardheld.de>
2822 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
2824 2003-02-10 Borut Razem <borut.razem@siol.net>
2826 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
2827 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
2828 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
2829 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
2830 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
2831 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
2832 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
2833 src/z80/Makefile.bcc: Borland Makefile cleanup
2834 * as/z80/Makefile.bcc: Added Borland Makefile
2835 * support/cpp2/borland.h: Removed
2837 2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
2839 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
2840 * src/SDCC.lex: new pragma NOIV
2841 * src/SDCCglobl.h: new pragma NOIV
2842 * src/SDCCmem.c: new pragma NOIV
2844 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
2846 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
2848 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
2850 * src/SDCCmain.c: signal handling is switched off by --debug
2851 * doc/Makefile: small fix for install; use clean.mk again
2852 * doc/clean.mk: clean *.pdf and *.html too
2854 2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
2856 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
2857 * device/lib/printfl.c: fix a ds390 bug by making it portable
2858 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
2859 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
2860 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
2861 * debugger/mcs51/cmd.c: converted multi-line string literals
2862 * sim/ucsim/globals.cc: converted multi-line string literals
2863 * src/SDCCmain.c: introduced signal handler to remove temp files
2864 * doc/Makefile: small tweaks, implement clean
2865 * doc: removed generated files
2867 2003-02-05 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2869 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
2870 patch from Jan Rejlek <jr@apex-lib.cz> to fix Bug 677692: "Extended
2871 Address Record is not correctly generated for DS390."
2873 2003-02-02 Borut Razem <borut.razem@siol.net>
2875 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
2876 * as/mcs51/asm.h: fixed compilation with Borland C
2877 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
2878 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
2879 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
2880 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
2881 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
2882 src/z80/Makefile.bcc: delete $(LIB) only if exist
2883 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
2885 2003-02-02 Bernhard Held <bernhard@bernhardheld.de>
2887 * device/include/malloc.h: introduced NULL
2888 * device/include/string.h: introduced NULL
2889 * device/include/stdlib.h: introduced NULL
2890 * device/lib/_memcpy.c: removed NULL
2891 * device/lib/_strcat.c: removed NULL
2892 * device/lib/_strchr.c: removed NULL
2893 * device/lib/_strcmp.c: removed NULL
2894 * device/lib/_strcpy.c: removed NULL
2895 * device/lib/_strcspn.c: removed NULL
2896 * device/lib/_strlen.c: removed NULL
2897 * device/lib/_strncat.c: removed NULL
2898 * device/lib/_strncmp.c: removed NULL
2899 * device/lib/_strncpy.c: removed NULL
2900 * device/lib/_strpbrk.c: removed NULL
2901 * device/lib/_strrchr.c: removed NULL
2902 * device/lib/_strspn.c: removed NULL
2903 * device/lib/_strstr.c: removed NULL
2904 * device/lib/_strtok.c: removed NULL
2905 * device/lib/malloc.c: removed NULL, include own header
2907 2003-02-02 <johan@balder>
2909 * 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
2910 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
2911 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
2912 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
2913 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
2914 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
2916 2003-02-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2918 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
2921 2003-02-01 <johan@balder>
2923 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
2925 2003-01-31 <johan@CP255758-A>
2927 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
2929 2003-01-30 <johan@balder>
2931 * src/SDCCBBlock.c: automatic bug detection
2932 * src/SDCCicode.c: automatic bug detection
2934 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2936 * src/SDCCglobl.h: now --xram-size 0 works
2937 * src/SDCCmain.c: now --xram-size 0 works
2939 2003-01-29 <johan@balder>
2941 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
2943 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2945 * as/mcs51/aslink.h: Added options --xram-size and --code-size
2946 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
2947 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
2948 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
2949 * src/SDCCglobl.h: Added options --xram-size and --code-size
2950 * src/SDCCmain.c: Added options --xram-size and --code-size
2952 2003-01-28 Bernhard Held <bernhard@bernhardheld.de>
2954 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
2955 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
2957 2003-01-27 <johan@balder>
2959 * src/SDCC.y: fixed bug #613764
2961 2003-01-26 <johan@balder>
2963 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
2964 * src/SDCCsymt.h: fixed bug #673374
2965 * src/SDCCglue.c: fixed bug #661910
2966 * src/SDCCast.c: fixed bug #458099 and 673374
2968 2003-01-26 Bernhard Held <bernhard@bernhardheld.de>
2970 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
2971 * as/mcs51/strcmpi.h: added
2972 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
2973 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
2974 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
2975 * as/mcs51/assym.c: strcmpi -> as_strcmpi
2976 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
2977 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
2978 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
2979 * as/mcs51/Makefile.aslink: new module strcmpi
2980 * as/mcs51/Makefile.asx8051: new module strcmpi
2981 * as/mcs51/Makefil.bcc: new module strcmpi
2982 * as/mcs51/Makefile.in: new module strcmpi
2983 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
2985 2003-01-26 <johan@balder>
2987 * src/SDCCglue.c: reverted back to 1.124
2988 * src/SDCCast.c: reverted back to 1.156
2989 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
2991 2003-01-25 <johan@balder>
2993 * src/SDCCglue.c: A better fix for bug #661910
2994 * src/SDCCast.c: A better fix for bug #661910
2995 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
2997 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
2999 * src/Makefile.in: remove spawn.o
3000 * src/SDCCmain.c: remove spawn.h
3001 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
3002 * src/spawn.c: removed
3003 * src/spawn.h: removed
3004 * support/regression/ports/ds390/spec.mk: link with -r
3006 2003-01-24 <johan@CP255758-A>
3008 * src/ds390/gen.c (aopOp): fixed bug #667458
3009 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
3010 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
3011 (createIvalCharPtr): an ival doesn't always have a storage class anymore
3013 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
3015 * src/mcs51/peeph.def: better assembler identation by Frieder
3016 * src/mcs51/gen.c: better assembler identation by Frieder
3018 2003-01-22 Bernhard Held <bernhard@bernhardheld.de>
3020 * as/z80/string.h: removed for gcc 3.2
3021 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
3022 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
3024 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
3026 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
3027 * src/SDCCpeeph.c (replaceRule): fix bug #663503
3028 * support/regression/Makefile: separate temp files for ports
3029 * support/regression/generate-cases.py: separate temp files for ports
3030 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3031 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3033 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
3035 * moved tinitalk to device/examples/ds390
3037 2003-01-14 Bernhard Held <bernhard@bernhardheld.de>
3039 * as/mcs51/lkmem.c: rflag is for DS390
3040 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
3041 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
3042 (linkEdit): move mem- and map-files the same way as ihx-files
3043 * src/z80/main.c (_setDefaultOptions): removed --generic
3044 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
3045 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
3046 * src/pic/glue.c (picglue): --c1mode works again
3047 * src/pic16/glue.c (pic16glue): --c1mode works again
3048 * src/asm.c (printCLine): fix #660034
3050 2003-01-13 Bernhard Held <bernhard@bernhardheld.de>
3052 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>, 1 by Frieder
3053 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
3054 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
3055 * as/mcs51/lkmem (summary): better fix for sp problem
3056 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
3057 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
3058 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
3059 remove --stack-after-data
3061 2003-01-12 Bernhard Held <bernhard@bernhardheld.de>
3063 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
3064 * src/SDCCutil.c (join): ugly bug: missing '\0'
3065 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
3067 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
3069 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
3071 * src/pic/main.c (_asmCmd): gpasm supports -o
3072 * src/z80/main.c: more general macros
3073 * device/lib/Makefile.in: remove intermediate files
3075 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
3077 * .version: Bumped version number to 2.3.3
3078 * src/SDCCBBlock.c: new option -o
3079 * src/SDCCglobl.h: new option -o
3080 * src/SDCCglue.c: new option -o
3081 * src/SDCCmain.c: new option -o
3082 * src/asm.c: new option -o
3083 * src/ds390/main.c: new option -o
3084 * src/pic/glue.c: new option -o
3085 * src/pic/pcode.c: new option -o
3086 * src/pic/ralloc.c: new option -o
3087 * src/pic16/glue.c: new option -o
3088 * src/pic16/pcode.c: new option -o
3089 * src/pic16/ralloc.c: new option -o
3090 * src/z80/main.c: new option -o
3091 * device/lib/Makefile.in: use -o
3092 * support/regression/ports/ds390/spec.mk: use -o
3093 * support/regression/ports/gbz80/spec.mk: use -o
3094 * support/regression/ports/mcs51/spec.mk: use -o
3095 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
3096 * support/regression/ports/z80/spec.mk: use -o
3097 * support/regression/ports/ucz80/spec.mk: use -o
3098 * support/regression/ports/xa51/spec.mk: use -o
3099 * support/regression/fwk/lib/timeout.c: fix usage string
3101 2003-01-09 Bernhard Held <bernhard@bernhardheld.de>
3102 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
3104 2003-01-07 <johan@balder>
3106 * src/SDCCast.c (decorateType): fixed bug #600035
3108 2003-01-07 Bernhard Held <bernhard@bernhardheld.de>
3109 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
3110 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
3111 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
3112 * src/pic/pcode.c: outcommented unused variable to remove warnings
3113 * src/pic/ralloc.c: outcommented unused variable to remove warnings
3115 2003-01-06 <karl@turbobit.com>
3116 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
3119 2003-01-06 <johan@balder>
3121 * src/SDCCicode.c: fixed array add
3123 2002-01-05 Bernhard Held <bernhard@bernhardheld.de>
3124 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
3125 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
3127 2003-01-04 <johan@balder>
3129 * src/SDCCval.c (getNelements): fixed the initialized array of structures
3131 2002-12-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3132 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
3134 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
3135 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann@web.de>
3136 * support/regression/tests/bug-524697.c: fit mem usage into 8032
3138 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
3139 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
3141 2002-12-27 Bernhard Held <bernhard@bernhardheld.de>
3142 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
3144 2002-12-26 Bernhard Held <bernhard@bernhardheld.de>
3145 * src/mcs51/main.c: removed {bindir}{sep} from aslink
3147 2002-12-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3149 * in \sdcc\as\mcs51\ changed these files in order to create an
3150 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
3151 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
3152 following files to include the previous two files: aslink.dsp,
3153 Makefile.aslink, Makefile.bcc, and Makefile.in.
3155 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
3156 .adb instead of .cdb
3158 2002-11-09 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3160 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
3161 value from option --iram-size.
3163 2002-09-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3165 * \sdcc\as\mcs51\lklist.c: added boundary check before using
3168 2002-09-18 <wiml@hhhh.org>
3170 * SDCClrange.h: exposed setFromRange() and setToRange()
3171 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
3172 packRegsForAccUse() (bug 542397)
3173 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
3174 multiple times and emitting the fetch operations more than once
3175 added aopGetUsesAcc() function to allow binary operators to
3176 fetch their operands in the correct order; made genMinus() emit
3177 compact code for X = LITERAL - Y
3179 2002-09-00 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3180 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
3181 sprintf() in line 1267.
3183 2002-09-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3184 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
3187 2002-09-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3188 Changes to aslink (All the changes are marked with 'JCF'):
3190 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
3193 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
3194 area BSEG. Also moves, if possible, the DATA area down into the internal
3195 ram so more space is available.
3197 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
3200 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
3201 not bytes. Function summary() which creates a memory usage summary
3202 file with extension .mem. Reports of overlaping stack and small stack
3203 size. If the space for the stack is less than 16 bytes aslink trows a
3206 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
3207 the 8051. Option 'y' for memory summary output file.
3209 Changes to sdcc (All the changes are marked with 'JCF'):
3211 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
3213 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
3214 overlaying area for it (uses RegBankUsed[4]).
3216 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
3217 bank zero as used by default. By default aslink locates the stack
3218 (equivalent to --stack-after-data). Pass option 'y' to aslink for
3219 the creation of the .mem file. Delegates the allocation of data area
3220 to aslink (it is not longer 0x30 by default). If --stack-loc passes
3221 the begining of the stack area to aslink.
3223 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
3224 glue() in SDCCglue.c creates an area for it.
3226 2002-09-03 Borut Razem <borut.razem@siol.net>
3227 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
3228 sdcc/src/pic/glue.c:
3229 introduced atexit() handler for teporay files removal in case of
3230 errors, assertions, ...
3232 2002-08-29 Borut Razem <borut.razem@siol.net>
3233 * sdcc/support/cpp2/auto-host_vc_in.h:
3234 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
3235 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
3236 Maybe there is a similar problem with BORLANDC? It should be checked!
3238 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
3239 corrected improper use of assert: the assignment to clr variable was done inside the assert.
3240 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
3241 was not executed, and the compiler (cl) launched a warning:
3242 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
3244 2002-08-28 Bernhard Held <bernhard@bernhardheld.de>
3245 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
3247 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
3248 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
3250 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3251 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
3252 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
3253 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3254 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
3255 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
3256 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
3257 - added Release configuration in VS projects
3258 - review of compiler an linker options
3259 - VC .exe files are generated in bin_vc directory, not to interfere
3260 with binaries generated from other projects (cygwin, mingw, bcc ...)
3262 * sdcc/src/yacc.dsp: added
3264 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
3265 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
3266 and insert the version number definitions from .version
3268 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
3270 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
3271 added - genarate auto-host.h using auto-host_vc_in.h as template
3274 removed from CVS, generated automatically
3276 2002-08-25 Bernhard Held <bernhard@bernhardheld.de>
3277 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
3279 2002-08-11 Borut Razem <borut.razem@siol.net>
3280 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
3282 2002-08-10 Borut Razem <borut.razem@siol.net>
3283 * src/SDCCmain.c (main):
3284 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
3285 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
3286 The consequence was that some temporary files were not removed.
3289 unification of code in functions tempfilename() and tempfile():
3290 function tempnam() is defined in Visual Studio 6.0 and .NET
3292 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
3294 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3295 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
3296 - removed compiler command line option /WX: Treats all warnings as errors
3297 - update a list of source files, included into the project
3299 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3300 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
3301 changed project type to Generic Project so that can be correcly converted to VS.NET project
3303 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
3305 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
3307 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
3309 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
3310 added return 0 statements after assert() to make compiler happy
3312 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
3313 added newline in the def file to keep MSC compiler satisfied
3315 * sdcc/src/z80/gen.c:
3316 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
3317 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
3318 - solved MSC error in function aopDump()
3320 * sdcc_vc.h: define PREFIX as "\\sdcc"
3322 2002-07-18 Bernhard Held <bernhard@bernhardheld.de>
3323 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
3325 2002-06-22 Scott Dattalo <scott@dattalo.com>
3326 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
3327 - Rewrote the register banking algorithm.
3328 - Added pCode live-range analysis to registers (for now, only non-used and
3329 singly-used registers optimized away)
3331 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
3333 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba@cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
3335 2002-05-10 Scott Dattalo <scott@dattalo.com>
3336 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
3338 2002-04-22 Michael Hope <michaelh@vroom>
3340 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
3342 * configure.in (DD_COPT): Added include support required for gbdk.
3344 * .version: Bumped version number just to increase it.
3346 * src/SDCCmain.c: Added -nostdinc to the default options.
3348 2002-04-15 Michael Hope <michaelh@vroom>
3350 * device/lib/z80/printf.c (sprintf): Added.
3352 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
3354 * src/z80/peeph.def: Added transpose redundent load rule.
3356 * src/z80/main.c: Added force callee saves for jaune.
3358 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
3360 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
3362 2002-03-28 Johan Knol <johan@balder>
3364 * src/SDCCval.c: fixed bug #532436
3366 2002-03-14 Scott Dattalo <scott@dattalo.com>
3368 Added "char *Processor" field to the port structure.
3371 Added -p option. Allows port dependent processor to be specified.
3374 Initialized the new field char *Processor field to NULL in all ports
3377 Compiler generated registers for interrupt context saving
3378 were not getting allocated.
3380 2002-03-16 Sandeep Dutta <sandeep@ddi.com>
3383 Fixed left shift. Will promote the left side of a left shift
3384 if a) left shifting more than size of operand or b) when assigned
3385 to something size > size of left side
3387 2002-03-14 Scott Dattalo <scott@dattalo.com>
3389 tons of changes. Register allocation has been
3390 rewritten. Added customization for the various PICs. Flow
3391 analysis is restructured. ...
3397 Added. device.c is a PIC port hack to accomodate variations
3400 2002-03-13 Michael Hope <michaelh@vroom>
3402 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
3404 2002-03-04 johanknol <johanknol@manik>
3406 * /src/SDCCval.c: fixed
3408 const unsigned char arr[][2] = { { 0, 1 } };
3409 t18.c:1: error: Initializer element is not constant
3411 2002-03-04 bela <bela@manik>
3413 * /device/include/mcs51reg.h:
3414 ds89c420 register definition update
3416 2002-03-03 <johan@FRIJA>
3418 * support/Util/SDCCerr.c: did something, but don't no why anymore
3420 * support/regression/tests/bug-524691.c: made it a little less shy
3422 * src/SDCCast.c (decorateType): fixed bug #524697
3424 * src/SDCCast.c: made some lineno improvements
3426 * src/SDCCval.c (getNelements): changed warning to error
3428 * src/SDCCglue.c (printIvalArray): changed warning to error
3430 * src/SDCCicode.c: fixed a warning for mingw
3432 * src/SDCCast.c (decorateType): fixed the << promotion for ops
3434 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
3436 2002-03-02 Sandeep Dutta <sandeep@ddi.com>
3438 * src/ds390/peeph.def:
3439 Added some more peephole rules
3441 * src/ds390/gen.c: Various fixes & enhancements
3443 * src/SDCClrange.c, src/SDCClrange.h:
3444 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
3446 * src/ds390/ralloc.c:
3447 various fixes & enhancements (ds390) specific
3449 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
3450 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
3453 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
3455 2002-03-02 <johan@FRIJA>
3457 * src/SDCCast.c (decorateType): fixed bug #524708
3459 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
3461 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
3463 2002-03-01 Michael Hope <michaelh@vroom>
3465 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
3467 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
3469 2002-03-01 <johan@FRIJA>
3471 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
3473 * src/SDCCast.c (decorateType): fixed bug #524209
3475 * src/SDCCval.c (valNot): fixed bug #524195
3477 2002-02-26 <johan@balder>
3479 * src/xa51/gen.c: fixed a warning
3481 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
3483 * src/SDCCast.c (decorateType): fixed bug #522534
3485 2002-02-23 <johan@balder>
3487 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
3489 2002-02-22 <johan@balder>
3491 * src/SDCCast.c: fixed bug #514865
3493 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
3495 2002-02-21 Sandeep Dutta <sandeep@ddi.com>
3497 * sdcc/src/SDCCloop.c:
3498 Previous fix was not good. basic blocks that have "break" or "return" are
3499 not really partof a loop , but live ranges used in these blocks should
3500 be live thru the entire loop, so set partOfLoop but don't add them to
3503 2002-02-21 <johan@FRIJA>
3505 * src/SDCCcse.c: fixed bug #514308
3507 2002-02-20 Sandeep Dutta <sandeep@ddi.com>
3510 Fixed BUG #519583. If a conditional block ended in a return/break
3511 statement inside a loop, it was not being considered part of the loop.
3513 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
3515 2002-02-10 Karl Bongers <karl@turbobit.com>
3518 Fixed up SDCDB debugger somewhat. Updated debugger/README
3519 with lots of comments and notes.
3521 * device/examples/test2.c:
3522 Fix bug, "red" variable not being initialized(compiler complained).
3524 * device/examples/Makefile, examples/test3.c:
3525 Add Makefile in device/examples folder, compiles test3.c
3526 for use as a multiple module SDCDB test case.
3528 * sim/ucsim/cmd.src/cmdset.cc:
3529 Took out debug printfs in ucsim "next" command.
3532 Karl and Johan start ucsim XA support. Most dissassembly working,
3533 about 75% emulation done(plenty of work remaining).
3535 * sim/ucsim/z80.src:
3536 Add Z80 support to ucsim, add test-ucz80 regression test,
3537 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
3538 Notice z80 compiler fails on examples/test3.c/crc code.
3540 2002-01-30 Sandeep Dutta <sandeep@ddi.com>
3542 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
3543 Added support for --parms-in-bank1
3545 * src/ds390/peeph.def:
3546 added a few more peephole optimzations
3549 1) added __builtin_inp & __builtin_outp used to read in data of given length
3550 from a memory mapped port
3551 2) added __builtin_memcmp
3552 3) added __builtin_swapw swap bytes of a short
3554 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
3555 1) handle multiple send & receives from register bank1
3556 2) ralloc can now allocate DPTR1 to some liveRanges
3558 * src/SDCCsymt.c, src/SDCCsymt.h:
3559 changes to handle multiple sends & receives
3562 added some pointer arithmetic optimization
3565 added some pointer arithmetic optimizations but not stable yet so not
3566 called from anywhere (will get this working shortly)
3568 * src/SDCCopt.c: fixed for multiple sends & receives
3571 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
3572 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
3573 set preprocessor defines (depending on options)
3575 * src/SDCCicode.c, src/SDCCicode.h:
3576 changes made to handle multiple sends & receives
3579 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
3581 * src/SDCCcse.c, src/SDCCcse.h:
3582 added function findbackward def (to be used in upcoming optimization)
3584 * src/SDCCcflow.c, src/SDCCcflow.h:
3585 added function returnAtEnd - to determine if a basic block terminates with
3588 * src/SDCCast.c, src/SDCCast.h:
3589 added option parms-in-bank1
3591 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
3592 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
3593 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
3594 adjusted for --parms-in-bank1 option
3596 * device/include/string.h:
3597 donot redefine "reentrant" keyword
3599 * device/include/ds80c390.h: Added some more SFRs
3601 2002-01-28 Bernhard Held <bernhard@bernhardheld.de>
3603 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
3605 2002-01-26 Bernhard Held <bernhard@bernhardheld.de>
3607 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
3609 2002-01-22 Bernhard Held <bernhard@bernhardheld.de>
3611 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
3613 2002-01-18 Paul Stoffregen <paul@pjrc.com>
3615 * Added --xram-movc option
3617 2002-01-13 Bernhard Held <bernhard@bernhardheld.de>
3619 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
3621 2002-01-11 Johan Knol
3623 * Added math lib of Jesus Calvino-Fraga
3625 2002-01-08 Bernhard Held <bernhard@bernhardheld.de>
3627 * src/SDCCmain.c (processFile): fix processing of ../../src.c
3628 * support/regression/Makefile: new target test-mcs51-stack-auto
3629 * support/regression/ports/mcs51-stack-auto/spec.mk: added
3631 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
3633 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
3635 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
3637 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
3639 2002-01-03 Bernhard Held <bernhard@bernhardheld.de>
3641 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
3643 * src/SDCCglue.h: add definition for printIvalChar()
3645 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
3647 * src/SDCCast.c: fix #498138 by Johan
3649 * src/SDCCglue.c: fix #498138 by Johan
3651 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
3653 * support/regression/Makefile: fix clean
3655 * support/regression/ports/ds390/support.c: fix transmission of last character
3657 2001-12-29 Sandeep Dutta <sandeep@ddi.com>
3659 * /sdcc/src/ds390/gen.c:
3660 a) improved computing address of stack variable
3661 b) took out some #if 0 code
3662 c) improved parmBytes adjustment
3663 d) improved genPlusIncr & genMinusIncr
3664 e) genCmp could generate bad code (when left assigned to DPTR)
3665 f) Fixed bug in hasInc
3667 * /sdcc/src/ds390/ralloc.c:
3668 a) packRegsForSupport could mess up live information (Fixed)
3669 b) packRegsDPTRuse could be incorrect for left & right shift
3671 * /sdcc/src/mcs51/ralloc.c:
3672 packRegsForSupport could mess up the live information (Fixed)
3674 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
3676 * /sdcc/src/SDCCast.c:
3677 can reverse a loop even if function call is present as long
3678 as the loop control variable is local & is not passed as parameter
3680 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
3682 * /sdcc/ChangeLog: *** empty log message ***
3684 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
3685 More builtin function additions for TININative
3687 * /sdcc/src/ds390/ralloc.c:
3688 Had broken the regression testsuite
3690 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
3692 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
3693 Added funcattr hasStackParms will be set for reentrant functions when there
3694 are paramteres on the stack, this helps in minimizing frame pointer generation
3695 typeFromStr can handle function pointers now
3697 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
3698 *** empty log message ***
3700 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
3702 * /src/ds390/gen.c, /src/ds390/main.c:
3703 More builtin function additions for TININative
3705 * /src/ds390/ralloc.c:
3706 Had broken the regression testsuite
3708 * /src/SDCCast.c: Fixed a bug in dumptree
3710 * /src/SDCCsymt.c, /src/SDCCsymt.h:
3711 Added funcattr hasStackParms will be set for reentrant functions when there
3712 are paramteres on the stack, this helps in minimizing frame pointer generation
3713 typeFromStr can handle function pointers now
3715 * /doc/builtins.txt, /doc/TININative.txt:
3716 *** empty log message ***
3719 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
3721 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
3722 ALPHA version for -mTININative
3724 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
3725 updated to reflect changes in the port structure
3728 added function do_assemble (similar to do_link) if non-null this function
3729 will be called to do assembly (-mTININative) requires a multi command
3731 added function genAssemblerEnd will be called to generate assembler Epilogue
3734 added _JavaNative to debug info printing
3736 * /src/SDCCmain.c: added option --tini-libid
3737 added port->do_assemble function (-mTININative) has a multi command assemble
3739 * /src/SDCCglue.c: Disabled "constExpr" check
3740 added port->genAssemblerEnd function
3742 * /src/SDCCglobl.h: Added option --tini-libid value
3745 tookout optimizeCompare from the header (has no external references)
3747 * /src/SDCCast.c: made one more function "static"
3749 2001-12-23 Michael Hope <michaelh@juju.net.nz>
3751 * src/z80/mappings.i: Added z80asm support.
3753 * src/z80/main.c: Added z80asm support on --asm=z80asm
3755 * src/z80/gen.c: Fixed asm portability issues.
3757 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
3759 * src/SDCCglue.c (printExterns): Added global/extern split.
3761 2001-12-17 Bernhard Held <bernhard@bernhardheld.de>
3763 * support/regression/Makefile: added test for mcs51 model large
3765 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
3767 * support/regression/ports/gbz80/spec.mk: added -mgbz80
3769 2001-12-05 Michael Hope <michaelh@juju.net.nz>
3771 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
3773 1904-01-06 Michael Hope <michaelh@juju.net.nz>
3775 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
3777 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
3779 2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
3781 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
3783 * support/regression/tests/simplefloat.c: Port to mcs51.
3785 2001-11-25 Michael Hope <michaelh@juju.net.nz>
3786 * support/regression/tests/bug-485362.c: Added.
3788 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
3790 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
3792 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
3794 * src/z80/gen.c (aopDump): Added a dump function.
3796 2001-11-25 Bernhard Held <bernhard@bernhardheld.de>
3797 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
3799 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
3801 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
3803 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
3805 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
3807 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
3809 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
3811 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
3813 * support/regression/ports/ds390/support.c: Use tinibios.
3815 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
3817 2001-11-23 Michael Hope <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
3819 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
3820 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
3822 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
3824 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
3826 2001-11-18 Michael Hope <michaelh@juju.net.nz>
3828 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
3830 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
3831 (packRegsForIYUse): Created and optimised.
3833 2001-11-07 Michael Hope <michaelh@juju.net.nz>
3835 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
3836 2001-11-18 Bernhard Held <bernhard@bernhardheld.de>
3838 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
3840 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
3842 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
3844 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
3846 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
3848 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
3850 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
3852 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
3854 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
3856 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
3858 2001-11-07 Michael Hope <michaelh@juju.net.nz>
3860 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
3861 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
3862 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
3864 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
3866 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
3867 (genNotFloat): Added.
3868 (genUminusFloat): Added.
3870 * device/lib/z80/Makefile: Added floating pt stubs.
3872 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
3874 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
3876 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
3878 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
3880 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
3882 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
3884 * sdcc/support/regression/Makefile: Add port ds390.
3886 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
3888 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
3890 * sdcc/support/regression/ports/ds390/spec.mk: Added.
3892 * sdcc/support/regression/ports/ds390/support.c: Added.
3894 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
3896 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
3898 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
3900 2001-11-04 Michael Hope <michaelh@juju.net.nz>
3902 * device/include/malloc.h: Added z80 and gbz80 support.
3904 * device/lib/gbz80/heap.s: Added.
3906 * device/lib/z80/heap.s: Added.
3908 * device/lib/malloc.c: Added z80 and gbz80 support.
3910 * support/regression/tests/malloc.c (testMalloc): Added.
3912 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
3914 * support/regression/tests/bug-478094.c: Added.
3916 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
3918 2001-11-04 Bernhard Held <bernhard@bernhardheld.de>
3920 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
3922 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
3924 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
3926 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
3928 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
3930 2001-11-04 Michael Hope <michaelh@juju.net.nz>
3932 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
3934 2001-11-03 Michael Hope <michaelh@juju.net.nz>
3936 * support/regression/tests/bug-477927.c: Added.
3938 * src/z80/peeph.def: Added minor rules.
3940 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
3942 * src/z80/peeph.def: Added jump optimisation modification.
3944 2001-11-01 Michael Hope <michaelh@juju.net.nz>
3946 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
3948 2001-10-30 Michael Hope <michaelh@juju.net.nz>
3950 * support/regression/tests/funptrs.c: Added.
3952 2001-10-29 Michael Hope <michaelh@juju.net.nz>
3954 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
3956 2001-10-28 Michael Hope <michaelh@juju.net.nz>
3958 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
3960 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
3962 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
3963 (movLeft2ResultLong): Created.
3965 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
3966 (joinPushes): Added. Joins two char pushes into a word push.
3968 2001-10-27 Michael Hope <michaelh@juju.net.nz>
3970 * support/cpp2/Makefile.in (install): Added creation of dest dir.
3972 * support/makebin/Makefile (install): Added creation of dest dir.
3974 2001-10-24 Karl Bongers <karl@turbobit.com>
3976 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
3978 2001-10-21 Michael Hope <michaelh@juju.net.nz>
3980 * src/z80/ralloc.c: Turned off faulty pack for one use.
3982 * src/z80/peeph-gbz80.def: Removed redundent restart options.
3984 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
3986 2001-10-21 Bernhard Held <bernhard@bernhardheld.de>
3988 * support/regression/Makefile: Improved clean
3990 * support/regression/ports/gbz80/spec.mk: Added clean
3992 * support/regression/ports/host/spec.mk: Added clean
3994 * support/regression/ports/z80/spec.mk: Added clean
3996 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
3998 * support/regression/ports/mcs51/timeout.c: little improvements
4000 2001-10-17 Michael Hope <michaelh@juju.net.nz>
4002 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
4004 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
4006 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
4008 2001-10-16 Bernhard Held <bernhard@bernhardheld.de>
4010 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
4012 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
4014 2001-10-13 Michael Hope <michaelh@juju.net.nz>
4015 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
4017 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
4019 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
4021 * src/mcs51/main.c (_linkCmd): Added bin path to command.
4023 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
4025 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
4027 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
4029 * support/regression/tests/longor.c: Added.
4031 2001-10-11 Bernhard Held <bernhard@bernhardheld.de>
4033 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
4035 * as/mcs51/aslink.h: define PATH_MAX
4037 * as/mcs51/asm.h: define PATH_MAX
4039 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
4041 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
4043 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
4045 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
4047 * src/SDCCglobl.h: define PATH_MAX
4049 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
4051 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
4053 2001-10-11 Michael Hope <michaelh@juju.net.nz>
4055 * src/z80/gen.c (gencjneshort): Fixed
4057 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
4059 2001-10-09 Michael Hope <michaelh@juju.net.nz>
4061 * support/regression/tests/bug-469671.c: Added.
4063 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
4065 2001-10-08 Michael Hope <michaelh@juju.net.nz>
4067 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
4069 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
4071 2001-10-08 Bernhar Held <bernhard@bernhardheld.de>
4073 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
4075 * src/device/lib/_mulint.c : removed hint: nooverlay bug
4077 * src/device/lib/_mullong.c : removed hint: nooverlay bug
4079 * src/device/lib/_divuint.c : removed hint: nooverlay bug
4081 * src/device/lib/_divulong.c: removed hint: nooverlay bug
4083 * src/device/lib/_moduint.c : removed hint: nooverlay bug
4085 * src/device/lib/_modulong.c: removed hint: nooverlay bug
4087 2001-10-07 Michael Hope <michaelh@juju.net.nz>
4089 * 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.
4091 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
4093 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
4095 2001-10-07 <johan@FRIJA>
4097 * device/lib/gets.c (gets): fixed the return value.
4099 2001-10-06 Michael Hope <michaelh@juju.net.nz>
4100 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
4102 * 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.
4104 * 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.
4106 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
4108 * src/pic/gen.c: Removed Safe_strdup.
4110 * configure.in: Added option to enable libgc support.
4112 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
4113 (bitVectUnion): Optimised.
4114 (bitVectIntersect): Optimised.
4115 (bitVectBitsInCommon): Optimised.
4116 (bitVectCplAnd): Optimised.
4118 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
4120 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
4122 * src/SDCCmain.c: distinguish between assembler debug and plain options
4124 * src/avr/main.c: remove standard assembler options
4126 * src/ds390/main.c: remove standard assembler options
4128 * src/mcs51/main.c: remove standard assembler options
4130 * src/port.h: removed "PENDING" comment
4132 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
4134 * src/device/lib/_mulint.c : new, with assember functions
4136 * src/device/lib/_mullong.c : new, with assember functions
4138 * src/device/lib/_divuint.c : with assember functions
4140 * src/device/lib/_divsint.c : with assember functions
4142 * src/device/lib/_divulong.c: with assember functions
4144 * src/device/lib/_divslong.c: with assember functions
4146 * src/device/lib/_moduint.c : with assember functions
4148 * src/device/lib/_modsint.c : with assember functions
4150 * src/device/lib/_modulong.c: with assember functions
4152 * src/device/lib/_modslong.c: with assember functions
4154 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
4156 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
4158 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
4159 replaced _mululong.c and _mulslong.c by _mullong.c
4161 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
4163 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
4165 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
4167 * src/SDCCglue.c: test, if win32api is available for MINGW
4169 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
4171 * src/SDCCsymt.c: no more _modifier in printTypeChain()
4172 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
4173 * support/regression/ports/gbz80/spec.mk: removed GENERIC
4174 * support/regression/ports/host/spec.mk: removed GENERIC
4175 * support/regression/ports/mcs51/spec.mk: removed GENERIC
4176 * support/regression/ports/z80/spec.mk: removed GENERIC
4178 2001-10-01 Michael Hope <michaelh@juju.net.nz>
4180 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
4182 * support/regression/tests/bug-467035.c: Created.
4184 2001-10-01 <johan@FRIJA>
4186 * src/SDCC.y: fixed bug #466586 part 1
4188 2001-10-01 Johan Knol <johan.knol@iduna.nl>
4190 * SDCCicode.c: z80 has no generic pointers
4191 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
4193 2001-09-30 Michael Hope <michaelh@juju.net.nz>
4195 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
4197 2001-09-29 Michael Hope <michaelh@juju.net.nz>
4199 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
4201 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
4203 2001-09-25 Michael Hope <michaelh@juju.net.nz>
4205 * configure.in: Fixed up so that ucsim is only configured once.
4207 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
4209 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
4210 (getPathDifference): As above.
4212 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
4214 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
4216 2001-09-23 Michael Hope <michaelh@juju.net.nz>
4217 * .version: Updated to 2.3.1
4219 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
4220 Added copyright header.
4222 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
4223 (assemble): Added support for macro based assembler commands.
4224 (linkEdit): Added support for macro based linker commands.
4225 (preProcess): Changed the pre-processor to use macros.
4226 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
4227 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
4229 * device/lib/z80/crt0.s: Added module name for debugging.
4231 2001-09-20 Michael Hope <michaelh@juju.net.nz>
4233 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4235 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
4237 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
4239 * src/Makefile.in: Added SDCCmacro and SDCCutil
4241 2001-09-19 Michael Hope <michaelh@juju.net.nz>
4243 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4245 2001-09-16 <johan@FRIJA>
4247 * 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.
4249 2001-09-15 <johan@FRIJA>
4251 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
4252 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
4254 2001-09-11 <johan@FRIJA>
4256 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
4258 2001-09-10 Michael Hope <michaelh@juju.net.nz>
4260 * support/regression/tests/bug-460444.c: Added test case.
4262 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
4263 (genCast): Added justification for all of the asserts.
4265 2001-09-10 Bernhard Held <bernhard@bernhardheld.de>
4267 * support/regression/support.c: _xdata replaced by xdata
4269 * support/regression/spec.mk: removed _generic
4271 2001-09-09 Michael Hope <michaelh@juju.net.nz>
4273 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
4275 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
4276 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
4278 * src/z80/peeph.def: Added a rule to optimise shift then compare.
4280 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
4282 * support/regression/tests/bug-460010.c: Added test case.
4284 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
4286 2001-09-09 Bernhard Held <bernhard@bernhardheld.de>
4288 * support/regression/Makefile: inter-port-clean adjusted for mcs51
4290 * support/regression/testfwk.c: removed workaround for bug #436344
4292 * support/regression/tests/bp.c: use less memory with mcs51
4294 * support/regression/tests/bug-441448.c: use less memory
4296 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
4298 * support/regression/collate-results.py: typo
4300 2001-09-08 Michael Hope <michaelh@juju.net.nz>
4302 * support/regression/tests/fetchoverlap.c: Added new test case.
4304 * support/regression/tests/bp.c: Added new test case.
4306 * support/regression/tests/bug-448984.c: Added new test case.
4308 * support/regression/tests/pow2shifts.c: Added new test case.
4310 * src/z80/gen.c: Turned off the noise it normally generates for the release.
4311 (genlshTwo): Fixed right shift for count > 8.
4313 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
4315 2001-09-08 <johan@FRIJA>
4317 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
4319 2001-09-07 <johan@FRIJA>
4321 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
4323 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
4325 2001-09-06 <johan@FRIJA>
4327 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
4328 * bernhard noted me at this: "() equals to (void)" (1.38)
4330 2001-09-05 <johan@FRIJA>
4332 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
4334 2001-09-04 <johan@FRIJA>
4336 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
4339 2001-09-04 Paul Stoffregen <paul@pjrc.com>
4341 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
4343 2001-09-03 Michael Hope <michaelh@juju.net.nz>
4345 * link/z80/aslink.h: Fixed path for PATH_MAX
4347 2001-09-02 Michael Hope <michaelh@juju.net.nz>
4349 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
4351 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
4353 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
4355 * 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.
4357 2001-09-01 Michael Hope <michaelh@juju.net.nz>
4359 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
4360 (genCmp): Fixed up genCmp for the GB with longs.
4362 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
4364 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
4366 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
4368 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
4370 2001-08-30 Paul Stoffregen <paul@pjrc.com>
4372 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
4374 2001-08-30 Michael Hope <michaelh@juju.net.nz>
4376 * 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.
4378 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
4380 2001-08-29 Michael Hope <michaelh@juju.net.nz>
4382 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
4384 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
4386 2001-08-30 Bernhard Held <bernhard@bernhardheld.de>
4388 * sim/ucsim/configure: little improvement of Cygwin-detection
4389 * sim/ucsim/configure.in: little improvement of Cygwin-detection
4390 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
4391 * support/regression/tests/bug-221100.c: small changes for mcs51
4392 * support/regression/tests/bug-221168.c: small changes for mcs51
4393 * support/regression/tests/bug-227710.c: small changes for mcs51
4394 * support/regression/tests/staticinit.c: small changes for mcs51
4395 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
4396 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
4397 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601