1 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
4 non-reentrant function __modsint in the interrupt function (thus
5 corrupting math operations during serial I/O)
6 * device/lib/ser_ir.c: as above, changed buffersize
7 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9 * doc/Makefile: added option -t for rsync
11 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13 * src/SDCCast.h (struct ast),
14 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577
16 2004-10-20 Borut Razem <borut.razem AT siol.net>
18 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
21 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
23 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
25 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
26 support functions to replace long sequences of MOVFF's from access
27 bank registers to stack and vice versa,
28 * src/pic16/device.h: added new field opt_flags, where optimization
29 flags can be set to enable certain features,
30 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
31 * pBlock, (genFunction, genEndFunction): surroung loop for
32 saving/loading used registers in stack with PC_INFO pCodes,
33 INF_LREGS. Code in between can then be optimized by pCode optimizer
34 to support function calls,
35 * (genDataPointerSet): fixed bug which loaded float fields in
36 structures with corrupt data,
37 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
38 in a standard way debug info on stderr. Feature used for developing
40 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
41 obsolete chunks of code,
42 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
43 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
44 * pic16/src/pcode.c (pic16_newpCodeInfo,
45 * (pic16_newpCodeOpLocalRegs),
46 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
48 * (pic16_pCodeConstString): printing of the initial value of a
49 symbol as a comment is inhibited since parsing was already done by
50 copyStr and output is corrupt,
51 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
53 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
55 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
57 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
59 * as/mcs51/lkarea.c: removed old K&R style,
60 (lnksect): changed check on boundary error,
61 (lnksect2): changed check on boundary error,
62 (lnksect2): extend XSTK to end of page if size = 1
63 * as/mcs51/lkmain.c: removed old K&R style,
64 (Areas51): create l_IRAM symbol
65 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
66 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
67 model-mcs51-stack-auto, added model-mcs51-xstack-auto
68 * device/lib/_mullong.c: added version to be compiled with xstack
69 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
70 * device/lib/mcs51/crtxclear.asm: clear pdata as well
71 * device/lib/mcs51/crtxstack.asm: fixed comment
72 * src/SDCCglue.c: maxInterrupts defaults to 0,
73 (emitMaps): added pdata,
74 (createInterruptVect): (re)moved default,
76 (glue): moved __start__xstack to XSTK with default size 1
77 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
78 and options.float_rent when options.stackAuto is set,
79 (linkEdit): only write XDATA_NAME if provided on command line
81 * src/SDCCmem.c: added pdata
82 * src/port.h: added pdata_name to PORT
83 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
84 (saveRegisters, unsaveRegisters): removed usage of B,
85 (genMinus): fixed accumulator clash,
86 (genJumpTab): added comment, this needs another look
87 * src/mcs51/gen.c: added check for "B in use" paranoia,
88 added pushB() and popB()
89 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
98 * src/z80/main.c: (reset_regparms) made void parameter explicit and
99 added PSEG (PAG,XDATA) or NULL to port specifier
100 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
101 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
102 (_mcs51_genInitStartup): removed __start__xstack equ,
103 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
104 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
105 * src/z80/gen.c (_rleAppend): fixed warnings
106 * support/regression/tests/zeropad.c: added pdata test
107 * .version: bumped to 2.4.6
109 2004-10-17 Borut Razem <borut.razem AT siol.net>
111 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
112 as a part of nightly build
114 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
116 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
117 WREG holds the first byte function parameters,
118 * (aopForSym): take special case for symbols which are in FARSPACE
119 but in CODESPACE too,
120 * (assignResultValue): modified to take into account _G.useWreg,
121 * (genCall): don't use wreg for parameter passing when function is
122 declared as reentrant, too, added optimization INCF to stack
123 pointer when stack parameter count is 1,
124 * (genFunction, genEndFunction): refurnished and fixed to not using
125 wreg for passing parameters when function has varargs or is
126 reentrant, fixed bug with symbol name compare for generating
127 functions in absolute address,
128 * (pic16_storeForReturn): refurnished,
129 * (genCmp): began writing a new version of the function, not ready
130 yet, therefore it is disabled,
131 * (genAssign): do not read code memory when assigning a function to
133 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
134 array of characters, not pointer,
135 * (pic16initialComments): in debug mode emit an .ident directive for
137 * (_process_pragma): emit a new warning type (internal to pic16)
138 when setting stack to default length, emit a similar warning when
139 placing a function at absolute address and address is not word aligned
140 * (_pic16_parseOptions): added 'return TRUE' statement,
141 * (_pic16_linkEdit): if compiling a source, then add the source's
142 file object, first in the list of objects to link,
144 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
146 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
147 * src/pic/main.c : removed VC warning.
148 * src/pic/gen.c : changed comment.
150 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
152 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
153 reference to a deprecated symbol _GPTRREG was causing failure to
154 link. Thanks G. M. Gallant for the info.
156 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
158 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
159 comments for Bugs item #954788.
161 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
163 * src/pic16/device.c (pic16_dump_gsection,
164 * pic16_groupRegistersInSection): handle symbols declared to be in
165 access bank differently,
166 * src/pic16/gen.c (struct _G): added field resDirect,
167 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
168 send values read from stack directly to result and don't allocate
170 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
172 * (pic16_sameRegsOfs): NEW,
173 * (freeAsmop): if _G.resDirect is set then do not mark registers as
174 free because they were not allocated from temporary pool,
175 * pic16_popRegFromString): workaround to fix a problem with
176 allocating variables twice or never,
177 * (genGenPointerGet): using PRODL instead of FSR0H,
178 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
180 * (genAssign): take advantage of the _G.resDirect flag,
181 * (genCast): around line 11844, use mov2f instead of directly
182 MOVFF'ing between operands to account for literal values,
183 * src/pic16/genutils.c: some new debug functions for gpsim have been
185 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
186 float with integer part only,
187 * src/pic16/main.c (_process_pragma): handle pragma udata access to
188 place variables in access bank
189 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
190 updated sources to reflect recent changes in gen.c
192 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
194 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
195 sources that searched for headers in installation path, now the
196 device/include/pic16 is used,
197 * src/pic16/glue.c (pic16glue),
198 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
199 .line directives if not in debug mode, this suppresses assembler's
200 warnings for ignored directives
202 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
204 * src/port.h: made reset_regparms prototype void parameter explicit.
205 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
206 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
207 * doc/sdccman.lyx: documented warning disabling and how to use
208 printf_large to make it print floats.
209 * device/include/stdbool.h: NEW
210 * device/lib/_atof.c,
211 * device/lib/_divuint.c,
212 * device/lib/_divulong.c,
214 * device/lib/printf_large.c,
215 * device/lib/sincosf.c,
216 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
217 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
218 a completely reentrant lib.
220 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
222 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
223 * device/include/pic16/stdio.h: fixed bug with colon
225 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
227 * device/include/pic16/stdio.h,
228 * device/include/pic16/stdlib.h,
229 * device/include/pic16/math.h: NEW
230 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
231 declared as _naked to reduce overhead
232 * device/lib/Makefile.in (target port-specific-objects-pic16):
233 changed * to *.* so to ignore the CVS directory,
234 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
235 stacked variables back in stack,
236 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
239 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
241 * .version: bumped version number to 2.4.5
242 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
243 * support/Util/SDCCerr.c (messages structure): added entry for
246 Large cumulative patch for pic16 port and libraries.
247 * device/include/pic16/sdcc-lib.h,
248 * device/include/pic16/stdarg.h,
249 * device/include/asm/pic16/features.h,
250 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
251 * device/include/pic16/float.h: changes reentrant keyword with
252 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
253 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
254 updated target build-libraries to include objects from gptr,
255 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
256 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
257 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
258 all function headings,
259 * src/SDCCmain.c: added global parameter userIncDirsSet,
260 * (parseCmdLine): when option -I is encountered add directory to
262 * src/version.awk: added space between control and long,
263 * src/pic16/NOTES: added some notes for the port,
264 * src/pic16/gen.c: added prototype for mov2fp function,
265 * (fReturnpic16[]): properly named return value registers,
266 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
267 * (aopForSym): added code to handle symbols with onStack flag set,
268 symbols onStack are allocated PTRSIZE bytes,
269 * (aopFreeAsmop): handles special case where asmops are stack objects,
270 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
271 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
272 added argument lock to trace flaws in allocating temporary registers
273 when developing port,
274 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
275 * (pic16_popRegFromString): reenabled allocating a direct register
277 * (assignResultValue): various beautifications,
278 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
279 referenced function argument,
280 * (genIpush): reenabled to allow stacked arguments, handles only
282 * (genCall, genPcall): major changes to allow for variable argument
283 functions, fixed a bug with falsely restoring stack pointer after
285 * (genFunction): pending code for critical function,
286 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
287 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
288 * (genNearPointerGet): fixed bug with indirect reading, was always
290 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
292 * (genAddrOf): rewrote code to take address of a stacked function parameter
293 * (genCast): fixed casting to generic pointer type,
294 * src/pic16/gen.h: added AOP_STA,
295 * (struct asmop): added field stk,
296 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
297 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
298 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
299 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
300 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
301 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
303 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
305 * (pic16_port structure): generic pointer size is set to 3,
306 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
307 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
309 * src/pic16/ralloc.c (allocReg): prevent allocating register when
312 2004-09-24 Martin Helmling <mh AT octo-soft.de>
314 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
315 * debugger/mcs51/simi.c: addapt new syntax of s51
317 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
319 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
320 * src/pic16/pcode.c: commented out some calls to free() in order to
323 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
326 * src/SDCCicode.c (isiCodeInFunctionCall),
327 * src/avr/ralloc.c (selectSpil),
328 * src/pic/ralloc.c (selectSpil),
329 * src/pic16/ralloc.c (selectSpil),
330 * src/ds390/ralloc.c (selectSpil),
331 * src/hc08/ralloc.c (selectSpil),
332 * src/xa51/ralloc.c (selectSpil),
333 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
334 stack in the middle of a function call sequence (fixes bug #1020268)
335 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
336 costs associated with the minimum switch case.
338 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
340 * src/SDCC.lex: fixed bug #1030549
342 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
344 * src/SDCCcse.h (struct cseDef),
345 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
346 over a function call if the CSE is derived from a symbol whose
347 address has been taken (fixes bug #1029883)
348 * support/regression/tests/bug-1029883: a new regression test for
351 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
353 * src/hc08/gen.c (emitinline): fixed bug #1029778
354 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
355 to a cast object is no longer a syntax error ("fixes" bug #1030006,
356 and starts toward RFE #905167)
358 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
360 * src/pic16/gen.c (mov2f): New function to move an operand to
361 another without considering if it is a literal or a register,
362 * (pic16_sameRegs): don't check if they are both AOP_REG,
363 * (AccRsh): removed andmask=0 lines,
364 * (genLeftShift): duplicated to be improved in future versions,
365 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
366 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
367 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
368 * (pic16initMnemonics): added initialization for POC_INFSNZW,
369 * (insertBankSwitch): fixed inserting banksel directives algorithm
370 for instructions that follow a skip instruction, this fixes a report
371 for broken subtraction code generation,
372 * src/pic16/ralloc.c (deassignLRs): do not free register if current
373 iCode is a left op, just in case result and right share the same
376 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
379 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
381 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
382 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
383 on 2004-09-12; it was buggy
385 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
387 * src/SDCCsymt.h: removed RESULT_CHECK
392 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
394 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
396 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
397 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
398 configuration values no more rejected by compiler, they are assigned
399 to configuration registers with a warning message instead,
400 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
401 the for-loop so last conf register is emitted too,
402 * (_pic16_initPaths): link library libsdcc.lib by default,
403 * (_hasNativeMulFor): modified test for multiplication according to
404 Raphael Neider's remarks. Integer multiplication is also done with
406 * device/include/pic16/pic18fregs.h: corrected type error in while
407 testing and including 18f6720 header file
409 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
411 * src/pic16/device.h (pic16_options): removed field use_crt,
412 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
413 until an optimization to handle single bits is added,
414 * (pic16_loadFSR0): moved before genUnpackBits,
415 * (genAnd): some white lines removed,
416 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
417 leave_reset flags in pic16_options when using crt modules,
419 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
421 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
422 for bugs 898889 & 979599. Also used some safer print instructions.
424 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
426 * src/pic16/device.h (pic16_options_t): added field use_crt,
428 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
429 catch a probable future bug,
430 * src/pic16/gen.c: aopIdx function commented out,
431 * (genAssign): commented out old code which used aopIdx,
432 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
433 code, added if conditionals to take into account the --use-crt
434 command line options,
435 * src/pic16/main.c (pic16_optionsTable): added new command line
436 options, --use-crt= and --no-crt,
437 * (_pic16_linkEdit): now the proper crt object is added in the
438 linker command line except than when --no-crt is specified,
440 * src/pic16/pcode.h: added some structures and functions for a new
441 optimization scheme to compansate for instruction overhead between
442 same iCodes, this scheme is currently under development and is not
444 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
446 * device/lib/pic16/startup/crt0i.c,
447 * device/lib/pic16/startup/crt0iz.c: added global char variable
448 __uflags to force the generation of an idata section
450 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
453 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
454 * doc/sdccman.lyx: updated sdcc version to 2.4.4
456 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
458 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
459 Frieder) and clarified the default code optimization mode
461 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
463 * src/SDCC.lex (doPragma, process_pragma),
464 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
465 "opt_code_size", and "opt_code_balanced"
466 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
467 regrouped options by category, added support for category headers
468 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
469 and "--opt-code-size"
470 * doc/sdccman.lyx: documented these new options and pragmas
471 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
472 preference into account
474 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
476 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
477 geniCodePreDec): Fixed bug 904237 by generating a warning
479 * src/SDCCerr.c: added warning W_SIZEOF_VOID
481 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
483 * src/pic/device.c : When no max ram set validate full memory range.
485 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
487 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
489 * device/lib/_gptrget.c,
490 * device/lib/_gptrput.c: updated comment
491 * device/lib/calloc.c,
493 * device/lib/malloc.c,
494 * device/lib/realloc.c: added LGPL, made them reentrant-safe
495 * src/SDCCcse.c (cseBBlock),
496 * src/SDCCicode.c (printOperand, geniCodeArray),
497 * src/SDCCicode.h (struct operand): fixed bug 868103
498 * support/regression/tests/bug-868103.c: added
499 * src/SDCCast.c (searchLitOp),
500 * src/SDCCcse.h (struct cseDef),
501 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
502 * src/SDCCicode.h (struct operand),
503 * src/SDCCsymt.h (struct sym_link),
504 * src/avr/gen.c (hasInc),
505 * src/ds390/gen.c (hasInc),
506 * src/hc08/gen.c (genPlusIncr, hasInc),
507 * src/mcs51/gen.c (hasInc),
508 * src/pic16/glue.c (pic16_printIvalChar),
509 * src/pic16/ralloc.c (regWithIdx),
510 * src/xa51/gen.c (hasInc) : removed warnings
511 * src/SDCCast.c (createBlock): added comment ???
512 * src/hc08/ralloc.c: updated comments
514 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
516 * doc/sdccman.lyx: updated section on switch statements, added
517 section about semaphore locking
518 * doc/Makefile: added option -info for latex2html
519 * device/lib/_gptrget.c,
520 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
522 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
526 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
527 maxram is less than 0x100.
529 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
531 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
533 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
544 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
545 a jump table is the best form for a switch statement, including
546 automatic insertion of missing cases to make the case range
547 continuous. Developed in collaboration with Frieder Ferlemann.
549 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
551 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
552 accumulator result if it needs sign extension
554 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
556 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
558 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
560 * device/lib/gbz80/printf.c,
561 * device/lib/z80/printf.c: removed define for NULL
563 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
566 * device/examples/ds390/ow390/ad26.c,
567 * device/examples/ds390/ow390/cnt1d.c,
568 * device/examples/ds390/ow390/counter.c,
569 * device/examples/ds390/ow390/ds2480.h,
570 * device/examples/ds390/ow390/ds2480ut.c,
571 * device/examples/ds390/ow390/findtype.c,
572 * device/examples/ds390/ow390/gethumd.c,
573 * device/examples/ds390/ow390/owllu.c,
574 * device/examples/ds390/ow390/ownetu.c,
575 * device/examples/ds390/ow390/swt12.c,
576 * device/examples/ds390/ow390/swtloop.c,
577 * device/examples/ds390/ow390/temp.c,
578 * device/examples/ds390/ow390/temp10.c,
579 * device/examples/ds390/ow390/thermo21.c,
580 * device/examples/ds390/ow390/tinilnk.c,
581 * device/examples/ds390/ow390/tstfind.c,
582 * device/examples/serialcomm/windows/serial.cpp,
583 * device/examples/serialcomm/windows/test_serialcomm.cpp,
584 * device/include/reg51.h: fixed line endings for cvs
586 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
588 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
589 packRegsForAccUse, packRegisters): new accumulator register
591 * support/regression/ports/hc08/support.c (_putchar): suppress
592 warning of unused variable
593 * src/SDCCicode.c: added SWAP entry to codeTable
595 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
597 * device/lib/sprintf.c: forgot to add this file before previous commit
599 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
601 * src/pic16/gen.c (genPackBits): added operand right in function
602 parameters, load result directly if p_type is POINTER (that is
603 called by genNearPointerSet)
604 * (genUnPackBits): added operand left in function parameters,
605 * (genNearPointerGet, genNearPointerSet): prevent the loading of
606 FSR0 if accessing bitfields,
608 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
610 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
611 _print_format; updated printf, sprintf, vsprintf
612 * device/include/asm/default/features.h: corrected comment/define
613 * device/lib/Makefile.in: added sprintf.c
614 * device/lib/libsdcc.lib: added sprintf module
615 * device/lib/printf_large.c,
616 * device/lib/vprintf.c,
617 * device/lib/sprintf.c: totally refactored printf_large and vprintf
619 * support/regression/Makefile: changed ALL_PORTS into a usefull default
620 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
621 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
623 * support/regression/tests/zeropad.c: define idata as data for hc08
625 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
627 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
628 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
629 labels are referenced at least once (even if a reference is not found)
630 * src/hc08/gen.c (emitcode): set isComment flag for comments
631 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
632 loads), rules 6a..6b (optimize jumps to return)
634 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
636 * device/lib/acosf.c (acosf),
637 * device/lib/asinf.c (asinf),
638 * device/lib/atanf.c (atanf),
639 * device/lib/ceilf.c (ceilf),
640 * device/lib/cosf.c (cosf),
641 * device/lib/coshf.c (coshf),
642 * device/lib/cotf.c (cotf),
643 * device/lib/fabsf.c (fabsf),
644 * device/lib/floorf.c (floorf),
645 * device/lib/log10f.c (log10f),
646 * device/lib/logf.c (logf),
647 * device/lib/sinf.c (sinf),
648 * device/lib/sinhf.c (sinhf),
649 * device/lib/sqrtf.c (sqrtf),
650 * device/lib/tanf.c (tanf),
651 * device/lib/tanhf.c (tanhf),
652 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
653 replaced all instances of "reentrant" in the library functions
654 defined in math.h with this macro.
655 * support/regression/tests/float_trans.c: reenabled test for hc08
657 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
659 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
662 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
664 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
665 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
666 multi-byte volatile operands are used
667 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
668 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
669 initialization to area GSINIT0 so that it would always precede
670 any static initializers in GSINIT
671 * support/regression/tests/zeropad.c: fixed idata define for hc08
672 * support/regression/tests/bug-927659.c,
673 * support/regression/tests/float_trans.c: disabled tests for hc08
674 pending missing library routines
675 * .version: increased version number to 2.4.4 - hc08 port now passes
679 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
681 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
682 * Makefile.common.in,
684 * as/hc08/Makefile.in,
685 * as/mcs51/Makefile.in,
686 * as/z80/Makefile.in,
687 * debugger/mcs51/Makefile.in,
688 * device/include/Makefile.in,
689 * device/lib/Makefile.in,
692 * link/z80/Makefile.in,
693 * packihx/Makefile.in,
694 * sim/ucsim/main_in.mk,
695 * sim/ucsim/avr.src/Makefile.in,
696 * sim/ucsim/doc/Makefile.in,
697 * sim/ucsim/gui.src/serio.src/Makefile.in,
698 * sim/ucsim/hc08.src/Makefile.in,
699 * sim/ucsim/s51.src/Makefile.in,
700 * sim/ucsim/xa.src/Makefile.in,
701 * sim/ucsim/z80.src/Makefile.in,
703 * support/cpp2/Makefile.in,
704 * support/librarian/Makefile,
705 * support/makebin/Makefile: added DESTDIR to the install path proposed
706 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
707 * doc/sdccman.lyx: added DESTDIR documentation
709 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
711 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
712 instruction for interrupt handlers, use fast returns when returning
713 from high priority interrupts
715 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
717 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
719 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
720 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
721 bugs, ported much of Bernhard's code from mcs51
722 * src/mcs51/gen.c (genSend),
723 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
724 than one when calling a reentrant function
725 * device/lib/_mullong.c: defined an alternate struct layout for big
728 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
730 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
733 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
735 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
736 are sane and complete before asking the port its prefered parameter
737 passing method (fixes bug #1017633)
738 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
741 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
743 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
744 problem in bitfields >= 8 bits.
746 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
748 * src/SDCCsymt.c: undid changes that were not meant to be committed
750 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
752 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
754 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
756 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
757 copied and wrong bit got inverted
759 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
761 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
762 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
763 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
764 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
765 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
766 assignments to bitfields at known addresses
767 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
768 reads from bitfields at known addresses
769 * src/hc08/ralloc.c (packRegisters),
770 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
771 genhc08Code): optimize pointer get values used as conditionals
772 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
775 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
777 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
778 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
779 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
782 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
784 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
786 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
788 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
791 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
793 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
795 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
797 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
800 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
802 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
804 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
806 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
807 cases use more compact code.
809 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
811 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
813 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
815 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
817 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
820 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
821 parameter of changePointer() from symbol* to sym_link*
822 * src/SDCCast.c (decorateType): call changePointer() for CAST op
823 * src/SDCCsymt.c (compareType): void* type is castable to other
824 pointers, but not necesarily an exact match.
825 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
826 is no longer blindly treated as an exact match.
827 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
829 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
831 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
833 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
838 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
840 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
844 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
846 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
848 * src/mcs51/gen.c (emitcode): fixed bug #992819
850 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
852 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
853 there's no need to make it worse
855 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
857 * src/mcs51/ralloc.c (deassignLR),
858 * src/ds390/ralloc.c (deassignLR),
859 * src/hc08/ralloc.c (deassignLR),
860 * src/z80/ralloc.c (deassignLR),
861 * src/pic/ralloc.c (deassignLR),
862 * src/pic16/ralloc.c (deassignLR),
863 * src/avr/ralloc.c (deassignLR),
864 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
865 rlivePoint): fixed another part of bug #971834
867 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
869 * src/z80/main.c: enabled "critical" keyword
870 * src/z80/mappings.i,
871 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
872 functions (fixes bug #979646)
873 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
875 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
877 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
880 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
882 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
883 doesn't disable too much optimizations
885 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
887 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
889 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
891 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
893 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
895 * src/pic/gen.c tidied up tabs
896 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
897 * src/pic/main.c tidied up tabs
898 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
899 * src/pic/pcoderegs.c tidied up tabs
900 * src/pic/ralloc.c tidied up tabs
902 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
904 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
905 to S_FIXED for pic16 port and when symbol is not in level 0,
906 allocate for S_REGISTER storage class and pic16 port, too,
907 * src/pic16/device.h: prototype for checkSym,
908 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
909 * (pic16_assignConfigWordValue): test the value and the mask to
910 validate that the value is suitable for the configuration word,
911 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
912 collect extern declared symbols, don't emit symbol twice, check
913 first if symbol is in publics set first,
914 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
915 * added command line '--fstack' which enables an experimental
916 feature for stack access, too buggy to be used yet...
917 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
918 * (pic16_allocDirReg): when register has storage class S_REGISTER
919 allocate in pic16_dynAccessRegs,
920 * device/include/pic16/pic18f????.h: modified configuration word
921 naming convention, words started as CONFIG0H but should be CONFIG1H
923 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
925 * device/include/mcs51reg.h: fixed bug 970993
927 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
929 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
930 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
931 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
932 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
933 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
934 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
935 error/warning numbers,
936 added function setWarningDisabled()
937 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
938 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
939 _memcmp.c _memmove.c calloc.c realloc.c free.c
940 * support/regression/tests/malloc.c: added tests for new functionality
941 * support/regression/tests/zeropad.c: added tests for truncated initializers
942 and initialized char arrays starting with '\x0'
943 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
945 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
947 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
949 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
951 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
952 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
953 peephole 177.e. Thanks to anonymous
955 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
957 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
958 function isn't used in the source but referenced as a
959 variable initializer then declare it as extern in .asm file
961 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
963 * .version: increased version number to 2.4.3
965 Adding version extension according to ChangeLog CVS revision
966 * src/Makefile.in (target all): added dependency 'version.h'
967 * (rule version.h): added rule to create version.h from ChangeLog,
968 * (rule dep): added dependency version.h,
969 * src/version.awk: AWK script to create version.h
970 * src/SDCCdwarf2.c (dwWriteModule),
971 * src/SDCCglue.c (initialComments),
972 * src/SDCCmain.c (printVersionInfo): modified to write after
973 version string the version extension number,
974 * src/SDCCutil.c: included "version.h"
975 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
977 * src/SDCCutil.h: added prototype for getBuildNumber
979 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
981 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
982 const char [] is found in function prototype...
984 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
985 moving to WREG with source is already in WREG,
986 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
987 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
988 * (aopForSym): stack'ed symbols are partially supported, added
989 if-clause to support symbols in FARSPACE,
990 * (sameRegs): added test for AOP_ACC to see if registers are same,
991 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
992 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
993 * (pic16_popRegFromString): will not allocate a new register if it
994 doesn't find one by name, bug may have introduced...
995 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
996 * (genIpush): revived to use pic16 port's stack,
997 * (genAddrOf): added incomplete case for stack'ed operand,
998 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
999 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
1000 can handle multibyte operands,
1001 * src/pic16/glue.c (pic16_printIval*): some debug info added,
1002 * (pic16initialComments): added message for MPLAB compatibility
1004 * src/pic16/main.h: prototype for pic16_mplab_comp,
1005 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
1006 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
1007 * (_pic16_linkEdit): NEW, handles link stage, transferred here
1008 because of increased complexity of procedure,
1009 * (_process_pragma): stack pragma changed to format 'stack pos len',
1010 emit symbol '_stack_end' to conform with gplink,
1011 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
1012 to search for register,
1013 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
1015 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
1016 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
1017 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
1018 case for PO_GPR_REGISTER,
1019 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
1020 dies, the new era is ahead !...
1021 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
1022 pic16_dynInternalRegs,
1023 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
1024 * (pic16_allocDirReg): minor optimizations and bug fixes,
1025 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
1027 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
1028 load stack and frame pointer with address of 'stack_end' symbol
1030 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
1032 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
1033 without source code but only variable initializers
1035 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
1037 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
1038 external are not declared as extern to reduce overhead while linking
1040 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
1042 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
1044 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1046 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
1047 Yee Keat for the patch
1048 * src/SDCCast.c (decorateType): fixed bug #979599
1049 * src/ds390/gen.h: removed local fReturnSizeDS390
1050 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
1051 * src/ds390/gen.c (genAnd, genOr, genXor),
1052 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
1054 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
1056 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
1057 add relFilesSet to $3, manipulate $2 to handle linking of object
1058 files without source files in command line,
1059 * device/include/pic16 (all headers): added ID location macros,
1060 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
1061 entries for ID location bytes,
1062 * (pic16_assignIdByteValue): NEW,
1063 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
1064 added field dumpcalltree to pic16_options_t,
1065 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
1066 is used instead of pic16_Gstack_base_addr, check if (ifx) before
1067 emitting rFalseIfx label after check_carry label,
1068 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
1069 pic16_emitDIRegs), NEW
1070 * (pic16glue): dump .calltree file when option --calltree found,
1071 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
1072 * (_pic16_genAssemblerPreamble): emit ID locations after
1073 configuration registers,
1074 * (pic16_linkCmd): modifications of the link command,
1075 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
1076 * (pic16_pCodeInitRegisters): don't init stack registers,
1077 * (pic16_findPrevInstruction): fixed bug,
1078 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
1079 bug with immediate registers,
1080 * (buildCallTree): traces stack push and pop,
1081 * (pct2): dump also stack usage for each function,
1082 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
1083 * (pic16_allocDirReg): various modifications,
1084 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
1087 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
1089 * src/pic16/pcode.c: removed buggy double colon
1091 2004-07-01 Borut Razem <borut.razem AT siol.net>
1093 * support/scripts/sdcc.nsi: added include/pic16 to setup
1095 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
1097 * device/lib/Makefile.in: fixed bug in target objects-pic16,
1098 * device/lib/pic16/Makefile: prefixed with dash (-) command under
1100 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
1101 specific command line arguments. Also added sample lkr script
1102 for placing a variable at a specific memory bank.
1103 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
1104 at a specific memory bank,
1105 * (pic16_dump_isection): fixed bug which caused string literals to
1106 be omitted when dumping idata section,
1107 * (pic16_groupRegistersInSection): added code to handle registers
1108 in specific memory banks,
1109 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
1110 public, all references are renamed too,
1111 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
1113 * (pic16_storeForReturn): added case to handle when dest is WREG,
1114 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
1115 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
1116 pic16_rel_udata, check to see if that register is marked as being
1117 a member of a specific memory bank,
1118 * (pic16_printIvalCharPtr): added code to add string literals either
1119 to code or the idata sections,
1120 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
1121 also accept the 'udata' pragma,
1122 * src/pic16/main.h: new structure types sectName and sectSym
1123 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
1124 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
1125 * (pic16_findPrevInstruction): fixed, it returned nothing,
1126 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
1127 instruction combinations,
1128 * (pic16_FixRegisterBanking): heavily reorganised,
1129 * (pic16_AnalyzeBanking): if generating banksel directives is
1130 disabled, then don't call FixRegisterBanking at all,
1131 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
1133 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
1135 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
1137 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
1138 Phuah Yee Keat <yk.phuah AT nestac.com>
1140 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
1142 * src/pic16/glue.c (pic16createInterruptVect): function now emits
1143 correctly the IVT even if it is relocated to some other location
1145 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
1147 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
1148 * device/include/pic16/pic18f2220.h: NEW,
1149 * device/lib/pic16/libdev/pic18f2220.c: NEW,
1150 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
1151 * src/pic16/device.c (struct Pics16): added info for 18f2220,
1152 * src/pic16/device.h (struct pic16_options): added ivt_loc and
1153 nodefaultlibs, ivt_loc is the location of the interrupt vector
1154 table, and nodefaultlibs signs that default libraries should not be
1155 linked in link stage,
1156 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
1157 according to --ivt-loc argument,
1158 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
1159 when pragma stack is found,
1161 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1163 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
1164 256 (range check), 257 (do while), 258.a-f (bit banging
1165 f.e. on 3-wire SPI bus)
1167 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1169 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
1170 variables used exclusively within a loop
1172 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
1174 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
1176 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1178 * src/SDCClrange.c (computeClash): fixed bug #971834
1180 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1182 * src/mcs51/gen.c (genCmp): fixed bug #975903
1183 * src/hc08/gen.c (operandsEqu),
1184 * src/ds390/gen.c (operandsEqu),
1185 * src/z80/gen.c (operandsEqu),
1186 * src/pic/gen.c (operandsEqu),
1187 * src/pic16/gen.c (operandsEqu),
1188 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
1189 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
1191 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1193 * src/SDCCcse.c (cseBBlock): fixed bug #966963
1195 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
1197 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
1198 default case in switch statement,
1199 * glue.c (pic16_initPointer): expr is initialised via decoarteType
1200 to eliminate problem with initialisation of pointers, but problem
1202 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
1203 * (emitStaticSegment): removed various lines emitting debug info,
1204 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
1205 added processor registers for utilizing EEPROM,
1206 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
1207 configurable and set 8
1209 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
1211 * .version: increased version number to 2.4.2,
1213 Cumulative patch for pic16 port
1214 * src/pic16/device.c: changed scheme to dump initial values for
1215 variables in idata segment, all print_idata* functions were removed,
1216 now the pic16_printIval* will be called,
1217 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
1218 * _pic16_printPointerType, pic16_printPointerType,
1219 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
1220 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
1221 NEW, similar to the respective functions in SDCCglue.c,
1222 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
1223 way, emitting hex bytes,
1224 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
1226 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1228 * src/avr/ralloc.c (serialRegAssign),
1229 * src/xa51/ralloc.c (serialRegAssign),
1230 * src/pic/ralloc.c (serialRegAssign),
1231 * src/pic16/ralloc.c (serialRegAssign),
1232 * src/hc08/ralloc.c (serialRegAssign),
1233 * src/z80/ralloc.c (serialRegAssign),
1234 * src/ds390/ralloc.c (serialRegAssign),
1235 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
1237 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1239 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
1240 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
1242 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
1244 Cumulative patch for pic16 port:
1245 * src/pic16/device.h (typedef PIC16_device) modified fields for
1246 defining microcontrollers,
1247 * src/pic16/device.c: added new info for all devices in Pics16 array,
1248 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
1249 to be optimised out by the pCode optimiser,
1250 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
1251 specially, bug reported by G.M. Gallant,
1252 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
1253 as force'd so that cannot be optimised out by pCode optimiser,
1254 * src/pic16/pcode.c,
1255 * src/pic16/pcodepeeph.c,
1256 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
1257 they are disabled by default, but can be enabled explicit with
1258 command argument --denable-peeps, for testing,
1259 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
1260 --pomit-ivt in COMPILE_FLAGS
1262 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
1264 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
1267 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
1269 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
1271 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1273 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
1274 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
1276 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
1278 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
1279 would only assign 0x300001 register.
1281 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
1283 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
1284 in COMPILE_FLAGS. Thanks to G. Gallant for report.
1286 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1288 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
1290 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
1291 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
1292 added peephole 254 (left shift), 255 (jump table)
1294 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
1296 * device/lib/Makefile.in: removed comment line with model-pic16,
1297 * (target port-specific-objects-pic16): the libraries and objects
1298 are copied to the build directory form the device/lib/pic16/bin
1301 Cumulative patch concerning pic16 port:
1302 * library directory has been re-organized,
1303 * added support for PIC18F1220,
1304 * added headers and library sources for chips 18f1220,18f6520,
1305 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
1307 * configuration registers setting has changed, now each supported
1308 device has a complete description of the registers it uses,
1309 * all initialisations are moved to idata sections, these section
1310 can be absolute or relocatable,
1311 * fixed initialisation of codespace variables,
1312 * fixed warning about PCLATU and gpsim,
1313 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
1314 * (genAssign): use table reads when assigning from variables in codespace,
1315 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
1316 char/int variables placed in codespace,
1317 * (pic16_emitConfigRegs): NEW, emits a list with configuration
1318 registers set in .asm file, no need for --pomit-config-words anymore,
1319 * (pic16glue): some 8051 legacy segments are commented out
1320 (to be removed completely),
1321 * added support for alternative assembler and linker with --asm=
1322 and --link= command line arguments,
1323 * peepholes are disabled automatically in the port, no need to
1324 specify on command line,
1325 * port supports natively char/int/long multiplication, but converts
1326 all divisions to support functions,
1327 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
1328 to the file set in variable $2,
1329 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
1330 strings in ASCII format and not in hex,
1331 * ralloc.c (serialRegAssign): added a triplet of conditional calls
1332 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
1333 allocate proper register if iCodes aren't temporary,
1335 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1337 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
1339 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
1341 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
1344 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1346 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
1347 computed address is reused
1348 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
1349 multi-byte bitfields
1351 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
1353 * src/z80/gen.c: (genArrayInit): must check for pointers too
1355 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
1357 * support/regression/tests/zeropad.c: never meant to commit the
1358 nestedstruct test: removed, added check for GCC version
1360 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
1362 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
1363 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
1364 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
1365 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
1366 bugs 928906 and 954082 half-empty initializers
1368 * src/SDCCsymt.c (getAllocSize): added for above fix
1369 * src/z80/gen.c (genArrayInit): fixed bug 741044
1370 * support/regression/tests/zeropad.c: added tests
1372 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
1374 * src/pic16/device.c (pic16_dump_section): corrected bug which
1375 caused some symbols of the libraries to be misplaced
1377 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
1380 * src/pic16/ralloc.h,
1381 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
1382 to fix conflict with pic port
1384 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
1386 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
1387 externs configuration variables,
1388 * src/pic16/ralloc.h,
1389 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
1390 prototype in header, commented out some debug messages
1392 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
1396 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
1397 for gpasm COFF object generation. Thanks to D. Hawkins for
1400 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1403 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
1404 Brock for spotting this)
1405 * src/ds390/gen.c (genEndFunction),
1406 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
1407 interrupt handler and critical. Disable push/pop optimizations when
1408 peephole optimizations disabled.
1410 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
1412 Updated pic16 library sources and headers.
1413 * device/lib/pic16/pic18f*/ ,
1414 * device/include/pic16/*.h: modified to handle structured SFR
1417 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
1419 * src/port.h (PORT structure): added hook initPaths, now each
1420 port can declare its own default search paths,
1421 which can been seen with the --print-search-dirs option,
1422 see pic16 port for example,
1423 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
1424 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
1425 * (doPrintSearchDirs): NEW, replaces in a central manner the
1426 printing of search dirs which was split in set*Paths functions,
1427 * (main): added call to port->initPaths and doPrintSearchDirs,
1432 * src/izt/tlcs900h.c,
1435 * src/pic16/main.c: modified port structures to reflect addition of
1438 * src/pic16/device.c (regCompare): registers are finally sorted by name,
1439 * (pic16_dump_section): for registers in same address reserve memory once,
1440 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
1442 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
1443 result is greater in size than right or left,
1444 * (pic16_genUMult8X8_8): there are some cases where the result can
1445 be 16 bits size, so handle these,
1446 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
1447 * (pic16_outBitC): modified to emit pcodes,
1448 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
1450 * (genDivOneByte): implemented algorithm to divide 8-bits,
1451 * (genCmp): uncommented goto, but issues still exist,
1452 * (genAnd): fixed a bug with variables >8bits,
1453 * (genPackBits): optimization added that uses BCF/BSF to change a
1455 * (genAssign): fixed bug when assigning floating point literals,
1456 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
1457 __sdcc_gsinit_startup label,
1458 * src/pic16/main.c (_pic16_init): removed search directory
1460 * (_pic16_initPaths): NEW, used to initialise search directories,
1461 * (_hasNativeMulFor): support functions for all except char/int
1462 multiplication, and char division,
1463 * (PIC16_port struct): modified entry for native mul support,
1464 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
1466 * (buildCallTree): call to register_usage is ifdef'ed out,
1468 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1470 * device/include/string.h: applied Stas Sergeev's patch to make this
1471 header file compatible with the preprocessor -Wundef option
1472 * src/SDCCmain.c (main): abort compilation if preprocessor reports
1473 failure (fixes bug #941458)
1475 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1477 * src/SDCCopt.c (killDeadCode): fixed bug #907733
1478 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
1479 that the variable, not the function, should be static
1480 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
1481 to be consistent with non-literal case
1483 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1485 * src/SDCCast.c (isConformingBody): fixed bug #949967
1486 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
1487 convilong): fixed bug #952086
1489 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1491 * src/SDCCmem.c (allocVariables): fixed bug #955321
1493 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1495 * src/hc08/main.c (_hc08_genAssemblerEnd),
1496 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
1497 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
1498 completely eliminated the use of a temporary file
1499 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
1500 when more than one file linked
1501 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
1503 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1505 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
1506 which fixes bug #543481
1507 * support/regression/tests/bug-751703.c: fixed comments left from a
1509 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
1510 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
1511 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
1513 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
1514 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
1515 are now changed to underscores in moduleName
1517 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1519 * as/mcs51/lkmem.c: better fix for bug #954173
1521 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1522 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1524 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
1525 * device/include/c8051f000.h,
1526 * device/include/c8051f120.h,
1527 * device/include/c8051f300.h,
1528 * device/include/c8051f310.h,
1529 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
1532 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1534 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
1535 and mailing lists, doc'ed --no-peep-comments, removed reference
1536 to knoppix (newest version has no LyX/LaTeX), other minor changes
1537 * src/SDCCglue.c (glue): save 2 bytes stack space with
1538 option --main-return. The ljmp could probably be avoided too
1540 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1542 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
1544 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1546 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
1547 * src/SDCCopt.c (isLocalWithoutDef),
1548 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
1549 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
1550 (credit to Maarten Brock for patch #949363, on which this is based)
1551 * support/regression/tests/bug-751703.c: some test cases of extern used
1552 within inner scopes.
1554 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1556 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
1558 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
1560 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
1561 dwWriteLabel): fix to create valid debugger symbols even when
1562 the module name has non-alphanumeric symbols in it
1563 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
1564 when a variable's allocation has been optimized away
1567 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1569 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
1571 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
1573 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
1575 * src/z80/gen.c (z80_emitDebuggerSymbol),
1577 * src/pic/gen.c (pic14_emitDebuggerSymbol),
1579 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
1581 * src/avr/gen.c (avr_emitDebuggerSymbol),
1583 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
1585 * src/SDCCdebug.c (emitDebuggerSymbol),
1587 * src/port.h: added a debugger struct to the port struct. Added a
1588 callback for defining debugger symbols
1590 * src/SDCCast.c (createLabel),
1591 * src/SDCC.y (labeled_statement): mark all compiler generated labels
1594 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
1595 iCode back to the ast for the function
1597 * src/hc08/ralloc.c (hc08_assignRegisters),
1598 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
1599 unneeded fields from the regs struct.
1600 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
1601 pushReg() & pullReg() functions instead of emitcode()
1603 * src/hc08/gen.c (genLabel, genhc08Code),
1604 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
1606 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
1609 * src/hc08/gen.c (genEndFunction, genhc08Code),
1611 * src/mcs51/gen.c (genEndFunction, gen51Code),
1613 * src/ds390/gen.c (genEndFunction, gen390Code),
1615 * src/z80/gen.c (genEndFunction, genZ80Code),
1618 * src/pic/gen.c (genEndFunction, genpic14Code),
1620 * src/pic16/gen.c (genEndFunction, genpic16Code),
1622 * src/avr/gen.c (genEndFunction, genAVRCode),
1624 * src/xa51/gen.c (genEndFunction, genXA51Code),
1626 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
1627 specific code to cdbFile.c and out of the backend code generators
1629 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
1630 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
1631 starting address is now 0
1635 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
1636 assembler directive for DWARF support
1637 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
1641 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
1643 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1645 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
1646 and inappropriate peephole optimization in jump tables
1648 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1651 * src/SDCCglue.c: sdccopt works for the hc08 port now
1653 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
1655 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
1657 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1659 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
1661 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1663 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
1667 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
1668 comments from the peephole optimizer replacement rules
1669 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
1671 * src/SDCCcse.c (updateSpillLocation),
1672 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
1674 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
1675 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
1676 objects far pointers
1678 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1680 * src/SDCCsymt.h: a missing part of my last change
1681 * src/pic/ralloc.c (regTypeNum),
1682 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
1684 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1687 * src/SDCCicode.c (aggrToPtrDclType),
1689 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
1690 ptrPseudoSymConvert),
1691 * src/pic/ralloc.c (regTypeNum),
1692 * src/pic16/ralloc.c (regTypeNum),
1693 * src/hc08/ralloc.c (regTypeNum),
1694 * src/ds390/ralloc.c (regTypeNum),
1695 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
1696 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
1698 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1700 * link/z80/lkmain.c (afile),
1701 * as/hc08/lkmain.c (afile),
1702 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
1703 prevent a pointer problem when a filename has no directory and
1704 no extension specified.
1706 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1708 * link/z80/lkmain.c (afile): allow periods in directory names
1709 * link/z80/lkmain.c (afile),
1710 * as/mcs51/lkmain.c (afile),
1711 * as/hc08/lkmain.c (afile): allow linker script file to have an
1712 extension other than ".lnk"
1713 * link/z80/lklex.c (getfid),
1714 * link/z80/lkmain.c (parse),
1715 * as/mcs51/lklex.c (getfid),
1716 * as/mcs51/lkmain.c (parse),
1717 * as/hc08/lklex.c (getfid),
1718 * as/hc08/lkmain.c (parse): Support comments in the linker script
1719 file on lines by themselves and after filenames
1721 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1723 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
1725 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1727 * src/z80/peeph-z80.def: removed some peephole rules that don't
1728 work with multibyte arithmetic (fixed bug #937126)
1729 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
1730 to registers and not global variables
1731 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
1732 geniCodePreInc, geniCodePostDec, geniCodePreDec,
1733 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
1734 checking for assignments not internally generated (fixed bug #931895)
1735 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
1736 structure member (fixed bug #930072)
1738 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1740 * src/SDCCmain.c (linkEdit),
1741 * src/hc08/main.c (_hc08_parseOptions),
1742 * as/hc08/Makefile.in,
1746 * as/hc08/lkrloc.c (relr, rele),
1747 * as/hc08/lkarea.c (lnkarea)
1748 * as/hc08/lkmain.c (afile, parse),
1749 * as/hc08/lkelf.c: support for ELF output
1750 * as/hc08/lks19.c (s19),
1751 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
1753 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1755 * as/mcs51/lkihx.c: Fixed bug #899105.
1757 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1759 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
1760 .dsp files from Unix to DOS.
1762 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1764 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
1765 function pointers; we have been compliant for several months now.
1766 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
1767 change that was accidently commented out
1768 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
1769 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
1772 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1774 * src/hc08/gen.c: output of all of the internal debugging information
1775 is now controlled by the D() macro; it is disabled by default
1777 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1779 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
1780 harder to keep the same registers during a CAST iCode
1781 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
1782 long via int can be done in a single cast, if the signedness is
1784 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
1785 putchar() in tinibios.c in ds390's library
1787 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
1789 * src/SDCCast.c (decorateType): fixed bug #898889,
1790 cast result of a literal complement too
1791 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
1792 fixed check for bitfields
1794 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
1796 * src/SDCCicode.c (geniCodeLogic): made it static,
1797 (geniCodeLogicAndOr): added in order to fix bug #905492,
1798 (ast2iCode): fixed bug #905492
1799 * support/regression/tests/bug-905492.c: added
1800 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
1801 (processParms): fixed bug #927659: don't copy parms, this will clear
1803 * support/regression/tests/bug-927659.c: added
1805 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
1807 * src/SDCCast.c (addCast): don't cast float to char
1808 * device/lib/libsdcc.lib: added _memmove
1810 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
1812 * device/lib/large/Makefile: fixed parallel execution by
1813 replacing `make` by `$(MAKE)`
1815 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1817 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
1818 offsets (fixes bug #923936)
1820 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
1822 * device/lib/small/Makefile: fixed parallel execution by
1823 replacing `make` by `$(MAKE)`
1825 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
1827 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
1829 2004-03-23 Scott Dattalo <scott AT dattalo.com>
1831 * src/pic/gen.c (genCpl): multi-byte complements were not working.
1832 * src/regression/Makefile: Regression test was not running.
1834 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
1836 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
1837 complement if possible
1838 * src/SDCCval.c (valComplement),
1839 * src/SDCCicode.c (operandOperation): fixed complement of literal
1840 * support/regression/tests/onebyte.c (testComplement): added
1842 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
1844 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
1845 return an optimized tree; actually replace actParm with the new tree
1846 * src/SDCCast.h: added some parantheses to remove side effects
1847 * support/regression/tests/bug-920866.c
1849 2004-03-21 Scott Dattalo <scott AT dattalo.com>
1850 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
1851 Bit operands were not being handled properly in the pic14 port.
1852 (now src/regression/add.c passes again).
1854 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1856 * src/SDCC.y (labeled_statement): case and default no longer require
1857 a following statement (RFE #893037)
1859 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1861 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
1862 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
1863 disabled (fixes bug #916294)
1864 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
1865 "mov a,acc"; patch provided by Lenny Story
1866 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
1868 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1870 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
1872 * src/ds390/gen.c (genFunction, genEndFunction),
1873 * src/ds390/ralloc.c (ds390_assignRegisters),
1874 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
1875 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
1876 pushed if there are parameters passed on the stack. Also, a cleaner
1877 way to decide if r0/r1 should be pushed/popped. (Together they fix
1880 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1883 * device/lib/mcs51/crtpagesfr.asm,
1884 * device/lib/mcs51/crtxinit.asm,
1885 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
1886 to avoid confusion with Si Lab's SFRPAGE register.
1888 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1890 * src/SDCCglue.c (emitMaps): allow public sfr variables
1891 * src/SDCCglue.c (initialComments): include compiler build date
1892 with compiler version and put the timestamp of the generated
1893 assembly file on a serperate line to be less confusing.
1894 * src/port.h: added genInitStartup hook
1901 * src/z80/main.c: genInitStartup initialize as NULL (default to
1902 historical behaviour)
1903 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
1904 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
1905 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
1906 library instead of hard coding it into the compiler.
1907 * support/regression/ports/mcs51-stack-auto/spec.mk,
1908 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
1909 * device/lib/mcs51/Makefile,
1910 * device/lib/small/Makefile,
1911 * device/lib/large/Makefile,
1912 * device/lib/mcs51/crtpagesfr.asm,
1913 * device/lib/mcs51/crtstart.asm,
1914 * device/lib/mcs51/crtxclear.asm,
1915 * device/lib/mcs51/crtxinit.asm,
1916 * device/lib/mcs51/crtclear.asm,
1917 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
1918 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
1919 and into user configurable files.
1920 * device/lib/clean.mk: clean mcs51 directory too
1921 * support/regression/tests/longlit.c: added static to T1 declaration
1922 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
1923 accesses in the initialization code
1925 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1927 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
1928 OSCTRIMVAL as noted in bug #916008
1930 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1932 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
1933 in loops with multiple exits (reported as incorrect registers
1934 used by Martin Helmling in Sdcc-user list)
1936 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1938 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
1939 made ds390 register extensions look less like error messages
1941 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1943 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
1944 reported by Adam Wozniak in Sdcc-user list
1946 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
1948 * src/SDCCast.c (decorateType): fixed with bug and promotion in
1949 arithmetic optimizations, added debug output
1951 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
1953 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
1954 * sdcc.spec: updated and split sdcc into 3 rpms
1955 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
1956 needed for literals of LEFT_OP and '+'
1957 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
1958 introduced RESULT_TYPE_NOPROM
1959 (geniCodeMultiply): fixed logic for decision if mul is optimized to
1961 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
1962 limited promotion to int only for '*'
1963 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
1965 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
1967 * src/pic16/gen.c (genSkip),
1968 (genc16bit2lit), (gencjneshort): commented out
1969 (is_LitOp): new helper function, checks operand type
1970 (genCmpEq): rewritten
1972 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
1974 * support/regression/tests/bug-908454.c: added
1976 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
1978 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
1979 * src/SDCCicode.c (usualBinaryConversions): op needs int type
1980 (geniCodeCast): cosmetic, don't preserve bit storage class
1981 (geniCodeLeftShift): added promotion
1982 (geniCodeLogic): fixed regression
1983 * src/SDCCsymt.c (computeTypeOr): accept bits too
1984 (compareType): 2nd part of fix for bug #908454, needed for bitfields
1986 2004-03-07 Borut Razem <borut.razem AT siol.net>
1988 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
1990 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
1992 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
1993 version of pic16_genPackRegisters which does not check if ic is a
1995 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
1996 function cause string1.c regression test fails
1998 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
2000 * sim/ucsim/configure.in,
2001 * sim/ucsim/configure,
2002 * sim/ucsim/doc/Makefile.in: use docdir
2003 * src/SDCC.y: fixed sbit atrributes
2004 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
2005 * src/SDCCast.c (decorateType): |^& need special promotion handling
2007 * src/SDCCsymt.h: moved definition of RESULT_TYPE
2008 * src/SDCCsymt.h (computeType),
2009 * src/SDCCicode.c: computeType() needs op
2010 * src/SDCCsymt.c (checkTypeSanity),
2011 * doc/sddman.lyx: "plain" bitfields are unsigned
2012 * src/SDCCsymt.c (computeTypeOr): added
2013 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
2015 * src/SDCCval.c (val*): computeType() needs op
2016 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
2017 * support/regression/tests/onebyte.c: added tests for |^&
2019 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
2021 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
2022 for writing icode into asm output.
2024 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
2026 * src/pic16/device.c: added some debug lines enabled
2027 with macro DEBUG_CHECK,
2028 * src/pic16/genarith.c: more debug in genPlus,
2029 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
2030 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
2031 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
2032 * (aopForSym): onStack symbols are re-placed in data memspace,
2033 and onStack flag is cleared,
2034 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
2035 copy temporary pcodeop,
2036 * (genPcall): added warning for not updating PCLATU,
2037 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
2038 always true for pic16 port,
2039 * (genMultOneWord): NEW, supports integer multiplication,
2040 * (genMult): modified to call genMultOneWord,
2041 * (ifxForOp): added warning when return NULL,
2042 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
2043 flag is set before call to operandFromSymbol for implicit
2045 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
2046 options.intlong_rent are set by default,
2047 * (_hasNativeMulFor): modified to allow port generation of integer
2049 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
2050 set regtype to REG_SFR for all registers, restricting seting the
2051 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
2053 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2055 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
2056 more than 500 times in the regression tests
2058 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2060 * support/Util/SDCCerr.h,
2061 * support/Util/SDCCerr.c,
2062 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
2064 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
2065 for symbol conflicts.
2066 * support/valdiags/tests/enum.c,
2067 * support/valdiags/tests/tentdecl.c,
2068 * support/valdiags/tests/struct.c: expect possible error messages
2069 referring to original symbol definitions.
2070 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
2072 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
2074 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
2076 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
2078 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
2080 * src/pic16/ralloc.c (newReg): fixed bug #908929
2082 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2084 * src/ds390/gen.c: added missing #include "main.h"
2086 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
2088 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
2089 checking if symbol is already in set,
2090 * src/pic16/device.h: prototype for checkAddSym,
2091 * src/pic16/gen.c: (_G): added entry interruptvector,
2092 * (assignResultValue): removed some commented out lines,
2093 * (genFunction): check for ISR via sym->type, absolute section for
2094 interrupt code is created via a new pBlock, the goto instruction is
2095 placed now correctly at the interrupt vector position, changed all
2096 references from ivec to _G.interruptvector,
2097 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
2098 is the interrupt is a high priority one, same for return from ISR,
2099 * src/pic16/glue.c: changed all calls of addSetHead for publics and
2100 externs to calls of checkAddSym,
2101 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
2102 pic16_pcode_verbose flag is set,
2103 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
2104 * src/pic16/pcoderegs.c: message about how many registers are saved
2105 will only be emitted if pic16_pcode_verbose flag is set,
2107 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2109 * src/ds390/ralloc.h,
2110 * src/ds390/ralloc.c (ds390_regWithIdx),
2111 * src/ds390/gen.c (emitcode),
2113 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
2114 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
2115 ds390operandCompare, getRegsRead, getRegsWritten,
2116 initializeAsmLineNode): customized instruction size calculation for
2117 ds390, started basis for some register optimizations
2118 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
2119 corresponding assembly output
2120 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
2121 missing push/pop of r0/r1. Optimized push/pops
2123 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2125 * src/mcs51/main.c (instructionSize): fixed ACALL size
2126 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
2128 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
2130 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
2131 the sorting of rlist with NULL elements
2132 * (print_idataType, print_idata): NEW to create idata sections
2133 * src/pic16/device.h: idataSymSet new variable
2134 * src/pic16/gen.c (genFunction): fixed some bugs in string
2135 comparing, improved the absolute section creation for ISRs,
2136 added FSR0L/FSR0H in registers that are saved in an ISR,
2137 * (genInline): fixed the processing of inline snippets,
2138 now they undergo no process by the peephole optimizer
2139 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
2140 are placed in idataSymSet,
2141 * (pic16emitStaticSeg): extern symbols are added in externs,
2142 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
2143 switching when aboslute variables are placed in access bank memory
2144 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
2145 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
2146 commented out with #if,
2147 * (pic16_packRegisters): reintroduce the check for CAST because some
2148 symbols are not correctly handled,
2149 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
2150 pCodeInstruction instead of pCode,
2151 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
2152 pCodeAsmDir definition,
2153 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
2154 directive, then the argument directive is emitted without the leading
2155 tab, hack for inline labels which must be in the first column,
2156 * (compareLabel,pic16_findNextInstruction),
2157 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
2158 * (insertBankSwitch): modified for the new pCodeAsmDir,
2160 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
2161 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
2163 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
2165 * (pushSide): commented out with #if,
2166 * (assignResultValue): fixed some typos in saving
2168 * (genPcall): FIXED and sync'ed with genCall,
2169 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
2170 * (genNearPointerGet): fixed to handle some more cases,
2171 implementation scheme via table reads,
2172 * (genConstPointerGet): modified to access code memory correct,
2173 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
2174 and improved to handle some cases
2175 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
2176 instead of "RETLW" for init data
2177 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
2178 not IN_DIRSPACE, work around to reduce bank switching when aboslute
2179 variables are placed in access bank memory (<0x80 and >=0xf80),
2180 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
2181 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
2182 TBLWT_POSTDEC,TBLWT_PREINC
2183 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
2184 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
2186 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
2187 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
2188 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
2189 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
2191 2004-02-29 Borut Razem <borut.razem AT siol.net>
2193 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
2194 support/Util/findme.h, support/Util/system.h: enhance binary relative
2195 search for lib and include by using findProgramPath()
2197 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2200 * src/SDCCpeeph.c (pcDistance),
2202 * src/mcs51/ralloc.h,
2203 * src/mcs51/ralloc.c (mcs51_regWithIdx),
2205 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
2206 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
2207 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
2208 size calculation port specific, started basis for some register
2210 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
2211 missing push/pop of r0/r1. Optimized push/pops
2212 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
2213 * device/lib/_modsint.c (_modsint),
2214 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
2215 and stack version so regression tests pass
2217 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
2219 * src/Makefile.in (dep): include SLIBOBJS in dependency check
2220 * src/SDCCast.c (decorateType): catch another small optimization
2222 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
2223 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
2224 modified to finally use computeType() all over SDCC,
2225 see Feature Request #877103
2226 * src/SDCCval.h: cosmetic
2227 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
2228 valCompare(); regression tested in muldiv.c
2229 * support/regression/tests/muldiv.c (testMod): mod sign follows
2232 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
2234 * src/SDCCast.c (decorateType): fixed bug #902362
2235 * doc/INSTALL.txt: fixed install instructions for win32
2237 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
2239 * device/include/Makefile.in (install): fixed by replacing spaces
2242 * doc/INSTALL.txt: updated for release
2243 * doc/sdccman.lyx: added warning for --xstack being buggy
2245 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
2247 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
2248 to eliminate build warnings.
2249 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
2251 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
2252 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
2254 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
2255 removed -penable-stack, added comment for stack pragma, added
2256 warning for not initializing the stack/frame registers, removed
2257 comment at interrupts section
2259 Stack is made permanent, there is no ability to disable stack usage.
2260 * src/pic16/device.h,
2261 * src/pic16/device.c: removed all references to USE_STACK macro,
2262 * src/pic16/device.c (pic16_dump_section): when no elements in
2263 rlist, free rlist before return,
2264 * (pic16_dump_int_registers): NEW, internal registers are a new set
2265 of general purpose registers reused by each function,
2266 * (checkAddReg): returns 1 if registers is added to set,
2267 * (pic16_groupRegistersInSection): when a registers is of type
2268 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
2269 * src/pic16/device.h: memRange and Assigned Memory are deleted,
2270 SRCASECMP macro is moved here from device.c
2271 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
2272 PO_PCLATU, PO_PRODL, PO_PRODH,
2273 * (pic16_pCodeOpType, genMinus,
2274 changed compares to "a" register, with AOP_ACC,
2275 * (pic16_genPlus): fixed some bugs and indented properly,
2276 * (pic16_addSign): changed size to size+offset in the MOVWF
2278 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
2279 multiply 8-bit operand by literal, result is 8-bit,
2280 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
2281 multiply 2 8-bit operand, result is 8-bit,
2282 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
2284 * src/pic16/gen.c: changed accUse to contain WREG only,
2285 * (pic16_emitcomment): renamed to pic16_emitpcomment,
2286 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
2287 true, do not use immediate addressing any more unless sym is a
2288 pointer in codespace,
2289 * (aopForRemat): do not use immediate addressing when symbol not in
2290 codespace and when symbol's address is requested,
2291 * (aopOp): for-loop in if(sym->accUse) is modified for the new
2293 * (aopGet): added case for AOP_ACC and don't return "accumulator
2294 bug" but WREG instead,
2295 * (popGetTempReg): pushes contents of temporary register in stack,
2296 * (popReleaseTempReg): pops contents of temporary register from
2297 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
2298 * (pic16_popGet): separated case AOP_ACC to return register WREG
2299 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
2300 or PO_IMMEDIATE and initializes their instance/offset appropriately,
2301 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
2302 the use of immediate pointers to certain cases only.
2304 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
2305 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
2306 * (assignResultValue, genCall, genRet): modified to use the new
2307 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
2308 genPcall is still broken,
2309 * (genFunction): added code to create 'A' type pBlocks when
2310 interrupt functions are generated, code not extensively tested yet,
2311 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
2312 * (genEndFunction): modified so ISRs pop stored registers from stack,
2313 * (genMultOneByte): cleanup,
2314 * (AccRsh): added flag andmask, to and result with appropriate mask,
2315 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
2316 * (genDataPointerGet): fixed and reenabled its use,
2317 * (genNearDataPointerGet): bugs fixed,
2318 * (genDataPointerSet): bugs fixed,
2319 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
2320 pic16_DumpSymbol, pic16_DumpOp,
2321 * src/pic16/genutils.h: function prototypes for the above functions,
2322 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
2324 * (pic16emitRegularMap): many many many improvements, but needs a
2326 * src/pic16/main.c: enable_stack in pic16_options is removed,
2327 * (_pic16_parseOptions): removed command line options -penable-stack,
2328 * (_process_pragma): emit stack symbol only when stack pragma is
2330 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
2331 redirected to FSR0L/FSR0H pair,
2332 * (pic16_get_op, pic16_get_op2): modifications and improvements,
2333 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
2334 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
2336 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
2337 * (dumpPicOptype): NEW,
2338 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
2339 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
2340 with movff instruction,
2341 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
2342 added pic16_int_regs, some packRegsFor* functions are commented out,
2343 because produce errors,
2344 * src/pic16/NOTES: minor modifications
2346 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2348 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
2349 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
2351 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
2352 * as/mcs51/lkaomf51.c: fixed bug #895763
2354 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
2356 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
2358 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2360 * doc/sdccman.lyx: added details about the HC08 storage classes and
2361 interrupts, fixed the register usage info for z80 & gbz80
2363 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
2365 * doc/sdccman.lyx: added more pic16 port documentation
2366 * device/include/pic16/: added header pic18fregs.h
2368 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
2370 * doc/sdccman.lyx: added Vangelis' contribution
2372 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2374 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
2375 extend to the next CALL or PCALL, not just to the next CALL.
2377 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
2379 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
2381 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2383 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
2384 bug #895752 and a better fix for bug #716790
2386 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2388 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
2390 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2392 * doc/sdccman.lyx: minor changes, minor changed
2394 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
2396 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
2397 which can't handle SDCC_NEWONEBYTEOPS,
2398 (geniCodeMultiply): removed conversion from mult to shift for pic14
2401 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2404 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
2405 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
2406 thus fixing bug #895406
2408 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
2410 * device/lib/_modsint.c,
2411 * device/lib/_modslong.c: sign follows divisor only
2412 * src/hc08/gen.c (genMultOneByte): if result size is 1,
2413 signs or signedness can be ignored
2414 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
2415 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
2416 added optimization for IFX,
2417 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
2419 reenabled optimization for IFX, which was removed on 2004-01-11
2420 * src/SDCCast.h: added return type IFX
2421 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
2422 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
2423 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
2424 SDCC_OLDONEBYTEOPS selects the old behaviour
2425 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
2426 changed again and commented promotion rule
2427 * src/SDCCval.c (valDiv): promotion no longer necessary
2428 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
2429 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
2431 * support/regression/tests/onebyte.c: added
2433 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
2435 * gen.c (genInline): reverted to old code for assemnling inline
2436 code because of bug reported James Chadd
2438 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
2440 * ralloc.h: missing declarations from previous patch,
2441 seems that patch for ralloc.h was never applied, fixed
2443 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
2444 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
2448 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
2449 indirect addressing. Marked FSR0 as deprecated
2450 * gen.c (pointerCode): commented out, not needed now
2451 (pic16_popGet2p): new MOVFF helper function
2453 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
2454 (shiftRLong): removed duplicate debugging info
2456 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2458 * src/ds390/gen.c (genNearPointerGet),
2459 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
2460 optimization with bits, but not bitfields.
2461 * src/ds390/ralloc.c (packRegisters),
2462 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
2464 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2466 * src/SDCCcse.c (algebraicOpts): copy operands before modification
2468 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2471 * src/SDCCicode.c (operandFromSymbol),
2472 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
2473 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
2474 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
2475 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
2476 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
2477 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
2479 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
2480 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
2481 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
2482 * src/SDCCsymt.c (newSymbol),
2483 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
2486 * src/SDCCval.c (newiList): fixed bug #885705
2488 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2490 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
2491 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
2493 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2495 * device/include/c8051f120.h,
2496 * device/include/c8051f300.h,
2497 * device/include/c8051f310.h: added/updated header files for Silicon
2498 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
2499 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
2500 in new section Submitting patches
2502 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2504 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
2505 genFarPointerGet, genCodePointerGet, genGenPointerGet,
2506 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2508 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
2509 genFarPointerGet, genCodePointerGet, genGenPointerGet,
2510 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2512 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
2513 genFarPointerGet, genCodePointerGet, genGenPointerGet,
2514 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2516 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
2517 genFarPointerGet, genCodePointerGet, genGenPointerGet,
2518 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
2519 genGenPointerSet): fixed bug #892400
2520 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
2521 to eliminate build warnings.
2522 * src/SDCCast.c (processParms),
2523 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
2525 * support/valdiag/valdiag.py: added GCC to the list of defines active
2526 when compiling with gcc
2528 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2530 * support/Util/SDCCerr.h,
2531 * support/Util/SDCCerr.c,
2532 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
2533 with an incomplete type (fixed bug #883734)
2534 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
2536 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2538 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
2540 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2542 * src/SDCCast.c (decorateType),
2543 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
2544 function pointer implementation
2545 * support/regression/tests/funptrs.c: added tests to verify both forms
2546 of function pointers work correctly. Added tests to verify parameters
2547 are passed in the correct order.
2549 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
2551 * device.c (regCompare): registers are sorted by ascending
2552 address and increasing size,
2553 * main.c (_pic16_finaliseOptions): removed the declaration
2554 of compiler macro MCU. Now a macro of the format pic18fxxxx
2555 will be defined from the command line
2557 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
2558 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
2560 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
2561 PCOP_RLCF was overwritten!
2562 * gen.c (genSkip): commented out calls to pic16_emitcode,
2563 * (genCmpEQ): fixed "long" compares, only high word did get compared,
2565 * (genRRC): added debugging info,
2566 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
2567 overwritten while shifting,
2568 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
2569 overwritten while shifting,
2572 * (shiftLLeftOrResult),
2573 * (shiftRLeftOrResult),
2575 * (shiftLLong): Implemented with pic16_emitpcode
2576 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
2577 * (genLeftShift): Fixed bug, operand for shift by variable always
2578 was "and"ed with 0x0f,
2579 * (genLeftShiftLiteral),
2581 * (genRightShiftLiteral): added debugging info,
2582 * (genrshFour): added comment,
2583 * (genRightShift): determined signedness from operand "left"
2586 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2588 * src/SDCCicode.c (geniCodeParms),
2589 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
2590 function pointers, fixed function pointer bugs #861242 and #861896
2592 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2594 * device/include/c8051f000.h,
2595 * device/include/c8051f120.h,
2596 * device/include/c8051f300.h: added header files for Silicon
2597 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
2599 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
2601 * src/SDCCast.c (processParams): added new type flow and restructured
2602 (gatherAutoInit): added new type flow
2603 (addCast): cosmetic changes
2604 (getLeftResultType): added new type flow for array indices, patch
2605 provided by Stas, see FR #877103
2606 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
2607 array index patch by Stas
2608 * src/SDCCast.h: added prototype getResultTypeFromType()
2610 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
2611 * src/pic/glue.c (pic14emitStaticSeg),
2612 * src/pic16/glue.c (pic16emitStaticSeg),
2613 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
2614 for initialization of symbols
2615 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
2616 * support/Util/SDCCerr.h:
2617 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
2618 * .version: bumped version number to 2.3.8
2619 * device/include/Makefile.in (install),
2620 * doc/Makefile (install): changed to 'rm `find ...`' construct to
2623 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
2625 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
2626 Slade Rich fixed an optimization bug
2627 * src/pic/pcodepeep.c,
2628 * src/pic/pcoderegs.c
2629 * doc/Makefile (install): added test for directory
2631 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2633 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
2634 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
2635 * src/pic/ralloc.c (getRegPtr, getRegGpr),
2636 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
2637 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
2638 * as/mcs51/asexpr.c (term),
2639 * as/hc08/asexpr.c (term): fixed bug #887146
2641 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2643 * src/z80/gen.c (genMult): handle single byte result product
2644 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
2645 DUMMY_READ_VOLATILE (fixed bug #886367)
2647 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
2649 * support/regression/tests/libmullong.c: fixed logic, on little endian
2650 hosts we ended without a mullong_wrapper()
2652 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2654 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
2655 virus/worm forged address usage.
2657 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
2659 Fixed promotion, it should be done on AST level:
2660 * src/SDCCast.c (addCast): added promotion to int
2661 (decorateType): updated call to upCast()
2662 * src/SDCCicode.c (geniCodeLeftShift): removed call to
2663 usualUnaryConversions()
2665 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
2667 * support/regression/tests/literalop.c (mulWrapper): Added a
2668 wrapper to remove integer overflow warnings.
2670 * support/regression/tests/float_trans.c: Made work on host.
2672 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
2675 * support/regression/generate-cases.py (main): Changed from inline
2678 * doc/Makefile (install): Changed to depth first to get rid of
2679 missing directory install warning.
2681 * as/Makefile (install-doc): Made work on Mac.
2683 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
2685 * src/SDCCast.c: added an additional type flow in decorateType() of
2686 opposite direction, see feature request #860006; it's enabled at runtime
2687 by setting the environment variable SDCC_NEWTYPEFLOW
2688 * src/SDCCast.h: changed prototype of decorateType()
2689 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
2690 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
2691 'char' to 'int' can be omitted, if both operands are 'unsigned char';
2692 see feature request #877103
2693 * src/SDCCval.c: updated call of decorateType()
2694 (valBitwise): fixed bug #882876
2695 (valMinus): added promotion
2696 (valLogicAndOr): result is unsigned
2697 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
2698 * src/SDCCsymt.c (computeType),
2699 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
2700 must not cause an unsigned operation
2701 * src/pic/glue (pic14emitRegularMap),
2702 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
2704 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
2706 * src/pic/pcode.c (PCodeID): commented out left over debug code
2708 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
2710 * support/valdiag/tests/overflow.c: added shift tests
2718 * src/pic/pcodepeep.c,
2719 * src/pic/pcoderegs.c,
2721 * src/pic/ralloc.h: applied patch from Slade Rich;
2722 added support for multiple code pages and multiple RAM banks on the
2723 PIC 14 port. The ASM files now no longer simply assume all the
2724 code / RAM are in the same page / bank. This means the linker can
2725 safely allocate code/RAM of separate ASM files to different pages/banks.
2726 * doc/sdccman.lyx: added Slade's tips
2727 * src/mcs51/peeph.def: fixed bug #880768
2729 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2731 * src/hc08/ralloc.c (rematStr): fixed bug #879282
2732 * src/SDCCast.c (decorateType): fixed bug #880197
2734 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
2736 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
2739 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
2740 strtof is not part of C89 and isn't included with Mac OS X.
2742 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2744 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
2745 shiftL2Left2Result): fixed bug #879326
2746 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
2747 (genMultOneByte): fixed bug in signed vs unsigned multiplication
2748 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
2749 address fetch for clr instruction
2750 * device/lib/hc08/_mulint.c: created optimized assembly version
2751 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
2753 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2755 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
2756 proposed in FR #877103
2758 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
2760 * src/SDCCval.c (cheapestVal): added missing checks
2761 * src/SDCCicode.c (usualBinaryConversions): fixed condition
2762 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
2764 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
2766 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
2769 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
2771 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
2772 loaded with the linker search paths (-L arguments) and the libraries
2773 to be linked with the current source (-l arguments). Changes
2774 currently will affect only the pic16 port.
2775 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
2776 include path the port specific paths and port specific libraries,
2777 * gplink command now contains the $3 argument,
2778 * src/pic16/device.h,
2779 * src/pic16/device.c,: structure PIC_device is made public and
2780 renamed to PIC16_device, the same for variable Pics which is renamed
2781 to Pics16. Updated all references to them.
2782 * src/pic16/glue.c (pic16glue): corrected bug with code
2783 initialization which bypassed the variable initializations block.
2785 * device/lib/pic16/Makefile.rules: removed --penable-stack from
2786 COMPILE_FLAGS and added the --nostdinc option
2788 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2790 * device/include/mc68hc908jb8.h: Register defs for another member
2791 of the hc08 family. Contributed by Bjorn Bringert - thanks!
2793 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
2795 Documenting changes from previous commits.
2796 * configure.in (version 1.56),
2797 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
2798 when generating output files to configure the pic16 library,
2799 but now I've commented it out, since gputils aren't installed in the
2800 SF compile farm, so library won't compile
2802 * device/lib/Makefile.in (version 1.56): initially I've added in
2803 target 'all' the prerequestive 'model-pic16' so it compiled the
2804 pic16 library, but now I've commented it out for the same reasons
2806 * added targets 'model-pic16' and 'objects-pic16' to compile the
2808 * added target 'port-specific-objects-pic16' to handle the
2809 generated libraries and copy them into the build/ directory
2810 * added target 'clean-intermediate-pic16' to clean intermediate
2811 files into pic16 directory
2812 * in target 'installdirs' added line to create directory pic16 in
2813 the installation path
2815 * device/include/Makefile.in (version 1.11): in target 'install'
2816 added lines to copy all header files to installation path,
2817 * in target 'installdirs' added line create directory for pic16
2818 headers in the installation path
2820 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
2822 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
2825 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
2828 * device/lib/configure.in,
2829 * device/lib/configure: fixed for autoconf 2.57
2831 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2833 * src/z80/main.c (_parseOptions): fixed the portmode= command line
2834 option so that it actually works. Made it specific to the z80, since
2835 the gbz80 doesn't have these kinds of I/O ports.
2837 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2839 * device/include/z180.h,
2840 * device/lib/_memcpy.c,
2841 * device/lib/_memmove.c,
2842 * device/lib/_mulint.c,
2843 * device/lib/ser_ir.c,
2844 * device/lib/ser_ir_cts_rts.c,
2845 * device/lib/_strcmp.c,
2846 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
2847 * src/z80/main.c (_process_pragma): add support for pragmas bank and
2848 portmode; added deprecation warning for bank= and protmode= forms.
2849 Also, guard against buffer overflow.
2850 * src/z80/gen.c (aopGet): generate better code for sfr banked read
2852 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2854 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
2855 changed interrupt vector table generation to only emit declared vectors.
2856 * device/include/Makefile.in: added missing backslash
2857 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
2859 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
2861 Mainly changes to support compilation of the device libraries
2862 * src/pic16/device.c: stack is allocated via symbol and not
2863 via literal number. The symbol is placed in the corresponding
2864 position of the data ram
2865 * (pic16_dump_section): relocatable and absolute uninitialized
2866 data are now emitted in sorted order to reduce section naming,
2867 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
2868 weren't marked as being in the access bank,
2870 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
2872 Added portion of GNU PIC Library under the directory
2873 device/include/pic16 and device/lib/pic16. These files
2874 contain the declarations of SFRs for the PIC18Fxx2 devices.
2875 The directory is initialized via configure from toplevel.
2877 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
2879 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
2880 the spilllocations to be compared correctly
2882 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
2884 * src/SDCCast.c (decorateType): fixed bug introduced today
2886 2004-01-12 Borut Razem <borut.razem AT siol.net>
2888 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
2889 doc/sdccman.lyx: upper case pragmas are deprecated
2891 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
2893 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
2894 in simpler and even better code
2896 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
2898 * src/SDCCicode.c (operandOperation): fixed bug #874819
2899 * src/SDCCast.c (decorateType): fixed
2900 char foo (unsigned long ul) { return ul > 0; }
2902 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2904 * doc/sdccman.lyx: Moved and added some sections, small changes
2905 all over. Telling LaTeX to be less strict with word spacing
2906 to better keep the right margin. Changed some notes about
2907 maintainance of the ports in section 3.2.1 - is it OK like this?
2909 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
2911 SDCC source changes:
2912 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
2913 convilong): modified to inform the pic16 port that builtin functions
2916 PIC16 PORT specific changes:
2917 * src/pic16/device.c pic16_dump_equates() added,
2918 processor registers declared internally by the port are emitted in
2919 the translation as equates,
2920 * src/pic16/gen.c: inline code is passed unprocessed to the
2922 * (pic16_popGetLit2): fnuction modified to take second operand as
2923 pCodeOp pointer and not as literal,
2924 * (popRegFromIdx): prefixed with pic16_,
2925 * (pic16_popCombine2): modified to receive already allocated pCode
2927 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
2928 * (genFunction): initializes local stack frame and pushes on stack
2929 all the registers used by this function,
2930 * (genEndFunction): restores all registers from stack and restores
2932 * src/pic16/glue.c (pic16emitRegularMap): various changes and
2934 * (pic16glue): changed the program startup sequence,
2935 * added new dbName code 'A' for functions placed in absolute section
2936 * src/pic16/main.c: added function attribute _naked,
2937 * added pragma 'code' to place a fnuction at an absolute address,
2938 * added command line arguments --debug-ralloc and --pcode-verbose,
2939 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
2940 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
2941 * (pic16_newpCodeOpLit2): modified to take the second operand as
2943 * (pic16_printpBlock): modified to emit each function in a separate
2945 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
2946 UPPER for immediate operands,
2947 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
2949 * src/pic16/peeph.def: all peepholes with movff are commented out,
2950 because there is a problem in the pcode peep optimizer,
2951 * src/pic16/ralloc.c: the register allocator can now reuse local
2952 function symbols for another function. This saves register usage.
2953 * src/pic16/ralloc.h: added flag isLocal in structure regs,
2955 Added file src/pic16/NOTES with information about program writing on
2956 the current port version.
2958 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2960 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
2961 and peephole 252 (array access)
2963 2004-01-09 Borut Razem <borut.razem AT siol.net>
2965 * src/SDCCmain.c : fixed #872250: -l command line defined library
2966 files are scanned before standard library files
2968 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2970 * src/SDCCast.c (decorateType): fixed bug #874046
2972 2004-01-09 Borut Razem <borut.razem AT siol.net>
2974 * support/scripts/sdcc.nsi: remove previous installation
2976 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2978 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
2979 bytes for last interrupt vector (mcs51)
2980 * sdcc.spec: fixed typo
2982 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2984 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
2985 gen51Code): more efficient parameter receive for --model-large
2988 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2991 * src/z80/main.c: added missed needLinkerScript flags (more than
2992 one port structure defined in these file)
2993 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
2996 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
2998 * src/SDCCmain.c: removed various references to DEFAULT_PORT
2999 * src/port.h: added flag needLinkerScript in port->linker
3000 structure to inform whether to create a .lnk file or not,
3008 * src/z80/main.c: changed appropriately to configure
3009 needLinkerScript flag
3011 * src/pic16/gen.c (genAddrOf): fixed bug #863624
3012 * src/pic/glue.c: added variable udata_section_name to
3013 override default uninitialized data segment definition for
3014 devices only with SHAREBANK memory (reported from Erik Epetrich)
3015 * (pic14emitOverlay): modified to emit a commented overlay segment
3016 directive when no overlay data exist
3017 * (picglue): modified to emit uninitialized data segment
3018 according to udata_section_name
3019 * src/pic/main.c (_pic14_parseOptions): added command line
3020 options --udata-section-name=[name] to override default
3021 udata definition name
3022 * modified _linkCmd and _asmCmd to include compiler passed
3023 arguments via -W option
3024 * src/pic16/main.c: added $l in _asmCmd, changed extension for
3025 object file from '.rel' to '.o' in port->linker structure,
3026 changed size of fptr from 2 to 3 in port structure
3028 2004-01-07 Borut Razem <borut.razem AT siol.net>
3030 * support/scripts/sdcc.nsi: update PATH
3031 * support/scripts/sdcc.ico: craeted
3033 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
3035 * device/include/Makefile.in: fix install
3036 * doc/Makefile: fix install
3038 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3040 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
3042 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
3043 how the function variable allocation summary is displayed; also
3044 include information about variables allocated to the overlay
3047 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3049 * as/mcs51/lkmain.c: Help about -Y option
3050 * as/mcs51/lkarea.c: Fixed gcc warnings
3052 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
3054 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
3056 * support/valdiag/tests/overflow.c: added
3057 * src/SDCCast.c (decorateType),
3058 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
3059 LEFT_OP (left shift)
3061 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3063 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
3064 (default behaviour).
3066 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3068 A python script to validate compiler diagnostic messages. It can be
3069 used to verify that sdcc complains about bad c source code and
3070 gives a good location of the error.
3071 * support/valdiag/Makefile,
3072 * support/valdiag/valdiag.py,
3073 * support/valdiag/tests/*
3075 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3077 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
3078 * src/SDCCsymt.c (newEnumType),
3080 * support/Util/SDCCerr.c,
3081 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
3083 * support/regression/tests/enum.c: added test for enum values that
3084 require at least 2 bytes of storage.
3086 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
3088 * src/common.h: added ifndef/define/endif macros
3089 around the header file.
3090 Bug reported from Jesus Calvino-Fraga
3092 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
3094 * sdcc.spec: updated
3095 * device/include/Makefile.in: don't install CVS directories
3096 * device/lib/Makefile.in: added removal of CVS directories after install
3097 * doc/Makefile: fixed install, added local_icons
3098 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
3099 * src/mcs51/gen.c (genRightShift): fixed bug #870788
3100 * src/ds390/gen.c (genRightShift): fixed bug #870788
3101 * src/SDCCast.c (decorateType): fixed bug #870781
3103 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
3105 PIC16 port related changes:
3106 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
3107 added variable stackPos,
3109 * gen.c: genCall, assignResultValue: added support for
3110 pushing/retrieving function parameters to/from stack,
3111 genFunction,genEndFunction: setup stack frame for the
3113 genAddrOf: will be changed according to bug 863624
3115 * added files genutils.c and genutils.h which contain gen*
3116 debugged and optimised functions extracted from gen.c
3118 * glue.c: added variable 'externs' which holds extern symbols,
3119 pic16emitRegularMap: is modified to properly handle relocatable
3120 symbols under the new scheme,
3121 pic16createInterruptVect: is modified
3122 pic16printPublics: is modified to emit 'global' assembler directives,
3123 added pic16_printExterns to print extern symbols,
3124 pic16glue: initializes stack/frame pointer in the beginning of
3125 the assembly output. Temporary hack, will be corrected later,
3126 because gplink yet does not support stack and SDCC does not
3127 yet support a type of crt0.o object to create the final binary.
3129 * Removed many lines that contain 8051 legacy code.
3130 * The code is finally placed under a 'code' directive.
3131 * Added port specific options.
3133 * _process_pragma: simplified since now we do not need *special*
3134 include file to define SFR registers. But a separate header
3135 will be needed. This will be developed later.
3136 * _pic16_parseOptions: added, parses port specific options:
3137 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
3138 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
3139 --preplace-udata-with=
3141 * _pic16_setDefaultOptions: modified to initialize section names,
3142 but hack is temporarly out of order since it needs improvement.
3143 * _pic16_genAssemblerPreamble: configuration words are emitted by
3144 their address instead of their name. This part is incomplete and
3145 supports only the 18Fxx2 devices. Other devices will emit an error
3146 during assembly since they do not contain the same set of config
3148 * _pic16_genIVT: is modified,
3150 * pcode.c: added definitions for some hardware registers that are needed
3152 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
3153 All PCI entries are updated. Now LFSR is supported.
3154 * Removed pic16_pciTRIS is mentioned by mdubuc in source
3155 * added pic16_newpCodeOpLit2 to support instructions with
3156 two literal arguments
3157 * pic16_pCode2str: corrected code that emits assembler instructions
3158 with two literal operands and those that have an access bit modifier
3159 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
3160 this fixes a bug which caused some labels to be lost, when an
3161 assembler directive was added, i.e. banksel,
3162 * pic16_FixRegisterBanking: improved logic that causes the insertion
3164 * InlineFunction: functions that are called once, are not any more
3165 inlined. This can be a port option in the future,
3167 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
3169 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
3170 hold the corresponding uninitialized symbols,
3171 * pic16_allocProcessorRegister: registers have explicit marked the
3173 * pic16_allocInternalRegister: registers are explicit marked as
3175 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
3176 processing list, so bit registers were lost,
3179 * ralloc.h: added field 'accessBank' and original symbol operand
3180 in register definition,
3181 * removed the field isMapped from register definition,
3183 ** Several functions have been removed from various sources:
3184 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
3185 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
3186 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
3187 pic16_assignRelocatableRegisters
3189 ** others have been introduced:
3190 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
3191 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
3193 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
3195 * support/scripts/inc2h.pl: changed definition of BIT_AT
3196 to emit 'sbit at' instead of 'bit at'. This was a request.
3198 PIC16 port related preliminary changes:
3199 * gen.c: prefixed function popRegFromString with
3200 pic16_ and all references to it corrected
3201 * pcode.c: all pic16_pc_* hardware registers prefixed
3202 with underscore (_),
3203 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
3204 * ralloc.c: newReg(): when register is REG_SFR then
3205 set address to rIdx,
3206 pic16_allocProcessorRegister(): marks register wasUsed=0
3207 pic16_writeUsedRegs(): added a call to assign processor
3208 registers via pic16_assignFixedRegisters
3210 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3212 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
3213 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
3214 variables in unused register banks. Also the SSEG is placed
3215 wherever there is enough space for it, and IDATA can be anywhere
3216 in internal RAM. For now compile using -Wl-Y[stack_size].
3217 The mem file is different for this option as well, since it
3218 makes no sense of talking about DSEG lenght.
3220 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
3222 * src/SDCClrange.c: fixed bug 869095 that caused segfault
3223 in certain cases, e.g. when ROM assignment, patch provided
3224 from Albert den Haan.
3226 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3228 Many signedness and type propagation fixes:
3229 * src/SDCCicode.c: made geniCodeCast() static
3230 replaced SPEC_ by IS_ (cosmetic)
3231 (operandOperation): fixed div and mod operation
3232 (usualBinaryConversions): added support for promotion of char
3233 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
3234 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
3235 (geniCodeAdd): an array index will stay unsigned, even if promoted
3237 (geniCodeArray): ditto
3238 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
3239 * src/SDCCsymt.c (computeType): added more support for char;
3240 promotion of char is selectable by promoteCharToInt, fixed signedness
3242 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
3243 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
3244 * src/SDCCval (val*): replaced signedness calculation by
3246 rearranged if-branches (cosmetic)
3247 (valShift): added warning W_SHIFT_CHANGED
3248 (valCompare): fixed problem with different types
3249 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
3250 * support/regression/tests/literalop.c: added many cases
3251 * support/regression/tests/ast_constant_folding.c: changed finally to
3253 * .version: new year, new version: 2.3.7
3254 * src/SDCCmain.c (main): applied patch #866468
3255 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
3256 provided by Scott Bronson
3257 * doc/sdccman.lyx: updated documentation for sdcdb
3258 updated and added chapter tips
3260 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3262 * src/SDCCsymt.h: missing from yesterday's commits
3264 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3266 * src/SDCC.y (struct_or_union_specifier),
3267 * support/Util/SDCCerr.c,
3268 * support/Util/SDCCerr.h: verify that struct & union tags are used
3271 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3273 * src/SDCCglobl.h: missing from yesterday's commits
3275 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3277 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
3278 sft_attributes, struct_declaration, parameter_declaration,
3279 type_name, start_block, declaration_list),
3280 * src/SDCC.lex (check_type): support redefinition of typedef names
3282 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3284 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
3285 aligned xdata arrays. Erik helped me with the if clause.
3287 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3289 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
3292 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3295 * src/SDCCast.c (newAst_),
3297 * src/SDCCicode.c (ast2iCode, newiCode),
3299 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
3300 expr, statement, expression_statement, selection_statement,
3301 iteration_statement, expr_opt, jump_statement): foundation for tracking
3303 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
3306 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3308 * support/Util/SDCCerr.c,
3310 * src/SDCCast.c (createCase, createDefault, decorateType),
3311 * src/SDCClabel.c (labelUnreach),
3312 * src/SDCC.y (labeled_statement, jump_statement): More improvements
3314 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
3315 (with thanks to Stas Sergeev)
3316 * device/include/time.h,
3317 * device/lib/time.c (CheckTime): suppress unreachable code warning
3319 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3321 * src/SDCCast.c (createIvalCharPtr),
3322 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
3324 * support/regression/tests/nullstring.c: tests for these two bugs
3326 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3328 * support/Util/SDCCerr.h,
3329 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
3330 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
3331 about storage class and 'at' used inside struct or union
3332 * src/SDCCBBlock.c (iCodeFromeBBlock),
3333 * src/SDCCcse.c (ifxOptimize),
3334 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
3335 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
3336 printIval, emitStaticSeg, emitOverlay),
3337 * src/SDCClabel.c (deleteIfx),
3338 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
3339 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
3340 gatherAutoInit, processParms),
3341 * support/Util/SDCCerr.h,
3342 * support/Util/SDCCerr.c (werrorfl): Support for better error location
3343 reporting for post-parse errors.
3345 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3347 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
3348 implicit casts via union; they don't work on big endian systems
3349 (possible fix for bug #861138)
3351 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3353 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
3354 * src/mcs51/main.c: fixed the fix for bug #737001
3356 2003-12-15 Borut Razem <borut.razem AT siol.net>
3358 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
3360 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3362 * support/makebin/makebin.c: put output in binary mode
3364 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3366 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
3367 xdata and data memory on startup. Set the environment variable
3368 SDCC_NOGENRAMCLEAR to disable this.
3369 * src/mcs51/peephole.def,
3370 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
3371 (allows non-interrupt and interrupt code to safely compete for a resource
3372 without the non-interrupt code having to disable interrupts)
3374 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3376 * src/SDCCicode.c (geniCodeAdd),
3377 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
3378 with valFromType if type might be a pointer and host is big endian).
3379 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
3380 types, not just integer types.
3381 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
3382 multiply defined with mismatching "at" address.
3384 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3386 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
3387 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
3388 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
3389 with embedded nulls (fixed bug #753752)
3391 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3393 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
3394 Apparently this did not see much testing (endless loop)
3396 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3398 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
3400 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3402 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
3403 gracefully handle NULL memmap pointers
3405 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3407 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
3408 instead of deleting the iCode when an operand is volatile
3409 * src/z80/gen.c (genDummyRead),
3410 * src/mcs51/gen.c (genDummyRead),
3411 * src/ds390/gen.c (genDummyRead),
3412 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
3414 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
3415 * src/SDCC.y: fixed bug #850420
3417 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3419 Applied z80 i/o port patch from Peter Townson and fixed some operators
3420 to better handle operands in A register.
3421 * device/include/z180.h
3427 * src/z80/peeph-z80.def
3431 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3433 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
3435 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3437 * device/lib/hc08/_mullong.c: Removed extra #endif
3439 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3441 * sim/ucsim/hc08.src/inst.cc,
3442 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
3444 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
3445 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
3446 * device/include/stdarg.h: fixed varargs for hc08
3447 * device/lib/Makefile.in,
3448 * device/lib/hc08/Makefile,
3449 * device/lib/hc08/_mulint.c,
3450 * device/lib/hc08/_mullong.c: fixed some endian problems
3452 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3454 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
3455 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
3456 * device/lib/_gptrget.c,
3457 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
3459 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3461 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
3462 * src/SDCCast.c (astErrors): fixed bug #846007
3463 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
3465 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3467 * src/SDCCast.c (decorateType): disabled a transformation I added in
3468 revision 1.188 (access to fields of a structure at an absolute address);
3469 it breaks with bitfields, extern declarations, and gcse analysis.
3470 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
3471 could be assigned through a pointer, so don't complain.
3472 * src/SDCCast.c (astErrors),
3474 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
3476 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
3478 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
3479 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
3480 output of __config directives, since gpasm now supports them
3481 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
3482 pre-processor macro, i.e. -DMCU=p18f452
3483 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
3484 and modified to handle 'cast' icode similarly to '=' icode
3485 * src/pic16/device.h (typedef struct PIC_device): added field
3486 'extMIface' to indicate that chip has external memory interface
3487 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
3488 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
3491 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3493 * src/SDCC.y (pointer): fixed bug #846006
3494 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
3495 * src/SDCCast.c (decorateType): fixed bug #846009
3496 * src/ds390/peeph.def,
3497 * src/ds390/gen.c (genAnd, genOr),
3498 * src/mcs51/peeph.def,
3499 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
3501 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3503 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
3510 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
3514 * src/SDCCbitv.c: added function to free a bitvector
3516 * src/SDCClrange.c: added function to recompute the liveranges
3518 * src/ds390/ralloc.c,
3519 * src/hc08/ralloc.c,
3520 * src/mcs51/ralloc.c,
3522 * src/pic16/ralloc.c,
3523 * src/xa51/ralloc.c,
3524 * src/z80/ralloc.c: recompute the liveranges after register packing
3526 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
3528 * src/SDCCloop.c (newInduction): fixed bug #845630
3530 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3532 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
3533 inadvertantly left behind from my 2003-11-12 change
3535 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3537 Updated headers I neglected to commit yesterday.
3541 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3543 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
3544 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
3545 * src/SDCCopt.c (eBBlockFromiCode),
3546 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
3547 the creation of the key hash table from the sequencing so it can be used
3548 earlier (for some GCSE bug fixes still pending)
3550 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3552 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
3553 * support/regression/tests/addsub.c: testing genPlus shortcut
3555 2003-11-15 Borut Razem <borut.razem AT siol.net>
3557 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
3559 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3561 * src/SDCCcse.c (cseBBlock): fixed bug #527779
3562 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
3563 ordering is immaterial.
3564 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
3566 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3568 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
3569 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
3570 (SIGSEV) of bug #840381
3571 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
3572 unlink new file before rename if new and old filenames are the same)
3574 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3576 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
3577 uninitialized variables) for the mcs51. Set environment variable
3578 SDCC_GENRAMCLEAR to test.
3579 xdata initialization slightly shorter
3581 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3584 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
3585 #838241 & 780691 (basicly the same bug)
3586 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
3587 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
3589 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
3591 * src/SDCCmain.c (linkEdit): "fix" #834252
3593 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3595 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
3597 * src/SDCC.y: fixed bug #819403
3599 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3601 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
3602 the reentrant attribute.
3603 * src/hc08/gen.c (genPackBits): added missing stack readjustment
3604 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
3606 * src/SDCCast.c (decorateType): fixed bug with storage class not being
3607 updated during pointer dereference; f.e. ~(((char *)1)*) was being
3608 erroneously reduced to a literal.
3609 * src/hc08/ralloc.c (packRegisters, rematStr),
3610 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
3613 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3615 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
3616 * doc/sdccman.lyx: changed from 'article' to 'book'
3617 * doc/Makefile: readded test_suite_spec and cdbfileformat
3619 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
3621 * device/include/stdlib.h: include malloc.h to comply with ANSI
3622 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
3624 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3626 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
3627 * doc/clean.mk: also remove *.out files
3628 * doc/sdccman.lyx: some additions, larger top/bottom margins
3630 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3632 * src/SDCC.y: fixed bug #837365
3633 * support/regression/tests/bitopcse.c
3634 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
3635 a symbol (might be valop instead)
3636 * device/lib/Makefile.in: added errno.c to HC08SOURCES
3637 * device/lib/clean.mk: added hc08 to the cleaning list
3639 2003-11-04 Borut Razem <borut.razem AT siol.net>
3641 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
3643 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
3644 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
3645 malloc is declared in standard stdlib.h
3647 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3649 * device/lib/hc08/Makefile: need to clean .rel not .o files
3650 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
3652 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3662 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
3663 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
3664 tests (which uses the port's oclsExpense function)
3670 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
3672 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3674 * src/SDCCcse.c (ifxOptimize),
3675 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
3676 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
3677 deleting the IFX iCode.
3678 * src/hc08/ralloc.c: reduced unneeded slocs
3679 * src/hc08/gen.c: fixed bug in asmopToBoolean
3681 2003-11-04 Borut Razem <borut.razem AT siol.net>
3683 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
3684 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
3685 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
3686 transferred to configure
3688 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
3690 Use headers defined in the C[++] standards:
3691 * sim/ucsim/gui.src/serio.src/fileio.cc
3692 * sim/ucsim/gui.src/serio.src/frontend.cc
3693 * sim/ucsim/gui.src/serio.src/main.cc
3694 * sim/ucsim/gui.src/serio.src/posix_signal.cc
3695 * support/Util/NewAlloc.c
3701 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3703 * Added MSVC projects for hc08 assembler and linker:
3704 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
3705 /as/hc08/link_hc08.dsp
3707 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
3709 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
3711 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
3713 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
3715 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3717 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
3719 2003-10-31 Borut Razem <borut.razem AT siol.net>
3721 * support/cpp2/cpplib.h,
3722 support/cpp2/cpplib.c,
3723 support/cpp2/cpplex.c,
3724 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
3725 to switch _asm block preprocessing on / off. Default is
3726 #pragma preproc_asm +
3728 2003-10-31 Borut Razem <borut.razem AT siol.net>
3730 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
3731 when outputting comment blocks (when executed with -C option) and
3732 _asm (SDCPP specific) blocks
3734 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3736 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
3738 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
3740 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
3742 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
3744 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
3745 * src/SDCCast.c (decorateType): fixed bug #832664
3747 2003-10-31 Borut Razem <borut.razem AT siol.net>
3749 * support\cpp2\cpplex.c: fixed for SDCPP:
3750 comments(when executed with -C option) and _asm blocks
3751 were included even if they where in skipped #if block.
3752 Applied solution from GCC cpp 3.3.2
3754 2003-10-31 Borut Razem <borut.razem AT siol.net>
3756 * src/SDCC.lex: sdcc now understands both formats:
3757 '# <line_number> <file_name>' and
3758 '#line <line_number> <file_name>'
3759 * support/cpp2/cppmain.c: sdcpp now generates the standard
3760 '# <line_number> <file_name>' instead of former
3761 '#line <line_number> <file_name>'
3763 2003-10-30 Borut Razem <borut.razem AT siol.net>
3765 * support/cpp2/cpphash.h,
3766 * support/cpp2/cpplib.h
3767 * support/cpp2/cpplex.c,
3768 * support/cpp2/cppmain.c,
3769 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
3771 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3773 Fixed a number of problems revealed by bug #827883.
3774 * src/SDCCloop.c (loopInvariants): Spill location of the
3775 result operand should be recomputed if extracted from
3776 a loop. Also, don't extract assignments of an iTemp
3778 * src/SDCCast.c (isConformingBody): loop reversal should
3779 not occur if the control variable is involved with a
3780 relational operator.
3782 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
3784 * .version: bumped to 2.3.6 to reflect the big improvements
3785 made by Erik and Klaus. Thanks!
3787 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
3789 Replaced the livrange code.
3790 * src/SDCClrange.c: added new LR code
3792 * src/SDCCBBlock.h: removed remainig parts from old LR code
3793 * src/ds390/ralloc.c,
3794 * src/ds390/gen.c: minor fixes to make it work with new code
3796 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3801 * src/hc08/ralloc.c: Fix various warnings related to the hc08
3802 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
3803 (tweaked fix for bug #818696)
3805 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3807 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
3809 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3812 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
3813 * src/mcs51/gen.c (gencjneshort),
3814 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
3815 more efficient (per Scott Bronson's suggestion)
3817 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3819 Extended the semantics of the critical keyword to include
3820 individual statements. See RFE #827755 and #799831
3825 * support/Util/SDCCerr.c
3826 * support/Util/SDCCerr.h
3831 2003-10-19 Borut Razem <borut.razem AT siol.net>
3833 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
3835 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3837 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
3839 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
3840 and predecrement operand is displayed
3842 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
3844 * src/SDCCval.c (valMinus): fixed bug #826041
3846 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3848 Some hc08 related updates that I missed earlier
3849 * sim/ucsim/stypes.h
3850 * support/regression/ports/hc08/spec.mk
3852 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3854 New target "hc08" for the Motorola 68hc08 family of micros
3862 * sim/ucsim/hc08.src/*
3863 * sim/ucsim/configure.in
3864 * src/ucsim/configure
3865 * sim/ucsim/packages_in.mk
3868 * device/include/mc68hc908qy.h
3870 * device/lib/Makefile.in
3871 * support/regression/ports/hc08/*
3872 * support/regression/Makefile
3874 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3876 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
3878 * src/ds390/gen.c (genCast): fixed bug #821957
3880 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
3882 * device/lib/logf.c: "fixed" overlay bug
3883 * support/regression/ports/host/spec.mk: added m library
3884 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
3885 * support/regression/tests/float_trans: added (for Eric)
3887 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
3889 * src/mcs51/gen.c (genCpl): fixed bug
3890 http://sf.net/mailarchive/message.php?msg_id=6263915
3892 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
3894 * src/SDCCast.c (decorateType): added extended constant folding
3895 * src/SDCCsymt.c (computeType): cleanup
3896 * src/SDCCval.c (valShift): minor optimization
3897 * support/regression/tests/ast_constant_folding.c: added
3899 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3901 * src/SDCCmain.c: removed some unintended changes
3903 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3905 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
3906 * src/z80/gen.c: fixed part of bug #817589
3907 * src/SDCCsymt.c (checkFunction): fixed bug #817895
3909 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
3911 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
3922 * src/ds390/ralloc.c
3924 * src/mcs51/ralloc.c
3926 * src/pic16/ralloc.c
3929 * src/z80/gen.c: removed unused label "release:"
3931 2003-10-06 Borut Razem <borut.razem AT siol.net>
3933 * src/SDCC.lex: removed definition of unused variables
3934 save_optimize and save_options
3936 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3938 * clean.mk: removed '=' in "-maxdepth=1"
3939 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
3940 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
3942 2003-10-06 Borut Razem <borut.razem AT siol.net>
3944 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
3945 my_unput() replaced by unput()
3947 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
3949 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
3950 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
3951 type-punned pointer will break strict-aliasing rules"
3952 Old LR behaviour is again default; Klaus' LR can be choosen by
3953 defining the environment variable LRKLAUS
3957 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
3958 * clean.mk: fixed removal of files in bin/CVS/
3959 * device/lib/clean.mk: fixed removal of directories small and large
3960 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
3962 * src/SDCCval.c: removed superflous test for pedantic
3964 2003-10-05 Borut Razem <borut.razem AT siol.net>
3966 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
3967 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
3968 message "unmatched #pragma SAVE and #pragma RESTORE"
3970 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3972 * doc/sdccman.lyx: various additions and updates (interrupts, inline
3973 assembly, critical functions, atomic, nojtbound)
3975 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
3977 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
3983 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3986 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
3988 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
3990 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
3991 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
3992 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
3994 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3996 * src/z80/gen.c (genRet): fixed bug #524753
3997 * src/z80/gen.c (genCast): fixed internal error on cast from
3999 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
4000 fix for bug #477835 to the z80
4001 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
4002 for tracking iCodes in the peephole optimizer for z80
4004 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4006 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
4007 the other part of bug #814548
4008 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
4010 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
4012 * src/SDCCcse.c: fixed part of bug #814548
4014 2003-09-28 Borut Razem <borut.razem AT siol.net>
4016 * src/asm.c: rewrite of printILine() to use temporary file instead
4018 * src/xa51/main.c: commented out declaration of int rewinds
4020 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4022 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
4024 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4026 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
4027 * src/asm.c (printILine): Fixed bug #811015
4029 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4031 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
4034 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4036 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
4037 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
4038 to correctly handle general case of AOP_PAIRPTR
4039 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
4041 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4043 * src/mcs51/ralloc.c (fillGaps),
4044 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
4045 register positioning bug)
4047 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
4049 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
4051 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4053 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
4054 genCodePointerGet, genGenPointerGet, genFarPointerSet,
4055 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
4056 (ralloc doesn't intentionally do this now, but perhaps later)
4057 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
4058 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
4059 register positioning bugs (Fixed bug #762602 and #795325)
4060 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
4062 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
4063 lines that --i-code-in-asm generates
4065 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4067 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
4068 trying to fclose a FILE* that was already closed.
4070 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4072 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
4073 of const struct should be treated as if const themselves)
4075 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
4077 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
4079 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4081 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
4082 Unix (/n) and DOS (/r/n) line terminations.
4084 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4086 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
4089 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4091 * src/mcs51/gen.c (genFunction, genEndFunction),
4092 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
4093 and restore of EA so that stack offsets to parameters are
4094 correct when using both critical and reentrant/stack-auto.
4095 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
4096 size (can be triggered in error if sloc is shared between
4097 different sized objects)
4098 * device/include/float.h: fixed macros to explicitly use
4099 unsigned long where needed
4101 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4103 Feature req. 799831: added code to allow nesting of critical functions
4104 * src/mcs51/gen.c (genFunction, genEndFunction)
4105 * src/ds390/gen.c (genFunction, genEndFunction)
4107 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4109 * src/SDCCsymt.c (sclsFromPtr),
4111 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
4112 support for standard C idiom of memory mapped variables; for
4113 example, *((xdata int*)0x1234) = 1 is now internally equivalent
4114 to xdata int at 0x1234 tempvar = 1.
4115 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
4116 provided by Akiya ISHIDA
4118 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
4120 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
4121 * src/SDCCval.c (constVal): added reduction from int to char
4122 * src/SDCCval.c (valMult, valDiv): fixed sign handling
4123 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
4124 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
4126 * support/regression/tests/shifts.c: fixed
4128 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4130 * src/z80/gen.c (genXor): Fixed bug #805445
4132 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4134 Fixed bug #621531 (const & volatile confusion in the type chain).
4135 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
4136 refer to the const or volatile state of the pointer itself.
4148 * src/pic16/ralloc.c
4149 * support/regression/tests/const.c
4151 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4153 When checking for duplicated modules, use absolute paths
4154 instead of relative paths. Files changed:
4159 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4161 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
4163 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4165 * device/include/string.h: added size_t typedef, changed
4166 prototypes to use size_t, eliminated separate reentrant and
4167 non-reentrant declarations, added _memmove declaration
4168 * device/lib/_memcpy.c: changed to use size_t instead of int,
4169 changed /4 to >>2 to avoid division library call
4170 * device/lib/_memcmp.c,
4171 * device/lib/_memset.c,
4172 * device/lib/_strncat.c,
4173 * device/lib/_strncpy.c,
4174 * device/lib/_strncmp.c: changed to use size_t instead of int
4175 * device/lib/_memmove.c: new file (fixed bug #772294)
4176 * device/lib/Makefile.in: added _memmove.c
4177 * device/lib/z80/asm_strings.s: fixed bug #772290
4178 * support/regression/tests/bitfields.c: attempt to fix host assertion
4179 failure on amd64-unknown-linux2.2
4181 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4183 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
4184 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
4185 * as/z80/asmain.c (main): fixed bug #801766
4187 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
4189 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
4192 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4194 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
4195 reported in bug #800609
4197 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
4199 * Top header beautifications in src/pic16 directory:
4200 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
4201 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
4202 pcoderegs.h, ralloc.c, ralloc.h
4203 * main.c: added top header and GPL license notice
4204 * pcode.c: fixed the if-conditional warning
4206 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
4208 * device/lib/_mullong.c: replaced int by short for gcc
4210 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4212 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
4213 and JUMPTABLE iCodes properly now (worked by accident before)
4214 * src/mcs51/gen.c (leftRightUseAcc),
4215 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
4216 iCode properly now. Use getSize instead of nRegs since a & b
4217 aren't part of the nRegs tally.
4219 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
4221 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
4222 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
4223 before instructions that use the _STATUS register
4225 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
4227 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
4228 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
4229 fetching of the pointer
4230 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
4231 copied from genNearPointerSet()
4232 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
4233 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
4234 If they pop r0/r1 they must be called in the opposite order than aopOp().
4235 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
4236 (resp. --stack-auto), prepared for --xstack
4238 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4240 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
4242 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
4244 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
4245 these ports have their own __sdcc_external_start()
4247 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
4249 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
4250 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
4251 type for bits was changed. It resulted in bit variables becoming
4252 global, which is not permitted in PIC 14 assembly output.
4254 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4256 * doc/sdccman.lyx: various additions and updates. Rearranged sections
4258 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4260 Z80 and MCS51 linkers complaint if a public symbol is defined
4261 in more than one library module:
4265 * as/mcs51/Makefile.in
4267 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4269 A few small changes that speed up the peephole optimizer.
4273 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4275 Try to make the peephole optimizer smarter by maintaining
4276 an association between the assembly source code and the
4277 iCodes that originated them. Put this information to use
4278 with a new peephole rule condition "notVolatile" so that
4279 the rules can be aggressive yet still safe.
4284 * src/mcs51/peeph.def
4286 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4290 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
4291 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
4292 if the left or right operand symbols have the accuse flag set.
4294 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4296 Changed the type of the result of the ! (NOT) operator to char;
4297 previously it returned the same type as the source. This allows
4298 us to eliminate all the genFloatNot functions (all of its target
4299 implementations were very buggy) since !float can use the same
4302 * src/SDCCicode.c (ast2iCode): ! returns char
4303 * src/mcs51/gen.c (genNot, genNotFloat),
4304 * src/ds390/gen.c (genNot, genNotFloat),
4305 * src/z80/gen.c (genNot, genNotFloat),
4306 * src/pic/gen.c (genNot, genNotFloat),
4307 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
4309 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
4311 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
4312 1. Interrupt would not compile properly. Ensure PCLATH register is saved
4313 during interrupts. Ensure WSAVE is located at a shared bank address.
4314 2. Fixed page selection in some places
4315 3. Fixed BTFSS/C to where necessary use registers directly and not simply
4316 the registers name strings.
4317 4. Fixed "signed / unsigned compare" compiler warnings.
4318 5. The PIC port manages its own allocation of the general purpose
4319 registers, but makes no attempt to reuse them. As a result when
4320 compiling it soon runs out of general purpose registers. Some
4321 additional code was added to the files pcode.c and device.c to walk
4322 through the function call tree and rename the registers so that they
4332 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
4333 genPlus() & genMinus() when the result is the same as left or right
4335 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4337 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
4339 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4341 Made bitfield a distinct type from bit so that bitfields
4342 convert as per ANSI C and bits retain their traditional
4343 boolean style behaviour. Implemented bitfield support in
4351 * src/ds390/gen.c: bit v bitfield split
4352 * src/z80/gen.c: New support for bitfields
4353 * support/regression/tests/bitfields.c: reenabled z80,
4356 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4358 Rules 246.x, 247.x relate to bitfields, the others speed up
4359 access to xdata mapped I/O devices.
4361 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
4363 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4365 Cleaned up genPackBits and genUnpackBits and added two helper
4366 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
4367 for literal assignments in genPackBits (thanks to Frieder for
4373 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4375 Fixed bug #748310 (pointer to function type mishandled when the
4376 function name is omitted). Also fixed a SIGSEGV when a function
4377 attribute (reentrant, etc) is used on a non-function or on a
4378 function but misplaced before the parameter list.
4380 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
4382 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
4383 * support/Util/SDCCerr.h,
4384 * support/Util/SDCCerr.c: Added func attr misuse error msg
4386 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
4388 Fixed bug #787649 by anonymous
4389 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
4390 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
4392 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4394 Fixed numerous bitfield problems.
4396 * src/SDCC.y: More bitfield related error checking
4398 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
4399 * support/Util/SDCCerr.h,
4400 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
4401 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
4402 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
4403 * support/regression/tests/bitfields.c: tests added
4405 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4407 Made the constant following the "interrupt" keyword optional. If
4408 omitted, the function will not automatically be given an entry
4409 in the interrupt vector table (similar to #pragma NOIV, but
4410 less syntacticly kludgy). The interrupt number is also now
4411 range checked. Also fixed a bug in the high order bit example
4418 * support/Util/SDCCerr.c
4419 * support/Util/SDCCerr.h
4422 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
4424 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
4425 * src/SDCCicode.c (operandOperation): rewritten some ops
4426 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
4427 * src/SDCCsymt.c (computeType): literals are handled the same way as any
4429 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
4430 be re-activated by defining REDUCE_LITERALS)
4431 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
4432 unsigned, but are signed by default
4433 * src/SDCCval.c (constVal): rearranged
4434 * src/SDCCval.c (valMod): preliminary fix
4435 * src/SDCCval.c (valCastLiteral): use TYPE_* types
4436 * support/regression/literalop.c: added, work in progress
4438 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4440 Generate warnings for useless declarations like "char data;"
4441 that don't do what new users expect.
4444 * support/Util/SDCCerr.h
4445 * support/Util/SDCCerr.c
4447 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
4449 * src/SDCCval.c (valMult): fix overflow detection of negative int
4451 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4453 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
4455 Changes to support big endian targets:
4468 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
4470 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
4471 * device/lib/time.c: fixed warning "integer overflow in expression"
4473 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
4475 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
4476 * src/SDCCval.c (constVal): changed default to signed; hex and octal
4477 constants are unsigned; added recognition of "u" flag for unsigned
4478 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
4479 * src/SDCCval.c (valDiv, valMod): fixed signdness
4480 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
4481 signedness of modulo, left and right shift
4482 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
4483 * support/Util/SDCCerr.h: added warning W_INT_OVL
4484 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
4485 * src/SDCCast.c (ast_print): improved output of constants
4487 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4489 Fixed some warnings when building with MSVC:
4502 * support\cpp2\cpplib.c
4506 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
4508 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
4510 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4512 * support\librarian\clean.mk: Do not remove Makefile.
4513 * support\librarian\Makefile: added.
4515 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4517 Added librarian to MSVC build:
4520 * support\librarian\librarian.dsp
4522 'configure' not needed for librarian, removed:
4523 * support\librarian\configure
4524 * support\librarian\configure.in
4525 * support\librarian\config_in.h
4526 * support\librarian\Makefile.in
4528 Hopefully these ones built the librarian and the rest of sdcc properly:
4530 * Makefile.common.in
4532 Messed up 'configure', so revert to previous version:
4536 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
4538 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
4539 there, while the mantissa of a double is "only" 53 bits wide.
4541 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4543 Adding sdcclib to the build. MSVC project coming soon.
4544 Files added/changed:
4546 * support\librarian\clean.mk
4547 * support\librarian\configure
4548 * support\librarian\configure.in
4549 * support\librarian\config_in.h
4550 * support\librarian\Makefile.bcc
4551 * support\librarian\Makefile.in
4552 * support\librarian\sdcclib.c
4555 * Makefile.common.in
4559 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4561 Linker now complaints if linked modules have conflicting options, for
4562 example, one compiled using --model-large and another one compiled with
4563 --model-small. The following files were modified:
4585 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4587 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
4588 as/mcs51/lklibr.c: Generate a warning when a library is not found.
4590 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
4592 * src/z80/mappings.i: fix _mul[us][int,long] entries
4594 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4596 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
4598 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
4600 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
4601 * support/regression/tests/bitopcse.c: added
4609 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4611 added support for new library format to z80, gbz80 linkers:
4617 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
4619 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
4620 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
4622 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
4624 added DUMMY_READ_VOLATILE:
4633 * src/SDCCcse.c (algebraicOpts): many improvements
4634 * src/SDCCcse.h: removed algebraicOpts()
4635 * src/SDCCicode.c (picDummyRead): added
4637 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4639 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
4640 "Insufficient space in data memory".
4642 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4644 * src/mcs51/gen.c: fixed bug #771358
4645 * src/z80/gen.c: fixed bug #759087
4647 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
4649 * src/pic16/glue.c: minor cleanup by Vangelis
4651 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4653 * device/include/regc515c.h: fixed #758477
4654 * device/lib/_gptrget.c: saving some cycles in generic pointer get
4655 * device/lib/_gptrput.c: saved a few bytes
4656 * my tab spacing is 8, yours too?)
4657 * device/lib/_ser.c: process RX bytes earlier than TX bytes
4658 * device/lib/serial.c: process RX bytes earlier than TX bytes
4659 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
4661 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4663 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
4665 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4667 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
4669 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
4671 * device/lib/Makefile.in: bad fix, reverted to 1.43
4673 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
4675 * device/lib/Makefile.in: added missing z80 object files
4677 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
4679 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
4680 pic16 progress by Vangelis:
4695 * pic16/pcodepeep.c:
4698 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4700 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
4702 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4704 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
4705 added gbz80 build to MSVC project.
4706 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
4707 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
4708 from 8051 stuff and setup so it links using a .lnk file.
4710 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4712 * support/librarian/sdcclib.c: sdcc librarian.
4713 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
4716 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4718 * as/mcs51/lkmain.c: properly handle extensions in function afile.
4720 2003-07-02 Borut Razem <borut.razem AT siol.net>
4722 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
4723 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
4724 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
4725 src/xa51/main.c, src/z80/main.c:
4726 virtualization of glue() function: each port has it's own glue function,
4727 which is accessed by do_glue function pointer in PORT.general structure
4729 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
4731 * DS800C400 fun, improved ROM interface and tinibios.
4733 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
4735 * More support for DS80C400. Now includes beginning of interface to ROM.
4737 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
4739 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
4741 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4743 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
4745 2003-06-19 Borut Razem <borut.razem AT siol.net>
4747 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
4749 2003-06-19 Borut Razem <borut.razem AT siol.net>
4751 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
4752 fixed Z80 port - crt0.o: cannot open.
4754 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
4756 * support/Util/MySystem.c (merge_command): revert bad fix
4758 2003-06-18 Borut Razem <borut.razem AT siol.net>
4760 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
4762 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4764 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
4765 option --use-stdout sends errors to stdout instead of stderr.
4767 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
4769 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
4771 2003-06-15 Borut Razem <borut.razem AT siol.net>
4773 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
4774 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
4775 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
4776 fixed width array of pointers replaced with sets;
4777 multiple include and lib paths ared transferred to preprocessor and linker
4778 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
4779 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
4780 fixed width array of pointers
4781 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
4782 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
4783 fixupPath(), getPathDifference()
4784 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
4785 fixed width array of pointers
4787 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
4789 * src/pic16/ralloc.c: fix warnings
4790 * src/pic16/pcode.c: fix warning
4792 2003-06-10 Scott Dattalo <scott AT dattalo.com>
4794 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
4795 know all the details, but essentially this set of changes enable
4796 the pic16 port to generate movff instructions and generate assembler
4801 * src/pic16/pcode.c:
4802 * src/pic16/device.c:
4804 * src/pic16/pcode.h:
4805 * src/pic16/pcoderegs.c:
4806 * src/pic16/ralloc.c:
4807 * src/pic16/ralloc.h:
4809 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4811 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
4812 added option --vc, so sdcc errors and warnings are compatible with
4813 Microsoft Visual Studio.
4815 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4817 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
4818 device/lib/libfloat.lib: added atof function.
4820 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4822 * doc/sdccman.lyx: updated to Lyx 1.3
4823 * doc/cdbfileformat.lyx: updated to Lyx 1.3
4824 * doc/test_suite_spec.lyx: updated to Lyx 1.3
4825 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
4827 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
4829 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
4831 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4833 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
4834 additions to the "related tools/documentation" section
4836 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
4838 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
4840 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
4842 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
4843 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
4845 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
4847 * doc/sdccman.lyx: fix double dash and other minor things
4848 * doc/Makefile: fix double dash
4850 2003-05-28 Karl Bongers(patches from Martin Helmling)
4851 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
4852 condition and ignore commands.
4854 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4856 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
4857 is in parts still quite out of date, I did changes as far as I felt makes sense
4858 for a non-native english speaker.
4859 Please feel free to add to the manual or to correct my changes.
4860 * doc/Makefile: undid touching the date of intermediate tex files.
4862 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4864 * doc/sdccman.lyx: Manual has an index now
4866 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
4868 Finalize muluint/mulsint and mululong/mulslong merging:
4869 * device/lib/_mulint.c
4870 * device/lib/_mullong.c
4871 * device/lib/gbz80/mul.s
4872 * device/lib/gbz80/stubs.s
4873 * device/lib/z80/mul.s
4874 * device/lib/z80/stubs.s
4875 * src/SDCCsymt.c (initCSupport)
4877 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4879 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
4880 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
4881 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
4882 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
4885 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4887 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
4888 the regression tests I'm not brave enough to enable 245.b, 245.c
4889 * doc/sdccman.lyx: added latex preamble for hyperref package.
4890 Using pdflatex this will give you a hyperlinked pdf file with
4891 bookmarks. (prepend '%' before /usepackage if this breaks something)
4893 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4895 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
4897 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
4899 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
4901 2003-05-21 <johan AT balder>
4903 * src/SDCCglue.c (printIval): fixed bug #739934
4905 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
4907 Applied patch from bug 737905 (renamed yylineo to mylineno):
4914 * src/pic16/pcode.c: Cleaned warnings
4915 * src/pic16/pcodeflow.c: Cleaned warnings
4916 * src/pic16/pcoderegs.c: Cleaned warnings
4918 2003-05-19 Scott Dattalo <scott AT dattalo.com>
4920 * src/pic16/pcode.c: Cleaned warnings
4921 * src/pic16/pcodepeep.c: Cleaned warnings
4922 * src/pic16/ralloc.c: Cleaned warnings
4924 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
4926 * doc/sdccman.lyx: fixed bug 739745
4927 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
4929 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
4931 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
4932 it can be defined with CFLAGS when running configure
4933 * src/SDCCmain.c: fixed compiling + linking with object files
4935 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
4937 * configure.in: configure for pic16 port,
4938 added --disable-pic16-port
4939 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
4940 * src/SDCCmain.c: linkOptions is changed to set *,
4941 added if/endif conditional macros to remove options help
4942 messages from optionsTable when a port is not configured, added
4943 support for the PIc16 port in the ports table, when executing
4944 the compiler with no port specified on command line, a default
4945 port is selected with the new macro DEFAULT_PORT which is
4946 defined in port.h, in setDefaultOptions() linkOptions is removed
4947 from initialization assignment, since now it is a set,
4948 parseCmdLine uses setParseWithComma for linkOptions, in
4949 linkEdit() linkOptions are accessed with new function indexSet()
4950 which returns the i'th item of a set variable. See SDCCset.c, in
4951 linkEdit() when calling buildCmdLine(), added linkOptions as
4952 last argument. Now users can pass arguments to gplink via the
4953 -Wl option, main() uses pic16glue() to glue up pic16 programs
4954 * src/SDCCpeeph.c: various changes to support pic16
4955 * src/SDCCset.c: added function void *indexSet(set *, int) to
4956 return the i'th item of the set
4957 * src/SDCCset.h: added function prototype for indexSet()
4958 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
4959 * src/clean.mk: added pic16 in CLEANALLPORTS variable
4960 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
4961 added macro DEFAULT_PORT
4962 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
4963 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
4965 * src/pic16/glue.c: commented out some error producing lines
4966 * src/pic16/main.c: __config directives are commented out to stop
4967 gpasm complaining and test the linkage with gplink, _linkCmd and
4968 _asmCmd changed to be more gplink and gpasm friendly
4969 * src/pic16/peeph.def: peep rule 3 is commented out, since it
4970 produced an error when parsed, peep rule 12 is added to utilize
4971 movff, but it is commented out since the pCode does not support
4972 yet a command with 2 address arguments
4974 2003-05-18 <johan AT balder>
4976 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
4977 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
4978 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
4980 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
4981 Added feature to script commands from file.
4983 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4985 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
4986 * src/SDCCutil.c: include ctype.h for win32
4988 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4990 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
4992 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
4994 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
4995 Fixed so you can set breakpoints prior to run, run does not stop
4996 on entry now. Add tbreak. Other enhancements and fixes for use
4999 2003-05-12 Borut Razem <borut.razem AT siol.net>
5001 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
5003 2003-05-11 Borut Razem <borut.razem AT siol.net>
5005 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
5006 the path of bin directory, so that PATH is the only env. variable, which has to be set
5007 in case of standard installation.
5008 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
5009 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
5010 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
5012 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
5014 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
5015 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
5016 temp files are in the port dir; clean the gen/test directory when
5017 generating new test.c
5018 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
5019 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
5020 * support/regression/tests/zeropad.c: added
5022 2003-05-09 <johan AT balder>
5024 * src/SDCCglue.c: fixed bug #597940
5026 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
5028 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
5029 cache sfr, optimize next,step, fix off by one sourceline,
5030 support ddd list function.
5031 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
5033 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
5035 * support/regression/HTMLgen.py: added compare_s2f()
5036 * support/regression/Makefile: redo 1.27
5037 * support/regression/generate-cases.py: redo 1.5
5039 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5041 * support/regression/tests/float.c: workaround 33 bit hex constant
5042 * support/regression/tests/simplefloat.c: fix division for host
5044 2003-04-29 Scott Dattalo <scott AT dattalo.com>
5046 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
5047 that tame's the PIC's over-aggressive optimizer.
5049 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5051 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
5054 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
5056 Initial support for DS80C400. "Hello world" runs on TINIm400
5059 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
5061 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
5062 * Some notes on ddd usage added in debugger/README
5063 Martin Helmling adding more features and fixes for ddd GUI debugger.
5064 Code added for nexti, stepi, up, down, and other adjustments.
5066 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
5068 * src/pic/pCodepeep.c non-wildcard asmops are now handled
5069 * src/pic/peeph.def Added two rules to optimize carry manipulation
5070 * src/pic/* removed debug printfs
5072 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5074 * debugger/mcs51/cmd.c: added header newalloc.h
5076 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5078 * as/Makefile: new EXEEXT
5079 * as/z80/Makefile: remove trailing slash of BUILDIR
5080 * as/z80/clean.mk: new EXEEXT
5081 * Makefile.common.in: add to CFLAGS (and others), don't replace it
5082 * support/cpp2/Makefile.in: new EXEEXT
5083 * src/pic/glue.c (pic14emitRegularMap): fixed warning
5085 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5087 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
5088 EXEEXT was introduced to fix all related problems with targets
5089 "clean", "install" and "uninstall"; a couple of further flaws
5090 especially with "clean" have been fixed too
5091 * as/mcs51/Makefile.in
5096 * debugger/mcs51/Makefile.in
5097 * debugger/mcs51/clean.mk
5099 * link/z80/Makefile.in
5102 * packihx/Makefile.in
5104 * sim/ucsim/Makefile
5105 * sim/ucsim/clean.mk
5106 * sim/ucsim/avr.src/Makefile.in
5107 * sim/ucsim/avr.src/clean.mk
5108 * sim/ucsim/s51.src/Makefile.in
5109 * sim/ucsim/s51.src/clean.mk
5110 * sim/ucsim/xa.src/Makefile.in
5111 * sim/ucsim/xa.src/clean.mk
5112 * sim/ucsim/z80.src/Makefile.in
5113 * sim/ucsim/z80.src/clean.mk
5114 * sim/ucsim/main_in.mk
5115 * sim/ucsim/packages_in.mk
5116 * sim/ucsim/gui.src/Makefile.in
5117 * sim/ucsim/gui.src/serio.src/Makefile.in
5118 * sim/ucsim/gui.src/serio.src/clean.mk
5121 * support/cpp2/Makefile.in
5122 * support/cpp2/clean.mk
5123 * support/makebin/Makefile
5124 * support/makebin/clean.mk
5125 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
5126 * doc/sdccman.lyx: --program-suffix no longer needed
5128 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
5130 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
5131 Martin Helmling added support for ddd GUI debugger.
5132 Code added to display assembly, set variables, and other commands
5133 to interface to ddd.
5135 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
5137 * as/Makefile: fix target clean
5138 * as/clean.mk: fix target clean
5139 * as/z80/clean.mk: fix target clean
5141 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
5143 * Makefile.common.in: added AT EXEEXT AT
5144 * configure.in: removed all mingw32 stuff
5145 * configure: rebuilt from configure.in
5146 * doc/sdccman.lyx: updated section "installation"
5147 * support/scripts/sdcc_mingw32: adapted to configure
5148 * support/scripts/sdcc_cygwin_mingw32: added
5150 2003-04-22 Scott Dattalo <scott AT dattalo.com>
5152 * src/pic Added object file support for the PIC port
5153 * src/pic Applied patch from Craig Franklin (this started the object file support)
5154 * src/regression Updated the PIC regression tests for object files
5156 2003-04-20 Borut Razem <borut.razem AT siol.net>
5158 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
5159 lklex.c: In function `getfid':
5160 lklex.c:203: warning: array subscript has type `char'
5161 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
5162 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
5163 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
5164 stack handling macros
5166 2003-04-19 Borut Razem <borut.razem AT siol.net>
5168 * "handling space characters in file path" task:
5169 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
5170 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
5171 * support/Util/MySystem.h: make it self-sufficient
5172 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
5173 src/z80/main.c, sdcc/as/mcs51/lklex.c:
5174 handling space characters in file path
5175 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
5176 (it will be used by assemblers, which have their own includes, e.g. gpasm)
5177 * support/Util/MySystem.c: handling space characters in executable's path
5179 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
5181 * as/z80/Makefile: fix permanent rebuild of z80
5182 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
5183 * support/regression/tests/bitfields.c: added Johan's bitfields.c
5185 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
5187 * src/SDCCopt.c: add special case optimization to replace modulo by
5188 a power of two with a bitwise AND.
5190 2003-04-18 <johan AT balder>
5192 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
5194 2003-04-17 <johan AT balder>
5196 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
5197 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
5199 2003-04-13 Borut Razem <borut.razem AT siol.net>
5201 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
5202 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
5203 fixed mingw problem in adl_NORMALIZE_PATH
5205 2003-04-12 Borut Razem <borut.razem AT siol.net>
5207 * fixed "#pragma SAVE/RESTORE can not be nested":
5208 * src/SDCC.lex: reworked pragma handling functions
5209 * sdcc/src/SDCCglobl.h: reworked stack handling macros
5210 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
5212 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5214 * src/SDCCutil.c (pathEquivalent): defined but not used
5215 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
5216 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
5217 * configure: rebuilt from configure.in
5218 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
5219 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
5220 * device/include/Makefile.in: replace sdcc_datadir
5221 * device/lib/Makefile.in: replace sdcc_datadir
5222 * Makefile.common.in: add LDFLAGS from configure
5223 * packihx/Makefile.in: use LDFLAGS
5224 * src/Makefile.in: use LDFLAGS
5225 * support/cpp2/Makefile.in: add LDFLAGS from configure
5226 * support/makebin/Makefile: use LDFLAGS
5227 * .version: bumped version number to 2.3.5
5229 2003-04-12 Borut Razem <borut.razem AT siol.net>
5231 * completed "different paths" task:
5232 * src/SDCCmacro.c: fixed bug in handling quotes
5233 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
5234 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
5236 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5238 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
5240 2003-04-11 kevin Vigor <kevin AT vigor.nu>
5242 * ds390/gen.c ds390/peeph.def: fix bug 706781
5244 2003-04-11 Borut Razem <borut.razem AT siol.net>
5246 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
5248 2003-04-10 Scott Dattalo <scott AT dattalo.com>
5250 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
5251 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
5252 set - this bit used to not be set...).
5253 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
5254 bad code in PIC Port
5255 * src/regression/and2.c added to test bug 609268
5256 * src/regression/Makefile added and2.c to regression test
5259 2003-04-08 <johan AT CP255758-A>
5261 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
5262 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
5263 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
5265 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
5267 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
5269 * support/cpp2/Makefile.in: fix bug #487815
5270 * configure: rebuilt from configure.in
5271 * Makefile.common.in: docdir changed, new path suffixes
5272 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
5273 * sdcc_vc_in.h: reflect changes from sdccconf.h
5274 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
5275 * src/SDCCutil.h: remove BINDIR hack
5276 * doc/sdccman.lyx: update new path hierarchy
5278 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
5280 * src/SDCCpeeph.c: added okToRemoveSLOC test
5282 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
5284 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
5286 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
5288 * src/SDCCpeeph.c: added labelIsReturnOnly test
5289 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
5291 2003-04-05 <johan AT balder>
5293 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
5294 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
5295 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
5296 * src/SDCCast.c: fixed a warning
5297 * src/SDCCast.h: fixed a warning
5298 * src/SDCCicode.c (operandFromAst): fixed a warning
5300 2003-04-04 <johan AT balder>
5302 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
5303 * src/SDCCast.c (decorateType): fixed bug #715076
5304 * src/SDCC.y: fixed bug #702907
5306 2003-04-03 <johan AT balder>
5308 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
5309 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
5310 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
5311 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
5312 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
5314 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
5316 * _decdptr.c: fix return values
5317 * _gptrget.c: fix return values
5318 * _gptrgetc.c: fix return values
5319 * _gptrput.c: fix return values
5320 * _mulint.c: fix return values
5321 * as/z80/Makefile: fix 'make -j' problem
5323 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
5325 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
5326 * configure.in: big cleanup, updated to autoconf 2.5x
5327 * configure: rebuilt from configure.in
5328 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
5329 * sdcc_vc_in.h: reflect changes from sdccconf.h
5330 * doc/Makefile: fixed a flaw in "make install"
5332 2003-04-02 <johan AT balder>
5334 * src/ds390/gen.c (genCmp): no comments
5335 * src/mcs51/gen.c (genCmp): no comments
5336 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
5337 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
5339 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
5341 * support/regression/generate-cases.py: place generated file in given sub directory
5342 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
5343 * support/regression/Makefile: improvements for 'make -j';
5344 side effect: it's simpler and faster now
5346 2003-03-31 Borut Razem <borut.razem AT siol.net>
5348 * src/z80/main.c: link-{port} and as-{port} defined without path
5349 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
5351 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
5353 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
5355 2003-03-30 Borut Razem <borut.razem AT siol.net>
5357 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
5358 changed type of list parameter to set
5359 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
5360 * src/port.h: changed type of do_assemble() parameter to set
5361 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
5362 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
5363 definition of "cppoutfilename" macro with NULL value in preProcess()
5364 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
5365 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
5366 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
5367 replaced with set *binPathSet
5368 * shash_add() deallocates the item, if allready exsists, before adding the new one
5369 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
5371 2003-03-30 Scott Dattalo <scott AT dattalo.com>
5373 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
5374 a nested for loop bug in the PIC port
5375 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
5378 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
5380 * support/Util/dbuf.h: remove C++ stuff to make it portable
5382 2003-03-28 Borut Razem <borut.razem AT siol.net>
5384 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
5385 literal strings in stringLiteral()
5386 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
5387 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
5390 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
5392 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
5394 2003-03-26 <johan AT balder>
5396 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
5397 * src/ds390/gen.c (saveRegisters): catched symbol abuse
5398 * src/SDCCast.c (decorateType): fixed " -v < 3"
5400 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5402 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
5403 Added Lenny Story's debug infrastructure changes:
5404 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
5405 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
5406 * src/cdbFile.c: added
5407 * src/SDCCdebug.c: added
5408 * src/SDCCdebug.h: added
5409 * src/SDCCast.c (createFunction)
5410 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
5411 * src/SDCCmain.c (parseCmdLine, main)
5412 * src/SDCCmem.c (redoStackOffsets)
5413 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
5416 * src/avr/gen.c (genAVRCode)
5417 * src/ds390/gen.c (gen390Code)
5418 * src/mcs51/gen.c (gen51Code)
5419 * src/pic/gen.c (genpic14Code)
5420 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
5421 * src/xa51/gen.c (genXA51Code)
5422 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
5424 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5426 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
5427 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
5429 2003-03-22 <johan AT balder>
5431 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
5433 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
5435 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
5436 * doc/cdbfileformat.lyx: added, written by Lenny Story
5437 * doc/Makefile: added cdbfileformat.lyx
5438 * doc/clean.mk: added cdbfileformat.lyx
5440 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
5442 * src/mcs51/peeph.def: fix bug #705773
5444 2003-03-20 <johan AT balder>
5446 An sfr/sbit can have an "at #" AND an initializer
5447 * src/SDCCsymt.c (checkSClass):
5448 * src/SDCCmem.c (allocGlobal):
5449 * src/SDCCmem.c (allocLocal):
5450 * src/SDCCast.c (createBlock):
5452 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
5454 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
5456 2003-03-16 <johan AT balder>
5458 Undid the hackup of const and volatile, the problem is much bigger
5460 * src/SDCCast.c:1.171
5461 * src/SDCCglue.c:1.138
5462 * src/SDCCicode.c:1.146
5463 * src/SDCCsymt.c:1.150
5464 * src/SDCCval.c:1.65
5466 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
5468 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
5469 * src/ds390/gen.c (genAddrOf): fixed bug #704087
5471 2003-03-13 <johan AT balder>
5473 Hackup const and volatile modifiers in type chains a bit:
5475 * src/SDCCast.c:1.169
5476 * src/SDCCglue.c:1.136
5477 * src/SDCCicode.c:1.143
5478 * src/SDCCsymt.c1.146
5479 * src/SDCCsymt.h1.59
5480 * src/SDCCval.c:1.63
5482 2003-03-12 <johan AT balder>
5484 * src/SDCCBBlock.h: more LRH debugging junk
5485 * src/SDCCcflow.h: more LRH debugging junk
5486 * src/SDCCloop.c: more LRH debugging junk
5487 * src/SDCC.y (struct_declaration): fixed bug #697590
5488 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
5489 * src/ds390/gen.c (aopForRemat): fixed bug #700031
5490 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
5492 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
5493 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
5494 test function names must now match exactly).
5495 * src/SDCCcse.c: added special case in findCheaperOp to allow
5496 extending a short integer. Makes less awful code for bug 700121 test case.
5498 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5500 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
5501 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
5503 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
5505 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
5506 actually called (operandsNotEqual() was called for all
5507 operandsNotEqualX tests).
5509 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
5511 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
5512 with shorter literals. Fixes bug 700121.
5514 2003-03-11 <johan AT balder>
5516 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
5518 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
5520 * src/SDCCloop.c (mergeRegions): an evil beast is dead
5521 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
5523 2003-03-10 Borut Razem <borut.razem AT siol.net>
5525 * src/SDCCmain.c: pipe preprocessor's output
5526 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
5527 * sdcc_vc_in.h: define pclose as _pclose for WIN32
5528 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
5529 which closes all pipes in pipeSet set
5530 * src/SDCCset.c: free deleted item in function deleteSetItem()
5531 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
5532 moved from z80 to src subproject
5533 * .version: increased version number to 2.3.4
5535 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
5537 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
5538 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
5539 * support/regression/ports/xa51/spec.mk: fix typo
5541 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
5543 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
5545 2003-03-09 Borut Razem <borut.razem AT siol.net>
5547 * src/SDCCmain.c: pipe preprocessor's output
5548 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
5549 * sdcc_vc_in.h: define pclose as _pclose for WIN32
5550 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
5551 which closes all pipes in pipeSet set
5552 * src/SDCCset.c: free deleted item in function deleteSetItem()
5553 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
5554 moved from z80 to src subproject
5556 2003-03-09 Borut Razem <borut.razem AT siol.net>
5558 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
5559 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
5560 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
5561 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
5562 * src/SDCCglobl.h: unification of WIN32 native definitions
5564 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5566 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
5568 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
5570 * src/configure.in: check for endianess (even while cross-compiling)
5571 * src/configure: check for endianess (even while cross-compiling)
5572 * src/configure_in.h: check for endianess (even while cross-compiling)
5573 * src/avr/gen.c: remove old endianess stuff
5574 * src/mcs51/gen.c: remove old endianess stuff
5575 * src/ds390/gen.c: remove old endianess stuff
5576 * src/pic/gen.c: remove old endianess stuff
5577 * src/pic/genarith.c: remove old endianess stuff
5578 * src/pic/glue.c: fix endianess check
5579 * src/pic16/gen.c: remove old endianess stuff
5580 * src/pic16/genarith.c: remove old endianess stuff
5581 * src/pic16/glue.c: fix endianess check
5582 * src/xa51/gen.c: remove old endianess stuff
5583 * src/z80/gen.c: fix endianess check
5584 * src/SDCCglue.c: fix endianess check
5585 * src/ds390/peeph.def: fix bug 700036
5587 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
5589 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
5590 * src/configure: find appropriate data-types on host for SDCC's int and long
5591 * src/configure.in: find appropriate data-types on host for SDCC's int and long
5592 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
5593 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
5595 2003-03-07 <johan AT balder>
5598 some minor cleanups before the big shot
5599 OP_DEFS and OP_USES now use Kevin's protection
5600 new option --nolabelopt
5611 * src/ds390/ralloc.c:
5612 * src/mcs51/ralloc.c:
5614 * src/xa51/ralloc.c:
5617 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
5619 * src/pic/pcode.c (get_op): fix 64 bit warnings
5620 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
5621 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
5622 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
5623 * support/regression/tests/malloc.c: fix 64 bit warnings
5625 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
5627 * src/mcs51/gen.c (genMinus): fixed bug 696436
5629 2003-03-02 Borut Razem <borut.razem AT siol.net>
5631 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
5633 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
5635 * configure.in: test for mkstemp
5636 * sdccconf_in.h: add HAVE_MKSTEMP
5638 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
5640 * device/include/ctype.h: removed warning while using --stack-auto
5641 * device/include/malloc.h: removed warning while using --stack-auto
5642 * device/include/string.h: removed warning while using --stack-auto
5644 2003-02-23 Borut Razem <borut.razem AT siol.net>
5646 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
5647 because NDEBUG is defined (see man assert)
5648 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
5650 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5652 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
5653 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
5655 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5657 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
5658 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
5660 2003-02-18 <johan AT balder>
5662 * as/mcs51/asmain.c (asmbl): module can start with a digit
5663 * as/z80/asmain.c (asmbl): module can start with a digit
5665 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
5667 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
5668 * src/asm.c: fix pipe() for Mingw32
5670 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
5672 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
5673 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
5674 make -V work again; --c1mode reads now from stdin
5675 * doc/sdccman.lyx: added --c1mode
5676 * support/Util/SDCCerr.c: new messages for c1 mode
5677 * support/Util/SDCCerr.h: new messages for c1 mode
5678 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
5680 2003-02-15 <johan AT balder>
5682 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
5684 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
5686 * doc/sdccman.lyx: Environment variables, -o and other minor things
5688 2003-02-14 <johan AT balder>
5690 * src/xa51/main.c: before anyone really tries to use it :)
5692 * Install doc's in share/sdcc/doc
5693 * removed some obsolete files
5694 * Do a proper make distclean and uninstall
5695 M Makefile.common.in
5698 M device/include/Makefile.in
5699 M device/lib/Makefile.in
5702 M sim/ucsim/doc/Makefile.in
5705 R src/xa51/peeph.rul
5706 M support/cpp2/Makefile.in
5707 M support/makebin/Makefile
5710 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
5712 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
5714 2003-02-10 Borut Razem <borut.razem AT siol.net>
5716 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
5717 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
5718 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
5719 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
5720 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
5721 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
5722 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
5723 src/z80/Makefile.bcc: Borland Makefile cleanup
5724 * as/z80/Makefile.bcc: Added Borland Makefile
5725 * support/cpp2/borland.h: Removed
5727 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
5729 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
5730 * src/SDCC.lex: new pragma NOIV
5731 * src/SDCCglobl.h: new pragma NOIV
5732 * src/SDCCmem.c: new pragma NOIV
5734 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
5736 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
5738 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
5740 * src/SDCCmain.c: signal handling is switched off by --debug
5741 * doc/Makefile: small fix for install; use clean.mk again
5742 * doc/clean.mk: clean *.pdf and *.html too
5744 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
5746 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
5747 * device/lib/printfl.c: fix a ds390 bug by making it portable
5748 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
5749 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
5750 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
5751 * debugger/mcs51/cmd.c: converted multi-line string literals
5752 * sim/ucsim/globals.cc: converted multi-line string literals
5753 * src/SDCCmain.c: introduced signal handler to remove temp files
5754 * doc/Makefile: small tweaks, implement clean
5755 * doc: removed generated files
5757 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5759 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
5760 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
5761 Address Record is not correctly generated for DS390."
5763 2003-02-02 Borut Razem <borut.razem AT siol.net>
5765 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
5766 * as/mcs51/asm.h: fixed compilation with Borland C
5767 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
5768 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
5769 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
5770 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
5771 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
5772 src/z80/Makefile.bcc: delete $(LIB) only if exist
5773 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
5775 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
5777 * device/include/malloc.h: introduced NULL
5778 * device/include/string.h: introduced NULL
5779 * device/include/stdlib.h: introduced NULL
5780 * device/lib/_memcpy.c: removed NULL
5781 * device/lib/_strcat.c: removed NULL
5782 * device/lib/_strchr.c: removed NULL
5783 * device/lib/_strcmp.c: removed NULL
5784 * device/lib/_strcpy.c: removed NULL
5785 * device/lib/_strcspn.c: removed NULL
5786 * device/lib/_strlen.c: removed NULL
5787 * device/lib/_strncat.c: removed NULL
5788 * device/lib/_strncmp.c: removed NULL
5789 * device/lib/_strncpy.c: removed NULL
5790 * device/lib/_strpbrk.c: removed NULL
5791 * device/lib/_strrchr.c: removed NULL
5792 * device/lib/_strspn.c: removed NULL
5793 * device/lib/_strstr.c: removed NULL
5794 * device/lib/_strtok.c: removed NULL
5795 * device/lib/malloc.c: removed NULL, include own header
5797 2003-02-02 <johan AT balder>
5799 * 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
5800 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
5801 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
5802 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
5803 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
5804 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
5806 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5808 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
5811 2003-02-01 <johan AT balder>
5813 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
5815 2003-01-31 <johan AT CP255758-A>
5817 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
5819 2003-01-30 <johan AT balder>
5821 * src/SDCCBBlock.c: automatic bug detection
5822 * src/SDCCicode.c: automatic bug detection
5824 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5826 * src/SDCCglobl.h: now --xram-size 0 works
5827 * src/SDCCmain.c: now --xram-size 0 works
5829 2003-01-29 <johan AT balder>
5831 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
5833 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5835 * as/mcs51/aslink.h: Added options --xram-size and --code-size
5836 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
5837 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
5838 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
5839 * src/SDCCglobl.h: Added options --xram-size and --code-size
5840 * src/SDCCmain.c: Added options --xram-size and --code-size
5842 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5844 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
5845 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
5847 2003-01-27 <johan AT balder>
5849 * src/SDCC.y: fixed bug #613764
5851 2003-01-26 <johan AT balder>
5853 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
5854 * src/SDCCsymt.h: fixed bug #673374
5855 * src/SDCCglue.c: fixed bug #661910
5856 * src/SDCCast.c: fixed bug #458099 and 673374
5858 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
5860 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
5861 * as/mcs51/strcmpi.h: added
5862 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
5863 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
5864 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
5865 * as/mcs51/assym.c: strcmpi -> as_strcmpi
5866 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
5867 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
5868 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
5869 * as/mcs51/Makefile.aslink: new module strcmpi
5870 * as/mcs51/Makefile.asx8051: new module strcmpi
5871 * as/mcs51/Makefil.bcc: new module strcmpi
5872 * as/mcs51/Makefile.in: new module strcmpi
5873 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
5875 2003-01-26 <johan AT balder>
5877 * src/SDCCglue.c: reverted back to 1.124
5878 * src/SDCCast.c: reverted back to 1.156
5879 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
5881 2003-01-25 <johan AT balder>
5883 * src/SDCCglue.c: A better fix for bug #661910
5884 * src/SDCCast.c: A better fix for bug #661910
5885 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
5887 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
5889 * src/Makefile.in: remove spawn.o
5890 * src/SDCCmain.c: remove spawn.h
5891 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
5892 * src/spawn.c: removed
5893 * src/spawn.h: removed
5894 * support/regression/ports/ds390/spec.mk: link with -r
5896 2003-01-24 <johan AT CP255758-A>
5898 * src/ds390/gen.c (aopOp): fixed bug #667458
5899 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
5900 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
5901 (createIvalCharPtr): an ival doesn't always have a storage class anymore
5903 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
5905 * src/mcs51/peeph.def: better assembler identation by Frieder
5906 * src/mcs51/gen.c: better assembler identation by Frieder
5908 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
5910 * as/z80/string.h: removed for gcc 3.2
5911 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
5912 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
5914 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
5916 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
5917 * src/SDCCpeeph.c (replaceRule): fix bug #663503
5918 * support/regression/Makefile: separate temp files for ports
5919 * support/regression/generate-cases.py: separate temp files for ports
5920 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
5921 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
5923 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
5925 * moved tinitalk to device/examples/ds390
5927 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
5929 * as/mcs51/lkmem.c: rflag is for DS390
5930 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
5931 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
5932 (linkEdit): move mem- and map-files the same way as ihx-files
5933 * src/z80/main.c (_setDefaultOptions): removed --generic
5934 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
5935 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
5936 * src/pic/glue.c (picglue): --c1mode works again
5937 * src/pic16/glue.c (pic16glue): --c1mode works again
5938 * src/asm.c (printCLine): fix #660034
5940 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
5942 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
5943 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
5944 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
5945 * as/mcs51/lkmem (summary): better fix for sp problem
5946 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
5947 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
5948 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
5949 remove --stack-after-data
5951 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5953 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
5954 * src/SDCCutil.c (join): ugly bug: missing '\0'
5955 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
5957 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
5959 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
5961 * src/pic/main.c (_asmCmd): gpasm supports -o
5962 * src/z80/main.c: more general macros
5963 * device/lib/Makefile.in: remove intermediate files
5965 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
5967 * .version: Bumped version number to 2.3.3
5968 * src/SDCCBBlock.c: new option -o
5969 * src/SDCCglobl.h: new option -o
5970 * src/SDCCglue.c: new option -o
5971 * src/SDCCmain.c: new option -o
5972 * src/asm.c: new option -o
5973 * src/ds390/main.c: new option -o
5974 * src/pic/glue.c: new option -o
5975 * src/pic/pcode.c: new option -o
5976 * src/pic/ralloc.c: new option -o
5977 * src/pic16/glue.c: new option -o
5978 * src/pic16/pcode.c: new option -o
5979 * src/pic16/ralloc.c: new option -o
5980 * src/z80/main.c: new option -o
5981 * device/lib/Makefile.in: use -o
5982 * support/regression/ports/ds390/spec.mk: use -o
5983 * support/regression/ports/gbz80/spec.mk: use -o
5984 * support/regression/ports/mcs51/spec.mk: use -o
5985 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
5986 * support/regression/ports/z80/spec.mk: use -o
5987 * support/regression/ports/ucz80/spec.mk: use -o
5988 * support/regression/ports/xa51/spec.mk: use -o
5989 * support/regression/fwk/lib/timeout.c: fix usage string
5991 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
5992 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
5994 2003-01-07 <johan AT balder>
5996 * src/SDCCast.c (decorateType): fixed bug #600035
5998 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
5999 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
6000 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
6001 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
6002 * src/pic/pcode.c: outcommented unused variable to remove warnings
6003 * src/pic/ralloc.c: outcommented unused variable to remove warnings
6005 2003-01-06 <karl AT turbobit.com>
6006 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
6009 2003-01-06 <johan AT balder>
6011 * src/SDCCicode.c: fixed array add
6013 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
6014 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
6015 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
6017 2003-01-04 <johan AT balder>
6019 * src/SDCCval.c (getNelements): fixed the initialized array of structures
6021 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6022 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
6024 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6025 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
6026 * support/regression/tests/bug-524697.c: fit mem usage into 8032
6028 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6029 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
6031 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
6032 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
6034 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
6035 * src/mcs51/main.c: removed {bindir}{sep} from aslink
6037 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6039 * in \sdcc\as\mcs51\ changed these files in order to create an
6040 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
6041 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
6042 following files to include the previous two files: aslink.dsp,
6043 Makefile.aslink, Makefile.bcc, and Makefile.in.
6045 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
6046 .adb instead of .cdb
6048 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6050 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
6051 value from option --iram-size.
6053 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6055 * \sdcc\as\mcs51\lklist.c: added boundary check before using
6058 2002-09-18 <wiml AT hhhh.org>
6060 * SDCClrange.h: exposed setFromRange() and setToRange()
6061 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
6062 packRegsForAccUse() (bug 542397)
6063 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
6064 multiple times and emitting the fetch operations more than once
6065 added aopGetUsesAcc() function to allow binary operators to
6066 fetch their operands in the correct order; made genMinus() emit
6067 compact code for X = LITERAL - Y
6069 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6070 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
6071 sprintf() in line 1267.
6073 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6074 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
6077 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6078 Changes to aslink (All the changes are marked with 'JCF'):
6080 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
6083 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
6084 area BSEG. Also moves, if possible, the DATA area down into the internal
6085 ram so more space is available.
6087 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
6090 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
6091 not bytes. Function summary() which creates a memory usage summary
6092 file with extension .mem. Reports of overlaping stack and small stack
6093 size. If the space for the stack is less than 16 bytes aslink trows a
6096 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
6097 the 8051. Option 'y' for memory summary output file.
6099 Changes to sdcc (All the changes are marked with 'JCF'):
6101 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
6103 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
6104 overlaying area for it (uses RegBankUsed[4]).
6106 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
6107 bank zero as used by default. By default aslink locates the stack
6108 (equivalent to --stack-after-data). Pass option 'y' to aslink for
6109 the creation of the .mem file. Delegates the allocation of data area
6110 to aslink (it is not longer 0x30 by default). If --stack-loc passes
6111 the begining of the stack area to aslink.
6113 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
6114 glue() in SDCCglue.c creates an area for it.
6116 2002-09-03 Borut Razem <borut.razem AT siol.net>
6117 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
6118 sdcc/src/pic/glue.c:
6119 introduced atexit() handler for teporay files removal in case of
6120 errors, assertions, ...
6122 2002-08-29 Borut Razem <borut.razem AT siol.net>
6123 * sdcc/support/cpp2/auto-host_vc_in.h:
6124 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
6125 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
6126 Maybe there is a similar problem with BORLANDC? It should be checked!
6128 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
6129 corrected improper use of assert: the assignment to clr variable was done inside the assert.
6130 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
6131 was not executed, and the compiler (cl) launched a warning:
6132 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
6134 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
6135 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
6137 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
6138 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
6140 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
6141 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
6142 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
6143 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
6144 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
6145 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
6146 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
6147 - added Release configuration in VS projects
6148 - review of compiler an linker options
6149 - VC .exe files are generated in bin_vc directory, not to interfere
6150 with binaries generated from other projects (cygwin, mingw, bcc ...)
6152 * sdcc/src/yacc.dsp: added
6154 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
6155 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
6156 and insert the version number definitions from .version
6158 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
6160 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
6161 added - genarate auto-host.h using auto-host_vc_in.h as template
6164 removed from CVS, generated automatically
6166 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
6167 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
6169 2002-08-11 Borut Razem <borut.razem AT siol.net>
6170 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
6172 2002-08-10 Borut Razem <borut.razem AT siol.net>
6173 * src/SDCCmain.c (main):
6174 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
6175 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
6176 The consequence was that some temporary files were not removed.
6179 unification of code in functions tempfilename() and tempfile():
6180 function tempnam() is defined in Visual Studio 6.0 and .NET
6182 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
6184 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
6185 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
6186 - removed compiler command line option /WX: Treats all warnings as errors
6187 - update a list of source files, included into the project
6189 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
6190 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
6191 changed project type to Generic Project so that can be correcly converted to VS.NET project
6193 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
6195 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
6197 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
6199 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
6200 added return 0 statements after assert() to make compiler happy
6202 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
6203 added newline in the def file to keep MSC compiler satisfied
6205 * sdcc/src/z80/gen.c:
6206 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
6207 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
6208 - solved MSC error in function aopDump()
6210 * sdcc_vc.h: define PREFIX as "\\sdcc"
6212 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
6213 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
6215 2002-06-22 Scott Dattalo <scott AT dattalo.com>
6216 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
6217 - Rewrote the register banking algorithm.
6218 - Added pCode live-range analysis to registers (for now, only non-used and
6219 singly-used registers optimized away)
6221 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
6223 * support/scripts/inc2h.pl Kevin L. Pauba <klpauba AT cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
6225 2002-05-10 Scott Dattalo <scott AT dattalo.com>
6226 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
6228 2002-04-22 Michael Hope <michaelh AT vroom>
6230 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
6232 * configure.in (DD_COPT): Added include support required for gbdk.
6234 * .version: Bumped version number just to increase it.
6236 * src/SDCCmain.c: Added -nostdinc to the default options.
6238 2002-04-15 Michael Hope <michaelh AT vroom>
6240 * device/lib/z80/printf.c (sprintf): Added.
6242 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
6244 * src/z80/peeph.def: Added transpose redundent load rule.
6246 * src/z80/main.c: Added force callee saves for jaune.
6248 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
6250 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
6252 2002-03-28 Johan Knol <johan AT balder>
6254 * src/SDCCval.c: fixed bug #532436
6256 2002-03-14 Scott Dattalo <scott AT dattalo.com>
6258 Added "char *Processor" field to the port structure.
6261 Added -p option. Allows port dependent processor to be specified.
6264 Initialized the new field char *Processor field to NULL in all ports
6267 Compiler generated registers for interrupt context saving
6268 were not getting allocated.
6270 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
6273 Fixed left shift. Will promote the left side of a left shift
6274 if a) left shifting more than size of operand or b) when assigned
6275 to something size > size of left side
6277 2002-03-14 Scott Dattalo <scott AT dattalo.com>
6279 tons of changes. Register allocation has been
6280 rewritten. Added customization for the various PICs. Flow
6281 analysis is restructured. ...
6287 Added. device.c is a PIC port hack to accomodate variations
6290 2002-03-13 Michael Hope <michaelh AT vroom>
6292 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
6294 2002-03-04 johanknol <johanknol AT manik>
6296 * /src/SDCCval.c: fixed
6298 const unsigned char arr[][2] = { { 0, 1 } };
6299 t18.c:1: error: Initializer element is not constant
6301 2002-03-04 bela <bela AT manik>
6303 * /device/include/mcs51reg.h:
6304 ds89c420 register definition update
6306 2002-03-03 <johan AT FRIJA>
6308 * support/Util/SDCCerr.c: did something, but don't no why anymore
6310 * support/regression/tests/bug-524691.c: made it a little less shy
6312 * src/SDCCast.c (decorateType): fixed bug #524697
6314 * src/SDCCast.c: made some lineno improvements
6316 * src/SDCCval.c (getNelements): changed warning to error
6318 * src/SDCCglue.c (printIvalArray): changed warning to error
6320 * src/SDCCicode.c: fixed a warning for mingw
6322 * src/SDCCast.c (decorateType): fixed the << promotion for ops
6324 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
6326 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
6328 * src/ds390/peeph.def:
6329 Added some more peephole rules
6331 * src/ds390/gen.c: Various fixes & enhancements
6333 * src/SDCClrange.c, src/SDCClrange.h:
6334 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
6336 * src/ds390/ralloc.c:
6337 various fixes & enhancements (ds390) specific
6339 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
6340 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
6343 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
6345 2002-03-02 <johan AT FRIJA>
6347 * src/SDCCast.c (decorateType): fixed bug #524708
6349 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
6351 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
6353 2002-03-01 Michael Hope <michaelh AT vroom>
6355 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
6357 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
6359 2002-03-01 <johan AT FRIJA>
6361 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
6363 * src/SDCCast.c (decorateType): fixed bug #524209
6365 * src/SDCCval.c (valNot): fixed bug #524195
6367 2002-02-26 <johan AT balder>
6369 * src/xa51/gen.c: fixed a warning
6371 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
6373 * src/SDCCast.c (decorateType): fixed bug #522534
6375 2002-02-23 <johan AT balder>
6377 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
6379 2002-02-22 <johan AT balder>
6381 * src/SDCCast.c: fixed bug #514865
6383 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
6385 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
6387 * sdcc/src/SDCCloop.c:
6388 Previous fix was not good. basic blocks that have "break" or "return" are
6389 not really partof a loop , but live ranges used in these blocks should
6390 be live thru the entire loop, so set partOfLoop but don't add them to
6393 2002-02-21 <johan AT FRIJA>
6395 * src/SDCCcse.c: fixed bug #514308
6397 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
6400 Fixed BUG #519583. If a conditional block ended in a return/break
6401 statement inside a loop, it was not being considered part of the loop.
6403 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
6405 2002-02-10 Karl Bongers <karl AT turbobit.com>
6408 Fixed up SDCDB debugger somewhat. Updated debugger/README
6409 with lots of comments and notes.
6411 * device/examples/test2.c:
6412 Fix bug, "red" variable not being initialized(compiler complained).
6414 * device/examples/Makefile, examples/test3.c:
6415 Add Makefile in device/examples folder, compiles test3.c
6416 for use as a multiple module SDCDB test case.
6418 * sim/ucsim/cmd.src/cmdset.cc:
6419 Took out debug printfs in ucsim "next" command.
6422 Karl and Johan start ucsim XA support. Most dissassembly working,
6423 about 75% emulation done(plenty of work remaining).
6425 * sim/ucsim/z80.src:
6426 Add Z80 support to ucsim, add test-ucz80 regression test,
6427 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
6428 Notice z80 compiler fails on examples/test3.c/crc code.
6430 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
6432 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
6433 Added support for --parms-in-bank1
6435 * src/ds390/peeph.def:
6436 added a few more peephole optimzations
6439 1) added __builtin_inp & __builtin_outp used to read in data of given length
6440 from a memory mapped port
6441 2) added __builtin_memcmp
6442 3) added __builtin_swapw swap bytes of a short
6444 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
6445 1) handle multiple send & receives from register bank1
6446 2) ralloc can now allocate DPTR1 to some liveRanges
6448 * src/SDCCsymt.c, src/SDCCsymt.h:
6449 changes to handle multiple sends & receives
6452 added some pointer arithmetic optimization
6455 added some pointer arithmetic optimizations but not stable yet so not
6456 called from anywhere (will get this working shortly)
6458 * src/SDCCopt.c: fixed for multiple sends & receives
6461 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
6462 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
6463 set preprocessor defines (depending on options)
6465 * src/SDCCicode.c, src/SDCCicode.h:
6466 changes made to handle multiple sends & receives
6469 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
6471 * src/SDCCcse.c, src/SDCCcse.h:
6472 added function findbackward def (to be used in upcoming optimization)
6474 * src/SDCCcflow.c, src/SDCCcflow.h:
6475 added function returnAtEnd - to determine if a basic block terminates with
6478 * src/SDCCast.c, src/SDCCast.h:
6479 added option parms-in-bank1
6481 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
6482 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
6483 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
6484 adjusted for --parms-in-bank1 option
6486 * device/include/string.h:
6487 donot redefine "reentrant" keyword
6489 * device/include/ds80c390.h: Added some more SFRs
6491 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6493 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
6495 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
6497 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
6499 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
6501 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
6503 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
6505 * Added --xram-movc option
6507 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
6509 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
6511 2002-01-11 Johan Knol
6513 * Added math lib of Jesus Calvino-Fraga
6515 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
6517 * src/SDCCmain.c (processFile): fix processing of ../../src.c
6518 * support/regression/Makefile: new target test-mcs51-stack-auto
6519 * support/regression/ports/mcs51-stack-auto/spec.mk: added
6521 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
6523 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
6525 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
6527 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
6529 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
6531 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
6533 * src/SDCCglue.h: add definition for printIvalChar()
6535 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
6537 * src/SDCCast.c: fix #498138 by Johan
6539 * src/SDCCglue.c: fix #498138 by Johan
6541 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
6543 * support/regression/Makefile: fix clean
6545 * support/regression/ports/ds390/support.c: fix transmission of last character
6547 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
6549 * /sdcc/src/ds390/gen.c:
6550 a) improved computing address of stack variable
6551 b) took out some #if 0 code
6552 c) improved parmBytes adjustment
6553 d) improved genPlusIncr & genMinusIncr
6554 e) genCmp could generate bad code (when left assigned to DPTR)
6555 f) Fixed bug in hasInc
6557 * /sdcc/src/ds390/ralloc.c:
6558 a) packRegsForSupport could mess up live information (Fixed)
6559 b) packRegsDPTRuse could be incorrect for left & right shift
6561 * /sdcc/src/mcs51/ralloc.c:
6562 packRegsForSupport could mess up the live information (Fixed)
6564 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
6566 * /sdcc/src/SDCCast.c:
6567 can reverse a loop even if function call is present as long
6568 as the loop control variable is local & is not passed as parameter
6570 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
6572 * /sdcc/ChangeLog: *** empty log message ***
6574 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
6575 More builtin function additions for TININative
6577 * /sdcc/src/ds390/ralloc.c:
6578 Had broken the regression testsuite
6580 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
6582 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
6583 Added funcattr hasStackParms will be set for reentrant functions when there
6584 are paramteres on the stack, this helps in minimizing frame pointer generation
6585 typeFromStr can handle function pointers now
6587 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
6588 *** empty log message ***
6590 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
6592 * /src/ds390/gen.c, /src/ds390/main.c:
6593 More builtin function additions for TININative
6595 * /src/ds390/ralloc.c:
6596 Had broken the regression testsuite
6598 * /src/SDCCast.c: Fixed a bug in dumptree
6600 * /src/SDCCsymt.c, /src/SDCCsymt.h:
6601 Added funcattr hasStackParms will be set for reentrant functions when there
6602 are paramteres on the stack, this helps in minimizing frame pointer generation
6603 typeFromStr can handle function pointers now
6605 * /doc/builtins.txt, /doc/TININative.txt:
6606 *** empty log message ***
6609 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
6611 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
6612 ALPHA version for -mTININative
6614 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
6615 updated to reflect changes in the port structure
6618 added function do_assemble (similar to do_link) if non-null this function
6619 will be called to do assembly (-mTININative) requires a multi command
6621 added function genAssemblerEnd will be called to generate assembler Epilogue
6624 added _JavaNative to debug info printing
6626 * /src/SDCCmain.c: added option --tini-libid
6627 added port->do_assemble function (-mTININative) has a multi command assemble
6629 * /src/SDCCglue.c: Disabled "constExpr" check
6630 added port->genAssemblerEnd function
6632 * /src/SDCCglobl.h: Added option --tini-libid value
6635 tookout optimizeCompare from the header (has no external references)
6637 * /src/SDCCast.c: made one more function "static"
6639 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
6641 * src/z80/mappings.i: Added z80asm support.
6643 * src/z80/main.c: Added z80asm support on --asm=z80asm
6645 * src/z80/gen.c: Fixed asm portability issues.
6647 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
6649 * src/SDCCglue.c (printExterns): Added global/extern split.
6651 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
6653 * support/regression/Makefile: added test for mcs51 model large
6655 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
6657 * support/regression/ports/gbz80/spec.mk: added -mgbz80
6659 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
6661 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
6663 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
6665 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
6667 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
6669 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
6671 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
6673 * support/regression/tests/simplefloat.c: Port to mcs51.
6675 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
6676 * support/regression/tests/bug-485362.c: Added.
6678 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
6680 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
6682 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
6684 * src/z80/gen.c (aopDump): Added a dump function.
6686 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
6687 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
6689 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
6691 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
6693 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
6695 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
6697 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
6699 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
6701 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
6703 * support/regression/ports/ds390/support.c: Use tinibios.
6705 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
6707 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
6709 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
6710 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
6712 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
6714 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
6716 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
6718 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
6720 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
6721 (packRegsForIYUse): Created and optimised.
6723 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
6725 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
6726 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6728 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
6730 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
6732 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
6734 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
6736 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
6738 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
6740 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
6742 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
6744 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
6746 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
6748 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
6750 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
6751 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
6752 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
6754 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
6756 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
6757 (genNotFloat): Added.
6758 (genUminusFloat): Added.
6760 * device/lib/z80/Makefile: Added floating pt stubs.
6762 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
6764 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
6766 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
6768 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
6770 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
6772 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
6774 * sdcc/support/regression/Makefile: Add port ds390.
6776 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
6778 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
6780 * sdcc/support/regression/ports/ds390/spec.mk: Added.
6782 * sdcc/support/regression/ports/ds390/support.c: Added.
6784 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
6786 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
6788 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
6790 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
6792 * device/include/malloc.h: Added z80 and gbz80 support.
6794 * device/lib/gbz80/heap.s: Added.
6796 * device/lib/z80/heap.s: Added.
6798 * device/lib/malloc.c: Added z80 and gbz80 support.
6800 * support/regression/tests/malloc.c (testMalloc): Added.
6802 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
6804 * support/regression/tests/bug-478094.c: Added.
6806 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
6808 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
6810 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
6812 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
6814 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
6816 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
6818 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
6820 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
6822 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
6824 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
6826 * support/regression/tests/bug-477927.c: Added.
6828 * src/z80/peeph.def: Added minor rules.
6830 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
6832 * src/z80/peeph.def: Added jump optimisation modification.
6834 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
6836 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
6838 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
6840 * support/regression/tests/funptrs.c: Added.
6842 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
6844 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
6846 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
6848 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
6850 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
6852 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
6853 (movLeft2ResultLong): Created.
6855 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
6856 (joinPushes): Added. Joins two char pushes into a word push.
6858 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
6860 * support/cpp2/Makefile.in (install): Added creation of dest dir.
6862 * support/makebin/Makefile (install): Added creation of dest dir.
6864 2001-10-24 Karl Bongers <karl AT turbobit.com>
6866 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
6868 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
6870 * src/z80/ralloc.c: Turned off faulty pack for one use.
6872 * src/z80/peeph-gbz80.def: Removed redundent restart options.
6874 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
6876 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
6878 * support/regression/Makefile: Improved clean
6880 * support/regression/ports/gbz80/spec.mk: Added clean
6882 * support/regression/ports/host/spec.mk: Added clean
6884 * support/regression/ports/z80/spec.mk: Added clean
6886 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
6888 * support/regression/ports/mcs51/timeout.c: little improvements
6890 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
6892 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
6894 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
6896 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
6898 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
6900 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
6902 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
6904 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
6905 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
6907 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
6909 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
6911 * src/mcs51/main.c (_linkCmd): Added bin path to command.
6913 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
6915 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
6917 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
6919 * support/regression/tests/longor.c: Added.
6921 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
6923 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
6925 * as/mcs51/aslink.h: define PATH_MAX
6927 * as/mcs51/asm.h: define PATH_MAX
6929 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
6931 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
6933 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
6935 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
6937 * src/SDCCglobl.h: define PATH_MAX
6939 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
6941 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
6943 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
6945 * src/z80/gen.c (gencjneshort): Fixed
6947 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
6949 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
6951 * support/regression/tests/bug-469671.c: Added.
6953 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
6955 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
6957 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
6959 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
6961 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
6963 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
6965 * src/device/lib/_mulint.c : removed hint: nooverlay bug
6967 * src/device/lib/_mullong.c : removed hint: nooverlay bug
6969 * src/device/lib/_divuint.c : removed hint: nooverlay bug
6971 * src/device/lib/_divulong.c: removed hint: nooverlay bug
6973 * src/device/lib/_moduint.c : removed hint: nooverlay bug
6975 * src/device/lib/_modulong.c: removed hint: nooverlay bug
6977 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
6979 * 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.
6981 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
6983 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
6985 2001-10-07 <johan AT FRIJA>
6987 * device/lib/gets.c (gets): fixed the return value.
6989 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
6990 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
6992 * 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.
6994 * 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.
6996 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
6998 * src/pic/gen.c: Removed Safe_strdup.
7000 * configure.in: Added option to enable libgc support.
7002 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
7003 (bitVectUnion): Optimised.
7004 (bitVectIntersect): Optimised.
7005 (bitVectBitsInCommon): Optimised.
7006 (bitVectCplAnd): Optimised.
7008 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
7010 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
7012 * src/SDCCmain.c: distinguish between assembler debug and plain options
7014 * src/avr/main.c: remove standard assembler options
7016 * src/ds390/main.c: remove standard assembler options
7018 * src/mcs51/main.c: remove standard assembler options
7020 * src/port.h: removed "PENDING" comment
7022 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
7024 * src/device/lib/_mulint.c : new, with assember functions
7026 * src/device/lib/_mullong.c : new, with assember functions
7028 * src/device/lib/_divuint.c : with assember functions
7030 * src/device/lib/_divsint.c : with assember functions
7032 * src/device/lib/_divulong.c: with assember functions
7034 * src/device/lib/_divslong.c: with assember functions
7036 * src/device/lib/_moduint.c : with assember functions
7038 * src/device/lib/_modsint.c : with assember functions
7040 * src/device/lib/_modulong.c: with assember functions
7042 * src/device/lib/_modslong.c: with assember functions
7044 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
7046 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
7048 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
7049 replaced _mululong.c and _mulslong.c by _mullong.c
7051 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
7053 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
7055 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
7057 * src/SDCCglue.c: test, if win32api is available for MINGW
7059 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
7061 * src/SDCCsymt.c: no more _modifier in printTypeChain()
7062 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
7063 * support/regression/ports/gbz80/spec.mk: removed GENERIC
7064 * support/regression/ports/host/spec.mk: removed GENERIC
7065 * support/regression/ports/mcs51/spec.mk: removed GENERIC
7066 * support/regression/ports/z80/spec.mk: removed GENERIC
7068 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
7070 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
7072 * support/regression/tests/bug-467035.c: Created.
7074 2001-10-01 <johan AT FRIJA>
7076 * src/SDCC.y: fixed bug #466586 part 1
7078 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
7080 * SDCCicode.c: z80 has no generic pointers
7081 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
7083 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
7085 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
7087 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
7089 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
7091 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
7093 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
7095 * configure.in: Fixed up so that ucsim is only configured once.
7097 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
7099 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
7100 (getPathDifference): As above.
7102 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
7104 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
7106 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
7107 * .version: Updated to 2.3.1
7109 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
7110 Added copyright header.
7112 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
7113 (assemble): Added support for macro based assembler commands.
7114 (linkEdit): Added support for macro based linker commands.
7115 (preProcess): Changed the pre-processor to use macros.
7116 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
7117 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
7119 * device/lib/z80/crt0.s: Added module name for debugging.
7121 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
7123 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
7125 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
7127 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
7129 * src/Makefile.in: Added SDCCmacro and SDCCutil
7131 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
7133 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
7135 2001-09-16 <johan AT FRIJA>
7137 * 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.
7139 2001-09-15 <johan AT FRIJA>
7141 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
7142 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
7144 2001-09-11 <johan AT FRIJA>
7146 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
7148 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
7150 * support/regression/tests/bug-460444.c: Added test case.
7152 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
7153 (genCast): Added justification for all of the asserts.
7155 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
7157 * support/regression/support.c: _xdata replaced by xdata
7159 * support/regression/spec.mk: removed _generic
7161 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
7163 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
7165 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
7166 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
7168 * src/z80/peeph.def: Added a rule to optimise shift then compare.
7170 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
7172 * support/regression/tests/bug-460010.c: Added test case.
7174 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
7176 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
7178 * support/regression/Makefile: inter-port-clean adjusted for mcs51
7180 * support/regression/testfwk.c: removed workaround for bug #436344
7182 * support/regression/tests/bp.c: use less memory with mcs51
7184 * support/regression/tests/bug-441448.c: use less memory
7186 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
7188 * support/regression/collate-results.py: typo
7190 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
7192 * support/regression/tests/fetchoverlap.c: Added new test case.
7194 * support/regression/tests/bp.c: Added new test case.
7196 * support/regression/tests/bug-448984.c: Added new test case.
7198 * support/regression/tests/pow2shifts.c: Added new test case.
7200 * src/z80/gen.c: Turned off the noise it normally generates for the release.
7201 (genlshTwo): Fixed right shift for count > 8.
7203 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
7205 2001-09-08 <johan AT FRIJA>
7207 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
7209 2001-09-07 <johan AT FRIJA>
7211 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
7213 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
7215 2001-09-06 <johan AT FRIJA>
7217 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
7218 * bernhard noted me at this: "() equals to (void)" (1.38)
7220 2001-09-05 <johan AT FRIJA>
7222 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
7224 2001-09-04 <johan AT FRIJA>
7226 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
7229 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
7231 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
7233 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
7235 * link/z80/aslink.h: Fixed path for PATH_MAX
7237 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
7239 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
7241 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
7243 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
7245 * 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.
7247 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
7249 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
7250 (genCmp): Fixed up genCmp for the GB with longs.
7252 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
7254 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
7256 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
7258 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
7260 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
7262 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
7264 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
7266 * 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.
7268 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
7270 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
7272 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
7274 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
7276 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
7278 * sim/ucsim/configure: little improvement of Cygwin-detection
7279 * sim/ucsim/configure.in: little improvement of Cygwin-detection
7280 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
7281 * support/regression/tests/bug-221100.c: small changes for mcs51
7282 * support/regression/tests/bug-221168.c: small changes for mcs51
7283 * support/regression/tests/bug-227710.c: small changes for mcs51
7284 * support/regression/tests/staticinit.c: small changes for mcs51
7285 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
7286 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
7287 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601