1 2004-01-19 Bernhard Held <bernhard@bernhardheld.de>
3 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6 2004-01-18 Bernhard Held <bernhard@bernhardheld.de>
8 * src/SDCCval.c (cheapestVal): added missing checks
9 * src/SDCCicode.c (usualBinaryConversions): fixed condition
10 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12 2004-01-16 Klaus Flittner <klaus_flittner@gmx.de>
14 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
17 2004-01-16 Vangelis Rokas <vrokas@otenet.gr>
19 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
20 loaded with the linker search paths (-L arguments) and the libraries
21 to be linked with the current source (-l arguments). Changes
22 currently will affect only the pic16 port.
23 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
24 include path the port specific paths and port specific libraries,
25 * gplink command now contains the $3 argument,
27 * src/pic16/device.c,: structure PIC_device is made public and
28 renamed to PIC16_device, the same for variable Pics which is renamed
29 to Pics16. Updated all references to them.
30 * src/pic16/glue.c (pic16glue): corrected bug with code
31 initialization which bypassed the variable initializations block.
33 * device/lib/pic16/Makefile.rules: removed --penable-stack from
34 COMPILE_FLAGS and added the --nostdinc option
36 2004-01-15 Erik Petrich <epetrich@ivorytower.norman.ok.us>
38 * device/include/mc68hc908jb8.h: Register defs for another member
39 of the hc08 family. Contributed by Bjorn Bringert - thanks!
41 2004-01-14 Vangelis Rokas <vrokas@otenet.gr>
43 Documenting changes from previous commits.
44 * configure.in (version 1.56),
45 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
46 when generating output files to configure the pic16 library,
47 but now I've commented it out, since gputils aren't installed in the
48 SF compile farm, so library won't compile
50 * device/lib/Makefile.in (version 1.56): initially I've added in
51 target 'all' the prerequestive 'model-pic16' so it compiled the
52 pic16 library, but now I've commented it out for the same reasons
54 * added targets 'model-pic16' and 'objects-pic16' to compile the
56 * added target 'port-specific-objects-pic16' to handle the
57 generated libraries and copy them into the build/ directory
58 * added target 'clean-intermediate-pic16' to clean intermediate
59 files into pic16 directory
60 * in target 'installdirs' added line to create directory pic16 in
63 * device/include/Makefile.in (version 1.11): in target 'install'
64 added lines to copy all header files to installation path,
65 * in target 'installdirs' added line create directory for pic16
66 headers in the installation path
68 2004-01-13 Klaus Flittner <klaus_flittner@gmx.de>
70 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
73 2004-01-13 Bernhard Held <bernhard@bernhardheld.de>
76 * device/lib/configure.in,
77 * device/lib/configure: fixed for autoconf 2.57
79 2004-01-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
81 * src/z80/main.c (_parseOptions): fixed the portmode= command line
82 option so that it actually works. Made it specific to the z80, since
83 the gbz80 doesn't have these kinds of I/O ports.
85 2004-01-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
87 * device/include/z180.h,
88 * device/lib/_memcpy.c,
89 * device/lib/_memmove.c,
90 * device/lib/_mulint.c,
91 * device/lib/ser_ir.c,
92 * device/lib/ser_ir_cts_rts.c,
93 * device/lib/_strcmp.c,
94 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
95 * src/z80/main.c (_process_pragma): add support for pragmas bank and
96 portmode; added deprecation warning for bank= and protmode= forms.
97 Also, guard against buffer overflow.
98 * src/z80/gen.c (aopGet): generate better code for sfr banked read
100 2004-01-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
102 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
103 changed interrupt vector table generation to only emit declared vectors.
104 * device/include/Makefile.in: added missing backslash
105 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
107 2004-01-13 Vangelis Rokas <vrokas@otenet.gr>
109 Mainly changes to support compilation of the device libraries
110 * src/pic16/device.c: stack is allocated via symbol and not
111 via literal number. The symbol is placed in the corresponding
112 position of the data ram
113 * (pic16_dump_section): relocatable and absolute uninitialized
114 data are now emitted in sorted order to reduce section naming,
115 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
116 weren't marked as being in the access bank,
118 2004-01-13 Vangelis Rokas <vrokas@otenet.gr>
120 Added portion of GNU PIC Library under the directory
121 device/include/pic16 and device/lib/pic16. These files
122 contain the declarations of SFRs for the PIC18Fxx2 devices.
123 The directory is initialized via configure from toplevel.
125 2004-01-12 Klaus Flittner <klaus_flittner@gmx.de>
127 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
128 the spilllocations to be compared correctly
130 2004-01-12 Bernhard Held <bernhard@bernhardheld.de>
132 * src/SDCCast.c (decorateType): fixed bug introduced today
134 2004-01-12 Borut Razem <borut.razem@siol.net>
136 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
137 doc/sdccman.lyx: upper case pragmas are deprecated
139 2004-01-12 Bernhard Held <bernhard@bernhardheld.de>
141 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
142 in simpler and even better code
144 2004-01-11 Bernhard Held <bernhard@bernhardheld.de>
146 * src/SDCCicode.c (operandOperation): fixed bug #874819
147 * src/SDCCast.c (decorateType): fixed
148 char foo (unsigned long ul) { return ul > 0; }
150 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann@web.de>
152 * doc/sdccman.lyx: Moved and added some sections, small changes
153 all over. Telling LaTeX to be less strict with word spacing
154 to better keep the right margin. Changed some notes about
155 maintainance of the ports in section 3.2.1 - is it OK like this?
157 2004-01-11 Vangelis Rokas <vrokas@otenet.gr>
160 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
161 convilong): modified to inform the pic16 port that builtin functions
164 PIC16 PORT specific changes:
165 * src/pic16/device.c pic16_dump_equates() added,
166 processor registers declared internally by the port are emitted in
167 the translation as equates,
168 * src/pic16/gen.c: inline code is passed unprocessed to the
170 * (pic16_popGetLit2): fnuction modified to take second operand as
171 pCodeOp pointer and not as literal,
172 * (popRegFromIdx): prefixed with pic16_,
173 * (pic16_popCombine2): modified to receive already allocated pCode
175 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
176 * (genFunction): initializes local stack frame and pushes on stack
177 all the registers used by this function,
178 * (genEndFunction): restores all registers from stack and restores
180 * src/pic16/glue.c (pic16emitRegularMap): various changes and
182 * (pic16glue): changed the program startup sequence,
183 * added new dbName code 'A' for functions placed in absolute section
184 * src/pic16/main.c: added function attribute _naked,
185 * added pragma 'code' to place a fnuction at an absolute address,
186 * added command line arguments --debug-ralloc and --pcode-verbose,
187 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
188 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
189 * (pic16_newpCodeOpLit2): modified to take the second operand as
191 * (pic16_printpBlock): modified to emit each function in a separate
193 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
194 UPPER for immediate operands,
195 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
197 * src/pic16/peeph.def: all peepholes with movff are commented out,
198 because there is a problem in the pcode peep optimizer,
199 * src/pic16/ralloc.c: the register allocator can now reuse local
200 function symbols for another function. This saves register usage.
201 * src/pic16/ralloc.h: added flag isLocal in structure regs,
203 Added file src/pic16/NOTES with information about program writing on
204 the current port version.
206 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann@web.de>
208 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
209 and peephole 252 (array access)
211 2004-01-09 Borut Razem <borut.razem@siol.net>
213 * src/SDCCmain.c : fixed #872250: -l command line defined library
214 files are scanned before standard library files
216 2004-01-10 Erik Petrich <epetrich@ivorytower.norman.ok.us>
218 * src/SDCCast.c (decorateType): fixed bug #874046
220 2004-01-09 Borut Razem <borut.razem@siol.net>
222 * support/scripts/sdcc.nsi: remove previous installation
224 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
226 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
227 bytes for last interrupt vector (mcs51)
228 * sdcc.spec: fixed typo
230 2004-01-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
232 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
233 gen51Code): more efficient parameter receive for --model-large
236 2004-01-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
239 * src/z80/main.c: added missed needLinkerScript flags (more than
240 one port structure defined in these file)
241 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
244 2004-01-08 Vangelis Rokas <vrokas@otenet.gr>
246 * src/SDCCmain.c: removed various references to DEFAULT_PORT
247 * src/port.h: added flag needLinkerScript in port->linker
248 structure to inform whether to create a .lnk file or not,
256 * src/z80/main.c: changed appropriately to configure
257 needLinkerScript flag
259 * src/pic16/gen.c (genAddrOf): fixed bug #863624
260 * src/pic/glue.c: added variable udata_section_name to
261 override default uninitialized data segment definition for
262 devices only with SHAREBANK memory (reported from Erik Epetrich)
263 * (pic14emitOverlay): modified to emit a commented overlay segment
264 directive when no overlay data exist
265 * (picglue): modified to emit uninitialized data segment
266 according to udata_section_name
267 * src/pic/main.c (_pic14_parseOptions): added command line
268 options --udata-section-name=[name] to override default
269 udata definition name
270 * modified _linkCmd and _asmCmd to include compiler passed
271 arguments via -W option
272 * src/pic16/main.c: added $l in _asmCmd, changed extension for
273 object file from '.rel' to '.o' in port->linker structure,
274 changed size of fptr from 2 to 3 in port structure
276 2004-01-07 Borut Razem <borut.razem@siol.net>
278 * support/scripts/sdcc.nsi: update PATH
279 * support/scripts/sdcc.ico: craeted
281 2004-01-07 Bernhard Held <bernhard@bernhardheld.de>
283 * device/include/Makefile.in: fix install
284 * doc/Makefile: fix install
286 2004-01-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
288 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
290 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
291 how the function variable allocation summary is displayed; also
292 include information about variables allocated to the overlay
295 2004-01-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
297 * as/mcs51/lkmain.c: Help about -Y option
298 * as/mcs51/lkarea.c: Fixed gcc warnings
300 2004-01-06 Bernhard Held <bernhard@bernhardheld.de>
302 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
304 * support/valdiag/tests/overflow.c: added
305 * src/SDCCast.c (decorateType),
306 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
309 2004-01-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
311 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
314 2004-01-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
316 A python script to validate compiler diagnostic messages. It can be
317 used to verify that sdcc complains about bad c source code and
318 gives a good location of the error.
319 * support/valdiag/Makefile,
320 * support/valdiag/valdiag.py,
321 * support/valdiag/tests/*
323 2004-01-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
325 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
326 * src/SDCCsymt.c (newEnumType),
328 * support/Util/SDCCerr.c,
329 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
331 * support/regression/tests/enum.c: added test for enum values that
332 require at least 2 bytes of storage.
334 2004-01-06 Vangelis Rokas <vrokas@otenet.gr>
336 * src/common.h: added ifndef/define/endif macros
337 around the header file.
338 Bug reported from Jesus Calvino-Fraga
340 2004-01-06 Bernhard Held <bernhard@bernhardheld.de>
343 * device/include/Makefile.in: don't install CVS directories
344 * device/lib/Makefile.in: added removal of CVS directories after install
345 * doc/Makefile: fixed install, added local_icons
346 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
347 * src/mcs51/gen.c (genRightShift): fixed bug #870788
348 * src/ds390/gen.c (genRightShift): fixed bug #870788
349 * src/SDCCast.c (decorateType): fixed bug #870781
351 2004-01-06 Vangelis Rokas <vrokas@otenet.gr>
353 PIC16 port related changes:
354 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
355 added variable stackPos,
357 * gen.c: genCall, assignResultValue: added support for
358 pushing/retrieving function parameters to/from stack,
359 genFunction,genEndFunction: setup stack frame for the
361 genAddrOf: will be changed according to bug 863624
363 * added files genutils.c and genutils.h which contain gen*
364 debugged and optimised functions extracted from gen.c
366 * glue.c: added variable 'externs' which holds extern symbols,
367 pic16emitRegularMap: is modified to properly handle relocatable
368 symbols under the new scheme,
369 pic16createInterruptVect: is modified
370 pic16printPublics: is modified to emit 'global' assembler directives,
371 added pic16_printExterns to print extern symbols,
372 pic16glue: initializes stack/frame pointer in the beginning of
373 the assembly output. Temporary hack, will be corrected later,
374 because gplink yet does not support stack and SDCC does not
375 yet support a type of crt0.o object to create the final binary.
377 * Removed many lines that contain 8051 legacy code.
378 * The code is finally placed under a 'code' directive.
379 * Added port specific options.
381 * _process_pragma: simplified since now we do not need *special*
382 include file to define SFR registers. But a separate header
383 will be needed. This will be developed later.
384 * _pic16_parseOptions: added, parses port specific options:
385 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
386 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
387 --preplace-udata-with=
389 * _pic16_setDefaultOptions: modified to initialize section names,
390 but hack is temporarly out of order since it needs improvement.
391 * _pic16_genAssemblerPreamble: configuration words are emitted by
392 their address instead of their name. This part is incomplete and
393 supports only the 18Fxx2 devices. Other devices will emit an error
394 during assembly since they do not contain the same set of config
396 * _pic16_genIVT: is modified,
398 * pcode.c: added definitions for some hardware registers that are needed
400 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
401 All PCI entries are updated. Now LFSR is supported.
402 * Removed pic16_pciTRIS is mentioned by mdubuc in source
403 * added pic16_newpCodeOpLit2 to support instructions with
404 two literal arguments
405 * pic16_pCode2str: corrected code that emits assembler instructions
406 with two literal operands and those that have an access bit modifier
407 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
408 this fixes a bug which caused some labels to be lost, when an
409 assembler directive was added, i.e. banksel,
410 * pic16_FixRegisterBanking: improved logic that causes the insertion
412 * InlineFunction: functions that are called once, are not any more
413 inlined. This can be a port option in the future,
415 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
417 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
418 hold the corresponding uninitialized symbols,
419 * pic16_allocProcessorRegister: registers have explicit marked the
421 * pic16_allocInternalRegister: registers are explicit marked as
423 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
424 processing list, so bit registers were lost,
427 * ralloc.h: added field 'accessBank' and original symbol operand
428 in register definition,
429 * removed the field isMapped from register definition,
431 ** Several functions have been removed from various sources:
432 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
433 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
434 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
435 pic16_assignRelocatableRegisters
437 ** others have been introduced:
438 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
439 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
441 2004-01-05 Vangelis Rokas <vrokas@otenet.gr>
443 * support/scripts/inc2h.pl: changed definition of BIT_AT
444 to emit 'sbit at' instead of 'bit at'. This was a request.
446 PIC16 port related preliminary changes:
447 * gen.c: prefixed function popRegFromString with
448 pic16_ and all references to it corrected
449 * pcode.c: all pic16_pc_* hardware registers prefixed
451 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
452 * ralloc.c: newReg(): when register is REG_SFR then
454 pic16_allocProcessorRegister(): marks register wasUsed=0
455 pic16_writeUsedRegs(): added a call to assign processor
456 registers via pic16_assignFixedRegisters
458 2004-01-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
460 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
461 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
462 variables in unused register banks. Also the SSEG is placed
463 wherever there is enough space for it, and IDATA can be anywhere
464 in internal RAM. For now compile using -Wl-Y[stack_size].
465 The mem file is different for this option as well, since it
466 makes no sense of talking about DSEG lenght.
468 2004-01-02 Vangelis Rokas <vrokas@otenet.gr>
470 * src/SDCClrange.c: fixed bug 869095 that caused segfault
471 in certain cases, e.g. when ROM assignment, patch provided
472 from Albert den Haan.
474 2004-01-01 Bernhard Held <bernhard@bernhardheld.de>
476 Many signedness and type propagation fixes:
477 * src/SDCCicode.c: made geniCodeCast() static
478 replaced SPEC_ by IS_ (cosmetic)
479 (operandOperation): fixed div and mod operation
480 (usualBinaryConversions): added support for promotion of char
481 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
482 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
483 (geniCodeAdd): an array index will stay unsigned, even if promoted
485 (geniCodeArray): ditto
486 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
487 * src/SDCCsymt.c (computeType): added more support for char;
488 promotion of char is selectable by promoteCharToInt, fixed signedness
490 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
491 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
492 * src/SDCCval (val*): replaced signedness calculation by
494 rearranged if-branches (cosmetic)
495 (valShift): added warning W_SHIFT_CHANGED
496 (valCompare): fixed problem with different types
497 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
498 * support/regression/tests/literalop.c: added many cases
499 * support/regression/tests/ast_constant_folding.c: changed finally to
501 * .version: new year, new version: 2.3.7
502 * src/SDCCmain.c (main): applied patch #866468
503 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
504 provided by Scott Bronson
505 * doc/sdccman.lyx: updated documentation for sdcdb
506 updated and added chapter tips
508 2004-01-01 Erik Petrich <epetrich@ivorytower.norman.ok.us>
510 * src/SDCCsymt.h: missing from yesterday's commits
512 2003-12-31 Erik Petrich <epetrich@ivorytower.norman.ok.us>
514 * src/SDCC.y (struct_or_union_specifier),
515 * support/Util/SDCCerr.c,
516 * support/Util/SDCCerr.h: verify that struct & union tags are used
519 2003-12-29 Erik Petrich <epetrich@ivorytower.norman.ok.us>
521 * src/SDCCglobl.h: missing from yesterday's commits
523 2003-12-28 Erik Petrich <epetrich@ivorytower.norman.ok.us>
525 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
526 sft_attributes, struct_declaration, parameter_declaration,
527 type_name, start_block, declaration_list),
528 * src/SDCC.lex (check_type): support redefinition of typedef names
530 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
532 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
533 aligned xdata arrays. Erik helped me with the if clause.
535 2003-12-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
537 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
540 2003-12-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
543 * src/SDCCast.c (newAst_),
545 * src/SDCCicode.c (ast2iCode, newiCode),
547 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
548 expr, statement, expression_statement, selection_statement,
549 iteration_statement, expr_opt, jump_statement): foundation for tracking
551 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
554 2003-12-19 Erik Petrich <epetrich@ivorytower.norman.ok.us>
556 * support/Util/SDCCerr.c,
558 * src/SDCCast.c (createCase, createDefault, decorateType),
559 * src/SDCClabel.c (labelUnreach),
560 * src/SDCC.y (labeled_statement, jump_statement): More improvements
562 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
563 (with thanks to Stas Sergeev)
564 * device/include/time.h,
565 * device/lib/time.c (CheckTime): suppress unreachable code warning
567 2003-12-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
569 * src/SDCCast.c (createIvalCharPtr),
570 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
572 * support/regression/tests/nullstring.c: tests for these two bugs
574 2003-12-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
576 * support/Util/SDCCerr.h,
577 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
578 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
579 about storage class and 'at' used inside struct or union
580 * src/SDCCBBlock.c (iCodeFromeBBlock),
581 * src/SDCCcse.c (ifxOptimize),
582 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
583 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
584 printIval, emitStaticSeg, emitOverlay),
585 * src/SDCClabel.c (deleteIfx),
586 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
587 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
588 gatherAutoInit, processParms),
589 * support/Util/SDCCerr.h,
590 * support/Util/SDCCerr.c (werrorfl): Support for better error location
591 reporting for post-parse errors.
593 2003-12-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
595 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
596 implicit casts via union; they don't work on big endian systems
597 (possible fix for bug #861138)
599 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann@web.de>
601 (committed by Erik Petrich <epetrich@ivorytower.norman.ok.us> on Frieder's behalf)
602 * src/mcs51/main.c: fixed the fix for bug #737001
604 2003-12-15 Borut Razem <borut.razem@siol.net>
606 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
608 2003-12-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
610 * support/makebin/makebin.c: put output in binary mode
612 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann@web.de>
614 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
615 xdata and data memory on startup. Set the environment variable
616 SDCC_NOGENRAMCLEAR to disable this.
617 * src/mcs51/peephole.def,
618 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
619 (allows non-interrupt and interrupt code to safely compete for a resource
620 without the non-interrupt code having to disable interrupts)
622 2003-12-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
624 * src/SDCCicode.c (geniCodeAdd),
625 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
626 with valFromType if type might be a pointer and host is big endian).
627 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
628 types, not just integer types.
629 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
630 multiply defined with mismatching "at" address.
632 2003-12-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
634 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
635 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
636 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
637 with embedded nulls (fixed bug #753752)
639 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann@web.de>
641 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
642 Apparently this did not see much testing (endless loop)
644 2003-12-11 Erik Petrich <epetrich@ivorytower.norman.ok.us>
646 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
648 2003-12-10 Erik Petrich <epetrich@ivorytower.norman.ok.us>
650 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
651 gracefully handle NULL memmap pointers
653 2003-12-08 Erik Petrich <epetrich@ivorytower.norman.ok.us>
655 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
656 instead of deleting the iCode when an operand is volatile
657 * src/z80/gen.c (genDummyRead),
658 * src/mcs51/gen.c (genDummyRead),
659 * src/ds390/gen.c (genDummyRead),
660 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
662 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
663 * src/SDCC.y: fixed bug #850420
665 2003-12-05 Erik Petrich <epetrich@ivorytower.norman.ok.us>
667 Applied z80 i/o port patch from Peter Townson and fixed some operators
668 to better handle operands in A register.
669 * device/include/z180.h
675 * src/z80/peeph-z80.def
679 2003-12-03 Erik Petrich <epetrich@ivorytower.norman.ok.us>
681 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
683 2003-12-01 Erik Petrich <epetrich@ivorytower.norman.ok.us>
685 * device/lib/hc08/_mullong.c: Removed extra #endif
687 2003-12-01 Erik Petrich <epetrich@ivorytower.norman.ok.us>
689 * sim/ucsim/hc08.src/inst.cc,
690 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
692 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
693 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
694 * device/include/stdarg.h: fixed varargs for hc08
695 * device/lib/Makefile.in,
696 * device/lib/hc08/Makefile,
697 * device/lib/hc08/_mulint.c,
698 * device/lib/hc08/_mullong.c: fixed some endian problems
700 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
702 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
703 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
704 * device/lib/_gptrget.c,
705 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
707 2003-11-27 Erik Petrich <epetrich@ivorytower.norman.ok.us>
709 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
710 * src/SDCCast.c (astErrors): fixed bug #846007
711 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
713 2003-11-26 Erik Petrich <epetrich@ivorytower.norman.ok.us>
715 * src/SDCCast.c (decorateType): disabled a transformation I added in
716 revision 1.188 (access to fields of a structure at an absolute address);
717 it breaks with bitfields, extern declarations, and gcse analysis.
718 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
719 could be assigned through a pointer, so don't complain.
720 * src/SDCCast.c (astErrors),
722 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
724 2003-11-26 Vangelis Rokas <vrokas@otenet.gr>
726 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
727 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
728 output of __config directives, since gpasm now supports them
729 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
730 pre-processor macro, i.e. -DMCU=p18f452
731 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
732 and modified to handle 'cast' icode similarly to '=' icode
733 * src/pic16/device.h (typedef struct PIC_device): added field
734 'extMIface' to indicate that chip has external memory interface
735 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
736 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
739 2003-11-26 Erik Petrich <epetrich@ivorytower.norman.ok.us>
741 * src/SDCC.y (pointer): fixed bug #846006
742 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
743 * src/SDCCast.c (decorateType): fixed bug #846009
744 * src/ds390/peeph.def,
745 * src/ds390/gen.c (genAnd, genOr),
746 * src/mcs51/peeph.def,
747 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
749 2003-11-25 Erik Petrich <epetrich@ivorytower.norman.ok.us>
751 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
758 2003-11-23 Klaus Flittner <klaus_flittner@gmx.de>
762 * src/SDCCbitv.c: added function to free a bitvector
764 * src/SDCClrange.c: added function to recompute the liveranges
766 * src/ds390/ralloc.c,
768 * src/mcs51/ralloc.c,
770 * src/pic16/ralloc.c,
772 * src/z80/ralloc.c: recompute the liveranges after register packing
774 2003-11-21 Klaus Flittner <klaus_flittner@gmx.de>
776 * src/SDCCloop.c (newInduction): fixed bug #845630
778 2003-11-21 Erik Petrich <epetrich@ivorytower.norman.ok.us>
780 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
781 inadvertantly left behind from my 2003-11-12 change
783 2003-11-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
785 Updated headers I neglected to commit yesterday.
789 2003-11-19 Erik Petrich <epetrich@ivorytower.norman.ok.us>
791 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
792 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
793 * src/SDCCopt.c (eBBlockFromiCode),
794 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
795 the creation of the key hash table from the sequencing so it can be used
796 earlier (for some GCSE bug fixes still pending)
798 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann@web.de>
800 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
801 * support/regression/tests/addsub.c: testing genPlus shortcut
803 2003-11-15 Borut Razem <borut.razem@siol.net>
805 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
807 2003-11-15 Erik Petrich <epetrich@ivorytower.norman.ok.us>
809 * src/SDCCcse.c (cseBBlock): fixed bug #527779
810 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
811 ordering is immaterial.
812 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
814 2003-11-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
816 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
817 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
818 (SIGSEV) of bug #840381
819 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
820 unlink new file before rename if new and old filenames are the same)
822 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann@web.de>
824 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
825 uninitialized variables) for the mcs51. Set environment variable
826 SDCC_GENRAMCLEAR to test.
827 xdata initialization slightly shorter
829 2003-11-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
832 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
833 #838241 & 780691 (basicly the same bug)
834 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
835 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
837 2003-11-11 Bernhard Held <bernhard@bernhardheld.de>
839 * src/SDCCmain.c (linkEdit): "fix" #834252
841 2003-11-11 Erik Petrich <epetrich@ivorytower.norman.ok.us>
843 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
845 * src/SDCC.y: fixed bug #819403
847 2003-11-08 Erik Petrich <epetrich@ivorytower.norman.ok.us>
849 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
850 the reentrant attribute.
851 * src/hc08/gen.c (genPackBits): added missing stack readjustment
852 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
854 * src/SDCCast.c (decorateType): fixed bug with storage class not being
855 updated during pointer dereference; f.e. ~(((char *)1)*) was being
856 erroneously reduced to a literal.
857 * src/hc08/ralloc.c (packRegisters, rematStr),
858 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
861 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann@web.de>
863 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
864 * doc/sdccman.lyx: changed from 'article' to 'book'
865 * doc/Makefile: readded test_suite_spec and cdbfileformat
867 2003-11-08 Bernhard Held <bernhard@bernhardheld.de>
869 * device/include/stdlib.h: include malloc.h to comply with ANSI
870 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
872 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann@web.de>
874 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
875 * doc/clean.mk: also remove *.out files
876 * doc/sdccman.lyx: some additions, larger top/bottom margins
878 2003-11-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
880 * src/SDCC.y: fixed bug #837365
881 * support/regression/tests/bitopcse.c
882 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
883 a symbol (might be valop instead)
884 * device/lib/Makefile.in: added errno.c to HC08SOURCES
885 * device/lib/clean.mk: added hc08 to the cleaning list
887 2003-11-04 Borut Razem <borut.razem@siol.net>
889 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
891 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
892 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
893 malloc is declared in standard stdlib.h
895 2003-11-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
897 * device/lib/hc08/Makefile: need to clean .rel not .o files
898 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
900 2003-11-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
910 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
911 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
912 tests (which uses the port's oclsExpense function)
918 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
920 2003-11-04 Erik Petrich <epetrich@ivorytower.norman.ok.us>
922 * src/SDCCcse.c (ifxOptimize),
923 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
924 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
925 deleting the IFX iCode.
926 * src/hc08/ralloc.c: reduced unneeded slocs
927 * src/hc08/gen.c: fixed bug in asmopToBoolean
929 2003-11-04 Borut Razem <borut.razem@siol.net>
931 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
932 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
933 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
934 transferred to configure
936 2003-11-03 Bernhard Held <bernhard@bernhardheld.de>
938 Use headers defined in the C[++] standards:
939 * sim/ucsim/gui.src/serio.src/fileio.cc
940 * sim/ucsim/gui.src/serio.src/frontend.cc
941 * sim/ucsim/gui.src/serio.src/main.cc
942 * sim/ucsim/gui.src/serio.src/posix_signal.cc
943 * support/Util/NewAlloc.c
949 2003-11-03 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
951 * Added MSVC projects for hc08 assembler and linker:
952 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
953 /as/hc08/link_hc08.dsp
955 2003-11-03 Martin Helmling <Martin.Helmling@octo-soft.de>
957 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
959 2003-11-02 Bernhard Held <bernhard@bernhardheld.de>
961 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
963 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann@web.de>
965 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
967 2003-10-31 Borut Razem <borut.razem@siol.net>
969 * support/cpp2/cpplib.h,
970 support/cpp2/cpplib.c,
971 support/cpp2/cpplex.c,
972 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
973 to switch _asm block preprocessing on / off. Default is
974 #pragma preproc_asm +
976 2003-10-31 Borut Razem <borut.razem@siol.net>
978 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
979 when outputting comment blocks (when executed with -C option) and
980 _asm (SDCPP specific) blocks
982 2003-10-31 Erik Petrich <epetrich@ivorytower.norman.ok.us>
984 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
986 2003-10-31 Klaus Flittner <klaus_flittner@gmx.de>
988 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
990 2003-10-31 Bernhard Held <bernhard@bernhardheld.de>
992 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
993 * src/SDCCast.c (decorateType): fixed bug #832664
995 2003-10-31 Borut Razem <borut.razem@siol.net>
997 * support\cpp2\cpplex.c: fixed for SDCPP:
998 comments(when executed with -C option) and _asm blocks
999 were included even if they where in skipped #if block.
1000 Applied solution from GCC cpp 3.3.2
1002 2003-10-31 Borut Razem <borut.razem@siol.net>
1004 * src/SDCC.lex: sdcc now understands both formats:
1005 '# <line_number> <file_name>' and
1006 '#line <line_number> <file_name>'
1007 * support/cpp2/cppmain.c: sdcpp now generates the standard
1008 '# <line_number> <file_name>' instead of former
1009 '#line <line_number> <file_name>'
1011 2003-10-30 Borut Razem <borut.razem@siol.net>
1013 * support/cpp2/cpphash.h,
1014 * support/cpp2/cpplib.h
1015 * support/cpp2/cpplex.c,
1016 * support/cpp2/cppmain.c,
1017 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
1019 2003-10-30 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1021 Fixed a number of problems revealed by bug #827883.
1022 * src/SDCCloop.c (loopInvariants): Spill location of the
1023 result operand should be recomputed if extracted from
1024 a loop. Also, don't extract assignments of an iTemp
1026 * src/SDCCast.c (isConformingBody): loop reversal should
1027 not occur if the control variable is involved with a
1028 relational operator.
1030 2003-10-28 Bernhard Held <bernhard@bernhardheld.de>
1032 * .version: bumped to 2.3.6 to reflect the big improvements
1033 made by Erik and Klaus. Thanks!
1035 2003-10-28 Klaus Flittner <klaus_flittner@gmx.de>
1037 Replaced the livrange code.
1038 * src/SDCClrange.c: added new LR code
1040 * src/SDCCBBlock.h: removed remainig parts from old LR code
1041 * src/ds390/ralloc.c,
1042 * src/ds390/gen.c: minor fixes to make it work with new code
1044 2003-10-28 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1049 * src/hc08/ralloc.c: Fix various warnings related to the hc08
1050 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
1051 (tweaked fix for bug #818696)
1053 2003-10-23 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1055 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
1057 2003-10-23 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1060 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
1061 * src/mcs51/gen.c (gencjneshort),
1062 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
1063 more efficient (per Scott Bronson's suggestion)
1065 2003-10-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1067 Extended the semantics of the critical keyword to include
1068 individual statements. See RFE #827755 and #799831
1073 * support/Util/SDCCerr.c
1074 * support/Util/SDCCerr.h
1079 2003-10-19 Borut Razem <borut.razem@siol.net>
1081 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
1083 2003-10-19 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1085 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
1087 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
1088 and predecrement operand is displayed
1090 2003-10-13 Bernhard Held <bernhard@bernhardheld.de>
1092 * src/SDCCval.c (valMinus): fixed bug #826041
1094 2003-10-15 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1096 Some hc08 related updates that I missed earlier
1097 * sim/ucsim/stypes.h
1098 * support/regression/ports/hc08/spec.mk
1100 2003-10-15 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1102 New target "hc08" for the Motorola 68hc08 family of micros
1110 * sim/ucsim/hc08.src/*
1111 * sim/ucsim/configure.in
1112 * src/ucsim/configure
1113 * sim/ucsim/packages_in.mk
1116 * device/include/mc68hc908qy.h
1118 * device/lib/Makefile.in
1119 * support/regression/ports/hc08/*
1120 * support/regression/Makefile
1122 2003-10-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1124 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
1126 * src/ds390/gen.c (genCast): fixed bug #821957
1128 2003-10-13 Bernhard Held <bernhard@bernhardheld.de>
1130 * device/lib/logf.c: "fixed" overlay bug
1131 * support/regression/ports/host/spec.mk: added m library
1132 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
1133 * support/regression/tests/float_trans: added (for Eric)
1135 2003-10-12 Bernhard Held <bernhard@bernhardheld.de>
1137 * src/mcs51/gen.c (genCpl): fixed bug
1138 http://sf.net/mailarchive/message.php?msg_id=6263915
1140 2003-10-10 Bernhard Held <bernhard@bernhardheld.de>
1142 * src/SDCCast.c (decorateType): added extended constant folding
1143 * src/SDCCsymt.c (computeType): cleanup
1144 * src/SDCCval.c (valShift): minor optimization
1145 * support/regression/tests/ast_constant_folding.c: added
1147 2003-10-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1149 * src/SDCCmain.c: removed some unintended changes
1151 2003-10-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1153 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
1154 * src/z80/gen.c: fixed part of bug #817589
1155 * src/SDCCsymt.c (checkFunction): fixed bug #817895
1157 2003-10-08 Bernhard Held <bernhard@bernhardheld.de>
1159 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
1170 * src/ds390/ralloc.c
1172 * src/mcs51/ralloc.c
1174 * src/pic16/ralloc.c
1177 * src/z80/gen.c: removed unused label "release:"
1179 2003-10-06 Borut Razem <borut.razem@siol.net>
1181 * src/SDCC.lex: removed definition of unused variables
1182 save_optimize and save_options
1184 2003-10-06 Bernhard Held <bernhard@bernhardheld.de>
1186 * clean.mk: removed '=' in "-maxdepth=1"
1187 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
1188 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
1190 2003-10-06 Borut Razem <borut.razem@siol.net>
1192 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
1193 my_unput() replaced by unput()
1195 2003-10-05 Bernhard Held <bernhard@bernhardheld.de>
1197 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
1198 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
1199 type-punned pointer will break strict-aliasing rules"
1200 Old LR behaviour is again default; Klaus' LR can be choosen by
1201 defining the environment variable LRKLAUS
1205 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
1206 * clean.mk: fixed removal of files in bin/CVS/
1207 * device/lib/clean.mk: fixed removal of directories small and large
1208 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
1210 * src/SDCCval.c: removed superflous test for pedantic
1212 2003-10-05 Borut Razem <borut.razem@siol.net>
1214 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
1215 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
1216 message "unmatched #pragma SAVE and #pragma RESTORE"
1218 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1220 * doc/sdccman.lyx: various additions and updates (interrupts, inline
1221 assembly, critical functions, atomic, nojtbound)
1223 2003-10-04 Bernhard Held <bernhard@bernhardheld.de>
1225 Applied liferange patch from Klaus Flittner <klaus_flittner@gmx.de>
1231 2003-10-03 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1234 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1236 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1238 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1239 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
1240 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
1242 2003-10-02 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1244 * src/z80/gen.c (genRet): fixed bug #524753
1245 * src/z80/gen.c (genCast): fixed internal error on cast from
1247 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
1248 fix for bug #477835 to the z80
1249 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
1250 for tracking iCodes in the peephole optimizer for z80
1252 2003-10-01 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1254 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
1255 the other part of bug #814548
1256 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
1258 2003-09-30 Bernhard Held <bernhard@bernhardheld.de>
1260 * src/SDCCcse.c: fixed part of bug #814548
1262 2003-09-28 Borut Razem <borut.razem@siol.net>
1264 * src/asm.c: rewrite of printILine() to use temporary file instead
1266 * src/xa51/main.c: commented out declaration of int rewinds
1268 2003-09-27 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1270 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
1272 2003-09-26 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1274 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
1275 * src/asm.c (printILine): Fixed bug #811015
1277 2003-09-22 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1279 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
1282 2003-09-21 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1284 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
1285 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
1286 to correctly handle general case of AOP_PAIRPTR
1287 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
1289 2003-09-21 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1291 * src/mcs51/ralloc.c (fillGaps),
1292 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
1293 register positioning bug)
1295 2003-09-21 Bernhard Held <bernhard@bernhardheld.de>
1297 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
1299 2003-09-19 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1301 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
1302 genCodePointerGet, genGenPointerGet, genFarPointerSet,
1303 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
1304 (ralloc doesn't intentionally do this now, but perhaps later)
1305 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
1306 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
1307 register positioning bugs (Fixed bug #762602 and #795325)
1308 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
1310 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
1311 lines that --i-code-in-asm generates
1313 2003-09-18 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1315 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
1316 trying to fclose a FILE* that was already closed.
1318 2003-09-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1320 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
1321 of const struct should be treated as if const themselves)
1323 2003-09-18 Bernhard Held <bernhard@bernhardheld.de>
1325 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
1327 2003-07-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1329 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
1330 Unix (/n) and DOS (/r/n) line terminations.
1332 2003-09-17 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1334 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
1337 2003-09-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1339 * src/mcs51/gen.c (genFunction, genEndFunction),
1340 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
1341 and restore of EA so that stack offsets to parameters are
1342 correct when using both critical and reentrant/stack-auto.
1343 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
1344 size (can be triggered in error if sloc is shared between
1345 different sized objects)
1346 * device/include/float.h: fixed macros to explicitly use
1347 unsigned long where needed
1349 2003-09-15 Bernhard Held <bernhard@bernhardheld.de>
1351 Feature req. 799831: added code to allow nesting of critical functions
1352 * src/mcs51/gen.c (genFunction, genEndFunction)
1353 * src/ds390/gen.c (genFunction, genEndFunction)
1355 2003-09-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1357 * src/SDCCsymt.c (sclsFromPtr),
1359 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
1360 support for standard C idiom of memory mapped variables; for
1361 example, *((xdata int*)0x1234) = 1 is now internally equivalent
1362 to xdata int at 0x1234 tempvar = 1.
1363 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
1364 provided by Akiya ISHIDA
1366 2003-09-13 Bernhard Held <bernhard@bernhardheld.de>
1368 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
1369 * src/SDCCval.c (constVal): added reduction from int to char
1370 * src/SDCCval.c (valMult, valDiv): fixed sign handling
1371 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
1372 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
1374 * support/regression/tests/shifts.c: fixed
1376 2003-09-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1378 * src/z80/gen.c (genXor): Fixed bug #805445
1380 2003-09-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1382 Fixed bug #621531 (const & volatile confusion in the type chain).
1383 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
1384 refer to the const or volatile state of the pointer itself.
1396 * src/pic16/ralloc.c
1397 * support/regression/tests/const.c
1399 2003-09-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1401 When checking for duplicated modules, use absolute paths
1402 instead of relative paths. Files changed:
1407 2003-09-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1409 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
1411 2003-09-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1413 * device/include/string.h: added size_t typedef, changed
1414 prototypes to use size_t, eliminated separate reentrant and
1415 non-reentrant declarations, added _memmove declaration
1416 * device/lib/_memcpy.c: changed to use size_t instead of int,
1417 changed /4 to >>2 to avoid division library call
1418 * device/lib/_memcmp.c,
1419 * device/lib/_memset.c,
1420 * device/lib/_strncat.c,
1421 * device/lib/_strncpy.c,
1422 * device/lib/_strncmp.c: changed to use size_t instead of int
1423 * device/lib/_memmove.c: new file (fixed bug #772294)
1424 * device/lib/Makefile.in: added _memmove.c
1425 * device/lib/z80/asm_strings.s: fixed bug #772290
1426 * support/regression/tests/bitfields.c: attempt to fix host assertion
1427 failure on amd64-unknown-linux2.2
1429 2003-09-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1431 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
1432 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
1433 * as/z80/asmain.c (main): fixed bug #801766
1435 2003-09-06 Bernhard Held <bernhard@bernhardheld.de>
1437 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
1440 2003-09-05 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1442 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
1443 reported in bug #800609
1445 2003-09-04 Vangelis Rokas <vrokas@otenet.gr>
1447 * Top header beautifications in src/pic16 directory:
1448 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
1449 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
1450 pcoderegs.h, ralloc.c, ralloc.h
1451 * main.c: added top header and GPL license notice
1452 * pcode.c: fixed the if-conditional warning
1454 2003-09-04 Bernhard Held <bernhard@bernhardheld.de>
1456 * device/lib/_mullong.c: replaced int by short for gcc
1458 2003-08-31 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1460 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
1461 and JUMPTABLE iCodes properly now (worked by accident before)
1462 * src/mcs51/gen.c (leftRightUseAcc),
1463 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
1464 iCode properly now. Use getSize instead of nRegs since a & b
1465 aren't part of the nRegs tally.
1467 2003-08-31 Vangelis Rokas <vrokas@otenet.gr>
1469 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
1470 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
1471 before instructions that use the _STATUS register
1473 2003-08-31 Bernhard Held <bernhard@bernhardheld.de>
1475 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
1476 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
1477 fetching of the pointer
1478 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
1479 copied from genNearPointerSet()
1480 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
1481 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
1482 If they pop r0/r1 they must be called in the opposite order than aopOp().
1483 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
1484 (resp. --stack-auto), prepared for --xstack
1486 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1488 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
1490 2003-08-28 Bernhard Held <bernhard@bernhardheld.de>
1492 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
1493 these ports have their own __sdcc_external_start()
1495 2003-08-26 Bernhard Held <bernhard@bernhardheld.de>
1497 pic patch provided by Slade Rich <slade_rich@yahoo.com>
1498 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
1499 type for bits was changed. It resulted in bit variables becoming
1500 global, which is not permitted in PIC 14 assembly output.
1502 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1504 * doc/sdccman.lyx: various additions and updates. Rearranged sections
1506 2003-08-22 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1508 Z80 and MCS51 linkers complaint if a public symbol is defined
1509 in more than one library module:
1513 * as/mcs51/Makefile.in
1515 2003-08-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1517 A few small changes that speed up the peephole optimizer.
1521 2003-08-22 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1523 Try to make the peephole optimizer smarter by maintaining
1524 an association between the assembly source code and the
1525 iCodes that originated them. Put this information to use
1526 with a new peephole rule condition "notVolatile" so that
1527 the rules can be aggressive yet still safe.
1532 * src/mcs51/peeph.def
1534 2003-08-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1538 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
1539 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
1540 if the left or right operand symbols have the accuse flag set.
1542 2003-08-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1544 Changed the type of the result of the ! (NOT) operator to char;
1545 previously it returned the same type as the source. This allows
1546 us to eliminate all the genFloatNot functions (all of its target
1547 implementations were very buggy) since !float can use the same
1550 * src/SDCCicode.c (ast2iCode): ! returns char
1551 * src/mcs51/gen.c (genNot, genNotFloat),
1552 * src/ds390/gen.c (genNot, genNotFloat),
1553 * src/z80/gen.c (genNot, genNotFloat),
1554 * src/pic/gen.c (genNot, genNotFloat),
1555 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
1557 2003-08-19 Bernhard Held <bernhard@bernhardheld.de>
1559 pic patch provided by Slade Rich <slade_rich@yahoo.com>
1560 1. Interrupt would not compile properly. Ensure PCLATH register is saved
1561 during interrupts. Ensure WSAVE is located at a shared bank address.
1562 2. Fixed page selection in some places
1563 3. Fixed BTFSS/C to where necessary use registers directly and not simply
1564 the registers name strings.
1565 4. Fixed "signed / unsigned compare" compiler warnings.
1566 5. The PIC port manages its own allocation of the general purpose
1567 registers, but makes no attempt to reuse them. As a result when
1568 compiling it soon runs out of general purpose registers. Some
1569 additional code was added to the files pcode.c and device.c to walk
1570 through the function call tree and rename the registers so that they
1580 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
1581 genPlus() & genMinus() when the result is the same as left or right
1583 2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1585 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
1587 2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1589 Made bitfield a distinct type from bit so that bitfields
1590 convert as per ANSI C and bits retain their traditional
1591 boolean style behaviour. Implemented bitfield support in
1599 * src/ds390/gen.c: bit v bitfield split
1600 * src/z80/gen.c: New support for bitfields
1601 * support/regression/tests/bitfields.c: reenabled z80,
1604 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1606 Rules 246.x, 247.x relate to bitfields, the others speed up
1607 access to xdata mapped I/O devices.
1609 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
1611 2003-08-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1613 Cleaned up genPackBits and genUnpackBits and added two helper
1614 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
1615 for literal assignments in genPackBits (thanks to Frieder for
1621 2003-08-16 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1623 Fixed bug #748310 (pointer to function type mishandled when the
1624 function name is omitted). Also fixed a SIGSEGV when a function
1625 attribute (reentrant, etc) is used on a non-function or on a
1626 function but misplaced before the parameter list.
1628 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
1630 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
1631 * support/Util/SDCCerr.h,
1632 * support/Util/SDCCerr.c: Added func attr misuse error msg
1634 2003-08-13 Bernhard Held <bernhard@bernhardheld.de>
1636 Fixed bug #787649 by anonymous
1637 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
1638 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
1640 2003-08-14 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1642 Fixed numerous bitfield problems.
1644 * src/SDCC.y: More bitfield related error checking
1646 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
1647 * support/Util/SDCCerr.h,
1648 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
1649 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
1650 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
1651 * support/regression/tests/bitfields.c: tests added
1653 2003-08-13 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1655 Made the constant following the "interrupt" keyword optional. If
1656 omitted, the function will not automatically be given an entry
1657 in the interrupt vector table (similar to #pragma NOIV, but
1658 less syntacticly kludgy). The interrupt number is also now
1659 range checked. Also fixed a bug in the high order bit example
1666 * support/Util/SDCCerr.c
1667 * support/Util/SDCCerr.h
1670 2003-08-13 Bernhard Held <bernhard@bernhardheld.de>
1672 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
1673 * src/SDCCicode.c (operandOperation): rewritten some ops
1674 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
1675 * src/SDCCsymt.c (computeType): literals are handled the same way as any
1677 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
1678 be re-activated by defining REDUCE_LITERALS)
1679 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
1680 unsigned, but are signed by default
1681 * src/SDCCval.c (constVal): rearranged
1682 * src/SDCCval.c (valMod): preliminary fix
1683 * src/SDCCval.c (valCastLiteral): use TYPE_* types
1684 * support/regression/literalop.c: added, work in progress
1686 2003-08-12 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1688 Generate warnings for useless declarations like "char data;"
1689 that don't do what new users expect.
1692 * support/Util/SDCCerr.h
1693 * support/Util/SDCCerr.c
1695 2003-08-09 Bernhard Held <bernhard@bernhardheld.de>
1697 * src/SDCCval.c (valMult): fix overflow detection of negative int
1699 2003-08-07 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1701 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
1703 Changes to support big endian targets:
1716 2003-08-06 Bernhard Held <bernhard@bernhardheld.de>
1718 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
1719 * device/lib/time.c: fixed warning "integer overflow in expression"
1721 2003-08-05 Bernhard Held <bernhard@bernhardheld.de>
1723 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
1724 * src/SDCCval.c (constVal): changed default to signed; hex and octal
1725 constants are unsigned; added recognition of "u" flag for unsigned
1726 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
1727 * src/SDCCval.c (valDiv, valMod): fixed signdness
1728 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
1729 signedness of modulo, left and right shift
1730 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
1731 * support/Util/SDCCerr.h: added warning W_INT_OVL
1732 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
1733 * src/SDCCast.c (ast_print): improved output of constants
1735 2003-08-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1737 Fixed some warnings when building with MSVC:
1750 * support\cpp2\cpplib.c
1754 2003-08-03 Bernhard Held <bernhard@bernhardheld.de>
1756 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth@isi.edu>
1758 2003-08-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1760 * support\librarian\clean.mk: Do not remove Makefile.
1761 * support\librarian\Makefile: added.
1763 2003-08-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1765 Added librarian to MSVC build:
1768 * support\librarian\librarian.dsp
1770 'configure' not needed for librarian, removed:
1771 * support\librarian\configure
1772 * support\librarian\configure.in
1773 * support\librarian\config_in.h
1774 * support\librarian\Makefile.in
1776 Hopefully these ones built the librarian and the rest of sdcc properly:
1778 * Makefile.common.in
1780 Messed up 'configure', so revert to previous version:
1784 2003-07-31 Bernhard Held <bernhard@bernhardheld.de>
1786 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
1787 there, while the mantissa of a double is "only" 53 bits wide.
1789 2003-07-31 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1791 Adding sdcclib to the build. MSVC project coming soon.
1792 Files added/changed:
1794 * support\librarian\clean.mk
1795 * support\librarian\configure
1796 * support\librarian\configure.in
1797 * support\librarian\config_in.h
1798 * support\librarian\Makefile.bcc
1799 * support\librarian\Makefile.in
1800 * support\librarian\sdcclib.c
1803 * Makefile.common.in
1807 2003-07-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1809 Linker now complaints if linked modules have conflicting options, for
1810 example, one compiled using --model-large and another one compiled with
1811 --model-small. The following files were modified:
1833 2003-07-28 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1835 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
1836 as/mcs51/lklibr.c: Generate a warning when a library is not found.
1838 2003-07-28 Bernhard Held <bernhard@bernhardheld.de>
1840 * src/z80/mappings.i: fix _mul[us][int,long] entries
1842 2003-07-26 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1844 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
1846 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
1848 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
1849 * support/regression/tests/bitopcse.c: added
1857 2003-07-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1859 added support for new library format to z80, gbz80 linkers:
1865 2003-07-24 Bernhard Held <bernhard@bernhardheld.de>
1867 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
1868 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
1870 2003-07-23 Bernhard Held <bernhard@bernhardheld.de>
1872 added DUMMY_READ_VOLATILE:
1881 * src/SDCCcse.c (algebraicOpts): many improvements
1882 * src/SDCCcse.h: removed algebraicOpts()
1883 * src/SDCCicode.c (picDummyRead): added
1885 2003-07-23 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1887 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
1888 "Insufficient space in data memory".
1890 2003-07-20 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1892 * src/mcs51/gen.c: fixed bug #771358
1893 * src/z80/gen.c: fixed bug #759087
1895 2003-07-20 Bernhard Held <bernhard@bernhardheld.de>
1897 * src/pic16/glue.c: minor cleanup by Vangelis
1899 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann@web.de>
1901 * device/include/regc515c.h: fixed #758477
1902 * device/lib/_gptrget.c: saving some cycles in generic pointer get
1903 * device/lib/_gptrput.c: saved a few bytes
1904 * my tab spacing is 8, yours too?)
1905 * device/lib/_ser.c: process RX bytes earlier than TX bytes
1906 * device/lib/serial.c: process RX bytes earlier than TX bytes
1907 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
1909 2003-07-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
1911 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
1913 2003-07-17 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1915 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
1917 2003-07-17 Bernhard Held <bernhard@bernhardheld.de>
1919 * device/lib/Makefile.in: bad fix, reverted to 1.43
1921 2003-07-16 Bernhard Held <bernhard@bernhardheld.de>
1923 * device/lib/Makefile.in: added missing z80 object files
1925 2003-07-14 Bernhard Held <bernhard@bernhardheld.de>
1927 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
1928 pic16 progress by Vangelis:
1943 * pic16/pcodepeep.c:
1946 2003-07-13 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1948 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
1950 2003-07-12 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1952 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
1953 added gbz80 build to MSVC project.
1954 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
1955 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
1956 from 8051 stuff and setup so it links using a .lnk file.
1958 2003-07-06 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1960 * support/librarian/sdcclib.c: sdcc librarian.
1961 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
1964 2003-07-03 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1966 * as/mcs51/lkmain.c: properly handle extensions in function afile.
1968 2003-07-02 Borut Razem <borut.razem@siol.net>
1970 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
1971 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
1972 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
1973 src/xa51/main.c, src/z80/main.c:
1974 virtualization of glue() function: each port has it's own glue function,
1975 which is accessed by do_glue function pointer in PORT.general structure
1977 2003-07-01 Kevin Vigor <kevin@vigor.nu>
1979 * DS800C400 fun, improved ROM interface and tinibios.
1981 2003-06-27 Kevin Vigor <kevin@vigor.nu>
1983 * More support for DS80C400. Now includes beginning of interface to ROM.
1985 2003-06-25 Bernhard Held <bernhard@bernhardheld.de>
1987 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
1989 2003-06-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
1991 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
1993 2003-06-19 Borut Razem <borut.razem@siol.net>
1995 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
1997 2003-06-19 Borut Razem <borut.razem@siol.net>
1999 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
2000 fixed Z80 port - crt0.o: cannot open.
2002 2003-06-19 Bernhard Held <bernhard@bernhardheld.de>
2004 * support/Util/MySystem.c (merge_command): revert bad fix
2006 2003-06-18 Borut Razem <borut.razem@siol.net>
2008 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
2010 2003-06-18 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2012 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2013 option --use-stdout sends errors to stdout instead of stderr.
2015 2003-06-18 Bernhard Held <bernhard@bernhardheld.de>
2017 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
2019 2003-06-15 Borut Razem <borut.razem@siol.net>
2021 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
2022 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
2023 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
2024 fixed width array of pointers replaced with sets;
2025 multiple include and lib paths ared transferred to preprocessor and linker
2026 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
2027 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
2028 fixed width array of pointers
2029 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
2030 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
2031 fixupPath(), getPathDifference()
2032 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
2033 fixed width array of pointers
2035 2003-06-11 Bernhard Held <bernhard@bernhardheld.de>
2037 * src/pic16/ralloc.c: fix warnings
2038 * src/pic16/pcode.c: fix warning
2040 2003-06-10 Scott Dattalo <scott@dattalo.com>
2042 Scott D. for Vangelis Rokas (vrokas@otenet.gr). I (scott) don't
2043 know all the details, but essentially this set of changes enable
2044 the pic16 port to generate movff instructions and generate assembler
2049 * src/pic16/pcode.c:
2050 * src/pic16/device.c:
2052 * src/pic16/pcode.h:
2053 * src/pic16/pcoderegs.c:
2054 * src/pic16/ralloc.c:
2055 * src/pic16/ralloc.h:
2057 2003-06-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2059 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2060 added option --vc, so sdcc errors and warnings are compatible with
2061 Microsoft Visual Studio.
2063 2003-06-07 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2065 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
2066 device/lib/libfloat.lib: added atof function.
2068 2003-06-04 Bernhard Held <bernhard@bernhardheld.de>
2070 * doc/sdccman.lyx: updated to Lyx 1.3
2071 * doc/cdbfileformat.lyx: updated to Lyx 1.3
2072 * doc/test_suite_spec.lyx: updated to Lyx 1.3
2073 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
2075 2003-06-03 Bernhard Held <bernhard@bernhardheld.de>
2077 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas@otenet.gr>
2079 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2081 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
2082 additions to the "related tools/documentation" section
2084 2003-06-02 Bernhard Held <bernhard@bernhardheld.de>
2086 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
2088 2003-05-29 Bernhard Held <bernhard@bernhardheld.de>
2090 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn@vt.edu>
2091 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
2093 2003-05-28 Bernhard Held <bernhard@bernhardheld.de>
2095 * doc/sdccman.lyx: fix double dash and other minor things
2096 * doc/Makefile: fix double dash
2098 2003-05-28 Karl Bongers(patches from Martin Helmling)
2099 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
2100 condition and ignore commands.
2102 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2104 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
2105 is in parts still quite out of date, I did changes as far as I felt makes sense
2106 for a non-native english speaker.
2107 Please feel free to add to the manual or to correct my changes.
2108 * doc/Makefile: undid touching the date of intermediate tex files.
2110 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2112 * doc/sdccman.lyx: Manual has an index now
2114 2003-05-25 Bernhard Held <bernhard@bernhardheld.de>
2116 Finalize muluint/mulsint and mululong/mulslong merging:
2117 * device/lib/_mulint.c
2118 * device/lib/_mullong.c
2119 * device/lib/gbz80/mul.s
2120 * device/lib/gbz80/stubs.s
2121 * device/lib/z80/mul.s
2122 * device/lib/z80/stubs.s
2123 * src/SDCCsymt.c (initCSupport)
2125 2003-05-25 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2127 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
2128 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
2129 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
2130 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
2133 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2135 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
2136 the regression tests I'm not brave enough to enable 245.b, 245.c
2137 * doc/sdccman.lyx: added latex preamble for hyperref package.
2138 Using pdflatex this will give you a hyperlinked pdf file with
2139 bookmarks. (prepend '%' before /usepackage if this breaks something)
2141 2003-05-24 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2143 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
2145 2003-05-22 Bernhard Held <bernhard@bernhardheld.de>
2147 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
2149 2003-05-21 <johan@balder>
2151 * src/SDCCglue.c (printIval): fixed bug #739934
2153 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
2155 Applied patch from bug 737905 (renamed yylineo to mylineno):
2162 * src/pic16/pcode.c: Cleaned warnings
2163 * src/pic16/pcodeflow.c: Cleaned warnings
2164 * src/pic16/pcoderegs.c: Cleaned warnings
2166 2003-05-19 Scott Dattalo <scott@dattalo.com>
2168 * src/pic16/pcode.c: Cleaned warnings
2169 * src/pic16/pcodepeep.c: Cleaned warnings
2170 * src/pic16/ralloc.c: Cleaned warnings
2172 2003-05-19 Bernhard Held <bernhard@bernhardheld.de>
2174 * doc/sdccman.lyx: fixed bug 739745
2175 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
2177 2003-05-18 Bernhard Held <bernhard@bernhardheld.de>
2179 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
2180 it can be defined with CFLAGS when running configure
2181 * src/SDCCmain.c: fixed compiling + linking with object files
2183 2003-05-18 Vangelis Rokas (vrokas@otenet.gr)
2185 * configure.in: configure for pic16 port,
2186 added --disable-pic16-port
2187 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
2188 * src/SDCCmain.c: linkOptions is changed to set *,
2189 added if/endif conditional macros to remove options help
2190 messages from optionsTable when a port is not configured, added
2191 support for the PIc16 port in the ports table, when executing
2192 the compiler with no port specified on command line, a default
2193 port is selected with the new macro DEFAULT_PORT which is
2194 defined in port.h, in setDefaultOptions() linkOptions is removed
2195 from initialization assignment, since now it is a set,
2196 parseCmdLine uses setParseWithComma for linkOptions, in
2197 linkEdit() linkOptions are accessed with new function indexSet()
2198 which returns the i'th item of a set variable. See SDCCset.c, in
2199 linkEdit() when calling buildCmdLine(), added linkOptions as
2200 last argument. Now users can pass arguments to gplink via the
2201 -Wl option, main() uses pic16glue() to glue up pic16 programs
2202 * src/SDCCpeeph.c: various changes to support pic16
2203 * src/SDCCset.c: added function void *indexSet(set *, int) to
2204 return the i'th item of the set
2205 * src/SDCCset.h: added function prototype for indexSet()
2206 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
2207 * src/clean.mk: added pic16 in CLEANALLPORTS variable
2208 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
2209 added macro DEFAULT_PORT
2210 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
2211 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
2213 * src/pic16/glue.c: commented out some error producing lines
2214 * src/pic16/main.c: __config directives are commented out to stop
2215 gpasm complaining and test the linkage with gplink, _linkCmd and
2216 _asmCmd changed to be more gplink and gpasm friendly
2217 * src/pic16/peeph.def: peep rule 3 is commented out, since it
2218 produced an error when parsed, peep rule 12 is added to utilize
2219 movff, but it is commented out since the pCode does not support
2220 yet a command with 2 address arguments
2222 2003-05-18 <johan@balder>
2224 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2225 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2226 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
2228 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
2229 Added feature to script commands from file.
2231 2003-05-14 Bernhard Held <bernhard@bernhardheld.de>
2233 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
2234 * src/SDCCutil.c: include ctype.h for win32
2236 2003-05-13 Bernhard Held <bernhard@bernhardheld.de>
2238 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
2240 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
2242 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
2243 Fixed so you can set breakpoints prior to run, run does not stop
2244 on entry now. Add tbreak. Other enhancements and fixes for use
2247 2003-05-12 Borut Razem <borut.razem@siol.net>
2249 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
2251 2003-05-11 Borut Razem <borut.razem@siol.net>
2253 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
2254 the path of bin directory, so that PATH is the only env. variable, which has to be set
2255 in case of standard installation.
2256 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
2257 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
2258 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
2260 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
2262 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
2263 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
2264 temp files are in the port dir; clean the gen/test directory when
2265 generating new test.c
2266 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
2267 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
2268 * support/regression/tests/zeropad.c: added
2270 2003-05-09 <johan@balder>
2272 * src/SDCCglue.c: fixed bug #597940
2274 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
2276 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2277 cache sfr, optimize next,step, fix off by one sourceline,
2278 support ddd list function.
2279 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
2281 2003-05-04 Bernhard Held <bernhard@bernhardheld.de>
2283 * support/regression/HTMLgen.py: added compare_s2f()
2284 * support/regression/Makefile: redo 1.27
2285 * support/regression/generate-cases.py: redo 1.5
2287 2003-04-30 Bernhard Held <bernhard@bernhardheld.de>
2289 * support/regression/tests/float.c: workaround 33 bit hex constant
2290 * support/regression/tests/simplefloat.c: fix division for host
2292 2003-04-29 Scott Dattalo <scott@dattalo.com>
2294 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim@jimhawkridge.uk.eu.org>
2295 that tame's the PIC's over-aggressive optimizer.
2297 2003-04-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2299 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
2302 2003-04-29 Kevin Vigor <kevin@vigor.nu>
2304 Initial support for DS80C400. "Hello world" runs on TINIm400
2307 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
2309 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2310 * Some notes on ddd usage added in debugger/README
2311 Martin Helmling adding more features and fixes for ddd GUI debugger.
2312 Code added for nexti, stepi, up, down, and other adjustments.
2314 2003-04-28 Scott Dattalo <scott@DATTALO.COM>
2316 * src/pic/pCodepeep.c non-wildcard asmops are now handled
2317 * src/pic/peeph.def Added two rules to optimize carry manipulation
2318 * src/pic/* removed debug printfs
2320 2003-04-28 Bernhard Held <bernhard@bernhardheld.de>
2322 * debugger/mcs51/cmd.c: added header newalloc.h
2324 2003-04-26 Bernhard Held <bernhard@bernhardheld.de>
2326 * as/Makefile: new EXEEXT
2327 * as/z80/Makefile: remove trailing slash of BUILDIR
2328 * as/z80/clean.mk: new EXEEXT
2329 * Makefile.common.in: add to CFLAGS (and others), don't replace it
2330 * support/cpp2/Makefile.in: new EXEEXT
2331 * src/pic/glue.c (pic14emitRegularMap): fixed warning
2333 2003-04-24 Bernhard Held <bernhard@bernhardheld.de>
2335 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
2336 EXEEXT was introduced to fix all related problems with targets
2337 "clean", "install" and "uninstall"; a couple of further flaws
2338 especially with "clean" have been fixed too
2339 * as/mcs51/Makefile.in
2344 * debugger/mcs51/Makefile.in
2345 * debugger/mcs51/clean.mk
2347 * link/z80/Makefile.in
2350 * packihx/Makefile.in
2352 * sim/ucsim/Makefile
2353 * sim/ucsim/clean.mk
2354 * sim/ucsim/avr.src/Makefile.in
2355 * sim/ucsim/avr.src/clean.mk
2356 * sim/ucsim/s51.src/Makefile.in
2357 * sim/ucsim/s51.src/clean.mk
2358 * sim/ucsim/xa.src/Makefile.in
2359 * sim/ucsim/xa.src/clean.mk
2360 * sim/ucsim/z80.src/Makefile.in
2361 * sim/ucsim/z80.src/clean.mk
2362 * sim/ucsim/main_in.mk
2363 * sim/ucsim/packages_in.mk
2364 * sim/ucsim/gui.src/Makefile.in
2365 * sim/ucsim/gui.src/serio.src/Makefile.in
2366 * sim/ucsim/gui.src/serio.src/clean.mk
2369 * support/cpp2/Makefile.in
2370 * support/cpp2/clean.mk
2371 * support/makebin/Makefile
2372 * support/makebin/clean.mk
2373 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
2374 * doc/sdccman.lyx: --program-suffix no longer needed
2376 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
2378 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
2379 Martin Helmling added support for ddd GUI debugger.
2380 Code added to display assembly, set variables, and other commands
2381 to interface to ddd.
2383 2003-04-23 Bernhard Held <bernhard@bernhardheld.de>
2385 * as/Makefile: fix target clean
2386 * as/clean.mk: fix target clean
2387 * as/z80/clean.mk: fix target clean
2389 2003-04-22 Bernhard Held <bernhard@bernhardheld.de>
2391 * Makefile.common.in: added @EXEEXT@
2392 * configure.in: removed all mingw32 stuff
2393 * configure: rebuilt from configure.in
2394 * doc/sdccman.lyx: updated section "installation"
2395 * support/scripts/sdcc_mingw32: adapted to configure
2396 * support/scripts/sdcc_cygwin_mingw32: added
2398 2003-04-22 Scott Dattalo <scott@dattalo.com>
2400 * src/pic Added object file support for the PIC port
2401 * src/pic Applied patch from Craig Franklin (this started the object file support)
2402 * src/regression Updated the PIC regression tests for object files
2404 2003-04-20 Borut Razem <borut.razem@siol.net>
2406 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
2407 lklex.c: In function `getfid':
2408 lklex.c:203: warning: array subscript has type `char'
2409 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
2410 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
2411 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
2412 stack handling macros
2414 2003-04-19 Borut Razem <borut.razem@siol.net>
2416 * "handling space characters in file path" task:
2417 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
2418 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
2419 * support/Util/MySystem.h: make it self-sufficient
2420 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
2421 src/z80/main.c, sdcc/as/mcs51/lklex.c:
2422 handling space characters in file path
2423 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
2424 (it will be used by assemblers, which have their own includes, e.g. gpasm)
2425 * support/Util/MySystem.c: handling space characters in executable's path
2427 2003-04-19 Bernhard Held <bernhard@bernhardheld.de>
2429 * as/z80/Makefile: fix permanent rebuild of z80
2430 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
2431 * support/regression/tests/bitfields.c: added Johan's bitfields.c
2433 2003-04-18 Kevin Vigor <kevin@vigor.nu>
2435 * src/SDCCopt.c: add special case optimization to replace modulo by
2436 a power of two with a bitwise AND.
2438 2003-04-18 <johan@balder>
2440 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
2442 2003-04-17 <johan@balder>
2444 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
2445 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
2447 2003-04-13 Borut Razem <borut.razem@siol.net>
2449 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
2450 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
2451 fixed mingw problem in adl_NORMALIZE_PATH
2453 2003-04-12 Borut Razem <borut.razem@siol.net>
2455 * fixed "#pragma SAVE/RESTORE can not be nested":
2456 * src/SDCC.lex: reworked pragma handling functions
2457 * sdcc/src/SDCCglobl.h: reworked stack handling macros
2458 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
2460 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
2462 * src/SDCCutil.c (pathEquivalent): defined but not used
2463 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
2464 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
2465 * configure: rebuilt from configure.in
2466 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2467 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
2468 * device/include/Makefile.in: replace sdcc_datadir
2469 * device/lib/Makefile.in: replace sdcc_datadir
2470 * Makefile.common.in: add LDFLAGS from configure
2471 * packihx/Makefile.in: use LDFLAGS
2472 * src/Makefile.in: use LDFLAGS
2473 * support/cpp2/Makefile.in: add LDFLAGS from configure
2474 * support/makebin/Makefile: use LDFLAGS
2475 * .version: bumped version number to 2.3.5
2477 2003-04-12 Borut Razem <borut.razem@siol.net>
2479 * completed "different paths" task:
2480 * src/SDCCmacro.c: fixed bug in handling quotes
2481 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
2482 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
2484 2003-04-12 Bernhard Held <bernhard@bernhardheld.de>
2486 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
2488 2003-04-11 kevin Vigor <kevin@vigor.nu>
2490 * ds390/gen.c ds390/peeph.def: fix bug 706781
2492 2003-04-11 Borut Razem <borut.razem@siol.net>
2494 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
2496 2003-04-10 Scott Dattalo <scott@dattalo.com>
2498 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
2499 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
2500 set - this bit used to not be set...).
2501 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
2502 bad code in PIC Port
2503 * src/regression/and2.c added to test bug 609268
2504 * src/regression/Makefile added and2.c to regression test
2507 2003-04-08 <johan@CP255758-A>
2509 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
2510 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
2511 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
2513 2003-04-07 Bernhard Held <bernhard@bernhardheld.de>
2515 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
2517 * support/cpp2/Makefile.in: fix bug #487815
2518 * configure: rebuilt from configure.in
2519 * Makefile.common.in: docdir changed, new path suffixes
2520 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2521 * sdcc_vc_in.h: reflect changes from sdccconf.h
2522 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
2523 * src/SDCCutil.h: remove BINDIR hack
2524 * doc/sdccman.lyx: update new path hierarchy
2526 2003-04-06 Paul Stoffregen <paul@pjrc.com>
2528 * src/SDCCpeeph.c: added okToRemoveSLOC test
2530 2003-04-06 Paul Stoffregen <paul@pjrc.com>
2532 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
2534 2003-04-06 Paul Stoffregen <paul@pjrc.com>
2536 * src/SDCCpeeph.c: added labelIsReturnOnly test
2537 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
2539 2003-04-05 <johan@balder>
2541 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
2542 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
2543 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
2544 * src/SDCCast.c: fixed a warning
2545 * src/SDCCast.h: fixed a warning
2546 * src/SDCCicode.c (operandFromAst): fixed a warning
2548 2003-04-04 <johan@balder>
2550 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
2551 * src/SDCCast.c (decorateType): fixed bug #715076
2552 * src/SDCC.y: fixed bug #702907
2554 2003-04-03 <johan@balder>
2556 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
2557 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
2558 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
2559 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
2560 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
2562 2003-04-03 Bernhard Held <bernhard@bernhardheld.de>
2564 * _decdptr.c: fix return values
2565 * _gptrget.c: fix return values
2566 * _gptrgetc.c: fix return values
2567 * _gptrput.c: fix return values
2568 * _mulint.c: fix return values
2569 * as/z80/Makefile: fix 'make -j' problem
2571 2003-04-02 Bernhard Held <bernhard@bernhardheld.de>
2573 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
2574 * configure.in: big cleanup, updated to autoconf 2.5x
2575 * configure: rebuilt from configure.in
2576 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
2577 * sdcc_vc_in.h: reflect changes from sdccconf.h
2578 * doc/Makefile: fixed a flaw in "make install"
2580 2003-04-02 <johan@balder>
2582 * src/ds390/gen.c (genCmp): no comments
2583 * src/mcs51/gen.c (genCmp): no comments
2584 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
2585 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
2587 2003-04-01 Bernhard Held <bernhard@bernhardheld.de>
2589 * support/regression/generate-cases.py: place generated file in given sub directory
2590 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
2591 * support/regression/Makefile: improvements for 'make -j';
2592 side effect: it's simpler and faster now
2594 2003-03-31 Borut Razem <borut.razem@siol.net>
2596 * src/z80/main.c: link-{port} and as-{port} defined without path
2597 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
2599 2003-03-31 Bernhard Held <bernhard@bernhardheld.de>
2601 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
2603 2003-03-30 Borut Razem <borut.razem@siol.net>
2605 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
2606 changed type of list parameter to set
2607 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
2608 * src/port.h: changed type of do_assemble() parameter to set
2609 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
2610 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
2611 definition of "cppoutfilename" macro with NULL value in preProcess()
2612 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
2613 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
2614 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
2615 replaced with set *binPathSet
2616 * shash_add() deallocates the item, if allready exsists, before adding the new one
2617 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
2619 2003-03-30 Scott Dattalo <scott@dattalo.com>
2621 * src/pic/gen.c: Commit patch from Steve Tell <tell@telltronics.org> that fixes
2622 a nested for loop bug in the PIC port
2623 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
2626 2003-03-29 Bernhard Held <bernhard@bernhardheld.de>
2628 * support/Util/dbuf.h: remove C++ stuff to make it portable
2630 2003-03-28 Borut Razem <borut.razem@siol.net>
2632 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
2633 literal strings in stringLiteral()
2634 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
2635 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
2638 2003-03-27 Paul Stoffregen <paul@pjrc.com>
2640 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
2642 2003-03-26 <johan@balder>
2644 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
2645 * src/ds390/gen.c (saveRegisters): catched symbol abuse
2646 * src/SDCCast.c (decorateType): fixed " -v < 3"
2648 2003-03-23 Bernhard Held <bernhard@bernhardheld.de>
2650 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
2651 Added Lenny Story's debug infrastructure changes:
2652 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
2653 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
2654 * src/cdbFile.c: added
2655 * src/SDCCdebug.c: added
2656 * src/SDCCdebug.h: added
2657 * src/SDCCast.c (createFunction)
2658 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
2659 * src/SDCCmain.c (parseCmdLine, main)
2660 * src/SDCCmem.c (redoStackOffsets)
2661 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
2664 * src/avr/gen.c (genAVRCode)
2665 * src/ds390/gen.c (gen390Code)
2666 * src/mcs51/gen.c (gen51Code)
2667 * src/pic/gen.c (genpic14Code)
2668 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
2669 * src/xa51/gen.c (genXA51Code)
2670 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
2672 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2674 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
2675 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
2677 2003-03-22 <johan@balder>
2679 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
2681 2003-03-21 Bernhard Held <bernhard@bernhardheld.de>
2683 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
2684 * doc/cdbfileformat.lyx: added, written by Lenny Story
2685 * doc/Makefile: added cdbfileformat.lyx
2686 * doc/clean.mk: added cdbfileformat.lyx
2688 2003-03-20 Bernhard Held <bernhard@bernhardheld.de>
2690 * src/mcs51/peeph.def: fix bug #705773
2692 2003-03-20 <johan@balder>
2694 An sfr/sbit can have an "at #" AND an initializer
2695 * src/SDCCsymt.c (checkSClass):
2696 * src/SDCCmem.c (allocGlobal):
2697 * src/SDCCmem.c (allocLocal):
2698 * src/SDCCast.c (createBlock):
2700 2003-03-17 Bernhard Held <bernhard@bernhardheld.de>
2702 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
2704 2003-03-16 <johan@balder>
2706 Undid the hackup of const and volatile, the problem is much bigger
2708 * src/SDCCast.c:1.171
2709 * src/SDCCglue.c:1.138
2710 * src/SDCCicode.c:1.146
2711 * src/SDCCsymt.c:1.150
2712 * src/SDCCval.c:1.65
2714 2003-03-15 Bernhard Held <bernhard@bernhardheld.de>
2716 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
2717 * src/ds390/gen.c (genAddrOf): fixed bug #704087
2719 2003-03-13 <johan@balder>
2721 Hackup const and volatile modifiers in type chains a bit:
2723 * src/SDCCast.c:1.169
2724 * src/SDCCglue.c:1.136
2725 * src/SDCCicode.c:1.143
2726 * src/SDCCsymt.c1.146
2727 * src/SDCCsymt.h1.59
2728 * src/SDCCval.c:1.63
2730 2003-03-12 <johan@balder>
2732 * src/SDCCBBlock.h: more LRH debugging junk
2733 * src/SDCCcflow.h: more LRH debugging junk
2734 * src/SDCCloop.c: more LRH debugging junk
2735 * src/SDCC.y (struct_declaration): fixed bug #697590
2736 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
2737 * src/ds390/gen.c (aopForRemat): fixed bug #700031
2738 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
2740 2003-03-11 Kevin Vigor <kevin@vigor.nu>
2741 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
2742 test function names must now match exactly).
2743 * src/SDCCcse.c: added special case in findCheaperOp to allow
2744 extending a short integer. Makes less awful code for bug 700121 test case.
2746 2003-03-11 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
2748 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
2749 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
2751 2003-03-11 Kevin Vigor <kevin@vigor.nu>
2753 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
2754 actually called (operandsNotEqual() was called for all
2755 operandsNotEqualX tests).
2757 2003-03-11 Kevin Vigor <kevin@vigor.nu>
2759 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
2760 with shorter literals. Fixes bug 700121.
2762 2003-03-11 <johan@balder>
2764 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
2766 2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
2768 * src/SDCCloop.c (mergeRegions): an evil beast is dead
2769 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
2771 2003-03-10 Borut Razem <borut.razem@siol.net>
2773 * src/SDCCmain.c: pipe preprocessor's output
2774 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
2775 * sdcc_vc_in.h: define pclose as _pclose for WIN32
2776 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
2777 which closes all pipes in pipeSet set
2778 * src/SDCCset.c: free deleted item in function deleteSetItem()
2779 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
2780 moved from z80 to src subproject
2781 * .version: increased version number to 2.3.4
2783 2003-03-10 Bernhard Held <bernhard@bernhardheld.de>
2785 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
2786 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
2787 * support/regression/ports/xa51/spec.mk: fix typo
2789 2003-03-09 Bernhard Held <bernhard@bernhardheld.de>
2791 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
2793 2003-03-09 Borut Razem <borut.razem@siol.net>
2795 * src/SDCCmain.c: pipe preprocessor's output
2796 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
2797 * sdcc_vc_in.h: define pclose as _pclose for WIN32
2798 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
2799 which closes all pipes in pipeSet set
2800 * src/SDCCset.c: free deleted item in function deleteSetItem()
2801 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
2802 moved from z80 to src subproject
2804 2003-03-09 Borut Razem <borut.razem@siol.net>
2806 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
2807 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
2808 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
2809 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
2810 * src/SDCCglobl.h: unification of WIN32 native definitions
2812 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2814 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
2816 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
2818 * src/configure.in: check for endianess (even while cross-compiling)
2819 * src/configure: check for endianess (even while cross-compiling)
2820 * src/configure_in.h: check for endianess (even while cross-compiling)
2821 * src/avr/gen.c: remove old endianess stuff
2822 * src/mcs51/gen.c: remove old endianess stuff
2823 * src/ds390/gen.c: remove old endianess stuff
2824 * src/pic/gen.c: remove old endianess stuff
2825 * src/pic/genarith.c: remove old endianess stuff
2826 * src/pic/glue.c: fix endianess check
2827 * src/pic16/gen.c: remove old endianess stuff
2828 * src/pic16/genarith.c: remove old endianess stuff
2829 * src/pic16/glue.c: fix endianess check
2830 * src/xa51/gen.c: remove old endianess stuff
2831 * src/z80/gen.c: fix endianess check
2832 * src/SDCCglue.c: fix endianess check
2833 * src/ds390/peeph.def: fix bug 700036
2835 2003-03-08 Bernhard Held <bernhard@bernhardheld.de>
2837 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
2838 * src/configure: find appropriate data-types on host for SDCC's int and long
2839 * src/configure.in: find appropriate data-types on host for SDCC's int and long
2840 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
2841 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
2843 2003-03-07 <johan@balder>
2846 some minor cleanups before the big shot
2847 OP_DEFS and OP_USES now use Kevin's protection
2848 new option --nolabelopt
2859 * src/ds390/ralloc.c:
2860 * src/mcs51/ralloc.c:
2862 * src/xa51/ralloc.c:
2865 2003-03-06 Bernhard Held <bernhard@bernhardheld.de>
2867 * src/pic/pcode.c (get_op): fix 64 bit warnings
2868 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
2869 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
2870 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
2871 * support/regression/tests/malloc.c: fix 64 bit warnings
2873 2003-03-04 Bernhard Held <bernhard@bernhardheld.de>
2875 * src/mcs51/gen.c (genMinus): fixed bug 696436
2877 2003-03-02 Borut Razem <borut.razem@siol.net>
2879 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
2881 2003-02-26 Bernhard Held <bernhard@bernhardheld.de>
2883 * configure.in: test for mkstemp
2884 * sdccconf_in.h: add HAVE_MKSTEMP
2886 2003-02-24 Bernhard Held <bernhard@bernhardheld.de>
2888 * device/include/ctype.h: removed warning while using --stack-auto
2889 * device/include/malloc.h: removed warning while using --stack-auto
2890 * device/include/string.h: removed warning while using --stack-auto
2892 2003-02-23 Borut Razem <borut.razem@siol.net>
2894 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
2895 because NDEBUG is defined (see man assert)
2896 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
2898 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2900 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
2901 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
2903 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann@web.de>
2905 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
2906 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
2908 2003-02-18 <johan@balder>
2910 * as/mcs51/asmain.c (asmbl): module can start with a digit
2911 * as/z80/asmain.c (asmbl): module can start with a digit
2913 2003-02-16 Bernhard Held <bernhard@bernhardheld.de>
2915 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
2916 * src/asm.c: fix pipe() for Mingw32
2918 2003-02-15 Bernhard Held <bernhard@bernhardheld.de>
2920 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
2921 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
2922 make -V work again; --c1mode reads now from stdin
2923 * doc/sdccman.lyx: added --c1mode
2924 * support/Util/SDCCerr.c: new messages for c1 mode
2925 * support/Util/SDCCerr.h: new messages for c1 mode
2926 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
2928 2003-02-15 <johan@balder>
2930 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
2932 2003-02-14 Bernhard Held <bernhard@bernhardheld.de>
2934 * doc/sdccman.lyx: Environment variables, -o and other minor things
2936 2003-02-14 <johan@balder>
2938 * src/xa51/main.c: before anyone really tries to use it :)
2940 * Install doc's in share/sdcc/doc
2941 * removed some obsolete files
2942 * Do a proper make distclean and uninstall
2943 M Makefile.common.in
2946 M device/include/Makefile.in
2947 M device/lib/Makefile.in
2950 M sim/ucsim/doc/Makefile.in
2953 R src/xa51/peeph.rul
2954 M support/cpp2/Makefile.in
2955 M support/makebin/Makefile
2958 2003-02-13 Bernhard Held <bernhard@bernhardheld.de>
2960 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
2962 2003-02-10 Borut Razem <borut.razem@siol.net>
2964 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
2965 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
2966 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
2967 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
2968 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
2969 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
2970 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
2971 src/z80/Makefile.bcc: Borland Makefile cleanup
2972 * as/z80/Makefile.bcc: Added Borland Makefile
2973 * support/cpp2/borland.h: Removed
2975 2003-02-10 Bernhard Held <bernhard@bernhardheld.de>
2977 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
2978 * src/SDCC.lex: new pragma NOIV
2979 * src/SDCCglobl.h: new pragma NOIV
2980 * src/SDCCmem.c: new pragma NOIV
2982 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
2984 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
2986 2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
2988 * src/SDCCmain.c: signal handling is switched off by --debug
2989 * doc/Makefile: small fix for install; use clean.mk again
2990 * doc/clean.mk: clean *.pdf and *.html too
2992 2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
2994 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
2995 * device/lib/printfl.c: fix a ds390 bug by making it portable
2996 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
2997 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
2998 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
2999 * debugger/mcs51/cmd.c: converted multi-line string literals
3000 * sim/ucsim/globals.cc: converted multi-line string literals
3001 * src/SDCCmain.c: introduced signal handler to remove temp files
3002 * doc/Makefile: small tweaks, implement clean
3003 * doc: removed generated files
3005 2003-02-05 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3007 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
3008 patch from Jan Rejlek <jr@apex-lib.cz> to fix Bug 677692: "Extended
3009 Address Record is not correctly generated for DS390."
3011 2003-02-02 Borut Razem <borut.razem@siol.net>
3013 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
3014 * as/mcs51/asm.h: fixed compilation with Borland C
3015 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
3016 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
3017 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
3018 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
3019 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
3020 src/z80/Makefile.bcc: delete $(LIB) only if exist
3021 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
3023 2003-02-02 Bernhard Held <bernhard@bernhardheld.de>
3025 * device/include/malloc.h: introduced NULL
3026 * device/include/string.h: introduced NULL
3027 * device/include/stdlib.h: introduced NULL
3028 * device/lib/_memcpy.c: removed NULL
3029 * device/lib/_strcat.c: removed NULL
3030 * device/lib/_strchr.c: removed NULL
3031 * device/lib/_strcmp.c: removed NULL
3032 * device/lib/_strcpy.c: removed NULL
3033 * device/lib/_strcspn.c: removed NULL
3034 * device/lib/_strlen.c: removed NULL
3035 * device/lib/_strncat.c: removed NULL
3036 * device/lib/_strncmp.c: removed NULL
3037 * device/lib/_strncpy.c: removed NULL
3038 * device/lib/_strpbrk.c: removed NULL
3039 * device/lib/_strrchr.c: removed NULL
3040 * device/lib/_strspn.c: removed NULL
3041 * device/lib/_strstr.c: removed NULL
3042 * device/lib/_strtok.c: removed NULL
3043 * device/lib/malloc.c: removed NULL, include own header
3045 2003-02-02 <johan@balder>
3047 * 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
3048 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
3049 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
3050 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
3051 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
3052 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
3054 2003-02-01 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3056 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
3059 2003-02-01 <johan@balder>
3061 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
3063 2003-01-31 <johan@CP255758-A>
3065 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
3067 2003-01-30 <johan@balder>
3069 * src/SDCCBBlock.c: automatic bug detection
3070 * src/SDCCicode.c: automatic bug detection
3072 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3074 * src/SDCCglobl.h: now --xram-size 0 works
3075 * src/SDCCmain.c: now --xram-size 0 works
3077 2003-01-29 <johan@balder>
3079 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
3081 2003-01-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3083 * as/mcs51/aslink.h: Added options --xram-size and --code-size
3084 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
3085 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
3086 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
3087 * src/SDCCglobl.h: Added options --xram-size and --code-size
3088 * src/SDCCmain.c: Added options --xram-size and --code-size
3090 2003-01-28 Bernhard Held <bernhard@bernhardheld.de>
3092 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
3093 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
3095 2003-01-27 <johan@balder>
3097 * src/SDCC.y: fixed bug #613764
3099 2003-01-26 <johan@balder>
3101 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
3102 * src/SDCCsymt.h: fixed bug #673374
3103 * src/SDCCglue.c: fixed bug #661910
3104 * src/SDCCast.c: fixed bug #458099 and 673374
3106 2003-01-26 Bernhard Held <bernhard@bernhardheld.de>
3108 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
3109 * as/mcs51/strcmpi.h: added
3110 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
3111 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
3112 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
3113 * as/mcs51/assym.c: strcmpi -> as_strcmpi
3114 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
3115 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
3116 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
3117 * as/mcs51/Makefile.aslink: new module strcmpi
3118 * as/mcs51/Makefile.asx8051: new module strcmpi
3119 * as/mcs51/Makefil.bcc: new module strcmpi
3120 * as/mcs51/Makefile.in: new module strcmpi
3121 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
3123 2003-01-26 <johan@balder>
3125 * src/SDCCglue.c: reverted back to 1.124
3126 * src/SDCCast.c: reverted back to 1.156
3127 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
3129 2003-01-25 <johan@balder>
3131 * src/SDCCglue.c: A better fix for bug #661910
3132 * src/SDCCast.c: A better fix for bug #661910
3133 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
3135 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
3137 * src/Makefile.in: remove spawn.o
3138 * src/SDCCmain.c: remove spawn.h
3139 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
3140 * src/spawn.c: removed
3141 * src/spawn.h: removed
3142 * support/regression/ports/ds390/spec.mk: link with -r
3144 2003-01-24 <johan@CP255758-A>
3146 * src/ds390/gen.c (aopOp): fixed bug #667458
3147 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
3148 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
3149 (createIvalCharPtr): an ival doesn't always have a storage class anymore
3151 2003-01-24 Bernhard Held <bernhard@bernhardheld.de>
3153 * src/mcs51/peeph.def: better assembler identation by Frieder
3154 * src/mcs51/gen.c: better assembler identation by Frieder
3156 2003-01-22 Bernhard Held <bernhard@bernhardheld.de>
3158 * as/z80/string.h: removed for gcc 3.2
3159 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
3160 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
3162 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
3164 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
3165 * src/SDCCpeeph.c (replaceRule): fix bug #663503
3166 * support/regression/Makefile: separate temp files for ports
3167 * support/regression/generate-cases.py: separate temp files for ports
3168 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3169 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3171 2003-01-19 Bernhard Held <bernhard@bernhardheld.de>
3173 * moved tinitalk to device/examples/ds390
3175 2003-01-14 Bernhard Held <bernhard@bernhardheld.de>
3177 * as/mcs51/lkmem.c: rflag is for DS390
3178 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
3179 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
3180 (linkEdit): move mem- and map-files the same way as ihx-files
3181 * src/z80/main.c (_setDefaultOptions): removed --generic
3182 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
3183 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
3184 * src/pic/glue.c (picglue): --c1mode works again
3185 * src/pic16/glue.c (pic16glue): --c1mode works again
3186 * src/asm.c (printCLine): fix #660034
3188 2003-01-13 Bernhard Held <bernhard@bernhardheld.de>
3190 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>, 1 by Frieder
3191 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
3192 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
3193 * as/mcs51/lkmem (summary): better fix for sp problem
3194 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
3195 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
3196 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
3197 remove --stack-after-data
3199 2003-01-12 Bernhard Held <bernhard@bernhardheld.de>
3201 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
3202 * src/SDCCutil.c (join): ugly bug: missing '\0'
3203 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
3205 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
3207 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
3209 * src/pic/main.c (_asmCmd): gpasm supports -o
3210 * src/z80/main.c: more general macros
3211 * device/lib/Makefile.in: remove intermediate files
3213 2003-01-11 Bernhard Held <bernhard@bernhardheld.de>
3215 * .version: Bumped version number to 2.3.3
3216 * src/SDCCBBlock.c: new option -o
3217 * src/SDCCglobl.h: new option -o
3218 * src/SDCCglue.c: new option -o
3219 * src/SDCCmain.c: new option -o
3220 * src/asm.c: new option -o
3221 * src/ds390/main.c: new option -o
3222 * src/pic/glue.c: new option -o
3223 * src/pic/pcode.c: new option -o
3224 * src/pic/ralloc.c: new option -o
3225 * src/pic16/glue.c: new option -o
3226 * src/pic16/pcode.c: new option -o
3227 * src/pic16/ralloc.c: new option -o
3228 * src/z80/main.c: new option -o
3229 * device/lib/Makefile.in: use -o
3230 * support/regression/ports/ds390/spec.mk: use -o
3231 * support/regression/ports/gbz80/spec.mk: use -o
3232 * support/regression/ports/mcs51/spec.mk: use -o
3233 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
3234 * support/regression/ports/z80/spec.mk: use -o
3235 * support/regression/ports/ucz80/spec.mk: use -o
3236 * support/regression/ports/xa51/spec.mk: use -o
3237 * support/regression/fwk/lib/timeout.c: fix usage string
3239 2003-01-09 Bernhard Held <bernhard@bernhardheld.de>
3240 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia@tin.it>
3242 2003-01-07 <johan@balder>
3244 * src/SDCCast.c (decorateType): fixed bug #600035
3246 2003-01-07 Bernhard Held <bernhard@bernhardheld.de>
3247 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
3248 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
3249 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
3250 * src/pic/pcode.c: outcommented unused variable to remove warnings
3251 * src/pic/ralloc.c: outcommented unused variable to remove warnings
3253 2003-01-06 <karl@turbobit.com>
3254 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
3257 2003-01-06 <johan@balder>
3259 * src/SDCCicode.c: fixed array add
3261 2002-01-05 Bernhard Held <bernhard@bernhardheld.de>
3262 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
3263 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
3265 2003-01-04 <johan@balder>
3267 * src/SDCCval.c (getNelements): fixed the initialized array of structures
3269 2002-12-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3270 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
3272 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
3273 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann@web.de>
3274 * support/regression/tests/bug-524697.c: fit mem usage into 8032
3276 2002-12-28 Bernhard Held <bernhard@bernhardheld.de>
3277 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
3279 2002-12-27 Bernhard Held <bernhard@bernhardheld.de>
3280 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
3282 2002-12-26 Bernhard Held <bernhard@bernhardheld.de>
3283 * src/mcs51/main.c: removed {bindir}{sep} from aslink
3285 2002-12-10 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3287 * in \sdcc\as\mcs51\ changed these files in order to create an
3288 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
3289 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
3290 following files to include the previous two files: aslink.dsp,
3291 Makefile.aslink, Makefile.bcc, and Makefile.in.
3293 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
3294 .adb instead of .cdb
3296 2002-11-09 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3298 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
3299 value from option --iram-size.
3301 2002-09-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3303 * \sdcc\as\mcs51\lklist.c: added boundary check before using
3306 2002-09-18 <wiml@hhhh.org>
3308 * SDCClrange.h: exposed setFromRange() and setToRange()
3309 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
3310 packRegsForAccUse() (bug 542397)
3311 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
3312 multiple times and emitting the fetch operations more than once
3313 added aopGetUsesAcc() function to allow binary operators to
3314 fetch their operands in the correct order; made genMinus() emit
3315 compact code for X = LITERAL - Y
3317 2002-09-00 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3318 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
3319 sprintf() in line 1267.
3321 2002-09-08 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3322 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
3325 2002-09-04 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
3326 Changes to aslink (All the changes are marked with 'JCF'):
3328 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
3331 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
3332 area BSEG. Also moves, if possible, the DATA area down into the internal
3333 ram so more space is available.
3335 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
3338 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
3339 not bytes. Function summary() which creates a memory usage summary
3340 file with extension .mem. Reports of overlaping stack and small stack
3341 size. If the space for the stack is less than 16 bytes aslink trows a
3344 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
3345 the 8051. Option 'y' for memory summary output file.
3347 Changes to sdcc (All the changes are marked with 'JCF'):
3349 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
3351 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
3352 overlaying area for it (uses RegBankUsed[4]).
3354 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
3355 bank zero as used by default. By default aslink locates the stack
3356 (equivalent to --stack-after-data). Pass option 'y' to aslink for
3357 the creation of the .mem file. Delegates the allocation of data area
3358 to aslink (it is not longer 0x30 by default). If --stack-loc passes
3359 the begining of the stack area to aslink.
3361 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
3362 glue() in SDCCglue.c creates an area for it.
3364 2002-09-03 Borut Razem <borut.razem@siol.net>
3365 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
3366 sdcc/src/pic/glue.c:
3367 introduced atexit() handler for teporay files removal in case of
3368 errors, assertions, ...
3370 2002-08-29 Borut Razem <borut.razem@siol.net>
3371 * sdcc/support/cpp2/auto-host_vc_in.h:
3372 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
3373 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
3374 Maybe there is a similar problem with BORLANDC? It should be checked!
3376 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
3377 corrected improper use of assert: the assignment to clr variable was done inside the assert.
3378 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
3379 was not executed, and the compiler (cl) launched a warning:
3380 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
3382 2002-08-28 Bernhard Held <bernhard@bernhardheld.de>
3383 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
3385 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem@siol.net>
3386 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
3388 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3389 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
3390 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
3391 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3392 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
3393 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
3394 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
3395 - added Release configuration in VS projects
3396 - review of compiler an linker options
3397 - VC .exe files are generated in bin_vc directory, not to interfere
3398 with binaries generated from other projects (cygwin, mingw, bcc ...)
3400 * sdcc/src/yacc.dsp: added
3402 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
3403 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
3404 and insert the version number definitions from .version
3406 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
3408 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
3409 added - genarate auto-host.h using auto-host_vc_in.h as template
3412 removed from CVS, generated automatically
3414 2002-08-25 Bernhard Held <bernhard@bernhardheld.de>
3415 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
3417 2002-08-11 Borut Razem <borut.razem@siol.net>
3418 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
3420 2002-08-10 Borut Razem <borut.razem@siol.net>
3421 * src/SDCCmain.c (main):
3422 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
3423 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
3424 The consequence was that some temporary files were not removed.
3427 unification of code in functions tempfilename() and tempfile():
3428 function tempnam() is defined in Visual Studio 6.0 and .NET
3430 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
3432 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
3433 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
3434 - removed compiler command line option /WX: Treats all warnings as errors
3435 - update a list of source files, included into the project
3437 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
3438 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
3439 changed project type to Generic Project so that can be correcly converted to VS.NET project
3441 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
3443 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
3445 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
3447 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
3448 added return 0 statements after assert() to make compiler happy
3450 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
3451 added newline in the def file to keep MSC compiler satisfied
3453 * sdcc/src/z80/gen.c:
3454 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
3455 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
3456 - solved MSC error in function aopDump()
3458 * sdcc_vc.h: define PREFIX as "\\sdcc"
3460 2002-07-18 Bernhard Held <bernhard@bernhardheld.de>
3461 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
3463 2002-06-22 Scott Dattalo <scott@dattalo.com>
3464 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
3465 - Rewrote the register banking algorithm.
3466 - Added pCode live-range analysis to registers (for now, only non-used and
3467 singly-used registers optimized away)
3469 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
3471 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba@cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
3473 2002-05-10 Scott Dattalo <scott@dattalo.com>
3474 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
3476 2002-04-22 Michael Hope <michaelh@vroom>
3478 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
3480 * configure.in (DD_COPT): Added include support required for gbdk.
3482 * .version: Bumped version number just to increase it.
3484 * src/SDCCmain.c: Added -nostdinc to the default options.
3486 2002-04-15 Michael Hope <michaelh@vroom>
3488 * device/lib/z80/printf.c (sprintf): Added.
3490 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
3492 * src/z80/peeph.def: Added transpose redundent load rule.
3494 * src/z80/main.c: Added force callee saves for jaune.
3496 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
3498 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
3500 2002-03-28 Johan Knol <johan@balder>
3502 * src/SDCCval.c: fixed bug #532436
3504 2002-03-14 Scott Dattalo <scott@dattalo.com>
3506 Added "char *Processor" field to the port structure.
3509 Added -p option. Allows port dependent processor to be specified.
3512 Initialized the new field char *Processor field to NULL in all ports
3515 Compiler generated registers for interrupt context saving
3516 were not getting allocated.
3518 2002-03-16 Sandeep Dutta <sandeep@ddi.com>
3521 Fixed left shift. Will promote the left side of a left shift
3522 if a) left shifting more than size of operand or b) when assigned
3523 to something size > size of left side
3525 2002-03-14 Scott Dattalo <scott@dattalo.com>
3527 tons of changes. Register allocation has been
3528 rewritten. Added customization for the various PICs. Flow
3529 analysis is restructured. ...
3535 Added. device.c is a PIC port hack to accomodate variations
3538 2002-03-13 Michael Hope <michaelh@vroom>
3540 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
3542 2002-03-04 johanknol <johanknol@manik>
3544 * /src/SDCCval.c: fixed
3546 const unsigned char arr[][2] = { { 0, 1 } };
3547 t18.c:1: error: Initializer element is not constant
3549 2002-03-04 bela <bela@manik>
3551 * /device/include/mcs51reg.h:
3552 ds89c420 register definition update
3554 2002-03-03 <johan@FRIJA>
3556 * support/Util/SDCCerr.c: did something, but don't no why anymore
3558 * support/regression/tests/bug-524691.c: made it a little less shy
3560 * src/SDCCast.c (decorateType): fixed bug #524697
3562 * src/SDCCast.c: made some lineno improvements
3564 * src/SDCCval.c (getNelements): changed warning to error
3566 * src/SDCCglue.c (printIvalArray): changed warning to error
3568 * src/SDCCicode.c: fixed a warning for mingw
3570 * src/SDCCast.c (decorateType): fixed the << promotion for ops
3572 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
3574 2002-03-02 Sandeep Dutta <sandeep@ddi.com>
3576 * src/ds390/peeph.def:
3577 Added some more peephole rules
3579 * src/ds390/gen.c: Various fixes & enhancements
3581 * src/SDCClrange.c, src/SDCClrange.h:
3582 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
3584 * src/ds390/ralloc.c:
3585 various fixes & enhancements (ds390) specific
3587 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
3588 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
3591 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
3593 2002-03-02 <johan@FRIJA>
3595 * src/SDCCast.c (decorateType): fixed bug #524708
3597 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
3599 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
3601 2002-03-01 Michael Hope <michaelh@vroom>
3603 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
3605 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
3607 2002-03-01 <johan@FRIJA>
3609 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
3611 * src/SDCCast.c (decorateType): fixed bug #524209
3613 * src/SDCCval.c (valNot): fixed bug #524195
3615 2002-02-26 <johan@balder>
3617 * src/xa51/gen.c: fixed a warning
3619 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
3621 * src/SDCCast.c (decorateType): fixed bug #522534
3623 2002-02-23 <johan@balder>
3625 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
3627 2002-02-22 <johan@balder>
3629 * src/SDCCast.c: fixed bug #514865
3631 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
3633 2002-02-21 Sandeep Dutta <sandeep@ddi.com>
3635 * sdcc/src/SDCCloop.c:
3636 Previous fix was not good. basic blocks that have "break" or "return" are
3637 not really partof a loop , but live ranges used in these blocks should
3638 be live thru the entire loop, so set partOfLoop but don't add them to
3641 2002-02-21 <johan@FRIJA>
3643 * src/SDCCcse.c: fixed bug #514308
3645 2002-02-20 Sandeep Dutta <sandeep@ddi.com>
3648 Fixed BUG #519583. If a conditional block ended in a return/break
3649 statement inside a loop, it was not being considered part of the loop.
3651 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
3653 2002-02-10 Karl Bongers <karl@turbobit.com>
3656 Fixed up SDCDB debugger somewhat. Updated debugger/README
3657 with lots of comments and notes.
3659 * device/examples/test2.c:
3660 Fix bug, "red" variable not being initialized(compiler complained).
3662 * device/examples/Makefile, examples/test3.c:
3663 Add Makefile in device/examples folder, compiles test3.c
3664 for use as a multiple module SDCDB test case.
3666 * sim/ucsim/cmd.src/cmdset.cc:
3667 Took out debug printfs in ucsim "next" command.
3670 Karl and Johan start ucsim XA support. Most dissassembly working,
3671 about 75% emulation done(plenty of work remaining).
3673 * sim/ucsim/z80.src:
3674 Add Z80 support to ucsim, add test-ucz80 regression test,
3675 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
3676 Notice z80 compiler fails on examples/test3.c/crc code.
3678 2002-01-30 Sandeep Dutta <sandeep@ddi.com>
3680 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
3681 Added support for --parms-in-bank1
3683 * src/ds390/peeph.def:
3684 added a few more peephole optimzations
3687 1) added __builtin_inp & __builtin_outp used to read in data of given length
3688 from a memory mapped port
3689 2) added __builtin_memcmp
3690 3) added __builtin_swapw swap bytes of a short
3692 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
3693 1) handle multiple send & receives from register bank1
3694 2) ralloc can now allocate DPTR1 to some liveRanges
3696 * src/SDCCsymt.c, src/SDCCsymt.h:
3697 changes to handle multiple sends & receives
3700 added some pointer arithmetic optimization
3703 added some pointer arithmetic optimizations but not stable yet so not
3704 called from anywhere (will get this working shortly)
3706 * src/SDCCopt.c: fixed for multiple sends & receives
3709 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
3710 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
3711 set preprocessor defines (depending on options)
3713 * src/SDCCicode.c, src/SDCCicode.h:
3714 changes made to handle multiple sends & receives
3717 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
3719 * src/SDCCcse.c, src/SDCCcse.h:
3720 added function findbackward def (to be used in upcoming optimization)
3722 * src/SDCCcflow.c, src/SDCCcflow.h:
3723 added function returnAtEnd - to determine if a basic block terminates with
3726 * src/SDCCast.c, src/SDCCast.h:
3727 added option parms-in-bank1
3729 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
3730 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
3731 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
3732 adjusted for --parms-in-bank1 option
3734 * device/include/string.h:
3735 donot redefine "reentrant" keyword
3737 * device/include/ds80c390.h: Added some more SFRs
3739 2002-01-28 Bernhard Held <bernhard@bernhardheld.de>
3741 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
3743 2002-01-26 Bernhard Held <bernhard@bernhardheld.de>
3745 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
3747 2002-01-22 Bernhard Held <bernhard@bernhardheld.de>
3749 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
3751 2002-01-18 Paul Stoffregen <paul@pjrc.com>
3753 * Added --xram-movc option
3755 2002-01-13 Bernhard Held <bernhard@bernhardheld.de>
3757 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
3759 2002-01-11 Johan Knol
3761 * Added math lib of Jesus Calvino-Fraga
3763 2002-01-08 Bernhard Held <bernhard@bernhardheld.de>
3765 * src/SDCCmain.c (processFile): fix processing of ../../src.c
3766 * support/regression/Makefile: new target test-mcs51-stack-auto
3767 * support/regression/ports/mcs51-stack-auto/spec.mk: added
3769 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
3771 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
3773 2002-01-04 Bernhard Held <bernhard@bernhardheld.de>
3775 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
3777 2002-01-03 Bernhard Held <bernhard@bernhardheld.de>
3779 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
3781 * src/SDCCglue.h: add definition for printIvalChar()
3783 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
3785 * src/SDCCast.c: fix #498138 by Johan
3787 * src/SDCCglue.c: fix #498138 by Johan
3789 2002-01-02 Bernhard Held <bernhard@bernhardheld.de>
3791 * support/regression/Makefile: fix clean
3793 * support/regression/ports/ds390/support.c: fix transmission of last character
3795 2001-12-29 Sandeep Dutta <sandeep@ddi.com>
3797 * /sdcc/src/ds390/gen.c:
3798 a) improved computing address of stack variable
3799 b) took out some #if 0 code
3800 c) improved parmBytes adjustment
3801 d) improved genPlusIncr & genMinusIncr
3802 e) genCmp could generate bad code (when left assigned to DPTR)
3803 f) Fixed bug in hasInc
3805 * /sdcc/src/ds390/ralloc.c:
3806 a) packRegsForSupport could mess up live information (Fixed)
3807 b) packRegsDPTRuse could be incorrect for left & right shift
3809 * /sdcc/src/mcs51/ralloc.c:
3810 packRegsForSupport could mess up the live information (Fixed)
3812 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
3814 * /sdcc/src/SDCCast.c:
3815 can reverse a loop even if function call is present as long
3816 as the loop control variable is local & is not passed as parameter
3818 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
3820 * /sdcc/ChangeLog: *** empty log message ***
3822 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
3823 More builtin function additions for TININative
3825 * /sdcc/src/ds390/ralloc.c:
3826 Had broken the regression testsuite
3828 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
3830 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
3831 Added funcattr hasStackParms will be set for reentrant functions when there
3832 are paramteres on the stack, this helps in minimizing frame pointer generation
3833 typeFromStr can handle function pointers now
3835 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
3836 *** empty log message ***
3838 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
3840 * /src/ds390/gen.c, /src/ds390/main.c:
3841 More builtin function additions for TININative
3843 * /src/ds390/ralloc.c:
3844 Had broken the regression testsuite
3846 * /src/SDCCast.c: Fixed a bug in dumptree
3848 * /src/SDCCsymt.c, /src/SDCCsymt.h:
3849 Added funcattr hasStackParms will be set for reentrant functions when there
3850 are paramteres on the stack, this helps in minimizing frame pointer generation
3851 typeFromStr can handle function pointers now
3853 * /doc/builtins.txt, /doc/TININative.txt:
3854 *** empty log message ***
3857 2001-12-24 Sandeep Dutta <sandeep@ddi.com>
3859 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
3860 ALPHA version for -mTININative
3862 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
3863 updated to reflect changes in the port structure
3866 added function do_assemble (similar to do_link) if non-null this function
3867 will be called to do assembly (-mTININative) requires a multi command
3869 added function genAssemblerEnd will be called to generate assembler Epilogue
3872 added _JavaNative to debug info printing
3874 * /src/SDCCmain.c: added option --tini-libid
3875 added port->do_assemble function (-mTININative) has a multi command assemble
3877 * /src/SDCCglue.c: Disabled "constExpr" check
3878 added port->genAssemblerEnd function
3880 * /src/SDCCglobl.h: Added option --tini-libid value
3883 tookout optimizeCompare from the header (has no external references)
3885 * /src/SDCCast.c: made one more function "static"
3887 2001-12-23 Michael Hope <michaelh@juju.net.nz>
3889 * src/z80/mappings.i: Added z80asm support.
3891 * src/z80/main.c: Added z80asm support on --asm=z80asm
3893 * src/z80/gen.c: Fixed asm portability issues.
3895 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
3897 * src/SDCCglue.c (printExterns): Added global/extern split.
3899 2001-12-17 Bernhard Held <bernhard@bernhardheld.de>
3901 * support/regression/Makefile: added test for mcs51 model large
3903 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
3905 * support/regression/ports/gbz80/spec.mk: added -mgbz80
3907 2001-12-05 Michael Hope <michaelh@juju.net.nz>
3909 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
3911 1904-01-06 Michael Hope <michaelh@juju.net.nz>
3913 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
3915 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
3917 2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
3919 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
3921 * support/regression/tests/simplefloat.c: Port to mcs51.
3923 2001-11-25 Michael Hope <michaelh@juju.net.nz>
3924 * support/regression/tests/bug-485362.c: Added.
3926 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
3928 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
3930 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
3932 * src/z80/gen.c (aopDump): Added a dump function.
3934 2001-11-25 Bernhard Held <bernhard@bernhardheld.de>
3935 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
3937 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
3939 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
3941 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
3943 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
3945 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
3947 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
3949 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
3951 * support/regression/ports/ds390/support.c: Use tinibios.
3953 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
3955 2001-11-23 Michael Hope <michaelh@juju.net.nz>support/regression/tests/bug-460010.c
3957 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
3958 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
3960 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
3962 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
3964 2001-11-18 Michael Hope <michaelh@juju.net.nz>
3966 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
3968 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
3969 (packRegsForIYUse): Created and optimised.
3971 2001-11-07 Michael Hope <michaelh@juju.net.nz>
3973 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
3974 2001-11-18 Bernhard Held <bernhard@bernhardheld.de>
3976 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
3978 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
3980 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
3982 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
3984 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
3986 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
3988 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
3990 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
3992 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
3994 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
3996 2001-11-07 Michael Hope <michaelh@juju.net.nz>
3998 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
3999 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
4000 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
4002 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
4004 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
4005 (genNotFloat): Added.
4006 (genUminusFloat): Added.
4008 * device/lib/z80/Makefile: Added floating pt stubs.
4010 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
4012 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
4014 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
4016 2001-11-07 Bernhard Held <bernhard@bernhardheld.de>
4018 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
4020 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
4022 * sdcc/support/regression/Makefile: Add port ds390.
4024 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
4026 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
4028 * sdcc/support/regression/ports/ds390/spec.mk: Added.
4030 * sdcc/support/regression/ports/ds390/support.c: Added.
4032 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
4034 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
4036 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
4038 2001-11-04 Michael Hope <michaelh@juju.net.nz>
4040 * device/include/malloc.h: Added z80 and gbz80 support.
4042 * device/lib/gbz80/heap.s: Added.
4044 * device/lib/z80/heap.s: Added.
4046 * device/lib/malloc.c: Added z80 and gbz80 support.
4048 * support/regression/tests/malloc.c (testMalloc): Added.
4050 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
4052 * support/regression/tests/bug-478094.c: Added.
4054 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
4056 2001-11-04 Bernhard Held <bernhard@bernhardheld.de>
4058 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
4060 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
4062 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
4064 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
4066 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
4068 2001-11-04 Michael Hope <michaelh@juju.net.nz>
4070 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
4072 2001-11-03 Michael Hope <michaelh@juju.net.nz>
4074 * support/regression/tests/bug-477927.c: Added.
4076 * src/z80/peeph.def: Added minor rules.
4078 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
4080 * src/z80/peeph.def: Added jump optimisation modification.
4082 2001-11-01 Michael Hope <michaelh@juju.net.nz>
4084 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
4086 2001-10-30 Michael Hope <michaelh@juju.net.nz>
4088 * support/regression/tests/funptrs.c: Added.
4090 2001-10-29 Michael Hope <michaelh@juju.net.nz>
4092 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
4094 2001-10-28 Michael Hope <michaelh@juju.net.nz>
4096 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
4098 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
4100 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
4101 (movLeft2ResultLong): Created.
4103 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
4104 (joinPushes): Added. Joins two char pushes into a word push.
4106 2001-10-27 Michael Hope <michaelh@juju.net.nz>
4108 * support/cpp2/Makefile.in (install): Added creation of dest dir.
4110 * support/makebin/Makefile (install): Added creation of dest dir.
4112 2001-10-24 Karl Bongers <karl@turbobit.com>
4114 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
4116 2001-10-21 Michael Hope <michaelh@juju.net.nz>
4118 * src/z80/ralloc.c: Turned off faulty pack for one use.
4120 * src/z80/peeph-gbz80.def: Removed redundent restart options.
4122 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
4124 2001-10-21 Bernhard Held <bernhard@bernhardheld.de>
4126 * support/regression/Makefile: Improved clean
4128 * support/regression/ports/gbz80/spec.mk: Added clean
4130 * support/regression/ports/host/spec.mk: Added clean
4132 * support/regression/ports/z80/spec.mk: Added clean
4134 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
4136 * support/regression/ports/mcs51/timeout.c: little improvements
4138 2001-10-17 Michael Hope <michaelh@juju.net.nz>
4140 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
4142 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
4144 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
4146 2001-10-16 Bernhard Held <bernhard@bernhardheld.de>
4148 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
4150 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
4152 2001-10-13 Michael Hope <michaelh@juju.net.nz>
4153 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
4155 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
4157 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
4159 * src/mcs51/main.c (_linkCmd): Added bin path to command.
4161 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
4163 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
4165 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
4167 * support/regression/tests/longor.c: Added.
4169 2001-10-11 Bernhard Held <bernhard@bernhardheld.de>
4171 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
4173 * as/mcs51/aslink.h: define PATH_MAX
4175 * as/mcs51/asm.h: define PATH_MAX
4177 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
4179 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
4181 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
4183 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
4185 * src/SDCCglobl.h: define PATH_MAX
4187 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
4189 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
4191 2001-10-11 Michael Hope <michaelh@juju.net.nz>
4193 * src/z80/gen.c (gencjneshort): Fixed
4195 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
4197 2001-10-09 Michael Hope <michaelh@juju.net.nz>
4199 * support/regression/tests/bug-469671.c: Added.
4201 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
4203 2001-10-08 Michael Hope <michaelh@juju.net.nz>
4205 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
4207 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
4209 2001-10-08 Bernhar Held <bernhard@bernhardheld.de>
4211 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
4213 * src/device/lib/_mulint.c : removed hint: nooverlay bug
4215 * src/device/lib/_mullong.c : removed hint: nooverlay bug
4217 * src/device/lib/_divuint.c : removed hint: nooverlay bug
4219 * src/device/lib/_divulong.c: removed hint: nooverlay bug
4221 * src/device/lib/_moduint.c : removed hint: nooverlay bug
4223 * src/device/lib/_modulong.c: removed hint: nooverlay bug
4225 2001-10-07 Michael Hope <michaelh@juju.net.nz>
4227 * 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.
4229 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
4231 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
4233 2001-10-07 <johan@FRIJA>
4235 * device/lib/gets.c (gets): fixed the return value.
4237 2001-10-06 Michael Hope <michaelh@juju.net.nz>
4238 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
4240 * 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.
4242 * 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.
4244 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
4246 * src/pic/gen.c: Removed Safe_strdup.
4248 * configure.in: Added option to enable libgc support.
4250 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
4251 (bitVectUnion): Optimised.
4252 (bitVectIntersect): Optimised.
4253 (bitVectBitsInCommon): Optimised.
4254 (bitVectCplAnd): Optimised.
4256 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
4258 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
4260 * src/SDCCmain.c: distinguish between assembler debug and plain options
4262 * src/avr/main.c: remove standard assembler options
4264 * src/ds390/main.c: remove standard assembler options
4266 * src/mcs51/main.c: remove standard assembler options
4268 * src/port.h: removed "PENDING" comment
4270 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
4272 * src/device/lib/_mulint.c : new, with assember functions
4274 * src/device/lib/_mullong.c : new, with assember functions
4276 * src/device/lib/_divuint.c : with assember functions
4278 * src/device/lib/_divsint.c : with assember functions
4280 * src/device/lib/_divulong.c: with assember functions
4282 * src/device/lib/_divslong.c: with assember functions
4284 * src/device/lib/_moduint.c : with assember functions
4286 * src/device/lib/_modsint.c : with assember functions
4288 * src/device/lib/_modulong.c: with assember functions
4290 * src/device/lib/_modslong.c: with assember functions
4292 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
4294 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
4296 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
4297 replaced _mululong.c and _mulslong.c by _mullong.c
4299 2001-10-03 Bernhard Held <bernhard@bernhardheld.de>
4301 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
4303 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
4305 * src/SDCCglue.c: test, if win32api is available for MINGW
4307 2001-10-01 Bernhard Held <bernhard@bernhardheld.de>
4309 * src/SDCCsymt.c: no more _modifier in printTypeChain()
4310 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
4311 * support/regression/ports/gbz80/spec.mk: removed GENERIC
4312 * support/regression/ports/host/spec.mk: removed GENERIC
4313 * support/regression/ports/mcs51/spec.mk: removed GENERIC
4314 * support/regression/ports/z80/spec.mk: removed GENERIC
4316 2001-10-01 Michael Hope <michaelh@juju.net.nz>
4318 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
4320 * support/regression/tests/bug-467035.c: Created.
4322 2001-10-01 <johan@FRIJA>
4324 * src/SDCC.y: fixed bug #466586 part 1
4326 2001-10-01 Johan Knol <johan.knol@iduna.nl>
4328 * SDCCicode.c: z80 has no generic pointers
4329 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
4331 2001-09-30 Michael Hope <michaelh@juju.net.nz>
4333 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
4335 2001-09-29 Michael Hope <michaelh@juju.net.nz>
4337 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
4339 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
4341 2001-09-25 Michael Hope <michaelh@juju.net.nz>
4343 * configure.in: Fixed up so that ucsim is only configured once.
4345 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
4347 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
4348 (getPathDifference): As above.
4350 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
4352 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
4354 2001-09-23 Michael Hope <michaelh@juju.net.nz>
4355 * .version: Updated to 2.3.1
4357 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
4358 Added copyright header.
4360 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
4361 (assemble): Added support for macro based assembler commands.
4362 (linkEdit): Added support for macro based linker commands.
4363 (preProcess): Changed the pre-processor to use macros.
4364 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
4365 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
4367 * device/lib/z80/crt0.s: Added module name for debugging.
4369 2001-09-20 Michael Hope <michaelh@juju.net.nz>
4371 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4373 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
4375 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
4377 * src/Makefile.in: Added SDCCmacro and SDCCutil
4379 2001-09-19 Michael Hope <michaelh@juju.net.nz>
4381 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
4383 2001-09-16 <johan@FRIJA>
4385 * 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.
4387 2001-09-15 <johan@FRIJA>
4389 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
4390 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
4392 2001-09-11 <johan@FRIJA>
4394 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
4396 2001-09-10 Michael Hope <michaelh@juju.net.nz>
4398 * support/regression/tests/bug-460444.c: Added test case.
4400 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
4401 (genCast): Added justification for all of the asserts.
4403 2001-09-10 Bernhard Held <bernhard@bernhardheld.de>
4405 * support/regression/support.c: _xdata replaced by xdata
4407 * support/regression/spec.mk: removed _generic
4409 2001-09-09 Michael Hope <michaelh@juju.net.nz>
4411 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
4413 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
4414 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
4416 * src/z80/peeph.def: Added a rule to optimise shift then compare.
4418 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
4420 * support/regression/tests/bug-460010.c: Added test case.
4422 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
4424 2001-09-09 Bernhard Held <bernhard@bernhardheld.de>
4426 * support/regression/Makefile: inter-port-clean adjusted for mcs51
4428 * support/regression/testfwk.c: removed workaround for bug #436344
4430 * support/regression/tests/bp.c: use less memory with mcs51
4432 * support/regression/tests/bug-441448.c: use less memory
4434 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
4436 * support/regression/collate-results.py: typo
4438 2001-09-08 Michael Hope <michaelh@juju.net.nz>
4440 * support/regression/tests/fetchoverlap.c: Added new test case.
4442 * support/regression/tests/bp.c: Added new test case.
4444 * support/regression/tests/bug-448984.c: Added new test case.
4446 * support/regression/tests/pow2shifts.c: Added new test case.
4448 * src/z80/gen.c: Turned off the noise it normally generates for the release.
4449 (genlshTwo): Fixed right shift for count > 8.
4451 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
4453 2001-09-08 <johan@FRIJA>
4455 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
4457 2001-09-07 <johan@FRIJA>
4459 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
4461 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
4463 2001-09-06 <johan@FRIJA>
4465 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
4466 * bernhard noted me at this: "() equals to (void)" (1.38)
4468 2001-09-05 <johan@FRIJA>
4470 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
4472 2001-09-04 <johan@FRIJA>
4474 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
4477 2001-09-04 Paul Stoffregen <paul@pjrc.com>
4479 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
4481 2001-09-03 Michael Hope <michaelh@juju.net.nz>
4483 * link/z80/aslink.h: Fixed path for PATH_MAX
4485 2001-09-02 Michael Hope <michaelh@juju.net.nz>
4487 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
4489 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
4491 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
4493 * 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.
4495 2001-09-01 Michael Hope <michaelh@juju.net.nz>
4497 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
4498 (genCmp): Fixed up genCmp for the GB with longs.
4500 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
4502 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
4504 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
4506 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
4508 2001-08-30 Paul Stoffregen <paul@pjrc.com>
4510 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
4512 2001-08-30 Michael Hope <michaelh@juju.net.nz>
4514 * 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.
4516 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
4518 2001-08-29 Michael Hope <michaelh@juju.net.nz>
4520 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
4522 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
4524 2001-08-30 Bernhard Held <bernhard@bernhardheld.de>
4526 * sim/ucsim/configure: little improvement of Cygwin-detection
4527 * sim/ucsim/configure.in: little improvement of Cygwin-detection
4528 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
4529 * support/regression/tests/bug-221100.c: small changes for mcs51
4530 * support/regression/tests/bug-221168.c: small changes for mcs51
4531 * support/regression/tests/bug-227710.c: small changes for mcs51
4532 * support/regression/tests/staticinit.c: small changes for mcs51
4533 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
4534 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
4535 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601