1 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
3 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5 * device/include/mcs51/c8051f326.h,
6 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
7 * device/include/mcs51/c8051f000.h,
8 * device/include/mcs51/c8051f018.h,
9 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
10 PCON_IDLE,PCON_STOP and added sfr16 definitions
12 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
14 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
15 genGetWord): fixed bug 1409955
17 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
19 * device/include/hc08/mc68hc908gp32.h,
20 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
22 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
24 * src/SDCCast.c (constExprValue): return NULL if not a value
25 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
26 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
27 * support/regression/tests/bitfields.c: enabled signed bitfield for all
29 2006-02-13 Borut Razem <borut.razem AT siol.net>
31 * src/regression/ptrarg.c: added, fails due to bug #1430967
32 * src/regression/Makefile: ptrarg.c added, ...
34 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
36 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
37 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
39 2006-02-11 Borut Razem <borut.razem AT siol.net>
41 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
42 print "Processor: xxx" message to stdout only if --verbose
44 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
46 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
47 * support/regression/tests/bug1426356.c: added
48 * support/regression/tests/bitfields.c: removed 2 tests
50 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
52 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
53 * device/include/mcs51/c8051f330.h,
54 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
55 PCON_IDLE,PCON_STOP and added sfr16 definitions
56 * device/lib/_divsint.c,
57 * device/lib/_divuint.c,
58 * device/lib/_divulong.c,
59 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
60 register bank bug for small stackauto
62 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
64 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
66 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
68 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
69 * all.dsp: corrected several bin paths
70 * device/include/mcs51/c8051f120.h,
71 * device/include/mcs51/c8051f300.h,
72 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
73 to PCON_IDLE,PCON_STOP
74 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
75 * device/lib/printf_large.c (output_float): fixed bug 1388703
76 * support/regression/tests/bug1057979.c: added test for bug 1388703
78 2006-02-08 Raphael Neider <rneider AT web.de>
80 * src/pic/pcode.c (pciTRIS): fixed typo,
81 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
82 (LinkFlow): fixed handling of flows that end in a call,
83 (ReuseReg): perform safety check earlier
84 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
85 to work with flows at the beginning of a pBlock,
86 fixes #1426557 (Symbol not previously defined),
87 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
89 (RemoveUnusedRegisters): update register usage info
90 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
91 created, reuse existing ones instead
92 * src/pic/gen.c (genPcall): fixed #1424719
94 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
99 * link/z80/aslink.h: fixed build on current cygwin:
100 replaced getline() by lk_getline()
102 2006-02-01 Borut Razem <borut.razem AT siol.net>
104 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
105 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
106 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
107 src/regression/bool1.c, src/regression/bool2.c,
108 src/regression/bool3.c, src/regression/call1.c,
109 src/regression/compare.c, src/regression/compare10.c,
110 src/regression/compare2.c, src/regression/compare3.c,
111 src/regression/compare4.c, src/regression/compare5.c,
112 src/regression/compare6.c, src/regression/compare7.c,
113 src/regression/compare8.c, src/regression/compare9.c,
114 src/regression/configword.c, src/regression/for.c,
115 src/regression/inline.c, src/regression/mult1.c,
116 src/regression/nestfor.c, src/regression/or1.c,
117 src/regression/pointer1.c, src/regression/ptrfunc.c,
118 src/regression/rotate1.c, src/regression/rotate2.c,
119 src/regression/rotate3.c, src/regression/rotate4.c,
120 src/regression/rotate5.c, src/regression/rotate6.c,
121 src/regression/rotate7.c, src/regression/string1.c,
122 src/regression/struct1.c, src/regression/sub.c,
123 src/regression/sub2.c, src/regression/switch1.c,
124 src/regression/while.c, src/regression/xor.c,
125 src/regression/create_stc, src/regression/simulate,
126 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
128 * src/regression/gpsim_assert.h: added
130 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
132 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
133 ((void (code *) (void)) 0) ();
150 * as/z80/asmain.c: fixed build on current cygwin:
151 replaced getline() by as_getline()
153 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
155 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
156 declarator in the symbol chain
158 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
159 parameter list for function pointers
160 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
161 * support/regression/tests/bug-716242.c: added
163 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
165 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
167 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
169 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
171 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
172 inifinitely recurseable, added static
173 * support/regression/tests/bug-1408066.c: added
175 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
178 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
179 renamed, added possibility to create "postLoopLbl"-labels
180 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
181 newiTempLoopHeaderLabel
182 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
183 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
184 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
185 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
186 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
187 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
188 (basicInduction): fixed bug #136564, made static,
189 (loopInduction): changed parameter of basicInduction, made static,
190 (addPostLoopBlock): added
191 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
192 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
194 * support/regression/tests/bug-136564.c: added
195 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
196 --std-sdcc99 to LIBSDCCFLAGS
198 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
200 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
202 * support/regression/tests/bug-1406131.c: added
204 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
206 * src/SDCCast.c (decorateType): fix promotion of unary minus
207 * src/SDCCsymt.c (computeType): beautified
208 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
209 (valUnaryPM, valComplement): fix sign and promotion,
210 (valNot): ANSI: result type is int (SDCC: unsigned char)
211 * support/regression/tests/uminus.c: speedup by removing superflous
213 * support/regression/tests/onebyte.c: added promotion and signedness
214 tests for unary minus
215 * support/regressions/tests/bug-477927.c: disable warning about
216 uninitialized variables
217 * support/regression/tests/not.c: added
219 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
221 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
222 * src/mcs51/gen.c (gen51Code): show final register usage after
223 fillGaps in asm with --i-code-in-asm
224 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
225 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
226 incUsed, rliveClear, adjustIChain): made static,
227 (setFromRange): excluded because it's unused,
228 (findPrevUseSym, markWholeLoop): added,
229 (findPrevUse): rewritten; fixes bug 895992; now a complete search
230 through all branches of predecessors enables sdcc to emit the warning
231 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
232 (rlivePoint): made static, added parameter emitWarnings which is only
233 true during the first run out of two,
234 (findRecursiveSucc, findRecursivePred): removed,
235 (computeLiveRanges): made static, added parameter emitWarnings,
236 (dumpIcRlive): added for debugging only
237 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
238 removed prototype of setFromRange()
239 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
240 in call of computeLiveRanges()
241 * support/regression/tests/bug-895992.c: added
242 * support/regression/tests/bug-971834.c: added
243 * support/valdiag/tests/bug-895992.c: added
244 * support/valdiag/tests/bug-971834.c: added
246 2005-12-18 Raphael Neider <rneider AT web.de>
248 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
249 (genUnpackBits): improved code for direct operands,
250 (genPackBits): improved code for literal assignment to bitfields
251 and for direct destination operands (no FSR indirection),
252 prevented redundant AND, fixes #1362800,
253 (AccLsh): added parameter to disable masking of the result
254 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
255 skip instructions with side-effects (like incfsz),
256 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
257 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
258 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
261 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
263 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
264 volatile variables as spill location
266 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
268 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
270 * support/regression/tests/bug-1376320.c: added
272 2005-12-08 Raphael Neider <rneider AT web.de>
274 * src/pic/device.c: renamed is_shared to pic14_is_shared
275 * src/pic/gen.c (genIfx): re-enabled handling of sbits
276 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
277 (is_valid_identifier): added for above workaround
279 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
281 * device/lib/Makefile.in: fixed to enable port-specific-objects
282 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
283 char, thanks Hubert Sack
284 * doc/sdccman.lyx: documented --xstack-loc,
285 elaborated a bit more on interrupts and pitfalls,
286 removed "setjmp/longjmp unsupported",
287 documented some unsupported C99 features
288 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
289 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
290 if, thanks Hubert Sack
291 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
292 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
294 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
295 regression tests can report resource usage (rfe 700441)
296 * support/regression/collate-results.py: report resource usage
297 * support/regression/ports/ds390/spec.mk,
298 * support/regression/ports/hc08/spec.mk,
299 * support/regression/ports/mcs51/spec.mk,
300 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
301 * support/regression/ports/ds390/uCsim.cmd,
302 * support/regression/ports/hc08/uCsim.cmd,
303 * support/regression/ports/mcs51/uCsim.cmd,
304 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
305 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
306 library, use the default one
307 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
310 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
312 * config.dsp: added dependency on .version and configure_vc.awk
313 * device/include/setjmp.h: updated for --stack-auto and --xstack
314 * device/include/mcs51/at89c51snd1c.h: corrected line endings
315 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
316 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
317 * device/lib/libsdcc.lib: added _setjmp
318 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
319 (decorateType): fixed bug 1372851,
320 (optimizeGetHbit): fixed warning
321 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
323 * support/regression/tests/bug1057979.c: added test for bug 1358192
324 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
326 2005-12-03 Borut Razem <borut.razem AT siol.net>
328 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
329 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
331 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
333 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
334 createIval): implement symbol independant "flexible array member",
335 (createIvalCharPtr): implemented flexible array initialisation with a
337 * src/SDCCsymt.c (copyStruct): removed,
338 (getSize): fixed misleading comment,
339 (getAllocSize): removed, the additional allocation size is now in
340 sym->flexArrayLength,
341 (checkStructFlexArray): new, syntax checks for flexible array members,
342 (compStructSize): added syntax checks for "flexible array members"
343 (copyStruct): removed,
344 (copyLinkChain): removed inefficient fix for bug 770487
345 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
346 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
347 symbol->flexArrayLength
349 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
350 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
351 * support/regression/tests/structflexarray.c: added
352 * support/valdiag/tests/structflexiblearray.c: added
354 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
356 * src/SDCCast.c (decorateType): fixed bug 1368489
357 * support/Util/SDCCerr.c,
358 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
360 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
362 * device/include/mcs51/at89c51snd1c.h: added file submitted by
363 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
365 2005-11-27 Borut Razem <borut.razem AT siol.net>
367 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
368 support/cpp2/mkdeps.h: added command line option
369 -obj-ext=<extension> to SDCPP to define object file externion, used
370 for generation of make dependencies (-M)
371 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
373 2005-11-26 Borut Razem <borut.razem AT siol.net>
375 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
376 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
377 added pic and pic16 libraries
379 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
381 * device/include/float.h: Corrected typo in prototype of __fsgt
383 2005-11-25 Borut Razem <borut.razem AT siol.net>
385 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
386 added creation of model-mcs51-stack-auto libraries
388 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
390 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
392 * src/SDCCast.c (createIvalArray): removed obsolete comment
394 2005-11-24 Borut Razem <borut.razem AT siol.net>
396 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
397 added missing device/lib/mcs51/crt*.asm sources
399 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
401 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
403 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
405 * device/lib/_fs2schar.c,
406 * device/lib/_fs2sint.c,
407 * device/lib/_fs2slong.c: optimized inline asm
409 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
411 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
412 Better handling of floats between -1.0 and 0.0.
414 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
416 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
417 (the missing "if"s prohibited removal of redundant labels)
419 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
421 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
422 Properly convert floats between -1.0 and 0.0 to long, int, and char
423 types (max integer value of negative floats tends to zero).
424 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
425 Removed changes made so to work properly with floats between
426 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
429 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
431 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
432 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
433 (genCast) cosmetic change
434 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
435 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
437 * support/regression/tests/bitfields (testSignedBitfields): added
439 2005-11-18 Borut Razem <borut.razem AT siol.net>
441 * sdcc/device/lib/Makefile.in: remove all unnecessary files
442 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
443 introduced SILENT option to make building of pic16 libraries less
445 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
447 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
448 Now they work properly with floats between -1.0 and 0.0
449 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
451 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
453 * src/SDCCicode.c (printOperand): added missing else
455 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
457 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
458 reformatted for better readability
459 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
462 2005-11-17 Borut Razem <borut.razem AT siol.net>
464 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
465 introduced SILENT option to make building of pic16 libraries less
466 verbose - used for nightly snapshot build
467 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
468 available on Win32 platforms.
469 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
470 medium, large, pic and pic16
472 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
474 * device/lib/printf_large.c: Temporary patch for bug 1358192:
475 printf("%f"...) sets fraction to zero.
477 2005-11-16 Raphael Neider <rneider AT web.de>
479 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
481 * src/pic/gen.c (genIfx): implemented for CARRY bit
482 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
483 to generic pointers, fixes #1357332,
484 (pic16_movLit2f): NEW,
485 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
487 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
489 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
491 2005-11-11 Raphael Neider <rneider AT web.de>
493 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
494 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
495 compute pointer's type from operand,
496 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
497 improved single bit reads, fixes bug #1353379
499 2005-11-09 Borut Razem <borut.razem AT siol.net>
501 * support/scripts/sdcc.nsi: added lib/pic to the package
503 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
505 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
507 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
509 * support/regression/tests/bug1348008.c: added
510 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
511 * support/regression/tests/bug1337835.c: updated comment
513 2005-11-06 Borut Razem <borut.razem AT siol.net>
515 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
516 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
517 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
518 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
519 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
520 dynamic construction of cl_error_class and derivates - 2.nd try
522 2005-11-05 Borut Razem <borut.razem AT siol.net>
524 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
525 bug, which caused Bus Errors on sparc solaris
527 2005-11-04 Borut Razem <borut.razem AT siol.net>
529 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
530 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
531 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
532 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
533 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
534 and derivates to resolve the initialization problem on OSX
536 2005-11-02 Borut Razem <borut.razem AT siol.net>
538 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
539 corrected typo - #include <winsock2.h>
541 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
543 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
544 (_asxxxx_mapping): added org directive for future enhancements
546 2005-11-01 Borut Razem <borut.razem AT siol.net>
548 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
549 enabled sockets on WIN32
550 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
552 2005-10-31 Borut Razem <borut.razem AT siol.net>
554 * support/regression/generate-cases.py: escape backslashes in {testcase}:
555 WIN32 backslash path delimiters should be escaped when used in C strings
556 * support/regression/tests/bitfields.c: exclude failing assertions for
557 __CYGWIN32__ and __MINGW32__ hosts
559 2005-10-30 Borut Razem <borut.razem AT siol.net>
561 * src/SDCCutil.c: corrected double comparison typo
563 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
565 * device/lib/medium/Makefile: added for new memory model medium
566 * device/include/asm/mcs51/features.h: updated for medium/pdata
567 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
568 added Multiply & Accumulate sbit's and MAC0_PAGE define
569 * device/include/mcs51/c8051f300.h: added sfr16 definitions
570 * device/include/mcs51/c8051f310.h: added sfr16 definitions
571 * device/lib/_mullong.c: update for medium model
572 * device/lib/incl.mk: added medium model
573 * doc/sdccman.lyx: documented medium model
574 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
575 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
576 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
577 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
578 (allocParms): set SCLS and OCLS to pdata for medium model
579 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
581 (powof2): return <0 if not power of 2
582 * src/avr/gen.c (genBitWise): use updated powof2
583 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
584 (shiftR2Left2Result): small optimization in setup, save acc when storing,
585 (shiftLLeftOrResult): use B if necessary
586 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
587 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
588 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
589 * support/regression/Makefile.in: added test-mcs51-medium
590 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
592 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
594 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
596 * device/lib/time.c (mktime): fixed bug 1334315
598 2005-10-28 Raphael Neider <rneider AT web.de>
600 * device/include/pic/p16f_common.inc: added common declarations
601 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
603 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
605 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
606 (aopPutUsesAcc): added to predict accumulator use,
607 (assignResultValue): save acc if necessary,
608 (genMinusDec): store result if indirectly addressed,
609 (genDivOneByte): save acc if necessary,
610 (movLeft2Result): bugfix if left already in acc,
611 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
612 attention to accumulator use (esp. pdata),
613 (genReceive): receive pdata correctly
614 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
615 * src/SDCCicode.h: added isOperandInPagedSpace prototype
617 2005-10-27 Raphael Neider <rneider AT web.de>
619 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
621 2005-10-27 Raphael Neider <rneider AT web.de>
623 * .version: changed version to 2.5.4
624 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
625 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
626 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
627 arithmetics support routines
628 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
629 * device/lib/Makefile.in: also create installdir for pic
631 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
633 * src/pic/device.c (dump_sfr): rewritten to delegate register
634 placement to the linker (use `extern sym' rather than sym EQU addr),
635 (validAddress): fixed to check last specified address
636 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
637 (popGetLit): truncate literal value to 8 bit,
638 (popGet): moved assert to more appropriate place
639 (popGetExternal): create pCode operand from and mark the according
640 symbol as being `extern'
641 (popGetAddr): added sanity check on immediate's offset, provide
642 GPOINTER tag on demand
643 (aopPut): fixed for immediates,
644 (mov2w_op): move operand's address or contents to WREG (depending on
645 operand type), safer variant of mov2w,
646 (movwf,call_libraryfunc): NEW, handy abbreviations,
647 (get_argument_pcop,get_return_val_pcop,pass_argument,
648 get_returnvalue): interface for accessing function parameters and
650 (assignResultValuei,genRet): use new parameter/return value interface
651 (pic14_getDataSize): back to old version handling generic pointers,
652 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
653 provided implementation and/or fixed old one,
654 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
655 calls, removed legacy 8051 reference code
656 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
657 (loadSignToC): NEW, move the operands sign bit to CARRY,
658 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
659 genRightShiftSigned, accepts negative shift counts,
660 (setup_fsr): load FSR and adjust IRP (indirect memory access),
661 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
662 generic pointers, __data pointers and __code pointers,
663 (genUnpackBits,genPackBits): rewritten to work with generic pointers
664 and signed bitfields, limit bitfields to 8 bit,
665 (genDataPointerGet): fixed number of bytes read,
666 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
667 (genPointerGet,genPointerSet): fixed handling of __code pointers,
668 pointers to constant data are no longer assumed to point to __code
669 space, removed invalid pointer types,
670 (bitpatternFromVal): retrieve the PICs representation of an integer
672 (genDataPointerSet): fixed assigning to po_immediate operands,
673 (genGenPointerSet): implemented as library call,
674 (genIfx): fixed incorrect condition,
675 (genAddrOf): limit generic pointers' addresses to 2 bytes,
676 provide GPOINTER tag according to destination's storage class,
677 (genCast): added code to handle casting to generic pointers, added
678 sign-/zero extension of the result
679 (aop_isLitLike,op_isLitLike): fixed handling of immediates
680 * src/pic/gen.h: added macros to access IRP bit in STATUS register
681 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
683 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
684 address/register resides in the shared banks
685 (emitSymbolToFile): improved to handle global and `pinned' symbols,
686 put all variables into separate sections (have the linker arrange
688 (picglue): put init code and interrupt handlers in separate sections
689 * src/pic/main.c: added port specific options table, modified to PORT
690 structure to make GPOINTERs 3 byte, added pic14_options
691 (_pic14_do_link): private linking routine (update paths to libraries,
692 add libsdcc.lib by default)
693 * src/pic/main.h: declare pic14_options
694 * src/pic/pcode.c: fixed instructions i/o relations,
695 (RegCond): reverted to correct version,
696 (newpCodeOpLit): truncate literals to 8 bit,
697 (genericPrint): added debug output,
698 (getRegFromInstruction): fixed for various operand types, simplified
699 (BuildFlow): fixed broken handling of isntructions with labels
700 (LinkFlow): start at last instruction in flow (skip trailing comments),
701 pass the flow on to the next instruction after CALL
702 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
703 (insertPCodeInstruction): fixed inserting after a skip instruction,
704 (DoBankSelect): fixed for labeled instructions
705 (OptimizepBlock): honor --nopeep switch
706 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
707 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
708 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
709 (pCodeOptime2pCodes): allow disabling this optimization via
710 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
711 but is still buggy), started implementation of a dataflow based
712 pCode optimization (CSE + dead code elimination)
713 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
714 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
715 names are independant of the stack location and therefore portable across
718 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
720 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
721 (selectSpil): fixed bug 1337835 by not spilling bit variables
722 * support/regression/tests/bug1337835.c: added test for this bug
723 * src/mcs51/peeph.def: restart after rule 3.c,
724 addded rules 263.x to optimize loading constants
726 2005-10-26 Raphael Neider <rneider AT web.de>
728 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
729 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
730 (genAssign): emit warning when casting literals to generic pointer
731 type, also applies when taking the address of a fixed variable,
732 (genCast): improved casting to generic pointers
733 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
734 extern variables, added verbose error message
735 * device/include/pic16/{string.h,errno.h}: added #pragma library c
737 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
739 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
740 carry must be complemented too
741 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
742 could be emitted by genMinus
743 * src/SDCCval.c (constVal): fixed bug 1305065
745 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
747 * src/SDCCast.c (addCast): added promotion for bit variables
748 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
749 promotion casts + optimisation
750 (optimizeGetWord): fix warning 'i' might be used uninitialized
751 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
752 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
754 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
756 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
757 all chars are promoted to int; promotion should be handled in SDCCast.c
759 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
761 * device/lib/_strcmp.c: Fixed bug 1326457
763 2005-10-11 Raphael Neider <rneider AT web.de>
765 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
766 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
768 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
770 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
771 * support/regression/tests/sfr16.c: added test for the sfr32 bug
773 2005-10-04 Raphael Neider <rneider AT web.de>
775 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
776 device/lib/pic16/pics.all: added pic18f1320
777 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
779 2005-09-30 Raphael Neider <rneider AT web.de>
781 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
782 * src/pic16/devices.inc: NEW, provides device descriptions
783 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
785 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
787 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
790 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
792 * doc/sdccman.lyx: updated Highest Order Bit documentation,
793 documented Any Order Bit, Higher Order Byte and Higher Order Word
794 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
795 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
796 (optimizeGetAbit): new, to get any bit, not only the high bit,
797 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
798 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
799 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
800 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
801 RIGHT_OP: also try GETBYTE, GETWORD optimization,
802 GETABIT, GETBYTE, GETWORD: decorate them,
803 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
804 (ast_print): added GETABIT, GETBYTE, GETWORD
805 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
806 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
807 (geniCodeBinary): new generic binary icode,
808 (ast2iCode): added GETABIT, GETBYTE, GETWORD
809 * src/port.h: updated comment for PORT.hasExtBitOp
810 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
811 (genGetByte): new, to get a single byte,
812 (genGetWord): new, to get a word from a long,
813 (gen51Code): added GETABIT, GETBYTE, GETWORD
814 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
816 2005-09-23 Raphael Neider <rneider AT web.de>
818 * configure.in, configure: have device/lib/pic configured
819 * device/lib/Makefile.in: added model-pic14
820 * device/lib/clean.mk: added pic/ to clean rule
821 * device/lib/pic: added rudimentary pic14 library providing support
822 functions for multiplication/division/generic pointer access
823 * src/SDCCopt.c (convilong): mark support functions as extern
824 for pic14 port as well
825 * src/pic/gen.c (genMult): added assertions,
826 (genpic14Code): emit warning on unhandled iCodes
827 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
828 * src/pic/pcode.c (pCodeOpCopy),
829 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
830 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
831 SFR_REGISTER}), made safe for future extensions
832 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
833 instructions even if preceeded by SKIP instructions (also remove
834 them); removed unused code
835 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
836 prevents leaving parts of the structure uninitialized after copying
838 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
840 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
842 * support/regression/tests/addsub.c: added test for the bug
844 2005-09-21 Raphael Neider <rneider AT web.de>
846 * device/include/pic16/pic18f1220.h,
847 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
848 * device/lib/pic16/Makefile.rules: added missing opening paren
849 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
850 are provided in genutils.c,
851 (genUminusFloat,genUminus,genCmpEq): added asserts on different
852 operand/result sizes,
853 (genCmp): assert on NULL pointers first, then check deref'ed values
854 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
857 2005-09-18 Raphael Neider <rneider AT web.de>
859 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
860 as these are now unused,
861 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
862 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
863 local, avoids uninitialized pointer dereference on r->name
864 * src/pic16/ralloc.c (newReg): fixed indentation
866 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
868 * src/SDCCval.c (constVal): fixed bug 730366
869 * support/Util/SDCCerr.c,
870 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
872 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
874 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
876 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
878 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
880 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
882 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
883 (hex2dec): made hex_digit unsigned char, removed ascii dependance
884 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
885 (hex2dec): made hex_digit unsigned char, removed ascii dependance
886 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
887 * packihx/packihx.c (hexDigit): made c unsigned char
888 * as/mcs51/lklibr.c (fndsym),
889 * link/z80/lkgb.c (gb),
890 * link/z80/lklibr.c (fndsym),
891 * link/z80/lkrloc.c (relr),
892 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
893 * src/SDCC.lex (checkCurrFile, process_pragma),
894 * src/SDCCglue.c (spacesToUnderscores),
895 * src/SDCCmain.c (setParseWithComma, processFile),
896 * src/asm.c (tvsprintf, printCLine),
897 * src/avr/gen.c (emitcode, aopPut),
898 * src/ds390/gen.c (emitcode),
899 * src/hc08/gen.c (emitcode, emitinline),
900 * src/mcs51/gen.c (emitcode, genInline),
901 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
903 * src/pic/ralloc.c (debugLog),
904 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
906 * src/pic16/ralloc.c (debugLog),
907 * src/z80/main.c (_process_pragma):
908 made all ctype.h function calls safe
909 * src/SDCCopt.c: include math.h for fabs
910 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
911 and used them throughout the code to make ctype.h function calls safe
912 * src/ds390/main.c (asmLineNodeFromLineNode),
913 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
914 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
916 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
917 (newpCodeAsmDir): made ctype.h function calls safe
918 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
919 pic16_emitcode): made lbp unsigned char*
920 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
921 (pic16_newpCodeAsmDir): made ctype.h function calls safe
922 * src/xa51/gen.c (emitcode),
923 * src/z80/gen.c (_emit2): made lbp unsigned char*
924 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
927 2005-09-05 Raphael Neider <rneider AT web.de>
929 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
930 access bank splitpoint
932 2005-09-05 Raphael Neider <rneider AT web.de>
934 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
936 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
938 * .version: changed to version 2.5.3
939 * doc/sdccman.lyx: changed version to 2.5.3,
940 documented --codeseg and --constseg and pragma codeseg and constseg,
941 documented bit parameters (reentrant) and bit returning
942 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
943 currFunc->recvSize, but is this ok for all ports?
944 (ast2iCode): result of ~ on unsigned char must be cast to int for
946 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
947 function pointers in bit space
948 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
949 (processFuncArgs): call port.reg_parm() with reentrancy info
957 * src/z80/main.c: port.reg_parm prototype extended with
958 "bool reentrant" parameter
959 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
960 options.stackAuto for allocating bit register parameters
961 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
962 (genSend): set BitBankUsed if it is,
963 (selectRegBank): factored out of genCall for use in genPcall,
964 (genCall): removed redundant dtype assignmen, use selectRegBank,
965 (genPcall): handle returning in Carry properly, save in F0 if needed,
966 (genReceive): handle bit register parameters
967 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
968 (mcs51_assignRegisters): enable bit registers for all reentrant
969 functions and don't set BitBankUsed unconditionally
970 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
971 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
972 * support/regression/tests/funptrs.c: added tests for BOOL and for return
974 2005-08-27 Borut Razem <borut.razem AT siol.net>
976 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
977 ppc-osx (Darwin) does not support -u option. It seems that it is
978 supported only on Linux - GNU cp
980 2005-08-25 Borut Razem <borut.razem AT siol.net>
982 * sim/ucsim/gui.src/serio.src/Makefile.in,
983 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
984 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
985 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
986 install and strip, since the strip at /usr/ccs/bin should be used
989 2005-08-24 Borut Razem <borut.razem AT siol.net>
991 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
993 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
995 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
998 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1000 * as/mcs51/aslink.h: completed lkrloc.c prototypes
1001 * as/mcs51/lkmain.c (link_main): fixed warning
1002 * device/include/stdbool.h: ds390 has no advanced bit support yet
1003 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1004 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1005 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1006 and updated their macros
1007 * src/SDCCval.c (constVal): updated comment for renamed b_long
1009 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1011 * as/mcs51/asdata.c: changed ctype['['] to BINOP
1012 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1013 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1014 (oprio): set priority for '['
1015 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1017 * as/mcs51/asm.h: added defines R_BIT and S_BIT
1018 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1019 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1020 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1021 added overlayable BIT_BANK area
1022 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1023 (summary2): explain 'T' in legenda
1024 * as/mcs51/lkrloc.c: replaced old K&R style,
1025 (relr): added R_BIT processing,
1026 (errmsg): added "Bit-addressable relocation error",
1027 (adb_bit): added for converting from byte- to bit-addressable space,
1028 (adb_24_bit): added for converting from byte- to bit-addressable space
1029 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1030 used in reentrant functions now even as return value
1031 * device/lib/_gptrput.c (_gptrput): removed obsolete code
1032 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1033 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1034 * src/SDCCglobl.h: added indicator BitBankUsed
1035 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1036 the bit registers b0-b7
1037 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1038 (geniCodeCast): fixed bug 1263853,
1039 (geniCodeLogicAndOr): put result in bool or char,
1040 (geniCodeReceive): added parameter func for accessing the return type,
1041 (geniCodeFunctionBody): pass func to geniCodeReceive
1042 * src/SDCCmain.c: added indicator BitBankUsed
1043 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1044 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1045 (checkSClass): don't put automatic bool/bit on stack,
1046 (checkFunction): removed check on function cannot return bit
1047 * src/SDCCsymt.h: added newBoolLink prototype
1048 * src/mcs51/gen.c (rb1regs): added bit registers,
1049 (movc): created for assigning to carry,
1050 (pushReg, popReg): created for pushing registers,
1051 (sameRegs): check both AOP_REG and AOP_CRY types,
1052 (aopOp): handle bit registers,
1053 (aopPut): optimization no self-assign,
1054 (saveRegisters): push reg->base (bits) only once for bit registers,
1056 (unsaveRegisters): pop reg->base only once and use popReg,
1057 (assignResultValue): added parameter func and return in carry for bits,
1058 (genIpush): optimization no reload in A if not changed,
1059 (genSend): bit parameters in reentrant functions are passed in bit
1060 registers by first assigning to bits in B, then save registers and
1062 (genCall): handle returning in Carry properly, save it in F0 if needed,
1063 (genPcall): updated assignResultValue call, this is not safe yet for bit
1064 returning function !!!
1065 (genFunction): don't generate equ's for bit registers and use pushReg,
1066 (genEndFunction): take care of bit returning functions and use popReg,
1067 (genRet): return bit in Carry,
1068 (genIfx): optimize bit registers and other directly addressable bits,
1069 (genReceive): updated assignResultValue call
1070 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1071 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1072 registers when using stack-auto
1073 * src/mcs51/ralloc.c (_G): added allBitregs,
1074 (regs8051): added the bit registers,
1075 (createStackSpil): use macro IS_BIT,
1076 (getRegBit): added to allocate a bit register, else spill,
1077 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1078 (updateRegUsage): factored out to ease stepping while debugging,
1079 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1080 also allocate bit registers,
1081 (fillGaps): handle bit registers,
1082 (findAllBitregs): added to create bit vector with all bit registers,
1083 (mcs51_allBitregs): returns this bit vector,
1084 (mcs51_assignRegisters): when using stack-auto use bit registers for
1085 passing parameters and creating local variables
1086 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1088 2005-08-22 Borut Razem <borut.razem AT siol.net>
1090 * device/lib/Makefile.in: replaced find option -or with -o
1091 to make it run on solaris
1093 2005-08-22 Raphael Neider <rneider AT web.de>
1095 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
1096 fixes #1265442 (crash on Solaris)
1098 2005-08-20 Borut Razem <borut.razem AT siol.net>
1100 * configure, configure.in: added tests for libsocket and libnsl libraries,
1101 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
1102 from support/regression/Makefile.in
1103 * support/regression/Makefile.in: added
1104 * device/lib/pic16/Makefile.common.in: force make to use bash shell
1105 * sim/ucsim/libtool: regenerated on sparc-solaris
1106 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1107 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
1108 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
1109 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
1110 sparc-solaris, which doesn't use GNU ld linker
1111 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
1112 * as/Makefile: find on sparc-solaris does not support -maxdepth option
1114 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
1116 * src/mcs51/peeph.def: updated comments
1118 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1120 * device/lib/_gptrget.c,
1121 * device/lib/_gptrput.c: slightly shorter
1122 * doc/sdccman.lyx: incremented version
1123 * src/mcs51/peeph.def: moved peephole comments to the line of first
1124 change to better keep line correlation, reanimated 186.e
1125 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
1127 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1129 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
1130 David Saxton with quotes around file name.
1132 2005-08-15 Borut Razem <borut.razem AT siol.net>
1134 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
1135 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
1136 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
1137 make tests run on x86_64 platform
1139 2005-08-13 Raphael Neider <rneider AT web.de>
1141 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
1142 as it might be executed DURING a build (parallel make is wonderful)
1144 2005-08-13 Raphael Neider <rneider AT web.de>
1146 * device/lib/Makefile.in (port-specific-objects-pic16):
1147 revert to cp $(PORT)/bin/*.* $(PORTDIR)
1148 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
1150 * device/lib/pic16/Makefile.rules: build subdirs before creating
1151 the library, removed builddir rule, create $(builddir) early in
1152 recurse rule, use empty recurse rule for leaf directories
1153 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
1154 mkdir errors (race condition), removed duplicate suffix "hex"
1156 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
1157 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
1158 prevents mkdir -p from aborting on Alpha
1160 2005-08-12 Raphael Neider <rneider AT web.de>
1162 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
1163 db-statements in order to allow for arrays of pointers in code
1164 sections to be placed without interspersed 0-padding, fixes
1166 * (emitStatistics): fixed division by zero for pic18f1220
1167 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
1168 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
1169 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
1170 * (pic16_pCodeConstString): keep track of already emitted string
1171 literals to prevent "duplicate definitions of symbol _str_NR"
1172 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
1174 * device/lib/Makefile.in: ignore failing PIC16 library builds
1175 * device/lib/pic16/Makefile: do not build if gputils are missing
1176 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
1178 2005-08-10 Raphael Neider <rneider AT web.de>
1180 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
1183 2005-08-10 Raphael Neider <rneider AT web.de>
1185 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
1186 Rokas' patch to add the new fixed point type "__fixed16x16"
1187 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
1188 functions for __fixed16x16 arithmetics
1189 * device/lib/pic16: reimplemented the build system to support
1190 a separate build directory, better handling of libio (create
1191 the library in a separate subdir for each architecture) and
1192 easier configuration (centralized in Makefile.common)
1194 2005-08-07 Raphael Neider <rneider AT web.de>
1196 * src/pic16/gen.c (genrshTwo): fixed sign extension
1197 * src/pic16/device.c: added pic18f2320, 4220 and 4320
1198 * device/include/pic16/pic18f2220.h: changed some bit definitions,
1200 * device/include/pic16/pic18f4220.h: NEW, header for
1201 pic18f4220 and pic18f4320
1202 * device/include/pic16/pic18fregs.h: added new devices,
1203 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
1204 * device/include/pic16/signal.h: resolved name clashes
1205 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
1206 to also allow testing for interrupt enable bits, added
1207 comments on how to use the macros
1208 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
1209 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
1210 register definitions for the devices
1211 * device/lib/pic16/pics.all: added new devices
1212 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
1214 * device/lib/pic16/libc/stdlib/memfree: do not count
1215 the block header as free memory
1216 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
1217 simplified and added missing end-of-blocklist-marker
1218 (reported by Peter Onion, fixes #1252814)
1219 * (_mergeHeapBlock): fixed loop condition
1220 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
1221 len==0, restructured code
1222 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
1223 up a bit, reduced bitfield accesses, prevent endless loops
1224 in case of heap corruption
1225 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
1226 "unreferenced arguments/must return a value" warnings
1227 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
1228 replaced BAUDREG with SPBRG
1229 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
1230 device/lib/pic16/debug/gstack/gstack.c: replaced
1231 _naked, _asm, _endasm with __naked, __asm, __endasm
1233 2005-08-05 Raphael Neider <rneider AT web.de>
1235 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
1236 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
1238 2005-08-05 Borut Razem <borut.razem AT siol.net>
1240 * device/lib/Makefile.in: added missing ';'
1241 * configure: removed ^M characters
1243 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1245 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
1246 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
1249 2005-08-04 Borut Razem <borut.razem AT siol.net>
1251 * configure.in: pic16 libraries build 2nd try - enable running
1252 configure in device/lib/pic16
1253 * configure: regenerated from configure.in
1254 * device/lib/Makefile.in: create $(PORT)/bin directory
1256 2005-08-03 Raphael Neider <rneider AT web.de>
1258 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
1259 to get/set values via pointers
1260 * (genUnpackBits,genPackBits): changed detection of
1261 ptr->bitfield vs. sym.bitfield, fixed access via generic
1262 pointers, removed dead (wrong) code for multibyte bitfields
1263 * (genNearPointerGet, genGenPointerGet): removed useless code,
1264 fixed bitfield detection, fixes #1250594
1265 * (genNearPointerSet): removed useless code
1266 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
1267 and introduced macro pic16_emitpcode that conditionally emits
1268 the origin of the following pCode (useful for debugging SDCC)
1269 * src/pic16/pcode.c: changed (and disabled) some debug outputs
1270 * (createDefmap): fixed handling of LFSR for --optimize-df
1272 2005-08-02 Borut Razem <borut.razem AT siol.net>
1274 * device/lib/Makefile.in: pic16 libraries build enabled since
1275 gputils-0.13.2 are now localy installed at sourceforge's compile farm
1277 2005-08-02 Raphael Neider <rneider AT web.de>
1279 * src/pic16/gen.c (genPackBits): removed deprecated warning
1280 * (genGenPointerSet): fixed bitfield detection
1282 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1284 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
1286 2005-07-31 Raphael Neider <rneider AT web.de>
1288 * device/lib/pic16/libdev/pic18f458.c,
1289 device/include/pic16/pic18f458.h: added missing T0CONbits
1291 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
1293 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
1295 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
1297 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
1299 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1301 * device/include/mcs51/at89c51ed2.h: added.
1303 2005-07-23 Raphael Neider <rneider AT web.de>
1305 * src/pic/gen.h: added emitpcode macro for debugging
1306 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
1307 and replace by macro adding debug information on demand
1308 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
1309 * (gencjne): tried to fix; replaced with correct (slower) code
1310 * (gen{Unp,P}ackBits): fixed single bit access
1311 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
1312 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
1313 previous instruction
1314 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
1315 register has to be handled with care (forbidding movement
1316 of assignments/uses, removing assignments completely, ...)
1317 * (pCodeOptime2pCodes): make use of regIsSpecial
1318 * added lots of debugging output (commented out)
1319 * src/pic/rallloc.c (deassignLRs): prevent operand registers
1320 from being reused as result UNLESS it is known to work
1322 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
1324 * support/Util/dbuf.h: include <stddef.h> for size_t
1325 * .version: changed to version 2.5.2
1327 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1329 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
1331 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1333 * src/hc08/gen.c (genMinus): fixed bug #1241835,
1334 (genModOneByte): removed needless psha/pula
1336 2005-07-22 Raphael Neider <rneider AT web.de>
1338 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
1339 have PIC14 handled like PIC16, fixes broken pic14 linker calls
1340 * src/pic/gen.c (resolveIfx): do not "invent" labels
1341 * (genSkipc): changed to positive logic
1342 * (genSkipCond): removed as no longer needed
1343 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
1345 * (genLeftShift): check operands are in different registers
1346 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
1347 INCF does not update CARRY...
1348 * src/pic/main.c: fixed _linkCmd
1349 * src/pic/pcode.c (unlinkpCode): added inactive code
1350 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
1351 alive (do not assign result and operand overlapping registers)
1353 2005-07-22 Raphael Neider <rneider AT web.de>
1355 * src/pic/device.c (dump_sfr): replaced register declaration with
1356 call to emitSymbolToFile() to avoid duplicate symbols
1357 * (assignRelocatableRegisters): do not declare external symbols
1358 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
1359 right (take size of type, not etype)
1360 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
1361 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
1362 * (packRegsForAccUse): disabled assignment of WREG as
1363 the result reg to prevent occurence of just fixed #1235003,
1365 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
1366 symbols (avoids duplicate symbols in .asm file)
1367 * (pic14emitRegularMap): use emitSymbolToFile()
1368 * src/pic/gen.c (aopOp): fixed spillLocation handling
1369 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
1370 * (genDataPointerSet): removed unneccessary variables/output
1372 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
1374 * as/mcs51/lkarea.c: enlarged codemap for banked memory
1375 * device/lib/mcs51/crtbank.asm: added # to 0x0F
1377 2005-07-21 Raphael Neider <rneider AT web.de>
1379 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
1380 architecture cannot handle them efficiently, fixes bug #1235003
1381 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
1382 check for empty sets before using them (fixes bug #1232190)
1384 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
1386 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
1387 (lnksect2): generate warnings for memory overlap
1388 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
1389 constseg to set the name of these segments so you can instruct the linker
1390 to place them in banks
1391 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
1392 * src/SDCCglobl.h: added MODEL_HUGE to enum,
1393 added code_seg and const_seg to options
1394 * src/SDCCglue.c (emitMaps): use options.const_seg,
1395 (createInterruptVect): put interrupt vectors in segment HOME,
1396 (glue): put HOME before static segment and put the main glue in HOME,
1397 (glue): use options.code_seg
1398 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
1399 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
1400 these segments so you can instruct the linker to place them in banks
1401 (linkEdit): use code_loc for HOME segment which should be the first
1402 segment in code memory now
1403 * src/SDCCmem.c: fixed more stuff like bug 1238386
1404 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
1405 (changePointer): don't change function pointers to code pointers for
1407 (compareType): added exceptional check for banked function pointers
1408 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
1409 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
1410 after static in code memory
1411 * src/mcs51/gen.c: added aopLiteralLong prototype,
1412 (aopForSym): use getSize for functions,
1413 (genCall): generate banked calls over one trampoline __sdcc_banked_call
1414 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
1415 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
1417 (genPcall): use call for literal function pointers and generate banked
1418 calls over the one trampoline so there's only one place for the user to
1419 modify according to his/hers hardware,
1420 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
1421 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
1422 * src/mcs51/main.c: added keyword banked,
1423 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
1424 * support/Util/SDCCerr.c,
1425 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
1426 needed for passing the bank and address to the trampoline
1427 * device/lib/mcs51/crtbank.asm: added for bankswitching
1428 * device/lib/mcs51/Makefile: added crtbank
1430 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1432 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
1433 for fields at offset 0 of a struct or union as reported
1434 on 2005-07-07 in the developer mailing list.
1436 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1438 * src/SDCCmem.c: fixed bug 1238386
1440 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1442 * src/mcs51/peeph.def: added labelrefcounting for peepholes
1443 (patch #1144962), added peephole 300, enabled 259.x
1444 * doc/sdccman.lyx: removed screenshot and provided link instead
1446 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1448 * doc/sdccman.lyx: added section about debugging with ddd
1449 * doc/figures/ddd_example.eps: screenshot of debugging session
1451 2005-07-04 Raphael Neider <rneider AT web.de>
1453 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
1454 like CODE pointers, fixes #1115683
1455 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
1456 call, fixes bugs #1232211, #1228110,
1457 fixed wrong casts to pCodeFlow from pCodeInstructions
1459 2005-07-04 Raphael Neider <rneider AT web.de>
1461 * src/pic/gen.c (popGet): changed assert to allow for
1463 * (popGetAddr): changed signature to provide
1464 an additional index, patched all call sites
1465 * (genCmpEq): handle literal-like operands correctly
1466 * (genAddrOf): added sanity checks on __code/__data pointers
1467 * (genAssign): added handling of symbols from __code section
1468 * (gencjne): do not generate code for comparisons whose result
1469 is neither stored nor used, fixes bug #1171114
1470 * (AccLsh, AccRsh): operate on operand instead of WREG
1471 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
1472 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
1474 * rewrote complete shift-by-literal logic, commented unused
1476 * (genConstPointerGet): get multiple bytes (if result size > 1),
1477 fixed handling of non-immediate addresses
1478 * (genPointerGet): handle CODE pointers like CONST pointers
1479 * (genpic14Code): insert C-SRC lines as Cource-pCodes
1480 * ({aop,op}_isLitLike): NEW, single place to decide whether an
1481 operand is to be treated as a literal or not
1482 * (mov2w,genPcall,genCmpEq),
1483 src/pic/genarith.c: use aop_isLitLike() to decide between
1484 literal/register contents
1485 * (addSign): added missing offset
1486 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
1487 only emit comment in debug-mode,
1488 use {aop,op}_isLitLike throughout the file
1489 * src/pic/glue.c: fix initializers for pointers (work in progress)
1490 * src/pic/pcode.c (get_op): honor index on _const symbols
1491 * ({reset,dump}pCodeStatistics): NEW, estimate code size
1492 * (dumppBlock): added pCode size estimation
1493 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
1494 check for IS_SYMOP before OP_SYMBOL'ing
1495 * fixed indentation, compacted switch-statements
1496 * (allocReg): find free register and allocate it instead of
1497 allocating new registers all the time
1498 * (deassignLRs): prevent POINTER_GET's from being assigned the same
1499 registers as its operands (necessary only for multibyte GETs)
1501 2005-07-01 Raphael Neider <rneider AT web.de>
1503 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
1504 debugging .asm-output macros FENTRY + FEXIT
1505 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
1507 * (emitpComment): NEW, printf to pCode
1508 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
1510 * (popGetAddr): NEW, variant of popGet to access an immediates
1511 high(er) bytes instead of the n'th byte of memory they reference,
1512 replaced popGet with popGetAddr where neccessary
1513 * (genDataPointerGet): reactivated and fixed implementation
1514 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
1516 * (genDataPointerSet): fixed multibyte assignments
1517 * (genpic14Code): fixed --i-code-in-asm handling
1518 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
1519 * (genPlus): fixed index-out-of-bounds error
1520 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
1521 * src/pic/ralloc.c: added debugging output macro FENTRY2
1522 * (spillThis): fixed indentation, enbraced for-body for clarity
1523 * (rematStr): commented out as now unused
1524 * (regTypeNum): commented out special spill case (overwrites
1526 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
1528 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
1530 * doc/sdccman.lyx: documented sfr16/sfr32,
1531 added example for using storage class with function pointers
1532 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
1534 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
1536 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
1537 * device/lib/_itoa.c,
1538 * device/lib/_ltoa.c: optimized codesize
1539 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
1540 but don't know how to suppress the double warning.
1541 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
1542 * support/Util/SDCCerr.c,
1543 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
1545 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
1547 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
1548 fixed old K&R prototypes
1549 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
1550 * device/lib/_gptrget.c,
1551 * device/lib/_gptrgetc.c,
1552 * device/lib/_gptrput.c: changed versions for new memory indicator values,
1553 also new versions for small generic pointers and banked generic pointers
1554 * src/port.h: added const_name
1555 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
1556 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
1557 * src/SDCCcse.c (findPrevIc): check all associative operators
1558 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
1559 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
1560 * src/SDCCmem.c: updated comments,
1561 set far-space to 0 for pdata, results in optimized code
1562 * src/SDCCmem.h: added macro CONST_NAME
1563 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
1564 moving the info into the highest bits, see also gptrget/gptrput
1565 * src/src.dsp: added sdcc.ico to project files
1566 * src/avr/gen.c (genCast): fixed bug 0x%d
1567 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
1568 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
1569 relation between ptr_type and DCL_TYPE,
1570 (genCast): fixed bug 0x%d
1571 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
1572 (CODE)" for const_name
1573 * src/hc08/gen.c (genCast): fixed bug 0x%d
1574 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
1575 (hc08_port): added "CONST (CODE)" for const_name
1576 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
1577 (aopForRemat, adjustArithmeticResult): disconnected direct relation
1578 between ptr_type and DCL_TYPE,
1579 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
1580 operand* and took AOP() inside function so sfr-ness can be checked,
1581 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
1583 (genFunction, genEndFunction): optimized stack setup,
1584 (genMinus): optimized for literals with ending zeroes (in bytes),
1585 (genCast): fixed bug 0x%d
1586 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
1587 (mcs51_port): added "CONST (CODE)" for const_name
1588 * src/mcs51/peeph.def: made rule 226 more generic
1589 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
1590 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
1591 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
1592 * src/z80/main.c (z80_port): added NULL for const_name,
1593 (gbz80_port): added NULL for const_name
1594 * support/regression/tests/bug663539.c,
1595 * support/regression/tests/sfr16.c: new tests
1597 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1599 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
1601 2005-06-24 Raphael Neider <rneider AT web.de>
1603 * device/lib/pic16/libdev/pic18f[68][567]20.c:
1605 * device/include/pic16/signal.h: added USBIF
1608 2005-06-24 Raphael Neider <rneider AT web.de>
1610 * device/lib/pic16/libdev/pic18f2455.c,
1611 device/include/pic16/pic18f2455.h: NEW
1612 * device/include/pic16/pic18fregs.h,
1613 device/lib/pic16/pics.all,
1614 src/pic16/device.c: added 18f2455
1615 * device/lib/pic16/libdev/pic18f[68][567]20.c,
1616 device/include/pic16/{pic18f[68][567].h,usart.h}:
1617 replaced MULTIPLE_USARTS define with more relaible
1618 compatibility sfrs (for USART access)
1620 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
1622 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
1623 and the output asm file line is printed on two lines.
1625 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1627 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
1628 BGT, BLE, BHI, and BLS instructions
1629 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
1631 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
1632 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
1634 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
1636 2005-06-15 Raphael Neider <rneider AT web.de>
1638 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
1639 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
1640 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
1641 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
1642 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
1644 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1646 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
1647 Marcel Telka in bug #1215704
1649 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
1651 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
1652 located in shared memory bank.
1654 2005-05-31 Raphael Neider <rneider AT web.de>
1656 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
1657 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
1658 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
1660 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
1662 * device/lib/_strncpy.c: fixed the fix
1664 2005-05-26 Raphael Neider <rneider AT web.de>
1666 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
1667 initializers with \0, bug #1208187
1668 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
1669 intializers with \0, bug #1208187
1671 2005-05-26 Raphael Neider <rneider AT web.de>
1673 * src/pic16/glue.c (pic16_printIvalChar): fixed string
1674 initializers with \0, bug #1208187
1675 * src/pic16/main.c (_process_pragma): added sanity checks
1676 for stack position and size, emit warnings when appropriate
1678 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
1680 * device/lib/_strncpy.c: fixed not filling with \0
1682 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1684 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
1686 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
1687 compound_statement),
1689 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
1691 2005-05-24 Raphael Neider <rneider AT web.de>
1693 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
1695 2005-05-24 Raphael Neider <rneider AT web.de>
1697 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
1698 TRISE definitions, closes bug #1162453
1700 2005-05-22 Raphael Neider <rneider AT web.de>
1702 * src/pic16/main.c (_process_pragma): check for missing
1703 arguments to pragmas code and udata
1704 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
1705 consistency fixes to match other headers (thanks to Jim Paris)
1706 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
1708 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1710 * src/SDCCicode.c (isOperandEqual): fixed missing ;
1712 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
1714 * support/regression/tests/bug1198642.c: new test
1715 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
1716 * src/SDCCcse.c (findPrevIc): added comment, please have a look
1717 * support/scripts/resource.h,
1718 * support/scripts/resource.rc,
1719 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
1720 * support/scripts/sdcc.ico: added 32x32 icon
1722 2005-05-18 Raphael Neider <rneider AT web.de>
1724 * device/lib/pic16/libdev/pic18f*.c,
1725 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
1726 keywords to "__sfr" and "__at (X)"
1727 * device/include/pic16/pic18fregs.h: added pic18f4520
1728 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
1729 #1203088 (MPLAB compatibility)
1731 2005-05-17 Raphael Neider <rneider AT web.de>
1733 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
1734 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
1735 * device/lib/pic16/pics.all: added new devices
1736 * src/pic16/device.c: added support for pic18f4520
1738 2005-05-16 Raphael Neider <rneider AT web.de>
1739 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
1740 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
1741 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
1742 convenience function for bit access
1744 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1746 * device/lib/printf_large.c: fixed bug 1193299
1747 * support/regression/tests/bug1057979.c: added test %3.3s
1749 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1751 * device/include/mcs51/8051.h,
1752 * device/include/mcs51/8052.h: made parseable with lint
1753 * device/include/mcs51/lint.h: added include file for (sp)lint
1754 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
1755 * doc/cdbfileformat.lyx,
1756 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
1758 2005-05-14 Raphael Neider <rneider AT web.de>
1760 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
1761 * device/lib/pic16/libc/stdlib/itoa.c (new)
1762 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
1763 * device/lib/pic16/libio/Makefile: exclude subdir according to
1764 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
1765 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
1766 * src/pic16/gen.c (genFunction): prevent annoying warning
1767 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
1769 * support/cpp2/cppmain.c (cpp_output_string): new
1770 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
1773 2005-05-13 Borut Razem <borut.razem AT siol.net>
1775 * src/SDCCmain.c (linkEdit): fixed bug 1195202
1777 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1779 * .version: changed to version 2.5.1; back to bleeding edge development
1781 2005-05-11 Borut Razem <borut.razem AT siol.net>
1783 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
1784 generate PDF version 1.3 documents
1786 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1788 * .version: changed to version 2.5.0
1790 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1792 * doc/sdccman.lyx: updated weblinks, index and smaller updates
1794 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1796 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
1797 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
1798 well as many smaller updates.
1799 * .version: changed to version 2.5.0-pre1
1801 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1803 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
1805 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1807 * support/regression/tests/bug1185672.c: added
1808 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
1810 * src/mcs51/gen.c (genCall): added comments, made it look safer
1811 * src/mcs51/gen.c (genEndFunction): simplified
1813 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1815 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
1817 2005-04-14 Borut Razem <borut.razem AT siol.net>
1819 * fixed bug 1045046 - SIGSEGV with really simple code?:
1820 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
1821 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
1823 2005-04-14 Borut Razem <borut.razem AT siol.net>
1825 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
1826 src/pic16/device.h: temporarily disabled experimental #inline pragma
1829 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1831 * device/include/z80/stdio.h,
1832 * device/include/z80/string.h: removed these highly incomplete files so
1833 SDCC can use the default ones in device/include/
1835 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1837 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
1839 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
1842 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1844 * device/include/malloc.h: removed redundant __reentrant prototypes
1845 * device/lib/_mullong.c: added working xstack variant in asm (C version
1846 doesn't pass regression tests)
1847 * device/lib/bpx.c: used __data and made bpx char for mcs51
1848 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
1849 (createFunction): fixed bug with xstackPtr
1850 * src/SDCCcse.c: corrected comments
1851 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
1852 (killDeadCode, eBBlockFromiCode): removed unused code
1853 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
1855 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
1856 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
1857 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
1858 (genModOneByte): fixed warning in MSVC
1859 * src/mcs51/main.c (): added comments
1860 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
1862 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1864 * src/SDCCmain.c (linkEdit): oops, changed one line too many
1866 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
1868 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
1870 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
1872 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
1873 characters arrays of larger size than the declared one.
1875 2005-04-10 Borut Razem <borut.razem AT siol.net>
1877 * src/pic/gen.c (genInline),
1878 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
1879 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
1880 (findNextInstruction), (findPrevInstruction),
1881 (findInstructionUsingLabel),
1882 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
1883 * src/pic/pcode.c (findLabel): added missing '\n'
1884 * src/src.dsp: added SDCCdwarf2.c to the project
1886 2005-04-09 Borut Razem <borut.razem AT siol.net>
1888 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
1890 2005-04-08 Raphael Neider <rneider AT web.de>
1892 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
1893 into the chain after a given one) and mergeDefmapSymbols (combine
1894 defmap entries for each symbol per pcode)
1895 * (createDefmap): have defmap entries merged in the end
1896 * (defmapReplaceSymRef): split defmap entries covering two accesses to
1897 a symbol before replacing one access type's symbol, merge symbols in
1898 the end (replacement symbol might already have an entry)
1899 * (assignValnums): keep reference to written WREG intact
1901 2005-04-08 Raphael Neider <rneider AT web.de>
1903 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
1906 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
1908 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
1911 2005-04-07 Raphael Neider <rneider AT web.de>
1913 * device/include/pic16/usart.h: added compatibility defines for
1914 devices with more than one USART
1915 * device/include/pic16/pic18f[68][567]20.h: activated above defines
1917 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1919 * device/lib/Makefile.in: updated for port specific include
1921 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1923 * support/regression/ports/mcs51/spec.mk: added mcs51 include
1925 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1927 * device/include/8051.h,
1928 * device/include/8052.h,
1929 * device/include/at89S8252.h,
1930 * device/include/at89c55.h,
1931 * device/include/at89x051.h,
1932 * device/include/at89x51.h,
1933 * device/include/at89x52.h,
1934 * device/include/mcs51reg.h,
1935 * device/include/reg51.h,
1936 * device/include/reg764.h,
1937 * device/include/regc515c.h,
1938 * device/include/sab80515.h: (re)moved these 12 files
1939 * device/include/mcs51/8051.h,
1940 * device/include/mcs51/8052.h,
1941 * device/include/mcs51/at89S8252.h,
1942 * device/include/mcs51/at89c55.h,
1943 * device/include/mcs51/at89x051.h,
1944 * device/include/mcs51/at89x51.h,
1945 * device/include/mcs51/at89x52.h,
1946 * device/include/mcs51/mcs51reg.h,
1947 * device/include/mcs51/reg51.h,
1948 * device/include/mcs51/reg764.h,
1949 * device/include/mcs51/regc515c.h,
1950 * device/include/mcs51/sab80515.h: and added them here
1952 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1954 * device/include/stdarg.h: changed SDCC specific keywords to double
1956 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
1958 * device/include/hc08/mc68hc908gp32.h,
1959 * device/include/hc08/mc68hc908jb8.h,
1960 * device/include/hc08/mc68hc908jkjl.h,
1961 * device/include/hc08/mc68hc908qy.h: fixed comments
1962 * device/include/mcs51/README: updated
1963 * device/include/mcs51/c8051f120.h: added PINRSF
1964 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
1965 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
1966 amidst code. Also inline is not supported.
1968 2005-04-06 Raphael Neider <rneider AT web.de>
1970 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
1971 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
1972 callers stack/frame pointers
1974 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1976 * device/include/pic16/usart.h: added, missing in previous commit,
1977 * device/include/pic16/adc.h: fixed typo,
1978 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
1980 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
1982 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
1983 uninitialized because a bug appears with gplink
1984 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
1985 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
1986 complains for unrecognised option
1988 2005-04-05 Raphael Neider <rneider AT web.de>
1990 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
1991 structs as well (using memcpy)
1992 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
1993 on ISRs (GOTO has no label)
1994 * src/pic16/device.h: added OF_OPTIMIZE_DF
1995 * src/pic16/main.c: added compiler switch --optimize-df to enable the
1996 new data flow analysis/optimization
1997 * src/pic16/pcode.c: added (prototypes for and implementation of)
1998 dataflow analysis functions, fixed pCodeInstructions' inCond and
1999 outCond values, made RCALL a branch instruction
2000 * (pic16_unlinkpCode): keep C line if possible
2001 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2002 C line moved if possible
2003 * (pic16_getRegFrompCodeOp): NEW, improved version of...
2004 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2005 to use new pic16_getRegFrompCodeOp (works for more SFRs)
2006 * (pic16_BuildFlow): fixed skip instructions with label (did not start
2008 * (pic16_getJumptabpCode): NEW, needed in...
2009 * (LinkFlow): fixed handling of jumptables, calls and conditional
2011 * (pic16_InsertCommentAfter): NEW
2012 * (pic16_pCodeReplace): made verbose and flow preserving
2013 * (AnalyzeFlow): added call to data flow analysis
2014 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2015 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2016 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2018 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2020 * src/SDCCast.c (decorateType): fixed bug #1105626
2022 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2024 * device/include/asm/pic16/features.h,
2025 * pic18f*.h headers,
2026 * device/include/pic16/adc.h,
2027 * device/include/pic16/delay.h,
2028 * device/include/pic16/i2c.h,
2029 * device/include/pic16/malloc.h,
2030 * device/include/pic16/stdio.h,
2031 * device/include/pic16/stdlib.h,
2032 * device/include/pic16/string.h,
2033 * device/lib/pic16/libc/stdio/printf_tiny.c,
2034 * device/lib/pic16/libc/stdio/printf_small.c,
2035 * device/lib/pic16/libc/stdio/strmgpsim.c,
2036 * device/lib/pic16/libc/stdio/strmmssp.c,
2037 * device/lib/pic16/libc/stdio/strmusart.c,
2038 * device/lib/pic16/libc/stdio/vfprintf.c,
2039 * device/lib/pic16/libc/stdlib/ltoa.c,
2040 * device/lib/pic16/libc/stdlib/putchar.c,
2041 * device/lib/pic16/libc/stdlib/x_ftoa.c,
2042 * device/lib/pic16/libc/stdlib/memchrpgm.c,
2043 * device/lib/pic16/libc/stdlib/memchrram.c,
2044 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2045 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2046 * device/lib/pic16/libio/adc/adcbusy.c,
2047 * device/lib/pic16/libio/adc/adcread.c,
2048 * device/lib/pic16/libio/adc/adcsetch.c,
2049 * device/lib/pic16/libio/usart/ubaud.c,
2050 * device/lib/pic16/libio/usart/ubusy.c,
2051 * device/lib/pic16/libio/usart/udrdy.c,
2052 * device/lib/pic16/libio/usart/uopen.c,
2053 * device/lib/pic16/libio/usart/uputc.c,
2054 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2055 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2056 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2057 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2058 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2059 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2060 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2061 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2062 specific keywords to double underlined form,
2063 * device/lib/pic16/libc/Makefile.rules,
2064 * device/lib/pic16/libsdcc/Makefile.rules,
2065 * device/lib/pic16/libm/Makefile,
2066 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2067 to compile with C standard set in Makefile.common
2068 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2069 rand.c and crc.c in compilation process,
2070 * device/lib/pic16/libsdcc/int/divuint.c,
2071 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2072 `c' from signed to unsigned,
2073 * device/lib/pic16/startup/crt0.c,
2074 * device/lib/pic16/startup/crt0i.c,
2075 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2076 keywords to double underlined form, bug fixes in _do_cinit function
2077 which prevented the correct initialization of the .idata segment,
2078 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2079 core to enter a infinite loop
2080 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2082 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2084 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2086 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2088 * device/include/Makefile.in: add support for hc08 subdirectory
2089 * device/include/hc08/: new subdirectory
2090 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
2091 Lucas Loizaga, thanks!
2092 * device/include/hc08/mc68hc908qy.h,
2093 * device/include/hc08/mc68hc908gp32.h,
2094 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
2095 their own directory. Changed internal macro names to use the compiler
2096 reserved namespace. Changed SDCC specific keywords to double
2098 * device/include/math.h,
2099 * device/include/malloc.h,
2100 * device/include/stdarg.h,
2101 * device/include/stdbool.h
2102 * device/include/string.h,
2103 * device/include/tinibios.h,
2104 * device/include/ds400rom.h,
2105 * device/include/8051.h,
2106 * device/include/8052.h,
2107 * device/include/80c51xa.h,
2108 * device/include/at89c55.h,
2109 * device/include/at89S8252.h,
2110 * device/include/at89x51.h,
2111 * device/include/at89x52.h,
2112 * device/include/ds80c390.h,
2113 * device/include/reg764.h,
2114 * device/include/regc515c.h,
2115 * device/include/sab80515.h,
2116 * device/include/mcs51/c8051f000.h,
2117 * device/include/mcs51/c8051f018.h,
2118 * device/include/mcs51/c8051f020.h,
2119 * device/include/mcs51/c8051f040.h,
2120 * device/include/mcs51/c8051f060.h,
2121 * device/include/mcs51/c8051f120.h,
2122 * device/include/mcs51/c8051f300.h,
2123 * device/include/mcs51/c8051f310.h,
2124 * device/include/mcs51/c8051f320.h,
2125 * device/include/mcs51/c8051f330.h,
2126 * device/include/mcs51/c8051f350.h,
2127 * device/include/z180.h: Changed SDCC specific keywords to double
2130 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
2132 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
2134 * (pic16_assignConfigWordValue): disable testing of configuration
2135 register value with config mask,
2136 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
2137 function with port->fun_prefix,
2138 * (genFunction): when generating a naked interrupt function never
2139 create an absolute segment placed in interrupt vector address, place
2140 the actual interrupt function at IVA instead, when an interrupt
2141 function is generated with unspecified interrupt then do not create
2142 the absolute section,
2143 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
2144 code for generating a call to generic pointer get/put function with
2145 a call to function pic16_callGenericPointer(),
2146 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
2147 the call to the generic pointer get/put functions with prefixing the
2148 function name with port->fun_prefix,
2149 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
2150 * src/pic16/main.c (_process_pragma): prefix function with
2152 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
2153 calling assembler, old 18Fxxxx macro is deprecated,
2154 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
2155 PC_ASMDIR in while condition,
2156 * (findInstruction): add PC_ASMDIR in while condition,
2157 * (buildCallTree): prefix main with port->fun_prefix,
2158 * (pic16_pCode2str): fixed bug that didn't emit the memory access
2159 identifier for variable with banked access in instructions BTFSS,
2160 BTFSC, BCF, BSF, BTG
2161 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
2162 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
2163 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
2164 perform optimization when enviroment variable NO_REG_OPT is set,
2165 * (insideLRBlock): NEW, return 1 if register is inside an
2166 INF_LOCALREGS block,
2167 * (RemoveRegFromLRBlock): remove a register that is completely
2168 eliminated by register optimization, but it is still left in local
2169 register store/restore in/from stack block,
2170 * (Remove2pcodes): after removing register, check to see if it
2171 should be removed from local register store/restore in/from stack
2173 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
2174 DUMMY_READ_VOLATILE,
2176 * device/include/pic16/adc.h: minor prototype modifications and
2178 * device/include/pic16/malloc.h: added GPL notice various
2180 * device/include/pic16/stdint.h: NEW, standard header for ints
2181 * device/include/pic16/delay.h: NEW, header for delay functions,
2182 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
2184 * device/include/pic16/signal.h: NEW, header providing helper macros
2185 for implementing signal handlers,
2186 * device/include/pic16/stdio.h: added prototypes for functions,
2187 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
2188 prototypes for stdin and stdout, added macro PUTCHAR to
2189 automatically implement putchar function prototype,
2190 * device/include/pic16/usart.h: modified and updated USART library,
2191 * device/lib/pic16/libio/adc/,
2192 * device/lib/pic16/libio/i2c: some modifications to improve library
2194 * device/lib/pic16/libc/stdio/: modifications for the new printf*
2195 family of functions,
2196 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
2197 family of functions and other sources,
2198 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
2199 of the PIC18Fxx[28] devices,
2200 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
2201 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
2202 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
2203 _do_cinit function, because the previous failed when local variables
2204 where not placed in the same memory bank,
2205 * device/lib/pic16/libsdcc/char/: various modifications to improve
2206 library performance,
2207 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
2208 information on the new functions of the c library and more...
2210 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2212 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
2214 2005-03-26 Raphael Neider <rneider AT web.de>
2216 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
2217 if condition == CARRY)
2218 * (genCmp): adapted to new genSkipc semantics
2219 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
2220 on rIfx (genCmp was broken)
2222 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2224 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
2225 * src/z80/main.c (_keywords[]),
2226 * src/SDCCglobal.h (struct options),
2228 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
2229 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
2230 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
2231 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
2232 always available in leading double underscore form. The C99 support is
2233 mostly missing, but it's a start.
2234 * support/regression/tests/bug-227710.c: fixed nonconforming use of
2235 reserved identifier "__data".
2237 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2239 * src/mcs51/peeph.def: fixed bug 1170013
2241 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
2243 * device/include/mcs51reg.h: fixed bug 842007
2245 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2247 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
2250 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2252 * src/port.h (struct PORT),
2253 * src/avr/ralloc.c (avr_assignRegisters),
2255 * src/ds390/ralloc.c (ds390_assignRegisters),
2257 * src/hc08/ralloc.c (hc08_assignRegisters),
2259 * src/mcs51/ralloc.c (mcs51_assignRegisters),
2261 * src/pic/ralloc.c (pic14_assignRegisters),
2263 * src/pic16/ralloc.c (pic16_assignRegisters),
2265 * src/xa51/ralloc.c (xa51_assignRegisters),
2267 * src/z80/ralloc.c (z80_assignRegisters),
2269 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
2270 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
2272 * src/SDCCdflow.c (computeDataFlow),
2274 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
2276 * src/SDCCcflow.c (*),
2278 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
2279 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
2280 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
2281 immedDom() returning wrong block; probably fixes bug #1160833)
2283 2005-03-20 Borut Razem <borut.razem AT siol.net>
2285 * support/scripts/inc2h.pl: WIN32 port
2287 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
2289 * device/lib/makefile.in: added abs.c and labs.c
2291 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2293 * device/include/stdint.h: added
2294 * device/lib/abs.c: added
2295 * device/lib/labs.c: added
2296 * device/include/stdlib.h: added abs() and labs() prototypes
2297 * device/lib/libsdcc.lib: added abs and labs
2298 * device/include/float.h,
2299 * device/lib/_fsmul.c,
2300 * device/lib/printf_fast.c,
2301 * device/lib/printf_tiny.c: updated comments
2303 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2305 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
2308 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2310 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
2311 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
2313 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
2315 * device/lib/printf_large.c: removed inline assembly for portability and
2316 readability. Use printf_fast if speed or size are more important.
2317 * src/pic16/gen.c: removed conditions around use of DEBUGpc
2318 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
2320 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
2322 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
2323 prevent compiler warning
2325 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2327 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
2328 moved to level 0 and declared as static. Also they are explicit
2329 placed in access bank. This was necessery because some times they
2330 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
2331 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
2332 optimizations. Currently only compare to unsigned char is implemented,
2333 * src/pic16/gen.c: added fReturnIdx array,
2334 * (struct resolvedIfx) is moved to gen.h and made public,
2335 * (struct _G): added sregsAlloc and sregsAllocSet fields,
2336 * (aopForSym): added an optimization to directly store in stack of
2337 the operand of a SEND iCode,
2338 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
2339 but as registers instead (AOP_REG) using the fReturnIdx array,
2340 * (pic16_freeAsmop): remove the freed register from the
2341 _G.sregsAlloc field,
2342 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
2343 a compare of 'WREG',
2344 * (pic16_popGetTempRegCond): changed function prototype, now
2345 function takes also a bitVector argument v which holds the current
2346 set of registers that are allocated for stack access by aopForSym,
2347 registers allocated in aopForSym for accessing stack symbols are not
2348 any more part of the functions usedRegs field,
2349 * (genCall): some times aopOp is called for a stack variable to be
2350 send, aopForSym might perform the push, if this is true make sure
2351 that genCall doesn't push the variable twice by testing _G.resDirect,
2352 * (genFunction): changed testing for unspecified interrupt number
2353 from 256 to INTNO_UNSPEC,
2354 * modified selection scheme of frame pointer generation. Previously
2355 if function did use local registers a frame pointer was generated,
2356 now a frame pointer is generated only if function has arguments
2357 (that need PLUSW2 register access), or has stack arguments, or the
2358 compiler is not instructed to omit the frame pointer,
2359 * (genEndFunction): before restoring local registers that were saved
2360 in the function preamble, also restore the registers that *might*
2361 have been allocated for stack access,
2362 * (genRet): removed some old comments,
2363 * (genCmp, the active (RN's) version): added a call to the
2364 pic16_genCmp_special function to perform the compare with a more
2365 robust and optimized way,
2366 * (genInline): a feature has been added in inline code generation,
2367 which allows a wildcard variable substitution when writing inline
2368 assembly. Code is incomplete and experimental therefore undocumented,
2369 * (genCast): changed order of aopOp for result and right to allow
2370 aopForSym to directly load the result if possible,
2371 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
2372 perform an optimized compare on some selected special occasions,
2373 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
2374 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
2375 generate an IVT any more,
2376 * src/pic16/main.c (pic16_optionsTable): added command line option
2378 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
2379 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
2381 * src/pic16/NOTES: Raphael Neider added in list of active developers
2382 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
2383 jumptable_end to prevent bug #,
2384 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
2385 inCond and outCond fields,
2386 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
2387 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
2388 turn off register spilling,
2389 * (packRegsForOneUse): synced with other ports' versions although it
2390 is not used currently,
2391 * (pic16_packRegisters): added an optimization while reading
2392 structure bitfields, some registers may be saved (malloc code is
2393 decreased by 80 bytes)
2395 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
2397 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
2398 left is a bitfield, if yes, then don't optimize assignment. Perhaps
2399 this can be optimized more?
2401 2005-03-10 Raphael Neider <rneider AT web.de>
2403 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
2404 genNearPointerGet): (hopefully) fixed access to bitfields via
2405 pointers (p->bitN = x; and x = p->bitN; failed)
2407 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
2409 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
2411 2005-03-09 Raphael Neider <rneider AT web.de>
2413 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
2415 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
2417 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
2418 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
2419 (regTypeNum): set REG_BIT type if necessary
2420 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
2421 * support/regression/tests/critical.c: check bug 1144613
2423 2005-03-02 Raphael Neider <rneider AT web.de>
2425 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
2427 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2429 * src/avr/ralloc.c (serialRegAssign),
2430 * src/ds390/ralloc.c (serialRegAssign),
2431 * src/hc08/ralloc.c (serialRegAssign),
2432 * src/mcs51/ralloc.c (serialRegAssign),
2433 * src/pic/ralloc.c (serialRegAssign),
2434 * src/pic16/ralloc.c (serialRegAssign),
2435 * src/xa51/ralloc.c (serialRegAssign),
2436 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
2438 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2440 * src/SDCCast.c (decorateType): fixed bug 1124787
2442 2005-02-20 Hubert Sack <sack AT digiplan.de>
2443 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2445 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
2448 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2450 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
2451 to keep the correct label reference count when adding/removing references
2452 to labels. A peephole file using this is appended to patch #1144962.
2454 2005-02-14 Raphael Neider <rneider AT web.de>
2456 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
2457 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
2458 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
2459 retrievals of result operand's value on assignment
2461 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
2463 * device/include/pic16/string.h: modified prototype for memccpy()
2464 to memccpy(void *, void *, char, size_t)
2465 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
2466 check whether to omit frame pointer or not,
2467 * (genInline): convert all occurences of "\n" to LF in inline
2468 assembler blocks, this helps formatting the inline text,
2469 * (pic16_loadFSR0): modified prototype,
2470 * (genNearPointerGet, genNearPointerSet): reorganization of code,
2471 removed some 8051 legacy code,
2472 * (genPackBits): enabled handling bitfields exceeding one byte in size,
2473 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
2474 before allocating temporary registers in functions,
2476 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2478 * support/regression/tests/bitvars.c: corrected the "fix"
2480 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
2482 * support/regression/tests/bitvars.c,
2483 * support/regression/tests/bitwise.c,
2484 * support/regression/tests/rotate.c: "fixed" problems on Alpha
2486 2005-02-10 Raphael Neider <rneider AT web.de>
2488 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
2489 different size for Alpha
2490 * src/pic16/gen.c (genCmpEq) : improved compare with 0
2492 2005-02-09 Raphael Neider <rneider AT web.de>
2494 * src/SDCC.lex(doPragma) : save and restore warning options as well
2495 (also added new stack plus clone- and copyAndFreeSDCCERRG())
2496 * have #pragma less_pedantic set the errorlevel to WARNING
2498 * (cloneOptimize) : fixed wrong malloc's size
2499 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
2500 facilitate correct handling of #pragma (save|restore)
2502 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
2504 * src/mcs51/gen.c: removed non-standard C nameless struct/union
2506 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
2508 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
2510 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
2512 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
2514 2005-02-02 Raphael Neider <rneider AT web.de>
2516 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
2517 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
2518 * (pic16_storeForReturn): fixed to allow returning function pointers
2519 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
2520 * device/include/pic16/{stddef.h,stdbool.h}: added
2522 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
2524 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
2526 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
2528 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
2529 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
2530 appeared to be required
2532 2005-01-31 Borut Razem <borut.razem AT siol.net>
2534 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
2535 include/mcs51 and include/z80 directories to the package
2537 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2539 * src/hc08/gen.c (genFunction): fixed bug #1112752
2541 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2543 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
2545 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2547 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
2549 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
2551 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
2553 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
2555 * device/include/c8051fxxx.h: removed these 6 files
2556 * device/include/mcs51/c8051fxxx.h: added these 11 new files
2558 2005-01-26 Raphael Neider <rneider AT web.de>
2560 * src/pic16/gen.c (genAssign): fixed assignment from longs
2561 in codespace (were cut to three bytes)
2562 * (genDummyRead): implemented (except for CODESPACE...),
2564 * src/pic16/glue.c (emitStatistics): beautified
2565 * device/lib/pic16/libm/Makefile: added include path
2567 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2569 * src/z80/gen.c (aopPut): fixed bug #1103902
2571 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2573 * device/lib/expf.c: fixed bug #1095792
2575 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
2577 * device/lib/pic16/libm: added Math library sources
2579 2005-01-24 Raphael Neider <rneider AT web.de>
2581 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
2582 to enable upcast to pCodeOpReg2 (there is no type tag to
2583 differenciate the two and pic16_popGet2p cast into PCOR2)
2584 * src/pic16/main.c (_process_pragma): fixed another malloc bug
2585 (sizeof(sectNames) changed to sizeof(sectName))
2586 Both patches fix segfaults under MinGW.
2588 2005-01-23 Raphael Neider <rneider AT web.de>
2590 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
2591 Safe_[mc]?alloc()'ed variables
2592 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
2593 of (byte sized) temporaries (assign them to WREG for now)
2594 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
2595 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
2596 this might fix SIGSEGVs on MinGW...
2597 * src/SDCCopt.c (killDeadCode): restored original behaviour
2598 (volatile operands might get thrown away though)
2600 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
2602 * src/pic16/gen.c: fixed bug #1106975,
2603 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
2604 pointer update, INTCON is saved, global interrupts are disabled and
2605 restored after updateing TOS.
2606 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
2607 * added function attribute 'shadowregs' to take advantage of shadow
2609 * added function attribute 'wparam' as an alternative to the wparam
2611 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
2612 user declares a non-ISR function as 'shadowregs',
2613 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
2615 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
2617 * .version: bumped version number to 2.4.8
2618 * device/lib/pic16/pics.all: list of PIC18F devices supported by
2620 * device/lib/pic16/libio/i2c/: I2C module support library,
2621 * device/include/pic16/i2c.h: I2C support library header,
2622 * device/lib/pic16/libc/stdio/: standard IO support sources,
2623 * (printf_small.c): printf_small() source, supports float print,
2624 * (printf_tiny.c): printf_tiny() source, does not support floats,
2625 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
2626 enable global optimizations for entire library source, other
2627 Makefiles in the source tree are also modified to reflect this,
2628 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
2630 * doc/sdccman.lyx: updated to reflect new changes,
2631 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
2632 sym->onStack if-case,
2633 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
2634 sbit, idata, _idata, xdata, _xdata,
2635 * added pragma library, to link an external library, (see doc),
2636 * removed command line options, --pomit-config-words, --pomit-ivt,
2637 --pleave-reset-vector,
2638 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
2639 when calling assembler to reflect memory model used, also define
2640 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
2641 reflect stack model used,
2642 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
2643 on stack return NULL,
2645 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2647 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
2648 of the operands is volatile. Fixes #1020220
2650 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2652 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
2653 * (OptimizeRegUsage): make sure that there is really no other flow where
2654 the first pCode is used
2656 2005-01-22 Raphael Neider <rneider AT web.de>
2658 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
2659 to fix #1106967 (pCode->seq are not set up correctly)
2661 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2663 * src/SDCCglue.c (glue): make sure code area is declared before the
2664 static initialization area.
2666 2005-01-21 Raphael Neider <rneider AT web.de>
2668 * device/lib/Makefile.in: fixed test for pic16 install dir
2669 * device/lib/pic16/*/Makefile*: modified compile flags to enable
2671 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
2672 added --optimize-goto compiler switch and pragma wparam documentation
2673 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
2674 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
2675 and PRODH closing bug #1071770 (peephole optimizer)
2677 2005-01-19 Raphael Neider <rneider AT web.de>
2679 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
2680 cmdLine buffers (used when calling sdcpp...) are large enough
2681 (MAX_PATH=256 truncates arguments leading to system halts when
2683 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
2684 * (genUminus): rewritten to for efficiency
2685 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
2686 used uninitialized in some cases)
2687 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
2688 copy the third byte from the int -- now assumes 0x80 (data memory)
2689 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
2690 operands (genAddLit expects the iCode's operands to swapped as
2691 well), fixed leftover bytes (crashed for short left operands)
2692 * (pic16_genMinusDec): performance improvements, removed false
2694 * (pic16_genMinus): fixed to cope with differently sized operands
2695 * src/pic16/glue.c (pic16_glue): added new banksel optimization
2697 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
2698 * src/pic16/graph.[ch]: implementation of directed graphs, used by
2699 new banksel optimization
2700 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
2701 analysis for temporary registers (segfaults...)
2702 * src/pic16/peeph.def: added rule
2704 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
2706 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
2707 which converts a float number to its ASCII representation
2708 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
2709 functions to convert the fractional and integer part of a float to ASCII,
2710 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
2711 realloc.c): added _MALLOC_SPEC to explicit place variables in data
2713 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
2715 * device/include/pic16/adc.h: added GPL info,
2716 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
2717 a pCodeOp as tested operand,
2718 * (genNearPointerGet): optimized bit testing, does not use
2719 intermediate register for bit value, test directly instead with
2720 BTFSS, BTFSC, works only for single bits,
2721 * (genpic16Code): dump the name of the iCode in the asm,
2722 * src/pic16/ralloc.c (decodeOp): removed static declaration and
2723 renamed to pic16_decodeOp,
2724 * (serialRegAssign): do not allocate a temporary register for iCode
2725 sequences that test a single bit for 1/0
2727 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
2729 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
2730 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
2731 access stack and frame pointers. They are initially assigned to
2732 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
2733 accessing SFRs. Updated all occurences of modification of stack or
2734 frame pointer in gen.c and pcode.c,
2735 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
2736 assigning of a literal value to pointers,
2737 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
2738 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
2741 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
2743 * doc/sdccman.lyx: update documentation about stack pragma, added
2744 some info for stack memory models
2746 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2748 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
2750 2005-01-08 Raphael Neider <rneider AT web.de>
2752 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
2753 udata sections to fix bug #1097823
2755 2005-01-05 Raphael Neider <rneider AT web.de>
2757 * src/pic16/gen.c (genGenericShift): added handling of differently
2758 sized left operand and result
2760 2005-01-04 Raphael Neider <rneider AT web.de>
2762 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
2763 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
2764 to hold the condition bit)
2765 * added new version of genCmp (old code available via #define)
2766 * added new version of genShiftLeft/genShiftRight in a generic
2767 way, now supports shifting by negative values
2768 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
2769 shiftCount (expected by genGenericShift)
2770 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
2771 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
2773 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
2774 is an invalid literal too...)
2776 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
2778 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
2779 from Raphael Neider,
2780 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
2781 for 8-bit literals. This fixes some literal operands which are sign
2782 extended to 16-bits ints when instruction needs only 8-bits.
2784 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
2786 * device/lib/logf.c: added mcs51 assembly version
2787 * device/lib/expf.c: added mcs51 assembly version
2788 * device/lib/_logexpf.c: new shared asm code for expf and logf
2789 * device/include/math.h: add defines for assembly math library
2790 * device/lib/Makefile.in: build new _logexpf.c
2791 * device/lib/libfloat.lib: use new _logexpf.c
2793 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2796 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
2797 device types which have less than 0x7f registers.
2799 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2801 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
2803 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2805 * device/lib/printf_fast.c: only build on supported arch.
2806 * device/lib/printf_tiny.c: only build on supported arch.
2807 * device/lib/printf_fast_f.c: only build if asm float lib
2808 * device/lib/_fsget1arg.c: only build if asm float lib
2809 * device/lib/_fsget2args.c: only build if asm float lib
2810 * device/lib/_fsnormalize.c: only build if asm float lib
2811 * device/lib/_fsreturnval.c: only build if asm float lib
2812 * device/lib/_fsrshift.c: only build if asm float lib
2813 * device/lib/_fsswapargs.c: only build if asm float lib
2814 * device/include/stdio.h: don't provide print_fast,
2815 print_fast_f, print_tiny prototypes if --xstack used
2817 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
2819 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
2820 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
2823 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2825 * device/lib/printf_fast_f.c: same as printf_fast, but
2826 with floating point enabled
2827 * device/lib/printf_fast.c: minor tweaks
2828 * device/include/stdio.h: add printf_fast_f
2830 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2832 * src/SDCCmain.c: make --float-reent default for mcs51
2833 * device/lib/_fsadd.c: added mcs51 assembly version
2834 * device/lib/_fssub.c: added mcs51 assembly version
2835 * device/lib/_fsmul.c: added mcs51 assembly version
2836 * device/lib/_fsdiv.c: added mcs51 assembly version
2837 * device/lib/_fseq.c: added mcs51 assembly version
2838 * device/lib/_fsneq.c: added mcs51 assembly version
2839 * device/lib/_fsgt.c: added mcs51 assembly version
2840 * device/lib/_fslt.c: added mcs51 assembly version
2841 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
2842 * device/lib/Makefile.in: add _fscmp to build
2843 * device/lib/libfloat.lib: add _fscmp to build
2845 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2847 * device/lib/_fs2slong.c: added mcs51 assembly version
2848 * device/lib/_fs2sint.c: added mcs51 assembly version
2849 * device/lib/_fs2schar.c: added mcs51 assembly version
2850 * device/lib/_fs2ulong.c: added mcs51 assembly version
2851 * device/lib/_fs2uint.c: added mcs51 assembly version
2852 * device/lib/_fs2uchar.c: added mcs51 assembly version
2853 * device/lib/_slong2fs.c: added mcs51 assembly version
2854 * device/lib/_sint2fs.c: added mcs51 assembly version
2855 * device/lib/_schar2fs.c: added mcs51 assembly version
2856 * device/lib/_ulong2fs.c: added mcs51 assembly version
2857 * device/lib/_uint2fs.c: added mcs51 assembly version
2858 * device/lib/_uchar2fs.c: added mcs51 assembly version
2859 * device/include/float.h: added #define to select asm vs c
2861 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
2863 * device/lib/printf_fast.c: improvements to float output
2864 * device/include/float.h: add defines for assembly float library
2865 * device/lib/_fsget1arg.c: receive 1 float arg
2866 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
2867 * device/lib/_fsnormalize.c: normalize a float
2868 * device/lib/_fsreturnval.c: return float, various helper routines
2869 * device/lib/_fsrshift.c: right shift a float's mantissa
2870 * device/lib/_fsswapargs.c: swap 2 floats
2871 * device/lib/Makefile.in: build these 6 new files for mcs51
2872 * device/lib/libfloat.lib: add these 6 files to the library
2874 2004-12-26 Borut Razem <borut.razem AT siol.net>
2876 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
2879 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
2881 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
2882 and fully reentrant and register bank neutral.
2883 * device/lib/printf_fast.c: added float (not enabled by default),
2884 added compact/slower integer (also not enabled by default),
2885 improved size/speed of fast integer code, other minor changes
2886 * device/include/stdio.h, device/lib/Makefile.in,
2887 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
2889 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
2891 * src/pic16/pcode.c: declaring variables other than at the start of a
2892 block is not supported in C by VC6.
2894 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
2896 * applied a previous patch from Raphael Neider that wasn't included
2897 in the previous commits, which fixes infinite loops within jumptable
2899 * made some fixes that previous patches introduced
2901 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
2903 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
2904 that fixes an issue with AOP_PCODE asmop's offset,
2905 * (pic16_popCopyReg): update instance field too,
2906 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
2907 function of pic port,
2908 * (genCmp, genAnd, genAssign),
2909 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
2911 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
2913 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
2914 variables initial values to idata section,
2915 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
2916 variables in some functions. This utilizes parmBytes field of iCode
2917 structure to hold the offset of the variable in stack. (might be
2918 able to use the stack field too?)
2919 * applied patch from Raphael Neider # ### , # ###
2920 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
2921 variable initial values in idata section,
2922 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
2923 for static variables with initial value
2924 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
2925 applied fix in while loop from Raphael Neider.
2927 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
2929 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
2930 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
2931 * src/ds390/ralloc.c (serialRegAssign): spill bits
2932 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
2933 * support/Util/SDCCerr.c,
2934 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
2935 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
2936 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
2938 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
2940 * device/include/sdcc-lib.h: inserted LGPL, added includes
2941 asm/ds390/features.h and asm/mcs51/features.h
2942 * device/include/asm/default/features.h,
2943 * device/include/asm/gbz80/features.h,
2944 * device/include/asm/z80/features.h: added empty _AUTOMEM
2946 * device/include/asm/ds390/features.h,
2947 * device/include/asm/mcs51/features.h: added files with defines for
2948 _AUTOMEM and _STATMEM indicating automatic and static storage class
2949 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
2950 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
2951 * src/SDCCicode.c (geniCodeCast),
2952 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
2953 * src/SDCCloop.c (loopInduction): removed unused variable lr
2954 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
2955 to convertToFcall to include char modulo (RFE 1065037), added check
2956 if left operand is unsigned and use abs of literal value
2957 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
2958 as it doesn't work after conversion from peephole.def to peephole.rul
2959 * src/mcs51/gen.c (toBoolean): added check for size,
2960 (genModOneByte): optimized code for signed char modulo a literal
2961 power of 2 (thanks to Hubert Sack),
2962 (genRRC): removed unnecessary "clr c",
2963 (genRLC): replaced "add a,acc" with cheaper "rlc a"
2964 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
2966 swapped rules 256.c and 256.d,
2967 extended 256.d by using new multiple checks (thanks Erik),
2968 added rules 256.e and 256.f,
2969 updated rule 261.a and 261.b to new generated code
2970 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
2972 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2974 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
2975 induction related bugs, including first part of bug #1074377
2977 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
2979 * applied patch from bug-report #1076292,
2980 * applied patches for genAnd and Goto-optimizations for Raphael
2982 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
2983 dump a less iCode information,
2984 * src/pic16/device.h (pic16_options_t): added field debgen,
2985 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
2986 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
2987 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
2989 * (various functions): added macros FENTRY and FENTRY2 to functions,
2990 to emit function prologue,
2991 * (various functions): fixed indentation,
2992 * (genNearPointerGet): fixed loading of FSR0,
2993 * (genPackBits): applied patch from Raphael Neider to fix updating
2994 of FSR0 and touching only the modified bits,
2995 * src/pic16/genarith.c (various functions): added macros FENTRY to
2996 emit function prologue in comments,
2997 * src/pic16/pcode.h: added functions debugf2, debugf3,
2998 * src/pic16/ralloc.c: partial fix for packForPush caused
3001 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3003 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3004 <stsp AT users.sourceforge.net> with reversed byte order
3005 * support/regression/tests/rotate.c: added (ds390 skips some tests)
3007 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3009 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3011 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3012 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3014 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3016 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3018 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3020 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3022 (setFromConditionArgs): friendly operand parser for peephole rules,
3023 (operandBaseName, operandsNotRelated): new peephole condition
3024 "operandsNotRelated" -- similar to "operandsNotSame", but takes
3025 architecture specific register naming into account, handles n-way
3026 comparisons, and supports quoted literals
3027 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3029 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3031 * src/mcs51/peeph.def: fixed bug #1076940
3033 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3035 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3037 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3039 Adding support for replacing ljmps with sjmps in jumptables
3040 generated for switch statements. For now you need to set the
3041 environment variable SDCC_SJMP_JUMPTABLE to enable this.
3042 Now 4 algorithms for mcs51 jumptable generation are used:
3043 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3044 addresses loaded pc-relative for up to 112 cases and stack-pushing
3045 target addresses loaded with offset from dptr for up to 256 cases.
3047 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3048 * src/mcs51/main.c: adapted constants for switch table generation
3049 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3051 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3053 * device/lib/printf_large.c (_print_format): fixed bug 1073386
3054 * support/regression/tests/bug1057979.c: added test for bug 1073386
3056 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3058 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3061 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3063 * src/pic16/device.h,
3064 * src/pic16/genarith.c,
3067 * src/pic16/pcode.c: applied patches #1068154 and #1070213
3069 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3071 Large cummulative patch for pic16 port.
3072 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3073 to call when a stack overflow occurs,
3074 * (malloc.h): added CVS Id tag,
3075 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3077 * added libc directory. The current version of LibC contains string
3078 functions, ctype functions and macros and some functions of the
3079 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3080 be extensively tested in the future. Standard disclaimer here.
3081 Library is not automatically build yet. But one can build it by
3082 invoking 'make' inside the libc directory.
3083 * added ADC library under libio. Preliminary version yet.
3085 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3086 * src/pic16/gen.c (aopForRemat): asmop size is filled by
3087 aopForRemat() now and not by pic16_aopOp(),
3088 * (pic16_popGetTempReg): removed warning messgae when allocating
3089 temporary registers, its a buggy feature and will be removed,
3090 * (pic16_popGet): set register instance field in AOP_CRY,
3091 * (pic16_outBitC): fixed for results in size greater than 1,
3092 * (genUminusFloat): fixed for pic16, ported code from mcs51,
3093 * (pic16_storeForReturn): optimized return of 0,
3094 * (genCmp): experimental code for new genCmp which uses PIC18's
3095 special compare&skip instructions. Initial tests fail some times
3096 with variables grater than 1 byte in size, so new code is disabled,
3097 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
3099 * (genCast): began a fix to optimize the casting of a bit to another
3100 bit, now assigning a bitfield to another bitfield will fail, sorry,
3101 * src/pic16/main.c: disabled the use of lr-support feature,
3102 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
3103 * added some function prototypes, added function _debugf prototype,
3104 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
3105 bits with offset (case PO_GPR_BIT),
3106 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
3108 * (isBankInstruction): modified to return 0 for no banking instruction,
3109 and 1 for banking instruction,
3110 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
3111 caused stop processing pCodes after a inline assembly block,
3112 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
3113 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
3114 registers when it shouldn't,
3115 * src/pic16/ralloc.c (allocReg): add preliminary support for
3116 supporting a limited set of temporary registers,
3118 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3120 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
3121 genDataPointerSet): ensure assignments always copy in MSB to LSB
3123 (loadRegFromAop): recognize CLRH optimization,
3124 (genFunction): optimize RECEIVE iCodes in reentrant functions
3126 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3128 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
3129 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
3131 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
3132 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
3133 contiguous with data
3135 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3137 * device/lib/_gptrget.c (_gptrget),
3138 * device/lib/_gptrgetc.c (_gptrgetc),
3139 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
3140 instead of sjmp to ret
3141 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
3142 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
3144 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3146 * .version: bumped version to 2.4.7
3147 * device/lib/_gptrget.c (_gptrget): is now _naked
3148 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
3149 * device/lib/_gptrput.c (_gptrput): is now _naked
3150 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
3151 (createFunction): fixed xstack
3152 * src/SDCCglue.c (emitMaps): set allocation required for bit area
3153 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
3155 (geniCodeCritical): store original interrupt state in an iTemp bit
3156 var unless stack-auto
3157 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
3158 * src/SDCCmain.c (setIncludePath): added include/target to search path
3159 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
3160 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
3162 (processFuncArgs): put bit vars in bit area
3163 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
3164 unsaveRBank): fixed xstack,
3165 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
3166 (genFunction, genEndFunction): fixed xstack,
3167 (genAssign): optimization don't walk backwards through mem
3168 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
3169 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
3170 * support/regression/Makefile: also make library (for stack-auto) when
3171 making "all" and added "test-mcs51-xstack-auto"
3172 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
3173 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
3174 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
3175 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
3176 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
3177 make-library by MAKE_LIBRARY
3178 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
3179 regression tests for xstack
3180 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
3181 * support/regression/tests/critical.c: test for critical on mcs51
3183 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3185 * support/regression/ports/ucz80/spec.mk: use include and lib files from
3186 built version of sdcc instead of installed version
3188 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3190 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
3191 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
3193 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
3194 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
3195 WARNING: remove device/lib/build/z80/printf.o by hand when
3196 updating from previous build!
3197 * device/lib/z80/printf.c: updated comment
3198 * support/regression/tests/bug1057979.c: test all ports now
3199 * support/regression/tests/bug1065458.c: file added
3201 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3203 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
3204 *_start and *_end symbols for static functions
3206 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
3208 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
3209 and search crt0.o in all library paths,
3210 (setIncludePath): proper handling of --nostdinc,
3211 (setLibPath): proper handling of --nostdlib
3212 * support/regression/Makefile,
3213 * support/regression/ports/ds390/spec.mk,
3214 * support/regression/ports/gbz80/spec.mk,
3215 * support/regression/ports/hc08/spec.mk,
3216 * support/regression/ports/mcs51/spec.mk,
3217 * support/regression/ports/mcs51-large/spec.mk,
3218 * support/regression/ports/mcs51-stack-auto/spec.mk,
3219 * support/regression/ports/z80/spec.mk: use include and lib files from
3220 built version of sdcc instead of installed version
3221 * doc/sdccman.lyx: fixed typo in --nostdinc
3223 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
3228 * src/pic/gen.c : added support to generate code for struct bit fields.
3230 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3232 * as/xa51/xa_version.h,
3233 * device/include/errno.h,
3234 * device/include/regc515c.h,
3235 * device/lib/_itoa.c,
3236 * device/lib/_ltoa.c,
3237 * device/lib/ser_ir_cts_rts.c,
3238 * sim/ucsim/xa.src/glob.cc,
3239 * sim/ucsim/xa.src/inst_gen.cc,
3240 * sim/ucsim/xa.src/xa_bit.cc,
3241 * sim/ucsim/xa.src/xa_sfr.cc,
3242 * sim/ucsim/z80.src/inst_dd.cc,
3243 * sim/ucsim/z80.src/inst_fdcb.cc,
3244 * support/scripts/keil2sdcc.pl,
3245 * src/pic16/pic16.dsp,
3246 * src/pic16/pic16a.dsp: corrected cvs line endings
3247 * device/lib/printf_large.c: fixed bug 1057979
3248 * src/pic16/gen.c: fixed non-C standard code
3249 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
3250 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
3251 * support/regression/ports/mcs51/support.c: reload T1 asap
3252 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
3253 pdata use and clear idata startup behaviour
3254 * support/regression/tests/bug1057979.c: added
3256 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
3258 * device/examples/ds390/ow390/ad26.h,
3259 * device/examples/ds390/ow390/cnt1d.h,
3260 * device/examples/ds390/ow390/crcutil.c,
3261 * device/examples/ds390/ow390/ownet.h,
3262 * device/examples/ds390/ow390/owsesu.c,
3263 * device/examples/ds390/ow390/swt12.h,
3264 * device/examples/ds390/ow390/swtoper.c,
3265 * device/examples/ds390/ow390/temp10.h,
3266 * device/examples/ds390/ow390/thermodl.c,
3267 * device/examples/ds390/tinitalk/tinitalk.dsp,
3268 * device/examples/ds390/tinitalk/tinitalk.dsw,
3269 * device/examples/mcs51/clock/hw.h,
3270 * device/examples/mcs51/simple2/go.bat,
3271 * device/examples/serialcomm/windows/serial.h,
3272 * device/examples/xa51/dummy.c,
3273 * device/examples/xa51/hello.c,
3274 * device/include/80c51xa.h,
3275 * device/include/at89x051.h: corrected cvs line endings
3277 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
3279 * src/pic16/main.c (options): added command line --gstack, to trace
3280 stack over/under flows,
3281 * added pragma 'wparam' to allow passing first byte of function
3282 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
3283 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
3284 call to __gstack_test function and sets up the symbol as extern,
3285 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
3286 * popaop): added call to pic16_testStackOverflow,
3287 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
3289 * (genCall, genPcall): now all parameters are passed via stack
3290 except in functions that are pass to wparam pragma in which WREG is
3292 * (genPcall): REENTRANT flag is checked to see if variable prototype
3293 contains reentrant keyword, don't call a non-reentrant function, via
3294 a reentrant function pointer or vice versa, functions are never
3296 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
3298 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
3299 SIGSEGV when accessing a NULL register stucture,
3300 * (pic16_printGPointerType): modified to handle UPPER modifier for
3301 function initializers, changed prototype of function to simpler one,
3302 * (pic16_printIvalFuncPtr): check to see if function is already
3303 added in externs list,
3304 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
3305 optimized a move from W to SFR with a move to the same register
3307 * device/lib/pic16/debug: NEW directory, contains debug features
3308 which are enabled when linking with libdebug.lib, currently command
3309 line option --gstack enables stack pointer tracing for over/under
3310 flow, corresponding sources are in debug/gstack
3312 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
3314 * doc/sdccman.lyx: updated SDCC version,
3315 * (PIC16 port): update list of command line options,
3316 * src/pic16/device.h (structure pic16_options_t): added field gstack
3317 to enable stack overflow tracing on push/pops,
3318 * src/pic16/device.c (statistics structure): added statistics
3320 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
3321 pic16_dump_int_registers): increase statistics counters for each
3322 * variable which is encountered
3323 * (pic16_dump_usection): emit each .udata variable to its own udata
3325 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
3326 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
3327 parameters via stack, otherwise use old scheme,
3328 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
3329 assembler output file,
3330 * src/pic16/main.c: added command line options --gstack to enable
3331 push/pop tracing for stack overflow,
3332 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
3333 instructions): added size of each instruction,
3334 * (pic16_countInstruction): estimate size of instructions in
3335 the_pFile list, inline assembly blocks are not counted,
3336 * (pic16_FixRegisterBanking): trace previous register usage, when
3337 banksel optimizations is greater than 0, don't emit a redudant
3340 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
3342 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
3343 * src/pic16/ralloc.c : applied same fix for pic16.
3344 * src/pic/gen.c : tidied it up a little.
3346 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3348 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
3349 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
3351 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3353 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
3355 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3357 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
3358 non-reentrant function __modsint in the interrupt function (thus
3359 corrupting math operations during serial I/O)
3360 * device/lib/ser_ir.c: as above, changed buffersize
3361 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
3363 * doc/Makefile: added option -t for rsync
3365 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3367 * src/SDCCast.h (struct ast),
3368 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
3370 2004-10-20 Borut Razem <borut.razem AT siol.net>
3372 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
3375 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
3377 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
3379 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
3380 support functions to replace long sequences of MOVFF's from access
3381 bank registers to stack and vice versa,
3382 * src/pic16/device.h: added new field opt_flags, where optimization
3383 flags can be set to enable certain features,
3384 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
3385 * pBlock, (genFunction, genEndFunction): surroung loop for
3386 saving/loading used registers in stack with PC_INFO pCodes,
3387 INF_LREGS. Code in between can then be optimized by pCode optimizer
3388 to support function calls,
3389 * (genDataPointerSet): fixed bug which loaded float fields in
3390 structures with corrupt data,
3391 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
3392 in a standard way debug info on stderr. Feature used for developing
3394 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
3395 obsolete chunks of code,
3396 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
3397 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
3398 * pic16/src/pcode.c (pic16_newpCodeInfo,
3399 * (pic16_newpCodeOpLocalRegs),
3400 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
3402 * (pic16_pCodeConstString): printing of the initial value of a
3403 symbol as a comment is inhibited since parsing was already done by
3404 copyStr and output is corrupt,
3405 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
3407 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3409 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
3411 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3413 * as/mcs51/lkarea.c: removed old K&R style,
3414 (lnksect): changed check on boundary error,
3415 (lnksect2): changed check on boundary error,
3416 (lnksect2): extend XSTK to end of page if size = 1
3417 * as/mcs51/lkmain.c: removed old K&R style,
3418 (Areas51): create l_IRAM symbol
3419 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
3420 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
3421 model-mcs51-stack-auto, added model-mcs51-xstack-auto
3422 * device/lib/_mullong.c: added version to be compiled with xstack
3423 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
3424 * device/lib/mcs51/crtxclear.asm: clear pdata as well
3425 * device/lib/mcs51/crtxstack.asm: fixed comment
3426 * src/SDCCglue.c: maxInterrupts defaults to 0,
3427 (emitMaps): added pdata,
3428 (createInterruptVect): (re)moved default,
3429 (glue): added pdata,
3430 (glue): moved __start__xstack to XSTK with default size 1
3431 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
3432 and options.float_rent when options.stackAuto is set,
3433 (linkEdit): only write XDATA_NAME if provided on command line
3435 * src/SDCCmem.c: added pdata
3436 * src/port.h: added pdata_name to PORT
3437 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
3438 (saveRegisters, unsaveRegisters): removed usage of B,
3439 (genMinus): fixed accumulator clash,
3440 (genJumpTab): added comment, this needs another look
3441 * src/mcs51/gen.c: added check for "B in use" paranoia,
3442 added pushB() and popB()
3443 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
3452 * src/z80/main.c: (reset_regparms) made void parameter explicit and
3453 added PSEG (PAG,XDATA) or NULL to port specifier
3454 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
3455 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
3456 (_mcs51_genInitStartup): removed __start__xstack equ,
3457 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
3458 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
3459 * src/z80/gen.c (_rleAppend): fixed warnings
3460 * support/regression/tests/zeropad.c: added pdata test
3461 * .version: bumped to 2.4.6
3463 2004-10-17 Borut Razem <borut.razem AT siol.net>
3465 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
3466 as a part of nightly build
3468 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
3470 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
3471 WREG holds the first byte function parameters,
3472 * (aopForSym): take special case for symbols which are in FARSPACE
3473 but in CODESPACE too,
3474 * (assignResultValue): modified to take into account _G.useWreg,
3475 * (genCall): don't use wreg for parameter passing when function is
3476 declared as reentrant, too, added optimization INCF to stack
3477 pointer when stack parameter count is 1,
3478 * (genFunction, genEndFunction): refurnished and fixed to not using
3479 wreg for passing parameters when function has varargs or is
3480 reentrant, fixed bug with symbol name compare for generating
3481 functions in absolute address,
3482 * (pic16_storeForReturn): refurnished,
3483 * (genCmp): began writing a new version of the function, not ready
3484 yet, therefore it is disabled,
3485 * (genAssign): do not read code memory when assigning a function to
3487 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
3488 array of characters, not pointer,
3489 * (pic16initialComments): in debug mode emit an .ident directive for
3491 * (_process_pragma): emit a new warning type (internal to pic16)
3492 when setting stack to default length, emit a similar warning when
3493 placing a function at absolute address and address is not word aligned
3494 * (_pic16_parseOptions): added 'return TRUE' statement,
3495 * (_pic16_linkEdit): if compiling a source, then add the source's
3496 file object, first in the list of objects to link,
3498 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
3500 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
3501 * src/pic/main.c : removed VC warning.
3502 * src/pic/gen.c : changed comment.
3504 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
3506 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
3507 reference to a deprecated symbol _GPTRREG was causing failure to
3508 link. Thanks G. M. Gallant for the info.
3510 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
3512 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
3513 comments for Bugs item #954788.
3515 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
3517 * src/pic16/device.c (pic16_dump_gsection,
3518 * pic16_groupRegistersInSection): handle symbols declared to be in
3519 access bank differently,
3520 * src/pic16/gen.c (struct _G): added field resDirect,
3521 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
3522 send values read from stack directly to result and don't allocate
3524 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
3526 * (pic16_sameRegsOfs): NEW,
3527 * (freeAsmop): if _G.resDirect is set then do not mark registers as
3528 free because they were not allocated from temporary pool,
3529 * pic16_popRegFromString): workaround to fix a problem with
3530 allocating variables twice or never,
3531 * (genGenPointerGet): using PRODL instead of FSR0H,
3532 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
3534 * (genAssign): take advantage of the _G.resDirect flag,
3535 * (genCast): around line 11844, use mov2f instead of directly
3536 MOVFF'ing between operands to account for literal values,
3537 * src/pic16/genutils.c: some new debug functions for gpsim have been
3539 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
3540 float with integer part only,
3541 * src/pic16/main.c (_process_pragma): handle pragma udata access to
3542 place variables in access bank
3543 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
3544 updated sources to reflect recent changes in gen.c
3546 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
3548 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
3549 sources that searched for headers in installation path, now the
3550 device/include/pic16 is used,
3551 * src/pic16/glue.c (pic16glue),
3552 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
3553 .line directives if not in debug mode, this suppresses assembler's
3554 warnings for ignored directives
3556 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
3558 * src/port.h: made reset_regparms prototype void parameter explicit.
3559 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
3560 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
3561 * doc/sdccman.lyx: documented warning disabling and how to use
3562 printf_large to make it print floats.
3563 * device/include/stdbool.h: NEW
3564 * device/lib/_atof.c,
3565 * device/lib/_divuint.c,
3566 * device/lib/_divulong.c,
3567 * device/lib/expf.c,
3568 * device/lib/printf_large.c,
3569 * device/lib/sincosf.c,
3570 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
3571 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
3572 a completely reentrant lib.
3574 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
3576 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
3577 * device/include/pic16/stdio.h: fixed bug with colon
3579 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
3581 * device/include/pic16/stdio.h,
3582 * device/include/pic16/stdlib.h,
3583 * device/include/pic16/math.h: NEW
3584 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
3585 declared as _naked to reduce overhead
3586 * device/lib/Makefile.in (target port-specific-objects-pic16):
3587 changed * to *.* so to ignore the CVS directory,
3588 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
3589 stacked variables back in stack,
3590 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
3593 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
3595 * .version: bumped version number to 2.4.5
3596 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
3597 * support/Util/SDCCerr.c (messages structure): added entry for
3600 Large cumulative patch for pic16 port and libraries.
3601 * device/include/pic16/sdcc-lib.h,
3602 * device/include/pic16/stdarg.h,
3603 * device/include/asm/pic16/features.h,
3604 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
3605 * device/include/pic16/float.h: changes reentrant keyword with
3606 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
3607 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
3608 updated target build-libraries to include objects from gptr,
3609 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
3610 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
3611 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
3612 all function headings,
3613 * src/SDCCmain.c: added global parameter userIncDirsSet,
3614 * (parseCmdLine): when option -I is encountered add directory to
3616 * src/version.awk: added space between control and long,
3617 * src/pic16/NOTES: added some notes for the port,
3618 * src/pic16/gen.c: added prototype for mov2fp function,
3619 * (fReturnpic16[]): properly named return value registers,
3620 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
3621 * (aopForSym): added code to handle symbols with onStack flag set,
3622 symbols onStack are allocated PTRSIZE bytes,
3623 * (aopFreeAsmop): handles special case where asmops are stack objects,
3624 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
3625 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
3626 added argument lock to trace flaws in allocating temporary registers
3627 when developing port,
3628 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
3629 * (pic16_popRegFromString): reenabled allocating a direct register
3631 * (assignResultValue): various beautifications,
3632 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
3633 referenced function argument,
3634 * (genIpush): reenabled to allow stacked arguments, handles only
3635 ic->parmPush iCodes,
3636 * (genCall, genPcall): major changes to allow for variable argument
3637 functions, fixed a bug with falsely restoring stack pointer after
3638 returning from call,
3639 * (genFunction): pending code for critical function,
3640 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
3641 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
3642 * (genNearPointerGet): fixed bug with indirect reading, was always
3644 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
3646 * (genAddrOf): rewrote code to take address of a stacked function parameter
3647 * (genCast): fixed casting to generic pointer type,
3648 * src/pic16/gen.h: added AOP_STA,
3649 * (struct asmop): added field stk,
3650 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
3651 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
3652 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
3653 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
3654 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
3655 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
3657 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
3659 * (pic16_port structure): generic pointer size is set to 3,
3660 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
3661 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
3663 * src/pic16/ralloc.c (allocReg): prevent allocating register when
3664 operand is an iTemp,
3666 2004-09-24 Martin Helmling <mh AT octo-soft.de>
3668 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
3669 * debugger/mcs51/simi.c: addapt new syntax of s51
3671 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
3673 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
3674 * src/pic16/pcode.c: commented out some calls to free() in order to
3677 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3680 * src/SDCCicode.c (isiCodeInFunctionCall),
3681 * src/avr/ralloc.c (selectSpil),
3682 * src/pic/ralloc.c (selectSpil),
3683 * src/pic16/ralloc.c (selectSpil),
3684 * src/ds390/ralloc.c (selectSpil),
3685 * src/hc08/ralloc.c (selectSpil),
3686 * src/xa51/ralloc.c (selectSpil),
3687 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
3688 stack in the middle of a function call sequence (fixes bug #1020268)
3689 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
3690 costs associated with the minimum switch case.
3692 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3694 * src/SDCC.lex: fixed bug #1030549
3696 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3698 * src/SDCCcse.h (struct cseDef),
3699 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
3700 over a function call if the CSE is derived from a symbol whose
3701 address has been taken (fixes bug #1029883)
3702 * support/regression/tests/bug-1029883: a new regression test for
3705 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3707 * src/hc08/gen.c (emitinline): fixed bug #1029778
3708 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
3709 to a cast object is no longer a syntax error ("fixes" bug #1030006,
3710 and starts toward RFE #905167)
3712 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
3714 * src/pic16/gen.c (mov2f): New function to move an operand to
3715 another without considering if it is a literal or a register,
3716 * (pic16_sameRegs): don't check if they are both AOP_REG,
3717 * (AccRsh): removed andmask=0 lines,
3718 * (genLeftShift): duplicated to be improved in future versions,
3719 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
3720 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
3721 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
3722 * (pic16initMnemonics): added initialization for POC_INFSNZW,
3723 * (insertBankSwitch): fixed inserting banksel directives algorithm
3724 for instructions that follow a skip instruction, this fixes a report
3725 for broken subtraction code generation,
3726 * src/pic16/ralloc.c (deassignLRs): do not free register if current
3727 iCode is a left op, just in case result and right share the same
3730 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3733 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
3735 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
3736 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
3737 on 2004-09-12; it was buggy
3739 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
3741 * src/SDCCsymt.h: removed RESULT_CHECK
3746 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
3748 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
3750 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
3751 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
3752 configuration values no more rejected by compiler, they are assigned
3753 to configuration registers with a warning message instead,
3754 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
3755 the for-loop so last conf register is emitted too,
3756 * (_pic16_initPaths): link library libsdcc.lib by default,
3757 * (_hasNativeMulFor): modified test for multiplication according to
3758 Raphael Neider's remarks. Integer multiplication is also done with
3760 * device/include/pic16/pic18fregs.h: corrected type error in while
3761 testing and including 18f6720 header file
3763 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
3765 * src/pic16/device.h (pic16_options): removed field use_crt,
3766 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
3767 until an optimization to handle single bits is added,
3768 * (pic16_loadFSR0): moved before genUnpackBits,
3769 * (genAnd): some white lines removed,
3770 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
3771 leave_reset flags in pic16_options when using crt modules,
3773 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
3775 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
3776 for bugs 898889 & 979599. Also used some safer print instructions.
3778 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
3780 * src/pic16/device.h (pic16_options_t): added field use_crt,
3782 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
3783 catch a probable future bug,
3784 * src/pic16/gen.c: aopIdx function commented out,
3785 * (genAssign): commented out old code which used aopIdx,
3786 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
3787 code, added if conditionals to take into account the --use-crt
3788 command line options,
3789 * src/pic16/main.c (pic16_optionsTable): added new command line
3790 options, --use-crt= and --no-crt,
3791 * (_pic16_linkEdit): now the proper crt object is added in the
3792 linker command line except than when --no-crt is specified,
3793 * src/pic16/pcode.c,
3794 * src/pic16/pcode.h: added some structures and functions for a new
3795 optimization scheme to compansate for instruction overhead between
3796 same iCodes, this scheme is currently under development and is not
3798 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
3800 * device/lib/pic16/startup/crt0i.c,
3801 * device/lib/pic16/startup/crt0iz.c: added global char variable
3802 __uflags to force the generation of an idata section
3804 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
3807 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
3808 * doc/sdccman.lyx: updated sdcc version to 2.4.4
3810 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3812 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
3813 Frieder) and clarified the default code optimization mode
3815 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3817 * src/SDCC.lex (doPragma, process_pragma),
3818 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
3819 "opt_code_size", and "opt_code_balanced"
3820 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
3821 regrouped options by category, added support for category headers
3822 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
3823 and "--opt-code-size"
3824 * doc/sdccman.lyx: documented these new options and pragmas
3825 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
3826 preference into account
3828 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3830 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
3831 geniCodePreDec): Fixed bug 904237 by generating a warning
3833 * src/SDCCerr.c: added warning W_SIZEOF_VOID
3835 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
3837 * src/pic/device.c : When no max ram set validate full memory range.
3839 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
3841 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3843 * device/lib/_gptrget.c,
3844 * device/lib/_gptrput.c: updated comment
3845 * device/lib/calloc.c,
3846 * device/lib/free.c,
3847 * device/lib/malloc.c,
3848 * device/lib/realloc.c: added LGPL, made them reentrant-safe
3849 * src/SDCCcse.c (cseBBlock),
3850 * src/SDCCicode.c (printOperand, geniCodeArray),
3851 * src/SDCCicode.h (struct operand): fixed bug 868103
3852 * support/regression/tests/bug-868103.c: added
3853 * src/SDCCast.c (searchLitOp),
3854 * src/SDCCcse.h (struct cseDef),
3855 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
3856 * src/SDCCicode.h (struct operand),
3857 * src/SDCCsymt.h (struct sym_link),
3858 * src/avr/gen.c (hasInc),
3859 * src/ds390/gen.c (hasInc),
3860 * src/hc08/gen.c (genPlusIncr, hasInc),
3861 * src/mcs51/gen.c (hasInc),
3862 * src/pic16/glue.c (pic16_printIvalChar),
3863 * src/pic16/ralloc.c (regWithIdx),
3864 * src/xa51/gen.c (hasInc) : removed warnings
3865 * src/SDCCast.c (createBlock): added comment ???
3866 * src/hc08/ralloc.c: updated comments
3868 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3870 * doc/sdccman.lyx: updated section on switch statements, added
3871 section about semaphore locking
3872 * doc/Makefile: added option -info for latex2html
3873 * device/lib/_gptrget.c,
3874 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
3876 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3880 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
3881 maxram is less than 0x100.
3883 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3885 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
3887 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3898 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
3899 a jump table is the best form for a switch statement, including
3900 automatic insertion of missing cases to make the case range
3901 continuous. Developed in collaboration with Frieder Ferlemann.
3903 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3905 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
3906 accumulator result if it needs sign extension
3908 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3910 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
3912 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3914 * device/lib/gbz80/printf.c,
3915 * device/lib/z80/printf.c: removed define for NULL
3917 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3919 * as/xa51/xa_link.c,
3920 * device/examples/ds390/ow390/ad26.c,
3921 * device/examples/ds390/ow390/cnt1d.c,
3922 * device/examples/ds390/ow390/counter.c,
3923 * device/examples/ds390/ow390/ds2480.h,
3924 * device/examples/ds390/ow390/ds2480ut.c,
3925 * device/examples/ds390/ow390/findtype.c,
3926 * device/examples/ds390/ow390/gethumd.c,
3927 * device/examples/ds390/ow390/owllu.c,
3928 * device/examples/ds390/ow390/ownetu.c,
3929 * device/examples/ds390/ow390/swt12.c,
3930 * device/examples/ds390/ow390/swtloop.c,
3931 * device/examples/ds390/ow390/temp.c,
3932 * device/examples/ds390/ow390/temp10.c,
3933 * device/examples/ds390/ow390/thermo21.c,
3934 * device/examples/ds390/ow390/tinilnk.c,
3935 * device/examples/ds390/ow390/tstfind.c,
3936 * device/examples/serialcomm/windows/serial.cpp,
3937 * device/examples/serialcomm/windows/test_serialcomm.cpp,
3938 * device/include/reg51.h: fixed line endings for cvs
3940 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3942 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
3943 packRegsForAccUse, packRegisters): new accumulator register
3945 * support/regression/ports/hc08/support.c (_putchar): suppress
3946 warning of unused variable
3947 * src/SDCCicode.c: added SWAP entry to codeTable
3949 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
3951 * device/lib/sprintf.c: forgot to add this file before previous commit
3953 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
3955 * src/pic16/gen.c (genPackBits): added operand right in function
3956 parameters, load result directly if p_type is POINTER (that is
3957 called by genNearPointerSet)
3958 * (genUnPackBits): added operand left in function parameters,
3959 * (genNearPointerGet, genNearPointerSet): prevent the loading of
3960 FSR0 if accessing bitfields,
3962 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
3964 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
3965 _print_format; updated printf, sprintf, vsprintf
3966 * device/include/asm/default/features.h: corrected comment/define
3967 * device/lib/Makefile.in: added sprintf.c
3968 * device/lib/libsdcc.lib: added sprintf module
3969 * device/lib/printf_large.c,
3970 * device/lib/vprintf.c,
3971 * device/lib/sprintf.c: totally refactored printf_large and vprintf
3973 * support/regression/Makefile: changed ALL_PORTS into a usefull default
3974 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
3975 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
3977 * support/regression/tests/zeropad.c: define idata as data for hc08
3979 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3981 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
3982 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
3983 labels are referenced at least once (even if a reference is not found)
3984 * src/hc08/gen.c (emitcode): set isComment flag for comments
3985 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
3986 loads), rules 6a..6b (optimize jumps to return)
3988 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3990 * device/lib/acosf.c (acosf),
3991 * device/lib/asinf.c (asinf),
3992 * device/lib/atanf.c (atanf),
3993 * device/lib/ceilf.c (ceilf),
3994 * device/lib/cosf.c (cosf),
3995 * device/lib/coshf.c (coshf),
3996 * device/lib/cotf.c (cotf),
3997 * device/lib/fabsf.c (fabsf),
3998 * device/lib/floorf.c (floorf),
3999 * device/lib/log10f.c (log10f),
4000 * device/lib/logf.c (logf),
4001 * device/lib/sinf.c (sinf),
4002 * device/lib/sinhf.c (sinhf),
4003 * device/lib/sqrtf.c (sqrtf),
4004 * device/lib/tanf.c (tanf),
4005 * device/lib/tanhf.c (tanhf),
4006 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4007 replaced all instances of "reentrant" in the library functions
4008 defined in math.h with this macro.
4009 * support/regression/tests/float_trans.c: reenabled test for hc08
4011 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4013 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4016 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4018 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4019 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4020 multi-byte volatile operands are used
4021 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4022 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4023 initialization to area GSINIT0 so that it would always precede
4024 any static initializers in GSINIT
4025 * support/regression/tests/zeropad.c: fixed idata define for hc08
4026 * support/regression/tests/bug-927659.c,
4027 * support/regression/tests/float_trans.c: disabled tests for hc08
4028 pending missing library routines
4029 * .version: increased version number to 2.4.4 - hc08 port now passes
4033 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4035 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4036 * Makefile.common.in,
4038 * as/hc08/Makefile.in,
4039 * as/mcs51/Makefile.in,
4040 * as/z80/Makefile.in,
4041 * debugger/mcs51/Makefile.in,
4042 * device/include/Makefile.in,
4043 * device/lib/Makefile.in,
4046 * link/z80/Makefile.in,
4047 * packihx/Makefile.in,
4048 * sim/ucsim/main_in.mk,
4049 * sim/ucsim/avr.src/Makefile.in,
4050 * sim/ucsim/doc/Makefile.in,
4051 * sim/ucsim/gui.src/serio.src/Makefile.in,
4052 * sim/ucsim/hc08.src/Makefile.in,
4053 * sim/ucsim/s51.src/Makefile.in,
4054 * sim/ucsim/xa.src/Makefile.in,
4055 * sim/ucsim/z80.src/Makefile.in,
4057 * support/cpp2/Makefile.in,
4058 * support/librarian/Makefile,
4059 * support/makebin/Makefile: added DESTDIR to the install path proposed
4060 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4061 * doc/sdccman.lyx: added DESTDIR documentation
4063 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4065 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4066 instruction for interrupt handlers, use fast returns when returning
4067 from high priority interrupts
4069 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4071 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4073 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4074 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4075 bugs, ported much of Bernhard's code from mcs51
4076 * src/mcs51/gen.c (genSend),
4077 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4078 than one when calling a reentrant function
4079 * device/lib/_mullong.c: defined an alternate struct layout for big
4082 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4084 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4087 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4089 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
4090 are sane and complete before asking the port its prefered parameter
4091 passing method (fixes bug #1017633)
4092 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
4095 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4097 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
4098 problem in bitfields >= 8 bits.
4100 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4102 * src/SDCCsymt.c: undid changes that were not meant to be committed
4104 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4106 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
4108 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4110 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
4111 copied and wrong bit got inverted
4113 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4115 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
4116 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
4117 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
4118 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
4119 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
4120 assignments to bitfields at known addresses
4121 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
4122 reads from bitfields at known addresses
4123 * src/hc08/ralloc.c (packRegisters),
4124 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
4125 genhc08Code): optimize pointer get values used as conditionals
4126 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
4129 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4131 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
4132 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
4133 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
4136 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4138 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
4140 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4142 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
4145 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
4147 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
4149 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4151 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
4154 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4156 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
4158 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4160 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
4161 cases use more compact code.
4163 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
4165 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
4167 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4169 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
4171 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4174 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
4175 parameter of changePointer() from symbol* to sym_link*
4176 * src/SDCCast.c (decorateType): call changePointer() for CAST op
4177 * src/SDCCsymt.c (compareType): void* type is castable to other
4178 pointers, but not necesarily an exact match.
4179 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
4180 is no longer blindly treated as an exact match.
4181 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
4183 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
4185 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
4187 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
4192 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
4194 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
4198 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
4200 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4202 * src/mcs51/gen.c (emitcode): fixed bug #992819
4204 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
4206 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
4207 there's no need to make it worse
4209 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4211 * src/mcs51/ralloc.c (deassignLR),
4212 * src/ds390/ralloc.c (deassignLR),
4213 * src/hc08/ralloc.c (deassignLR),
4214 * src/z80/ralloc.c (deassignLR),
4215 * src/pic/ralloc.c (deassignLR),
4216 * src/pic16/ralloc.c (deassignLR),
4217 * src/avr/ralloc.c (deassignLR),
4218 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
4219 rlivePoint): fixed another part of bug #971834
4221 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4223 * src/z80/main.c: enabled "critical" keyword
4224 * src/z80/mappings.i,
4225 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
4226 functions (fixes bug #979646)
4227 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
4229 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4231 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
4234 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
4236 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
4237 doesn't disable too much optimizations
4239 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4241 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
4243 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
4245 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
4247 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4249 * src/pic/gen.c tidied up tabs
4250 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
4251 * src/pic/main.c tidied up tabs
4252 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
4253 * src/pic/pcoderegs.c tidied up tabs
4254 * src/pic/ralloc.c tidied up tabs
4256 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
4258 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
4259 to S_FIXED for pic16 port and when symbol is not in level 0,
4260 allocate for S_REGISTER storage class and pic16 port, too,
4261 * src/pic16/device.h: prototype for checkSym,
4262 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
4263 * (pic16_assignConfigWordValue): test the value and the mask to
4264 validate that the value is suitable for the configuration word,
4265 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
4266 collect extern declared symbols, don't emit symbol twice, check
4267 first if symbol is in publics set first,
4268 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
4269 * added command line '--fstack' which enables an experimental
4270 feature for stack access, too buggy to be used yet...
4271 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
4272 * (pic16_allocDirReg): when register has storage class S_REGISTER
4273 allocate in pic16_dynAccessRegs,
4274 * device/include/pic16/pic18f????.h: modified configuration word
4275 naming convention, words started as CONFIG0H but should be CONFIG1H
4277 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
4279 * device/include/mcs51reg.h: fixed bug 970993
4281 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
4283 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
4284 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
4285 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
4286 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
4287 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
4288 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
4289 error/warning numbers,
4290 added function setWarningDisabled()
4291 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
4292 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
4293 _memcmp.c _memmove.c calloc.c realloc.c free.c
4294 * support/regression/tests/malloc.c: added tests for new functionality
4295 * support/regression/tests/zeropad.c: added tests for truncated initializers
4296 and initialized char arrays starting with '\x0'
4297 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
4299 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
4301 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
4303 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4305 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
4306 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
4307 peephole 177.e. Thanks to anonymous
4309 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
4311 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
4312 function isn't used in the source but referenced as a
4313 variable initializer then declare it as extern in .asm file
4315 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
4317 * .version: increased version number to 2.4.3
4319 Adding version extension according to ChangeLog CVS revision
4320 * src/Makefile.in (target all): added dependency 'version.h'
4321 * (rule version.h): added rule to create version.h from ChangeLog,
4322 * (rule dep): added dependency version.h,
4323 * src/version.awk: AWK script to create version.h
4324 * src/SDCCdwarf2.c (dwWriteModule),
4325 * src/SDCCglue.c (initialComments),
4326 * src/SDCCmain.c (printVersionInfo): modified to write after
4327 version string the version extension number,
4328 * src/SDCCutil.c: included "version.h"
4329 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
4331 * src/SDCCutil.h: added prototype for getBuildNumber
4333 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
4334 includeDirsSet, too,
4335 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
4336 const char [] is found in function prototype...
4338 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
4339 moving to WREG with source is already in WREG,
4340 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
4341 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
4342 * (aopForSym): stack'ed symbols are partially supported, added
4343 if-clause to support symbols in FARSPACE,
4344 * (sameRegs): added test for AOP_ACC to see if registers are same,
4345 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
4346 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
4347 * (pic16_popRegFromString): will not allocate a new register if it
4348 doesn't find one by name, bug may have introduced...
4349 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
4350 * (genIpush): revived to use pic16 port's stack,
4351 * (genAddrOf): added incomplete case for stack'ed operand,
4352 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
4353 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
4354 can handle multibyte operands,
4355 * src/pic16/glue.c (pic16_printIval*): some debug info added,
4356 * (pic16initialComments): added message for MPLAB compatibility
4358 * src/pic16/main.h: prototype for pic16_mplab_comp,
4359 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
4360 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
4361 * (_pic16_linkEdit): NEW, handles link stage, transferred here
4362 because of increased complexity of procedure,
4363 * (_process_pragma): stack pragma changed to format 'stack pos len',
4364 emit symbol '_stack_end' to conform with gplink,
4365 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
4366 to search for register,
4367 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
4369 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
4370 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
4371 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
4372 case for PO_GPR_REGISTER,
4373 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
4374 dies, the new era is ahead !...
4375 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
4376 pic16_dynInternalRegs,
4377 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
4378 * (pic16_allocDirReg): minor optimizations and bug fixes,
4379 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
4381 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
4382 load stack and frame pointer with address of 'stack_end' symbol
4384 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
4386 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
4387 without source code but only variable initializers
4389 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
4391 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
4392 external are not declared as extern to reduce overhead while linking
4394 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
4396 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
4398 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
4400 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
4401 Yee Keat for the patch
4402 * src/SDCCast.c (decorateType): fixed bug #979599
4403 * src/ds390/gen.h: removed local fReturnSizeDS390
4404 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
4405 * src/ds390/gen.c (genAnd, genOr, genXor),
4406 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
4408 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
4410 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
4411 add relFilesSet to $3, manipulate $2 to handle linking of object
4412 files without source files in command line,
4413 * device/include/pic16 (all headers): added ID location macros,
4414 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
4415 entries for ID location bytes,
4416 * (pic16_assignIdByteValue): NEW,
4417 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
4418 added field dumpcalltree to pic16_options_t,
4419 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
4420 is used instead of pic16_Gstack_base_addr, check if (ifx) before
4421 emitting rFalseIfx label after check_carry label,
4422 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
4423 pic16_emitDIRegs), NEW
4424 * (pic16glue): dump .calltree file when option --calltree found,
4425 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
4426 * (_pic16_genAssemblerPreamble): emit ID locations after
4427 configuration registers,
4428 * (pic16_linkCmd): modifications of the link command,
4429 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
4430 * (pic16_pCodeInitRegisters): don't init stack registers,
4431 * (pic16_findPrevInstruction): fixed bug,
4432 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
4433 bug with immediate registers,
4434 * (buildCallTree): traces stack push and pop,
4435 * (pct2): dump also stack usage for each function,
4436 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
4437 * (pic16_allocDirReg): various modifications,
4438 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
4441 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
4443 * src/pic16/pcode.c: removed buggy double colon
4445 2004-07-01 Borut Razem <borut.razem AT siol.net>
4447 * support/scripts/sdcc.nsi: added include/pic16 to setup
4449 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
4451 * device/lib/Makefile.in: fixed bug in target objects-pic16,
4452 * device/lib/pic16/Makefile: prefixed with dash (-) command under
4454 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
4455 specific command line arguments. Also added sample lkr script
4456 for placing a variable at a specific memory bank.
4457 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
4458 at a specific memory bank,
4459 * (pic16_dump_isection): fixed bug which caused string literals to
4460 be omitted when dumping idata section,
4461 * (pic16_groupRegistersInSection): added code to handle registers
4462 in specific memory banks,
4463 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
4464 public, all references are renamed too,
4465 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
4467 * (pic16_storeForReturn): added case to handle when dest is WREG,
4468 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
4469 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
4470 pic16_rel_udata, check to see if that register is marked as being
4471 a member of a specific memory bank,
4472 * (pic16_printIvalCharPtr): added code to add string literals either
4473 to code or the idata sections,
4474 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
4475 also accept the 'udata' pragma,
4476 * src/pic16/main.h: new structure types sectName and sectSym
4477 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
4478 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
4479 * (pic16_findPrevInstruction): fixed, it returned nothing,
4480 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
4481 instruction combinations,
4482 * (pic16_FixRegisterBanking): heavily reorganised,
4483 * (pic16_AnalyzeBanking): if generating banksel directives is
4484 disabled, then don't call FixRegisterBanking at all,
4485 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
4487 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
4489 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4491 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
4492 Phuah Yee Keat <yk.phuah AT nestac.com>
4494 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4496 * src/pic16/glue.c (pic16createInterruptVect): function now emits
4497 correctly the IVT even if it is relocated to some other location
4499 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4501 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
4502 * device/include/pic16/pic18f2220.h: NEW,
4503 * device/lib/pic16/libdev/pic18f2220.c: NEW,
4504 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
4505 * src/pic16/device.c (struct Pics16): added info for 18f2220,
4506 * src/pic16/device.h (struct pic16_options): added ivt_loc and
4507 nodefaultlibs, ivt_loc is the location of the interrupt vector
4508 table, and nodefaultlibs signs that default libraries should not be
4509 linked in link stage,
4510 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
4511 according to --ivt-loc argument,
4512 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
4513 when pragma stack is found,
4515 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4517 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
4518 256 (range check), 257 (do while), 258.a-f (bit banging
4519 f.e. on 3-wire SPI bus)
4521 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4523 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
4524 variables used exclusively within a loop
4526 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
4528 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
4530 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4532 * src/SDCClrange.c (computeClash): fixed bug #971834
4534 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4536 * src/mcs51/gen.c (genCmp): fixed bug #975903
4537 * src/hc08/gen.c (operandsEqu),
4538 * src/ds390/gen.c (operandsEqu),
4539 * src/z80/gen.c (operandsEqu),
4540 * src/pic/gen.c (operandsEqu),
4541 * src/pic16/gen.c (operandsEqu),
4542 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
4543 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
4545 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4547 * src/SDCCcse.c (cseBBlock): fixed bug #966963
4549 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
4551 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
4552 default case in switch statement,
4553 * glue.c (pic16_initPointer): expr is initialised via decoarteType
4554 to eliminate problem with initialisation of pointers, but problem
4556 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
4557 * (emitStaticSegment): removed various lines emitting debug info,
4558 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
4559 added processor registers for utilizing EEPROM,
4560 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
4561 configurable and set 8
4563 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
4565 * .version: increased version number to 2.4.2,
4567 Cumulative patch for pic16 port
4568 * src/pic16/device.c: changed scheme to dump initial values for
4569 variables in idata segment, all print_idata* functions were removed,
4570 now the pic16_printIval* will be called,
4571 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
4572 * _pic16_printPointerType, pic16_printPointerType,
4573 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
4574 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
4575 NEW, similar to the respective functions in SDCCglue.c,
4576 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
4577 way, emitting hex bytes,
4578 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
4580 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4582 * src/avr/ralloc.c (serialRegAssign),
4583 * src/xa51/ralloc.c (serialRegAssign),
4584 * src/pic/ralloc.c (serialRegAssign),
4585 * src/pic16/ralloc.c (serialRegAssign),
4586 * src/hc08/ralloc.c (serialRegAssign),
4587 * src/z80/ralloc.c (serialRegAssign),
4588 * src/ds390/ralloc.c (serialRegAssign),
4589 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
4591 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4593 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
4594 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
4596 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
4598 Cumulative patch for pic16 port:
4599 * src/pic16/device.h (typedef PIC16_device) modified fields for
4600 defining microcontrollers,
4601 * src/pic16/device.c: added new info for all devices in Pics16 array,
4602 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
4603 to be optimised out by the pCode optimiser,
4604 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
4605 specially, bug reported by G.M. Gallant,
4606 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
4607 as force'd so that cannot be optimised out by pCode optimiser,
4608 * src/pic16/pcode.c,
4609 * src/pic16/pcodepeeph.c,
4610 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
4611 they are disabled by default, but can be enabled explicit with
4612 command argument --denable-peeps, for testing,
4613 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
4614 --pomit-ivt in COMPILE_FLAGS
4616 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4618 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
4621 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4623 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
4625 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4627 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
4628 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
4630 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
4632 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
4633 would only assign 0x300001 register.
4635 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
4637 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
4638 in COMPILE_FLAGS. Thanks to G. Gallant for report.
4640 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4642 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
4644 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
4645 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
4646 added peephole 254 (left shift), 255 (jump table)
4648 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
4650 * device/lib/Makefile.in: removed comment line with model-pic16,
4651 * (target port-specific-objects-pic16): the libraries and objects
4652 are copied to the build directory form the device/lib/pic16/bin
4655 Cumulative patch concerning pic16 port:
4656 * library directory has been re-organized,
4657 * added support for PIC18F1220,
4658 * added headers and library sources for chips 18f1220,18f6520,
4659 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
4661 * configuration registers setting has changed, now each supported
4662 device has a complete description of the registers it uses,
4663 * all initialisations are moved to idata sections, these section
4664 can be absolute or relocatable,
4665 * fixed initialisation of codespace variables,
4666 * fixed warning about PCLATU and gpsim,
4667 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
4668 * (genAssign): use table reads when assigning from variables in codespace,
4669 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
4670 char/int variables placed in codespace,
4671 * (pic16_emitConfigRegs): NEW, emits a list with configuration
4672 registers set in .asm file, no need for --pomit-config-words anymore,
4673 * (pic16glue): some 8051 legacy segments are commented out
4674 (to be removed completely),
4675 * added support for alternative assembler and linker with --asm=
4676 and --link= command line arguments,
4677 * peepholes are disabled automatically in the port, no need to
4678 specify on command line,
4679 * port supports natively char/int/long multiplication, but converts
4680 all divisions to support functions,
4681 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
4682 to the file set in variable $2,
4683 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
4684 strings in ASCII format and not in hex,
4685 * ralloc.c (serialRegAssign): added a triplet of conditional calls
4686 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
4687 allocate proper register if iCodes aren't temporary,
4689 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4691 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
4693 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
4695 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
4698 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4700 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
4701 computed address is reused
4702 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
4703 multi-byte bitfields
4705 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4707 * src/z80/gen.c: (genArrayInit): must check for pointers too
4709 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4711 * support/regression/tests/zeropad.c: never meant to commit the
4712 nestedstruct test: removed, added check for GCC version
4714 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
4716 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
4717 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
4718 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
4719 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
4720 bugs 928906 and 954082 half-empty initializers
4722 * src/SDCCsymt.c (getAllocSize): added for above fix
4723 * src/z80/gen.c (genArrayInit): fixed bug 741044
4724 * support/regression/tests/zeropad.c: added tests
4726 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
4728 * src/pic16/device.c (pic16_dump_section): corrected bug which
4729 caused some symbols of the libraries to be misplaced
4731 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
4734 * src/pic16/ralloc.h,
4735 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
4736 to fix conflict with pic port
4738 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
4740 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
4741 externs configuration variables,
4742 * src/pic16/ralloc.h,
4743 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
4744 prototype in header, commented out some debug messages
4746 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
4750 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
4751 for gpasm COFF object generation. Thanks to D. Hawkins for
4754 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4757 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
4758 Brock for spotting this)
4759 * src/ds390/gen.c (genEndFunction),
4760 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
4761 interrupt handler and critical. Disable push/pop optimizations when
4762 peephole optimizations disabled.
4764 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
4766 Updated pic16 library sources and headers.
4767 * device/lib/pic16/pic18f*/ ,
4768 * device/include/pic16/*.h: modified to handle structured SFR
4771 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
4773 * src/port.h (PORT structure): added hook initPaths, now each
4774 port can declare its own default search paths,
4775 which can been seen with the --print-search-dirs option,
4776 see pic16 port for example,
4777 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
4778 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
4779 * (doPrintSearchDirs): NEW, replaces in a central manner the
4780 printing of search dirs which was split in set*Paths functions,
4781 * (main): added call to port->initPaths and doPrintSearchDirs,
4786 * src/izt/tlcs900h.c,
4789 * src/pic16/main.c: modified port structures to reflect addition of
4792 * src/pic16/device.c (regCompare): registers are finally sorted by name,
4793 * (pic16_dump_section): for registers in same address reserve memory once,
4794 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
4796 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
4797 result is greater in size than right or left,
4798 * (pic16_genUMult8X8_8): there are some cases where the result can
4799 be 16 bits size, so handle these,
4800 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
4801 * (pic16_outBitC): modified to emit pcodes,
4802 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
4804 * (genDivOneByte): implemented algorithm to divide 8-bits,
4805 * (genCmp): uncommented goto, but issues still exist,
4806 * (genAnd): fixed a bug with variables >8bits,
4807 * (genPackBits): optimization added that uses BCF/BSF to change a
4809 * (genAssign): fixed bug when assigning floating point literals,
4810 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
4811 __sdcc_gsinit_startup label,
4812 * src/pic16/main.c (_pic16_init): removed search directory
4814 * (_pic16_initPaths): NEW, used to initialise search directories,
4815 * (_hasNativeMulFor): support functions for all except char/int
4816 multiplication, and char division,
4817 * (PIC16_port struct): modified entry for native mul support,
4818 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
4820 * (buildCallTree): call to register_usage is ifdef'ed out,
4822 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4824 * device/include/string.h: applied Stas Sergeev's patch to make this
4825 header file compatible with the preprocessor -Wundef option
4826 * src/SDCCmain.c (main): abort compilation if preprocessor reports
4827 failure (fixes bug #941458)
4829 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4831 * src/SDCCopt.c (killDeadCode): fixed bug #907733
4832 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
4833 that the variable, not the function, should be static
4834 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
4835 to be consistent with non-literal case
4837 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4839 * src/SDCCast.c (isConformingBody): fixed bug #949967
4840 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
4841 convilong): fixed bug #952086
4843 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4845 * src/SDCCmem.c (allocVariables): fixed bug #955321
4847 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4849 * src/hc08/main.c (_hc08_genAssemblerEnd),
4850 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
4851 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
4852 completely eliminated the use of a temporary file
4853 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
4854 when more than one file linked
4855 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
4857 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4859 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
4860 which fixes bug #543481
4861 * support/regression/tests/bug-751703.c: fixed comments left from a
4863 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
4864 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
4865 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
4867 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
4868 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
4869 are now changed to underscores in moduleName
4871 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4873 * as/mcs51/lkmem.c: better fix for bug #954173
4875 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4876 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4878 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
4879 * device/include/c8051f000.h,
4880 * device/include/c8051f120.h,
4881 * device/include/c8051f300.h,
4882 * device/include/c8051f310.h,
4883 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
4886 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4888 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
4889 and mailing lists, doc'ed --no-peep-comments, removed reference
4890 to knoppix (newest version has no LyX/LaTeX), other minor changes
4891 * src/SDCCglue.c (glue): save 2 bytes stack space with
4892 option --main-return. The ljmp could probably be avoided too
4894 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4896 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
4898 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4900 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
4901 * src/SDCCopt.c (isLocalWithoutDef),
4902 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
4903 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
4904 (credit to Maarten Brock for patch #949363, on which this is based)
4905 * support/regression/tests/bug-751703.c: some test cases of extern used
4906 within inner scopes.
4908 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4910 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
4912 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
4914 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
4915 dwWriteLabel): fix to create valid debugger symbols even when
4916 the module name has non-alphanumeric symbols in it
4917 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
4918 when a variable's allocation has been optimized away
4921 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4923 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
4925 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
4927 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
4929 * src/z80/gen.c (z80_emitDebuggerSymbol),
4931 * src/pic/gen.c (pic14_emitDebuggerSymbol),
4933 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
4935 * src/avr/gen.c (avr_emitDebuggerSymbol),
4937 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
4939 * src/SDCCdebug.c (emitDebuggerSymbol),
4941 * src/port.h: added a debugger struct to the port struct. Added a
4942 callback for defining debugger symbols
4944 * src/SDCCast.c (createLabel),
4945 * src/SDCC.y (labeled_statement): mark all compiler generated labels
4948 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
4949 iCode back to the ast for the function
4951 * src/hc08/ralloc.c (hc08_assignRegisters),
4952 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
4953 unneeded fields from the regs struct.
4954 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
4955 pushReg() & pullReg() functions instead of emitcode()
4957 * src/hc08/gen.c (genLabel, genhc08Code),
4958 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
4960 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
4963 * src/hc08/gen.c (genEndFunction, genhc08Code),
4965 * src/mcs51/gen.c (genEndFunction, gen51Code),
4967 * src/ds390/gen.c (genEndFunction, gen390Code),
4969 * src/z80/gen.c (genEndFunction, genZ80Code),
4972 * src/pic/gen.c (genEndFunction, genpic14Code),
4974 * src/pic16/gen.c (genEndFunction, genpic16Code),
4976 * src/avr/gen.c (genEndFunction, genAVRCode),
4978 * src/xa51/gen.c (genEndFunction, genXA51Code),
4980 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
4981 specific code to cdbFile.c and out of the backend code generators
4983 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
4984 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
4985 starting address is now 0
4989 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
4990 assembler directive for DWARF support
4991 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
4995 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
4997 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4999 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5000 and inappropriate peephole optimization in jump tables
5002 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5005 * src/SDCCglue.c: sdccopt works for the hc08 port now
5007 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5009 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5011 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5013 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5015 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5017 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5021 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5022 comments from the peephole optimizer replacement rules
5023 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5025 * src/SDCCcse.c (updateSpillLocation),
5026 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5028 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5029 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5030 objects far pointers
5032 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5034 * src/SDCCsymt.h: a missing part of my last change
5035 * src/pic/ralloc.c (regTypeNum),
5036 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5038 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5041 * src/SDCCicode.c (aggrToPtrDclType),
5043 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5044 ptrPseudoSymConvert),
5045 * src/pic/ralloc.c (regTypeNum),
5046 * src/pic16/ralloc.c (regTypeNum),
5047 * src/hc08/ralloc.c (regTypeNum),
5048 * src/ds390/ralloc.c (regTypeNum),
5049 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5050 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5052 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5054 * link/z80/lkmain.c (afile),
5055 * as/hc08/lkmain.c (afile),
5056 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5057 prevent a pointer problem when a filename has no directory and
5058 no extension specified.
5060 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5062 * link/z80/lkmain.c (afile): allow periods in directory names
5063 * link/z80/lkmain.c (afile),
5064 * as/mcs51/lkmain.c (afile),
5065 * as/hc08/lkmain.c (afile): allow linker script file to have an
5066 extension other than ".lnk"
5067 * link/z80/lklex.c (getfid),
5068 * link/z80/lkmain.c (parse),
5069 * as/mcs51/lklex.c (getfid),
5070 * as/mcs51/lkmain.c (parse),
5071 * as/hc08/lklex.c (getfid),
5072 * as/hc08/lkmain.c (parse): Support comments in the linker script
5073 file on lines by themselves and after filenames
5075 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5077 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5079 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5081 * src/z80/peeph-z80.def: removed some peephole rules that don't
5082 work with multibyte arithmetic (fixed bug #937126)
5083 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5084 to registers and not global variables
5085 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5086 geniCodePreInc, geniCodePostDec, geniCodePreDec,
5087 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5088 checking for assignments not internally generated (fixed bug #931895)
5089 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
5090 structure member (fixed bug #930072)
5092 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5094 * src/SDCCmain.c (linkEdit),
5095 * src/hc08/main.c (_hc08_parseOptions),
5096 * as/hc08/Makefile.in,
5100 * as/hc08/lkrloc.c (relr, rele),
5101 * as/hc08/lkarea.c (lnkarea)
5102 * as/hc08/lkmain.c (afile, parse),
5103 * as/hc08/lkelf.c: support for ELF output
5104 * as/hc08/lks19.c (s19),
5105 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
5107 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5109 * as/mcs51/lkihx.c: Fixed bug #899105.
5111 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5113 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
5114 .dsp files from Unix to DOS.
5116 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5118 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
5119 function pointers; we have been compliant for several months now.
5120 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
5121 change that was accidently commented out
5122 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
5123 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
5126 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5128 * src/hc08/gen.c: output of all of the internal debugging information
5129 is now controlled by the D() macro; it is disabled by default
5131 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5133 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
5134 harder to keep the same registers during a CAST iCode
5135 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
5136 long via int can be done in a single cast, if the signedness is
5138 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
5139 putchar() in tinibios.c in ds390's library
5141 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5143 * src/SDCCast.c (decorateType): fixed bug #898889,
5144 cast result of a literal complement too
5145 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
5146 fixed check for bitfields
5148 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
5150 * src/SDCCicode.c (geniCodeLogic): made it static,
5151 (geniCodeLogicAndOr): added in order to fix bug #905492,
5152 (ast2iCode): fixed bug #905492
5153 * support/regression/tests/bug-905492.c: added
5154 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
5155 (processParms): fixed bug #927659: don't copy parms, this will clear
5157 * support/regression/tests/bug-927659.c: added
5159 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
5161 * src/SDCCast.c (addCast): don't cast float to char
5162 * device/lib/libsdcc.lib: added _memmove
5164 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
5166 * device/lib/large/Makefile: fixed parallel execution by
5167 replacing `make` by `$(MAKE)`
5169 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5171 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
5172 offsets (fixes bug #923936)
5174 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
5176 * device/lib/small/Makefile: fixed parallel execution by
5177 replacing `make` by `$(MAKE)`
5179 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5181 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
5183 2004-03-23 Scott Dattalo <scott AT dattalo.com>
5185 * src/pic/gen.c (genCpl): multi-byte complements were not working.
5186 * src/regression/Makefile: Regression test was not running.
5188 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5190 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
5191 complement if possible
5192 * src/SDCCval.c (valComplement),
5193 * src/SDCCicode.c (operandOperation): fixed complement of literal
5194 * support/regression/tests/onebyte.c (testComplement): added
5196 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
5198 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
5199 return an optimized tree; actually replace actParm with the new tree
5200 * src/SDCCast.h: added some parantheses to remove side effects
5201 * support/regression/tests/bug-920866.c
5203 2004-03-21 Scott Dattalo <scott AT dattalo.com>
5204 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
5205 Bit operands were not being handled properly in the pic14 port.
5206 (now src/regression/add.c passes again).
5208 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5210 * src/SDCC.y (labeled_statement): case and default no longer require
5211 a following statement (RFE #893037)
5213 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5215 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
5216 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
5217 disabled (fixes bug #916294)
5218 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
5219 "mov a,acc"; patch provided by Lenny Story
5220 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
5222 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5224 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
5226 * src/ds390/gen.c (genFunction, genEndFunction),
5227 * src/ds390/ralloc.c (ds390_assignRegisters),
5228 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
5229 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
5230 pushed if there are parameters passed on the stack. Also, a cleaner
5231 way to decide if r0/r1 should be pushed/popped. (Together they fix
5234 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5237 * device/lib/mcs51/crtpagesfr.asm,
5238 * device/lib/mcs51/crtxinit.asm,
5239 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
5240 to avoid confusion with Si Lab's SFRPAGE register.
5242 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5244 * src/SDCCglue.c (emitMaps): allow public sfr variables
5245 * src/SDCCglue.c (initialComments): include compiler build date
5246 with compiler version and put the timestamp of the generated
5247 assembly file on a serperate line to be less confusing.
5248 * src/port.h: added genInitStartup hook
5255 * src/z80/main.c: genInitStartup initialize as NULL (default to
5256 historical behaviour)
5257 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
5258 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
5259 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
5260 library instead of hard coding it into the compiler.
5261 * support/regression/ports/mcs51-stack-auto/spec.mk,
5262 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
5263 * device/lib/mcs51/Makefile,
5264 * device/lib/small/Makefile,
5265 * device/lib/large/Makefile,
5266 * device/lib/mcs51/crtpagesfr.asm,
5267 * device/lib/mcs51/crtstart.asm,
5268 * device/lib/mcs51/crtxclear.asm,
5269 * device/lib/mcs51/crtxinit.asm,
5270 * device/lib/mcs51/crtclear.asm,
5271 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
5272 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
5273 and into user configurable files.
5274 * device/lib/clean.mk: clean mcs51 directory too
5275 * support/regression/tests/longlit.c: added static to T1 declaration
5276 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
5277 accesses in the initialization code
5279 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5281 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
5282 OSCTRIMVAL as noted in bug #916008
5284 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5286 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
5287 in loops with multiple exits (reported as incorrect registers
5288 used by Martin Helmling in Sdcc-user list)
5290 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5292 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
5293 made ds390 register extensions look less like error messages
5295 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5297 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
5298 reported by Adam Wozniak in Sdcc-user list
5300 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
5302 * src/SDCCast.c (decorateType): fixed with bug and promotion in
5303 arithmetic optimizations, added debug output
5305 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
5307 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
5308 * sdcc.spec: updated and split sdcc into 3 rpms
5309 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
5310 needed for literals of LEFT_OP and '+'
5311 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
5312 introduced RESULT_TYPE_NOPROM
5313 (geniCodeMultiply): fixed logic for decision if mul is optimized to
5315 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
5316 limited promotion to int only for '*'
5317 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
5319 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
5321 * src/pic16/gen.c (genSkip),
5322 (genc16bit2lit), (gencjneshort): commented out
5323 (is_LitOp): new helper function, checks operand type
5324 (genCmpEq): rewritten
5326 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
5328 * support/regression/tests/bug-908454.c: added
5330 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
5332 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
5333 * src/SDCCicode.c (usualBinaryConversions): op needs int type
5334 (geniCodeCast): cosmetic, don't preserve bit storage class
5335 (geniCodeLeftShift): added promotion
5336 (geniCodeLogic): fixed regression
5337 * src/SDCCsymt.c (computeTypeOr): accept bits too
5338 (compareType): 2nd part of fix for bug #908454, needed for bitfields
5340 2004-03-07 Borut Razem <borut.razem AT siol.net>
5342 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
5344 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
5346 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
5347 version of pic16_genPackRegisters which does not check if ic is a
5349 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
5350 function cause string1.c regression test fails
5352 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
5354 * sim/ucsim/configure.in,
5355 * sim/ucsim/configure,
5356 * sim/ucsim/doc/Makefile.in: use docdir
5357 * src/SDCC.y: fixed sbit atrributes
5358 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
5359 * src/SDCCast.c (decorateType): |^& need special promotion handling
5361 * src/SDCCsymt.h: moved definition of RESULT_TYPE
5362 * src/SDCCsymt.h (computeType),
5363 * src/SDCCicode.c: computeType() needs op
5364 * src/SDCCsymt.c (checkTypeSanity),
5365 * doc/sddman.lyx: "plain" bitfields are unsigned
5366 * src/SDCCsymt.c (computeTypeOr): added
5367 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
5369 * src/SDCCval.c (val*): computeType() needs op
5370 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
5371 * support/regression/tests/onebyte.c: added tests for |^&
5373 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
5375 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
5376 for writing icode into asm output.
5378 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
5380 * src/pic16/device.c: added some debug lines enabled
5381 with macro DEBUG_CHECK,
5382 * src/pic16/genarith.c: more debug in genPlus,
5383 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
5384 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
5385 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
5386 * (aopForSym): onStack symbols are re-placed in data memspace,
5387 and onStack flag is cleared,
5388 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
5389 copy temporary pcodeop,
5390 * (genPcall): added warning for not updating PCLATU,
5391 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
5392 always true for pic16 port,
5393 * (genMultOneWord): NEW, supports integer multiplication,
5394 * (genMult): modified to call genMultOneWord,
5395 * (ifxForOp): added warning when return NULL,
5396 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
5397 flag is set before call to operandFromSymbol for implicit
5399 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
5400 options.intlong_rent are set by default,
5401 * (_hasNativeMulFor): modified to allow port generation of integer
5403 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
5404 set regtype to REG_SFR for all registers, restricting seting the
5405 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
5407 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5409 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
5410 more than 500 times in the regression tests
5412 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5414 * support/Util/SDCCerr.h,
5415 * support/Util/SDCCerr.c,
5416 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5418 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
5419 for symbol conflicts.
5420 * support/valdiags/tests/enum.c,
5421 * support/valdiags/tests/tentdecl.c,
5422 * support/valdiags/tests/struct.c: expect possible error messages
5423 referring to original symbol definitions.
5424 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
5426 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
5428 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
5430 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
5432 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
5434 * src/pic16/ralloc.c (newReg): fixed bug #908929
5436 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5438 * src/ds390/gen.c: added missing #include "main.h"
5440 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
5442 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
5443 checking if symbol is already in set,
5444 * src/pic16/device.h: prototype for checkAddSym,
5445 * src/pic16/gen.c: (_G): added entry interruptvector,
5446 * (assignResultValue): removed some commented out lines,
5447 * (genFunction): check for ISR via sym->type, absolute section for
5448 interrupt code is created via a new pBlock, the goto instruction is
5449 placed now correctly at the interrupt vector position, changed all
5450 references from ivec to _G.interruptvector,
5451 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
5452 is the interrupt is a high priority one, same for return from ISR,
5453 * src/pic16/glue.c: changed all calls of addSetHead for publics and
5454 externs to calls of checkAddSym,
5455 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
5456 pic16_pcode_verbose flag is set,
5457 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
5458 * src/pic16/pcoderegs.c: message about how many registers are saved
5459 will only be emitted if pic16_pcode_verbose flag is set,
5461 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5463 * src/ds390/ralloc.h,
5464 * src/ds390/ralloc.c (ds390_regWithIdx),
5465 * src/ds390/gen.c (emitcode),
5467 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
5468 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5469 ds390operandCompare, getRegsRead, getRegsWritten,
5470 initializeAsmLineNode): customized instruction size calculation for
5471 ds390, started basis for some register optimizations
5472 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
5473 corresponding assembly output
5474 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
5475 missing push/pop of r0/r1. Optimized push/pops
5477 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5479 * src/mcs51/main.c (instructionSize): fixed ACALL size
5480 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
5482 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
5484 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
5485 the sorting of rlist with NULL elements
5486 * (print_idataType, print_idata): NEW to create idata sections
5487 * src/pic16/device.h: idataSymSet new variable
5488 * src/pic16/gen.c (genFunction): fixed some bugs in string
5489 comparing, improved the absolute section creation for ISRs,
5490 added FSR0L/FSR0H in registers that are saved in an ISR,
5491 * (genInline): fixed the processing of inline snippets,
5492 now they undergo no process by the peephole optimizer
5493 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
5494 are placed in idataSymSet,
5495 * (pic16emitStaticSeg): extern symbols are added in externs,
5496 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
5497 switching when aboslute variables are placed in access bank memory
5498 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
5499 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
5500 commented out with #if,
5501 * (pic16_packRegisters): reintroduce the check for CAST because some
5502 symbols are not correctly handled,
5503 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
5504 pCodeInstruction instead of pCode,
5505 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
5506 pCodeAsmDir definition,
5507 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
5508 directive, then the argument directive is emitted without the leading
5509 tab, hack for inline labels which must be in the first column,
5510 * (compareLabel,pic16_findNextInstruction),
5511 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
5512 * (insertBankSwitch): modified for the new pCodeAsmDir,
5514 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5515 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
5517 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
5519 * (pushSide): commented out with #if,
5520 * (assignResultValue): fixed some typos in saving
5522 * (genPcall): FIXED and sync'ed with genCall,
5523 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
5524 * (genNearPointerGet): fixed to handle some more cases,
5525 implementation scheme via table reads,
5526 * (genConstPointerGet): modified to access code memory correct,
5527 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
5528 and improved to handle some cases
5529 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
5530 instead of "RETLW" for init data
5531 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
5532 not IN_DIRSPACE, work around to reduce bank switching when aboslute
5533 variables are placed in access bank memory (<0x80 and >=0xf80),
5534 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
5535 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
5536 TBLWT_POSTDEC,TBLWT_PREINC
5537 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
5538 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
5540 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
5541 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
5542 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
5543 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
5545 2004-02-29 Borut Razem <borut.razem AT siol.net>
5547 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
5548 support/Util/findme.h, support/Util/system.h: enhance binary relative
5549 search for lib and include by using findProgramPath()
5551 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5554 * src/SDCCpeeph.c (pcDistance),
5556 * src/mcs51/ralloc.h,
5557 * src/mcs51/ralloc.c (mcs51_regWithIdx),
5559 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
5560 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5561 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
5562 size calculation port specific, started basis for some register
5564 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
5565 missing push/pop of r0/r1. Optimized push/pops
5566 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
5567 * device/lib/_modsint.c (_modsint),
5568 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
5569 and stack version so regression tests pass
5571 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
5573 * src/Makefile.in (dep): include SLIBOBJS in dependency check
5574 * src/SDCCast.c (decorateType): catch another small optimization
5576 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
5577 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
5578 modified to finally use computeType() all over SDCC,
5579 see Feature Request #877103
5580 * src/SDCCval.h: cosmetic
5581 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
5582 valCompare(); regression tested in muldiv.c
5583 * support/regression/tests/muldiv.c (testMod): mod sign follows
5586 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
5588 * src/SDCCast.c (decorateType): fixed bug #902362
5589 * doc/INSTALL.txt: fixed install instructions for win32
5591 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
5593 * device/include/Makefile.in (install): fixed by replacing spaces
5596 * doc/INSTALL.txt: updated for release
5597 * doc/sdccman.lyx: added warning for --xstack being buggy
5599 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
5601 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
5602 to eliminate build warnings.
5603 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
5605 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
5606 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5608 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
5609 removed -penable-stack, added comment for stack pragma, added
5610 warning for not initializing the stack/frame registers, removed
5611 comment at interrupts section
5613 Stack is made permanent, there is no ability to disable stack usage.
5614 * src/pic16/device.h,
5615 * src/pic16/device.c: removed all references to USE_STACK macro,
5616 * src/pic16/device.c (pic16_dump_section): when no elements in
5617 rlist, free rlist before return,
5618 * (pic16_dump_int_registers): NEW, internal registers are a new set
5619 of general purpose registers reused by each function,
5620 * (checkAddReg): returns 1 if registers is added to set,
5621 * (pic16_groupRegistersInSection): when a registers is of type
5622 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
5623 * src/pic16/device.h: memRange and Assigned Memory are deleted,
5624 SRCASECMP macro is moved here from device.c
5625 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
5626 PO_PCLATU, PO_PRODL, PO_PRODH,
5627 * (pic16_pCodeOpType, genMinus,
5628 changed compares to "a" register, with AOP_ACC,
5629 * (pic16_genPlus): fixed some bugs and indented properly,
5630 * (pic16_addSign): changed size to size+offset in the MOVWF
5632 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
5633 multiply 8-bit operand by literal, result is 8-bit,
5634 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
5635 multiply 2 8-bit operand, result is 8-bit,
5636 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
5638 * src/pic16/gen.c: changed accUse to contain WREG only,
5639 * (pic16_emitcomment): renamed to pic16_emitpcomment,
5640 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
5641 true, do not use immediate addressing any more unless sym is a
5642 pointer in codespace,
5643 * (aopForRemat): do not use immediate addressing when symbol not in
5644 codespace and when symbol's address is requested,
5645 * (aopOp): for-loop in if(sym->accUse) is modified for the new
5647 * (aopGet): added case for AOP_ACC and don't return "accumulator
5648 bug" but WREG instead,
5649 * (popGetTempReg): pushes contents of temporary register in stack,
5650 * (popReleaseTempReg): pops contents of temporary register from
5651 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
5652 * (pic16_popGet): separated case AOP_ACC to return register WREG
5653 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
5654 or PO_IMMEDIATE and initializes their instance/offset appropriately,
5655 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
5656 the use of immediate pointers to certain cases only.
5658 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
5659 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
5660 * (assignResultValue, genCall, genRet): modified to use the new
5661 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
5662 genPcall is still broken,
5663 * (genFunction): added code to create 'A' type pBlocks when
5664 interrupt functions are generated, code not extensively tested yet,
5665 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
5666 * (genEndFunction): modified so ISRs pop stored registers from stack,
5667 * (genMultOneByte): cleanup,
5668 * (AccRsh): added flag andmask, to and result with appropriate mask,
5669 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
5670 * (genDataPointerGet): fixed and reenabled its use,
5671 * (genNearDataPointerGet): bugs fixed,
5672 * (genDataPointerSet): bugs fixed,
5673 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
5674 pic16_DumpSymbol, pic16_DumpOp,
5675 * src/pic16/genutils.h: function prototypes for the above functions,
5676 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
5678 * (pic16emitRegularMap): many many many improvements, but needs a
5680 * src/pic16/main.c: enable_stack in pic16_options is removed,
5681 * (_pic16_parseOptions): removed command line options -penable-stack,
5682 * (_process_pragma): emit stack symbol only when stack pragma is
5684 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
5685 redirected to FSR0L/FSR0H pair,
5686 * (pic16_get_op, pic16_get_op2): modifications and improvements,
5687 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5688 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
5690 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
5691 * (dumpPicOptype): NEW,
5692 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
5693 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
5694 with movff instruction,
5695 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
5696 added pic16_int_regs, some packRegsFor* functions are commented out,
5697 because produce errors,
5698 * src/pic16/NOTES: minor modifications
5700 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5702 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
5703 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
5705 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
5706 * as/mcs51/lkaomf51.c: fixed bug #895763
5708 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
5710 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
5712 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5714 * doc/sdccman.lyx: added details about the HC08 storage classes and
5715 interrupts, fixed the register usage info for z80 & gbz80
5717 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
5719 * doc/sdccman.lyx: added more pic16 port documentation
5720 * device/include/pic16/: added header pic18fregs.h
5722 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
5724 * doc/sdccman.lyx: added Vangelis' contribution
5726 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5728 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
5729 extend to the next CALL or PCALL, not just to the next CALL.
5731 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
5733 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
5735 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5737 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
5738 bug #895752 and a better fix for bug #716790
5740 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5742 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
5744 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5746 * doc/sdccman.lyx: minor changes, minor changed
5748 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
5750 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
5751 which can't handle SDCC_NEWONEBYTEOPS,
5752 (geniCodeMultiply): removed conversion from mult to shift for pic14
5755 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5758 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
5759 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
5760 thus fixing bug #895406
5762 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
5764 * device/lib/_modsint.c,
5765 * device/lib/_modslong.c: sign follows divisor only
5766 * src/hc08/gen.c (genMultOneByte): if result size is 1,
5767 signs or signedness can be ignored
5768 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
5769 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
5770 added optimization for IFX,
5771 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
5773 reenabled optimization for IFX, which was removed on 2004-01-11
5774 * src/SDCCast.h: added return type IFX
5775 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
5776 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
5777 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
5778 SDCC_OLDONEBYTEOPS selects the old behaviour
5779 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
5780 changed again and commented promotion rule
5781 * src/SDCCval.c (valDiv): promotion no longer necessary
5782 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
5783 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
5785 * support/regression/tests/onebyte.c: added
5787 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
5789 * gen.c (genInline): reverted to old code for assemnling inline
5790 code because of bug reported James Chadd
5792 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
5794 * ralloc.h: missing declarations from previous patch,
5795 seems that patch for ralloc.h was never applied, fixed
5797 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5798 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5802 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
5803 indirect addressing. Marked FSR0 as deprecated
5804 * gen.c (pointerCode): commented out, not needed now
5805 (pic16_popGet2p): new MOVFF helper function
5807 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
5808 (shiftRLong): removed duplicate debugging info
5810 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5812 * src/ds390/gen.c (genNearPointerGet),
5813 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
5814 optimization with bits, but not bitfields.
5815 * src/ds390/ralloc.c (packRegisters),
5816 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
5818 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
5820 * src/SDCCcse.c (algebraicOpts): copy operands before modification
5822 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5825 * src/SDCCicode.c (operandFromSymbol),
5826 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
5827 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
5828 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
5829 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
5830 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
5831 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
5833 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
5834 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
5835 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
5836 * src/SDCCsymt.c (newSymbol),
5837 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5840 * src/SDCCval.c (newiList): fixed bug #885705
5842 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5844 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
5845 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
5847 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5849 * device/include/c8051f120.h,
5850 * device/include/c8051f300.h,
5851 * device/include/c8051f310.h: added/updated header files for Silicon
5852 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5853 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
5854 in new section Submitting patches
5856 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5858 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
5859 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5860 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5862 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
5863 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5864 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5866 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
5867 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5868 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5870 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
5871 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5872 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5873 genGenPointerSet): fixed bug #892400
5874 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
5875 to eliminate build warnings.
5876 * src/SDCCast.c (processParms),
5877 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
5879 * support/valdiag/valdiag.py: added GCC to the list of defines active
5880 when compiling with gcc
5882 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5884 * support/Util/SDCCerr.h,
5885 * support/Util/SDCCerr.c,
5886 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
5887 with an incomplete type (fixed bug #883734)
5888 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
5890 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5892 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
5894 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5896 * src/SDCCast.c (decorateType),
5897 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
5898 function pointer implementation
5899 * support/regression/tests/funptrs.c: added tests to verify both forms
5900 of function pointers work correctly. Added tests to verify parameters
5901 are passed in the correct order.
5903 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
5905 * device.c (regCompare): registers are sorted by ascending
5906 address and increasing size,
5907 * main.c (_pic16_finaliseOptions): removed the declaration
5908 of compiler macro MCU. Now a macro of the format pic18fxxxx
5909 will be defined from the command line
5911 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5912 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5914 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
5915 PCOP_RLCF was overwritten!
5916 * gen.c (genSkip): commented out calls to pic16_emitcode,
5917 * (genCmpEQ): fixed "long" compares, only high word did get compared,
5919 * (genRRC): added debugging info,
5920 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
5921 overwritten while shifting,
5922 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
5923 overwritten while shifting,
5926 * (shiftLLeftOrResult),
5927 * (shiftRLeftOrResult),
5929 * (shiftLLong): Implemented with pic16_emitpcode
5930 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
5931 * (genLeftShift): Fixed bug, operand for shift by variable always
5932 was "and"ed with 0x0f,
5933 * (genLeftShiftLiteral),
5935 * (genRightShiftLiteral): added debugging info,
5936 * (genrshFour): added comment,
5937 * (genRightShift): determined signedness from operand "left"
5940 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5942 * src/SDCCicode.c (geniCodeParms),
5943 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
5944 function pointers, fixed function pointer bugs #861242 and #861896
5946 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5948 * device/include/c8051f000.h,
5949 * device/include/c8051f120.h,
5950 * device/include/c8051f300.h: added header files for Silicon
5951 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5953 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
5955 * src/SDCCast.c (processParams): added new type flow and restructured
5956 (gatherAutoInit): added new type flow
5957 (addCast): cosmetic changes
5958 (getLeftResultType): added new type flow for array indices, patch
5959 provided by Stas, see FR #877103
5960 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
5961 array index patch by Stas
5962 * src/SDCCast.h: added prototype getResultTypeFromType()
5964 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
5965 * src/pic/glue.c (pic14emitStaticSeg),
5966 * src/pic16/glue.c (pic16emitStaticSeg),
5967 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
5968 for initialization of symbols
5969 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
5970 * support/Util/SDCCerr.h:
5971 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
5972 * .version: bumped version number to 2.3.8
5973 * device/include/Makefile.in (install),
5974 * doc/Makefile (install): changed to 'rm `find ...`' construct to
5977 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
5979 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
5980 Slade Rich fixed an optimization bug
5981 * src/pic/pcodepeep.c,
5982 * src/pic/pcoderegs.c
5983 * doc/Makefile (install): added test for directory
5985 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5987 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
5988 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
5989 * src/pic/ralloc.c (getRegPtr, getRegGpr),
5990 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
5991 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
5992 * as/mcs51/asexpr.c (term),
5993 * as/hc08/asexpr.c (term): fixed bug #887146
5995 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5997 * src/z80/gen.c (genMult): handle single byte result product
5998 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
5999 DUMMY_READ_VOLATILE (fixed bug #886367)
6001 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6003 * support/regression/tests/libmullong.c: fixed logic, on little endian
6004 hosts we ended without a mullong_wrapper()
6006 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6008 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6009 virus/worm forged address usage.
6011 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6013 Fixed promotion, it should be done on AST level:
6014 * src/SDCCast.c (addCast): added promotion to int
6015 (decorateType): updated call to upCast()
6016 * src/SDCCicode.c (geniCodeLeftShift): removed call to
6017 usualUnaryConversions()
6019 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
6021 * support/regression/tests/literalop.c (mulWrapper): Added a
6022 wrapper to remove integer overflow warnings.
6024 * support/regression/tests/float_trans.c: Made work on host.
6026 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6029 * support/regression/generate-cases.py (main): Changed from inline
6032 * doc/Makefile (install): Changed to depth first to get rid of
6033 missing directory install warning.
6035 * as/Makefile (install-doc): Made work on Mac.
6037 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6039 * src/SDCCast.c: added an additional type flow in decorateType() of
6040 opposite direction, see feature request #860006; it's enabled at runtime
6041 by setting the environment variable SDCC_NEWTYPEFLOW
6042 * src/SDCCast.h: changed prototype of decorateType()
6043 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6044 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6045 'char' to 'int' can be omitted, if both operands are 'unsigned char';
6046 see feature request #877103
6047 * src/SDCCval.c: updated call of decorateType()
6048 (valBitwise): fixed bug #882876
6049 (valMinus): added promotion
6050 (valLogicAndOr): result is unsigned
6051 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6052 * src/SDCCsymt.c (computeType),
6053 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6054 must not cause an unsigned operation
6055 * src/pic/glue (pic14emitRegularMap),
6056 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6058 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6060 * src/pic/pcode.c (PCodeID): commented out left over debug code
6062 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6064 * support/valdiag/tests/overflow.c: added shift tests
6072 * src/pic/pcodepeep.c,
6073 * src/pic/pcoderegs.c,
6075 * src/pic/ralloc.h: applied patch from Slade Rich;
6076 added support for multiple code pages and multiple RAM banks on the
6077 PIC 14 port. The ASM files now no longer simply assume all the
6078 code / RAM are in the same page / bank. This means the linker can
6079 safely allocate code/RAM of separate ASM files to different pages/banks.
6080 * doc/sdccman.lyx: added Slade's tips
6081 * src/mcs51/peeph.def: fixed bug #880768
6083 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6085 * src/hc08/ralloc.c (rematStr): fixed bug #879282
6086 * src/SDCCast.c (decorateType): fixed bug #880197
6088 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
6090 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
6093 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
6094 strtof is not part of C89 and isn't included with Mac OS X.
6096 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6098 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
6099 shiftL2Left2Result): fixed bug #879326
6100 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
6101 (genMultOneByte): fixed bug in signed vs unsigned multiplication
6102 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
6103 address fetch for clr instruction
6104 * device/lib/hc08/_mulint.c: created optimized assembly version
6105 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
6107 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
6109 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6110 proposed in FR #877103
6112 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6114 * src/SDCCval.c (cheapestVal): added missing checks
6115 * src/SDCCicode.c (usualBinaryConversions): fixed condition
6116 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
6118 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
6120 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
6123 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
6125 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
6126 loaded with the linker search paths (-L arguments) and the libraries
6127 to be linked with the current source (-l arguments). Changes
6128 currently will affect only the pic16 port.
6129 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
6130 include path the port specific paths and port specific libraries,
6131 * gplink command now contains the $3 argument,
6132 * src/pic16/device.h,
6133 * src/pic16/device.c,: structure PIC_device is made public and
6134 renamed to PIC16_device, the same for variable Pics which is renamed
6135 to Pics16. Updated all references to them.
6136 * src/pic16/glue.c (pic16glue): corrected bug with code
6137 initialization which bypassed the variable initializations block.
6139 * device/lib/pic16/Makefile.rules: removed --penable-stack from
6140 COMPILE_FLAGS and added the --nostdinc option
6142 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6144 * device/include/mc68hc908jb8.h: Register defs for another member
6145 of the hc08 family. Contributed by Bjorn Bringert - thanks!
6147 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
6149 Documenting changes from previous commits.
6150 * configure.in (version 1.56),
6151 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
6152 when generating output files to configure the pic16 library,
6153 but now I've commented it out, since gputils aren't installed in the
6154 SF compile farm, so library won't compile
6156 * device/lib/Makefile.in (version 1.56): initially I've added in
6157 target 'all' the prerequestive 'model-pic16' so it compiled the
6158 pic16 library, but now I've commented it out for the same reasons
6160 * added targets 'model-pic16' and 'objects-pic16' to compile the
6162 * added target 'port-specific-objects-pic16' to handle the
6163 generated libraries and copy them into the build/ directory
6164 * added target 'clean-intermediate-pic16' to clean intermediate
6165 files into pic16 directory
6166 * in target 'installdirs' added line to create directory pic16 in
6167 the installation path
6169 * device/include/Makefile.in (version 1.11): in target 'install'
6170 added lines to copy all header files to installation path,
6171 * in target 'installdirs' added line create directory for pic16
6172 headers in the installation path
6174 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
6176 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
6179 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
6182 * device/lib/configure.in,
6183 * device/lib/configure: fixed for autoconf 2.57
6185 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6187 * src/z80/main.c (_parseOptions): fixed the portmode= command line
6188 option so that it actually works. Made it specific to the z80, since
6189 the gbz80 doesn't have these kinds of I/O ports.
6191 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6193 * device/include/z180.h,
6194 * device/lib/_memcpy.c,
6195 * device/lib/_memmove.c,
6196 * device/lib/_mulint.c,
6197 * device/lib/ser_ir.c,
6198 * device/lib/ser_ir_cts_rts.c,
6199 * device/lib/_strcmp.c,
6200 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
6201 * src/z80/main.c (_process_pragma): add support for pragmas bank and
6202 portmode; added deprecation warning for bank= and protmode= forms.
6203 Also, guard against buffer overflow.
6204 * src/z80/gen.c (aopGet): generate better code for sfr banked read
6206 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6208 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
6209 changed interrupt vector table generation to only emit declared vectors.
6210 * device/include/Makefile.in: added missing backslash
6211 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
6213 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6215 Mainly changes to support compilation of the device libraries
6216 * src/pic16/device.c: stack is allocated via symbol and not
6217 via literal number. The symbol is placed in the corresponding
6218 position of the data ram
6219 * (pic16_dump_section): relocatable and absolute uninitialized
6220 data are now emitted in sorted order to reduce section naming,
6221 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
6222 weren't marked as being in the access bank,
6224 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6226 Added portion of GNU PIC Library under the directory
6227 device/include/pic16 and device/lib/pic16. These files
6228 contain the declarations of SFRs for the PIC18Fxx2 devices.
6229 The directory is initialized via configure from toplevel.
6231 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
6233 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
6234 the spilllocations to be compared correctly
6236 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6238 * src/SDCCast.c (decorateType): fixed bug introduced today
6240 2004-01-12 Borut Razem <borut.razem AT siol.net>
6242 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
6243 doc/sdccman.lyx: upper case pragmas are deprecated
6245 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6247 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
6248 in simpler and even better code
6250 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
6252 * src/SDCCicode.c (operandOperation): fixed bug #874819
6253 * src/SDCCast.c (decorateType): fixed
6254 char foo (unsigned long ul) { return ul > 0; }
6256 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6258 * doc/sdccman.lyx: Moved and added some sections, small changes
6259 all over. Telling LaTeX to be less strict with word spacing
6260 to better keep the right margin. Changed some notes about
6261 maintainance of the ports in section 3.2.1 - is it OK like this?
6263 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6265 SDCC source changes:
6266 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
6267 convilong): modified to inform the pic16 port that builtin functions
6270 PIC16 PORT specific changes:
6271 * src/pic16/device.c pic16_dump_equates() added,
6272 processor registers declared internally by the port are emitted in
6273 the translation as equates,
6274 * src/pic16/gen.c: inline code is passed unprocessed to the
6276 * (pic16_popGetLit2): fnuction modified to take second operand as
6277 pCodeOp pointer and not as literal,
6278 * (popRegFromIdx): prefixed with pic16_,
6279 * (pic16_popCombine2): modified to receive already allocated pCode
6281 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
6282 * (genFunction): initializes local stack frame and pushes on stack
6283 all the registers used by this function,
6284 * (genEndFunction): restores all registers from stack and restores
6286 * src/pic16/glue.c (pic16emitRegularMap): various changes and
6288 * (pic16glue): changed the program startup sequence,
6289 * added new dbName code 'A' for functions placed in absolute section
6290 * src/pic16/main.c: added function attribute _naked,
6291 * added pragma 'code' to place a fnuction at an absolute address,
6292 * added command line arguments --debug-ralloc and --pcode-verbose,
6293 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
6294 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
6295 * (pic16_newpCodeOpLit2): modified to take the second operand as
6297 * (pic16_printpBlock): modified to emit each function in a separate
6299 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
6300 UPPER for immediate operands,
6301 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
6303 * src/pic16/peeph.def: all peepholes with movff are commented out,
6304 because there is a problem in the pcode peep optimizer,
6305 * src/pic16/ralloc.c: the register allocator can now reuse local
6306 function symbols for another function. This saves register usage.
6307 * src/pic16/ralloc.h: added flag isLocal in structure regs,
6309 Added file src/pic16/NOTES with information about program writing on
6310 the current port version.
6312 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6314 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
6315 and peephole 252 (array access)
6317 2004-01-09 Borut Razem <borut.razem AT siol.net>
6319 * src/SDCCmain.c : fixed #872250: -l command line defined library
6320 files are scanned before standard library files
6322 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6324 * src/SDCCast.c (decorateType): fixed bug #874046
6326 2004-01-09 Borut Razem <borut.razem AT siol.net>
6328 * support/scripts/sdcc.nsi: remove previous installation
6330 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6332 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
6333 bytes for last interrupt vector (mcs51)
6334 * sdcc.spec: fixed typo
6336 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6338 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
6339 gen51Code): more efficient parameter receive for --model-large
6342 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6345 * src/z80/main.c: added missed needLinkerScript flags (more than
6346 one port structure defined in these file)
6347 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
6350 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
6352 * src/SDCCmain.c: removed various references to DEFAULT_PORT
6353 * src/port.h: added flag needLinkerScript in port->linker
6354 structure to inform whether to create a .lnk file or not,
6362 * src/z80/main.c: changed appropriately to configure
6363 needLinkerScript flag
6365 * src/pic16/gen.c (genAddrOf): fixed bug #863624
6366 * src/pic/glue.c: added variable udata_section_name to
6367 override default uninitialized data segment definition for
6368 devices only with SHAREBANK memory (reported from Erik Epetrich)
6369 * (pic14emitOverlay): modified to emit a commented overlay segment
6370 directive when no overlay data exist
6371 * (picglue): modified to emit uninitialized data segment
6372 according to udata_section_name
6373 * src/pic/main.c (_pic14_parseOptions): added command line
6374 options --udata-section-name=[name] to override default
6375 udata definition name
6376 * modified _linkCmd and _asmCmd to include compiler passed
6377 arguments via -W option
6378 * src/pic16/main.c: added $l in _asmCmd, changed extension for
6379 object file from '.rel' to '.o' in port->linker structure,
6380 changed size of fptr from 2 to 3 in port structure
6382 2004-01-07 Borut Razem <borut.razem AT siol.net>
6384 * support/scripts/sdcc.nsi: update PATH
6385 * support/scripts/sdcc.ico: craeted
6387 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
6389 * device/include/Makefile.in: fix install
6390 * doc/Makefile: fix install
6392 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6394 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
6396 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
6397 how the function variable allocation summary is displayed; also
6398 include information about variables allocated to the overlay
6401 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6403 * as/mcs51/lkmain.c: Help about -Y option
6404 * as/mcs51/lkarea.c: Fixed gcc warnings
6406 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6408 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
6410 * support/valdiag/tests/overflow.c: added
6411 * src/SDCCast.c (decorateType),
6412 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
6413 LEFT_OP (left shift)
6415 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6417 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
6418 (default behaviour).
6420 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6422 A python script to validate compiler diagnostic messages. It can be
6423 used to verify that sdcc complains about bad c source code and
6424 gives a good location of the error.
6425 * support/valdiag/Makefile,
6426 * support/valdiag/valdiag.py,
6427 * support/valdiag/tests/*
6429 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6431 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
6432 * src/SDCCsymt.c (newEnumType),
6434 * support/Util/SDCCerr.c,
6435 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
6437 * support/regression/tests/enum.c: added test for enum values that
6438 require at least 2 bytes of storage.
6440 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6442 * src/common.h: added ifndef/define/endif macros
6443 around the header file.
6444 Bug reported from Jesus Calvino-Fraga
6446 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6448 * sdcc.spec: updated
6449 * device/include/Makefile.in: don't install CVS directories
6450 * device/lib/Makefile.in: added removal of CVS directories after install
6451 * doc/Makefile: fixed install, added local_icons
6452 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
6453 * src/mcs51/gen.c (genRightShift): fixed bug #870788
6454 * src/ds390/gen.c (genRightShift): fixed bug #870788
6455 * src/SDCCast.c (decorateType): fixed bug #870781
6457 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6459 PIC16 port related changes:
6460 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
6461 added variable stackPos,
6463 * gen.c: genCall, assignResultValue: added support for
6464 pushing/retrieving function parameters to/from stack,
6465 genFunction,genEndFunction: setup stack frame for the
6467 genAddrOf: will be changed according to bug 863624
6469 * added files genutils.c and genutils.h which contain gen*
6470 debugged and optimised functions extracted from gen.c
6472 * glue.c: added variable 'externs' which holds extern symbols,
6473 pic16emitRegularMap: is modified to properly handle relocatable
6474 symbols under the new scheme,
6475 pic16createInterruptVect: is modified
6476 pic16printPublics: is modified to emit 'global' assembler directives,
6477 added pic16_printExterns to print extern symbols,
6478 pic16glue: initializes stack/frame pointer in the beginning of
6479 the assembly output. Temporary hack, will be corrected later,
6480 because gplink yet does not support stack and SDCC does not
6481 yet support a type of crt0.o object to create the final binary.
6483 * Removed many lines that contain 8051 legacy code.
6484 * The code is finally placed under a 'code' directive.
6485 * Added port specific options.
6487 * _process_pragma: simplified since now we do not need *special*
6488 include file to define SFR registers. But a separate header
6489 will be needed. This will be developed later.
6490 * _pic16_parseOptions: added, parses port specific options:
6491 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
6492 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
6493 --preplace-udata-with=
6495 * _pic16_setDefaultOptions: modified to initialize section names,
6496 but hack is temporarly out of order since it needs improvement.
6497 * _pic16_genAssemblerPreamble: configuration words are emitted by
6498 their address instead of their name. This part is incomplete and
6499 supports only the 18Fxx2 devices. Other devices will emit an error
6500 during assembly since they do not contain the same set of config
6502 * _pic16_genIVT: is modified,
6504 * pcode.c: added definitions for some hardware registers that are needed
6506 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
6507 All PCI entries are updated. Now LFSR is supported.
6508 * Removed pic16_pciTRIS is mentioned by mdubuc in source
6509 * added pic16_newpCodeOpLit2 to support instructions with
6510 two literal arguments
6511 * pic16_pCode2str: corrected code that emits assembler instructions
6512 with two literal operands and those that have an access bit modifier
6513 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
6514 this fixes a bug which caused some labels to be lost, when an
6515 assembler directive was added, i.e. banksel,
6516 * pic16_FixRegisterBanking: improved logic that causes the insertion
6518 * InlineFunction: functions that are called once, are not any more
6519 inlined. This can be a port option in the future,
6521 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
6523 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
6524 hold the corresponding uninitialized symbols,
6525 * pic16_allocProcessorRegister: registers have explicit marked the
6527 * pic16_allocInternalRegister: registers are explicit marked as
6529 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
6530 processing list, so bit registers were lost,
6533 * ralloc.h: added field 'accessBank' and original symbol operand
6534 in register definition,
6535 * removed the field isMapped from register definition,
6537 ** Several functions have been removed from various sources:
6538 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
6539 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
6540 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
6541 pic16_assignRelocatableRegisters
6543 ** others have been introduced:
6544 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
6545 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
6547 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
6549 * support/scripts/inc2h.pl: changed definition of BIT_AT
6550 to emit 'sbit at' instead of 'bit at'. This was a request.
6552 PIC16 port related preliminary changes:
6553 * gen.c: prefixed function popRegFromString with
6554 pic16_ and all references to it corrected
6555 * pcode.c: all pic16_pc_* hardware registers prefixed
6556 with underscore (_),
6557 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
6558 * ralloc.c: newReg(): when register is REG_SFR then
6559 set address to rIdx,
6560 pic16_allocProcessorRegister(): marks register wasUsed=0
6561 pic16_writeUsedRegs(): added a call to assign processor
6562 registers via pic16_assignFixedRegisters
6564 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6566 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
6567 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
6568 variables in unused register banks. Also the SSEG is placed
6569 wherever there is enough space for it, and IDATA can be anywhere
6570 in internal RAM. For now compile using -Wl-Y[stack_size].
6571 The mem file is different for this option as well, since it
6572 makes no sense of talking about DSEG lenght.
6574 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
6576 * src/SDCClrange.c: fixed bug 869095 that caused segfault
6577 in certain cases, e.g. when ROM assignment, patch provided
6578 from Albert den Haan.
6580 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
6582 Many signedness and type propagation fixes:
6583 * src/SDCCicode.c: made geniCodeCast() static
6584 replaced SPEC_ by IS_ (cosmetic)
6585 (operandOperation): fixed div and mod operation
6586 (usualBinaryConversions): added support for promotion of char
6587 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
6588 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
6589 (geniCodeAdd): an array index will stay unsigned, even if promoted
6591 (geniCodeArray): ditto
6592 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
6593 * src/SDCCsymt.c (computeType): added more support for char;
6594 promotion of char is selectable by promoteCharToInt, fixed signedness
6596 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6597 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6598 * src/SDCCval (val*): replaced signedness calculation by
6600 rearranged if-branches (cosmetic)
6601 (valShift): added warning W_SHIFT_CHANGED
6602 (valCompare): fixed problem with different types
6603 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
6604 * support/regression/tests/literalop.c: added many cases
6605 * support/regression/tests/ast_constant_folding.c: changed finally to
6607 * .version: new year, new version: 2.3.7
6608 * src/SDCCmain.c (main): applied patch #866468
6609 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
6610 provided by Scott Bronson
6611 * doc/sdccman.lyx: updated documentation for sdcdb
6612 updated and added chapter tips
6614 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6616 * src/SDCCsymt.h: missing from yesterday's commits
6618 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6620 * src/SDCC.y (struct_or_union_specifier),
6621 * support/Util/SDCCerr.c,
6622 * support/Util/SDCCerr.h: verify that struct & union tags are used
6625 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6627 * src/SDCCglobl.h: missing from yesterday's commits
6629 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6631 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
6632 sft_attributes, struct_declaration, parameter_declaration,
6633 type_name, start_block, declaration_list),
6634 * src/SDCC.lex (check_type): support redefinition of typedef names
6636 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6638 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
6639 aligned xdata arrays. Erik helped me with the if clause.
6641 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6643 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
6646 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6649 * src/SDCCast.c (newAst_),
6651 * src/SDCCicode.c (ast2iCode, newiCode),
6653 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
6654 expr, statement, expression_statement, selection_statement,
6655 iteration_statement, expr_opt, jump_statement): foundation for tracking
6657 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
6660 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6662 * support/Util/SDCCerr.c,
6664 * src/SDCCast.c (createCase, createDefault, decorateType),
6665 * src/SDCClabel.c (labelUnreach),
6666 * src/SDCC.y (labeled_statement, jump_statement): More improvements
6668 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
6669 (with thanks to Stas Sergeev)
6670 * device/include/time.h,
6671 * device/lib/time.c (CheckTime): suppress unreachable code warning
6673 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6675 * src/SDCCast.c (createIvalCharPtr),
6676 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
6678 * support/regression/tests/nullstring.c: tests for these two bugs
6680 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6682 * support/Util/SDCCerr.h,
6683 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
6684 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
6685 about storage class and 'at' used inside struct or union
6686 * src/SDCCBBlock.c (iCodeFromeBBlock),
6687 * src/SDCCcse.c (ifxOptimize),
6688 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
6689 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
6690 printIval, emitStaticSeg, emitOverlay),
6691 * src/SDCClabel.c (deleteIfx),
6692 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
6693 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
6694 gatherAutoInit, processParms),
6695 * support/Util/SDCCerr.h,
6696 * support/Util/SDCCerr.c (werrorfl): Support for better error location
6697 reporting for post-parse errors.
6699 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6701 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
6702 implicit casts via union; they don't work on big endian systems
6703 (possible fix for bug #861138)
6705 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6707 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
6708 * src/mcs51/main.c: fixed the fix for bug #737001
6710 2003-12-15 Borut Razem <borut.razem AT siol.net>
6712 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
6714 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6716 * support/makebin/makebin.c: put output in binary mode
6718 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6720 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
6721 xdata and data memory on startup. Set the environment variable
6722 SDCC_NOGENRAMCLEAR to disable this.
6723 * src/mcs51/peephole.def,
6724 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
6725 (allows non-interrupt and interrupt code to safely compete for a resource
6726 without the non-interrupt code having to disable interrupts)
6728 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6730 * src/SDCCicode.c (geniCodeAdd),
6731 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
6732 with valFromType if type might be a pointer and host is big endian).
6733 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
6734 types, not just integer types.
6735 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
6736 multiply defined with mismatching "at" address.
6738 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6740 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
6741 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
6742 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
6743 with embedded nulls (fixed bug #753752)
6745 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6747 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
6748 Apparently this did not see much testing (endless loop)
6750 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6752 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
6754 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6756 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
6757 gracefully handle NULL memmap pointers
6759 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6761 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
6762 instead of deleting the iCode when an operand is volatile
6763 * src/z80/gen.c (genDummyRead),
6764 * src/mcs51/gen.c (genDummyRead),
6765 * src/ds390/gen.c (genDummyRead),
6766 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
6768 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
6769 * src/SDCC.y: fixed bug #850420
6771 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6773 Applied z80 i/o port patch from Peter Townson and fixed some operators
6774 to better handle operands in A register.
6775 * device/include/z180.h
6781 * src/z80/peeph-z80.def
6785 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6787 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
6789 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6791 * device/lib/hc08/_mullong.c: Removed extra #endif
6793 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6795 * sim/ucsim/hc08.src/inst.cc,
6796 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
6798 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
6799 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
6800 * device/include/stdarg.h: fixed varargs for hc08
6801 * device/lib/Makefile.in,
6802 * device/lib/hc08/Makefile,
6803 * device/lib/hc08/_mulint.c,
6804 * device/lib/hc08/_mullong.c: fixed some endian problems
6806 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6808 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
6809 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
6810 * device/lib/_gptrget.c,
6811 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
6813 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6815 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
6816 * src/SDCCast.c (astErrors): fixed bug #846007
6817 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
6819 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6821 * src/SDCCast.c (decorateType): disabled a transformation I added in
6822 revision 1.188 (access to fields of a structure at an absolute address);
6823 it breaks with bitfields, extern declarations, and gcse analysis.
6824 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
6825 could be assigned through a pointer, so don't complain.
6826 * src/SDCCast.c (astErrors),
6828 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
6830 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
6832 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
6833 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
6834 output of __config directives, since gpasm now supports them
6835 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
6836 pre-processor macro, i.e. -DMCU=p18f452
6837 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
6838 and modified to handle 'cast' icode similarly to '=' icode
6839 * src/pic16/device.h (typedef struct PIC_device): added field
6840 'extMIface' to indicate that chip has external memory interface
6841 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
6842 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
6845 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6847 * src/SDCC.y (pointer): fixed bug #846006
6848 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
6849 * src/SDCCast.c (decorateType): fixed bug #846009
6850 * src/ds390/peeph.def,
6851 * src/ds390/gen.c (genAnd, genOr),
6852 * src/mcs51/peeph.def,
6853 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
6855 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6857 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
6864 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
6868 * src/SDCCbitv.c: added function to free a bitvector
6870 * src/SDCClrange.c: added function to recompute the liveranges
6872 * src/ds390/ralloc.c,
6873 * src/hc08/ralloc.c,
6874 * src/mcs51/ralloc.c,
6876 * src/pic16/ralloc.c,
6877 * src/xa51/ralloc.c,
6878 * src/z80/ralloc.c: recompute the liveranges after register packing
6880 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
6882 * src/SDCCloop.c (newInduction): fixed bug #845630
6884 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6886 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
6887 inadvertantly left behind from my 2003-11-12 change
6889 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6891 Updated headers I neglected to commit yesterday.
6895 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6897 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
6898 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
6899 * src/SDCCopt.c (eBBlockFromiCode),
6900 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
6901 the creation of the key hash table from the sequencing so it can be used
6902 earlier (for some GCSE bug fixes still pending)
6904 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6906 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
6907 * support/regression/tests/addsub.c: testing genPlus shortcut
6909 2003-11-15 Borut Razem <borut.razem AT siol.net>
6911 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
6913 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6915 * src/SDCCcse.c (cseBBlock): fixed bug #527779
6916 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
6917 ordering is immaterial.
6918 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
6920 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6922 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
6923 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
6924 (SIGSEV) of bug #840381
6925 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
6926 unlink new file before rename if new and old filenames are the same)
6928 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6930 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
6931 uninitialized variables) for the mcs51. Set environment variable
6932 SDCC_GENRAMCLEAR to test.
6933 xdata initialization slightly shorter
6935 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6938 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
6939 #838241 & 780691 (basicly the same bug)
6940 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
6941 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
6943 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
6945 * src/SDCCmain.c (linkEdit): "fix" #834252
6947 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6949 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
6951 * src/SDCC.y: fixed bug #819403
6953 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6955 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
6956 the reentrant attribute.
6957 * src/hc08/gen.c (genPackBits): added missing stack readjustment
6958 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
6960 * src/SDCCast.c (decorateType): fixed bug with storage class not being
6961 updated during pointer dereference; f.e. ~(((char *)1)*) was being
6962 erroneously reduced to a literal.
6963 * src/hc08/ralloc.c (packRegisters, rematStr),
6964 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
6967 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6969 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
6970 * doc/sdccman.lyx: changed from 'article' to 'book'
6971 * doc/Makefile: readded test_suite_spec and cdbfileformat
6973 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
6975 * device/include/stdlib.h: include malloc.h to comply with ANSI
6976 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
6978 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6980 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
6981 * doc/clean.mk: also remove *.out files
6982 * doc/sdccman.lyx: some additions, larger top/bottom margins
6984 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6986 * src/SDCC.y: fixed bug #837365
6987 * support/regression/tests/bitopcse.c
6988 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
6989 a symbol (might be valop instead)
6990 * device/lib/Makefile.in: added errno.c to HC08SOURCES
6991 * device/lib/clean.mk: added hc08 to the cleaning list
6993 2003-11-04 Borut Razem <borut.razem AT siol.net>
6995 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
6997 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
6998 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
6999 malloc is declared in standard stdlib.h
7001 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7003 * device/lib/hc08/Makefile: need to clean .rel not .o files
7004 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7006 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7016 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7017 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7018 tests (which uses the port's oclsExpense function)
7024 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7026 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7028 * src/SDCCcse.c (ifxOptimize),
7029 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7030 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7031 deleting the IFX iCode.
7032 * src/hc08/ralloc.c: reduced unneeded slocs
7033 * src/hc08/gen.c: fixed bug in asmopToBoolean
7035 2003-11-04 Borut Razem <borut.razem AT siol.net>
7037 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7038 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7039 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7040 transferred to configure
7042 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7044 Use headers defined in the C[++] standards:
7045 * sim/ucsim/gui.src/serio.src/fileio.cc
7046 * sim/ucsim/gui.src/serio.src/frontend.cc
7047 * sim/ucsim/gui.src/serio.src/main.cc
7048 * sim/ucsim/gui.src/serio.src/posix_signal.cc
7049 * support/Util/NewAlloc.c
7055 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7057 * Added MSVC projects for hc08 assembler and linker:
7058 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7059 /as/hc08/link_hc08.dsp
7061 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7063 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7065 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7067 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7069 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7071 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7073 2003-10-31 Borut Razem <borut.razem AT siol.net>
7075 * support/cpp2/cpplib.h,
7076 support/cpp2/cpplib.c,
7077 support/cpp2/cpplex.c,
7078 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7079 to switch _asm block preprocessing on / off. Default is
7080 #pragma preproc_asm +
7082 2003-10-31 Borut Razem <borut.razem AT siol.net>
7084 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7085 when outputting comment blocks (when executed with -C option) and
7086 _asm (SDCPP specific) blocks
7088 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7090 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
7092 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
7094 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
7096 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
7098 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
7099 * src/SDCCast.c (decorateType): fixed bug #832664
7101 2003-10-31 Borut Razem <borut.razem AT siol.net>
7103 * support\cpp2\cpplex.c: fixed for SDCPP:
7104 comments(when executed with -C option) and _asm blocks
7105 were included even if they where in skipped #if block.
7106 Applied solution from GCC cpp 3.3.2
7108 2003-10-31 Borut Razem <borut.razem AT siol.net>
7110 * src/SDCC.lex: sdcc now understands both formats:
7111 '# <line_number> <file_name>' and
7112 '#line <line_number> <file_name>'
7113 * support/cpp2/cppmain.c: sdcpp now generates the standard
7114 '# <line_number> <file_name>' instead of former
7115 '#line <line_number> <file_name>'
7117 2003-10-30 Borut Razem <borut.razem AT siol.net>
7119 * support/cpp2/cpphash.h,
7120 * support/cpp2/cpplib.h
7121 * support/cpp2/cpplex.c,
7122 * support/cpp2/cppmain.c,
7123 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
7125 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7127 Fixed a number of problems revealed by bug #827883.
7128 * src/SDCCloop.c (loopInvariants): Spill location of the
7129 result operand should be recomputed if extracted from
7130 a loop. Also, don't extract assignments of an iTemp
7132 * src/SDCCast.c (isConformingBody): loop reversal should
7133 not occur if the control variable is involved with a
7134 relational operator.
7136 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7138 * .version: bumped to 2.3.6 to reflect the big improvements
7139 made by Erik and Klaus. Thanks!
7141 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
7143 Replaced the livrange code.
7144 * src/SDCClrange.c: added new LR code
7146 * src/SDCCBBlock.h: removed remainig parts from old LR code
7147 * src/ds390/ralloc.c,
7148 * src/ds390/gen.c: minor fixes to make it work with new code
7150 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7155 * src/hc08/ralloc.c: Fix various warnings related to the hc08
7156 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
7157 (tweaked fix for bug #818696)
7159 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7161 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
7163 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7166 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
7167 * src/mcs51/gen.c (gencjneshort),
7168 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
7169 more efficient (per Scott Bronson's suggestion)
7171 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7173 Extended the semantics of the critical keyword to include
7174 individual statements. See RFE #827755 and #799831
7179 * support/Util/SDCCerr.c
7180 * support/Util/SDCCerr.h
7185 2003-10-19 Borut Razem <borut.razem AT siol.net>
7187 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
7189 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7191 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
7193 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
7194 and predecrement operand is displayed
7196 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7198 * src/SDCCval.c (valMinus): fixed bug #826041
7200 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7202 Some hc08 related updates that I missed earlier
7203 * sim/ucsim/stypes.h
7204 * support/regression/ports/hc08/spec.mk
7206 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7208 New target "hc08" for the Motorola 68hc08 family of micros
7216 * sim/ucsim/hc08.src/*
7217 * sim/ucsim/configure.in
7218 * src/ucsim/configure
7219 * sim/ucsim/packages_in.mk
7222 * device/include/mc68hc908qy.h
7224 * device/lib/Makefile.in
7225 * support/regression/ports/hc08/*
7226 * support/regression/Makefile
7228 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7230 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
7232 * src/ds390/gen.c (genCast): fixed bug #821957
7234 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7236 * device/lib/logf.c: "fixed" overlay bug
7237 * support/regression/ports/host/spec.mk: added m library
7238 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
7239 * support/regression/tests/float_trans: added (for Eric)
7241 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
7243 * src/mcs51/gen.c (genCpl): fixed bug
7244 http://sf.net/mailarchive/message.php?msg_id=6263915
7246 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
7248 * src/SDCCast.c (decorateType): added extended constant folding
7249 * src/SDCCsymt.c (computeType): cleanup
7250 * src/SDCCval.c (valShift): minor optimization
7251 * support/regression/tests/ast_constant_folding.c: added
7253 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7255 * src/SDCCmain.c: removed some unintended changes
7257 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7259 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
7260 * src/z80/gen.c: fixed part of bug #817589
7261 * src/SDCCsymt.c (checkFunction): fixed bug #817895
7263 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
7265 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
7276 * src/ds390/ralloc.c
7278 * src/mcs51/ralloc.c
7280 * src/pic16/ralloc.c
7283 * src/z80/gen.c: removed unused label "release:"
7285 2003-10-06 Borut Razem <borut.razem AT siol.net>
7287 * src/SDCC.lex: removed definition of unused variables
7288 save_optimize and save_options
7290 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
7292 * clean.mk: removed '=' in "-maxdepth=1"
7293 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
7294 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
7296 2003-10-06 Borut Razem <borut.razem AT siol.net>
7298 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
7299 my_unput() replaced by unput()
7301 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
7303 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
7304 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
7305 type-punned pointer will break strict-aliasing rules"
7306 Old LR behaviour is again default; Klaus' LR can be choosen by
7307 defining the environment variable LRKLAUS
7311 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
7312 * clean.mk: fixed removal of files in bin/CVS/
7313 * device/lib/clean.mk: fixed removal of directories small and large
7314 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
7316 * src/SDCCval.c: removed superflous test for pedantic
7318 2003-10-05 Borut Razem <borut.razem AT siol.net>
7320 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
7321 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
7322 message "unmatched #pragma SAVE and #pragma RESTORE"
7324 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7326 * doc/sdccman.lyx: various additions and updates (interrupts, inline
7327 assembly, critical functions, atomic, nojtbound)
7329 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
7331 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
7337 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7340 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7342 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7344 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7345 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
7346 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
7348 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7350 * src/z80/gen.c (genRet): fixed bug #524753
7351 * src/z80/gen.c (genCast): fixed internal error on cast from
7353 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
7354 fix for bug #477835 to the z80
7355 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
7356 for tracking iCodes in the peephole optimizer for z80
7358 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7360 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
7361 the other part of bug #814548
7362 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
7364 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
7366 * src/SDCCcse.c: fixed part of bug #814548
7368 2003-09-28 Borut Razem <borut.razem AT siol.net>
7370 * src/asm.c: rewrite of printILine() to use temporary file instead
7372 * src/xa51/main.c: commented out declaration of int rewinds
7374 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7376 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
7378 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7380 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
7381 * src/asm.c (printILine): Fixed bug #811015
7383 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7385 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
7388 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7390 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
7391 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
7392 to correctly handle general case of AOP_PAIRPTR
7393 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
7395 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7397 * src/mcs51/ralloc.c (fillGaps),
7398 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
7399 register positioning bug)
7401 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
7403 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
7405 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7407 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
7408 genCodePointerGet, genGenPointerGet, genFarPointerSet,
7409 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
7410 (ralloc doesn't intentionally do this now, but perhaps later)
7411 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
7412 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
7413 register positioning bugs (Fixed bug #762602 and #795325)
7414 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
7416 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
7417 lines that --i-code-in-asm generates
7419 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7421 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
7422 trying to fclose a FILE* that was already closed.
7424 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7426 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
7427 of const struct should be treated as if const themselves)
7429 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
7431 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
7433 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7435 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
7436 Unix (/n) and DOS (/r/n) line terminations.
7438 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7440 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
7443 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7445 * src/mcs51/gen.c (genFunction, genEndFunction),
7446 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
7447 and restore of EA so that stack offsets to parameters are
7448 correct when using both critical and reentrant/stack-auto.
7449 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
7450 size (can be triggered in error if sloc is shared between
7451 different sized objects)
7452 * device/include/float.h: fixed macros to explicitly use
7453 unsigned long where needed
7455 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7457 Feature req. 799831: added code to allow nesting of critical functions
7458 * src/mcs51/gen.c (genFunction, genEndFunction)
7459 * src/ds390/gen.c (genFunction, genEndFunction)
7461 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7463 * src/SDCCsymt.c (sclsFromPtr),
7465 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
7466 support for standard C idiom of memory mapped variables; for
7467 example, *((xdata int*)0x1234) = 1 is now internally equivalent
7468 to xdata int at 0x1234 tempvar = 1.
7469 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
7470 provided by Akiya ISHIDA
7472 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
7474 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
7475 * src/SDCCval.c (constVal): added reduction from int to char
7476 * src/SDCCval.c (valMult, valDiv): fixed sign handling
7477 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
7478 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
7480 * support/regression/tests/shifts.c: fixed
7482 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7484 * src/z80/gen.c (genXor): Fixed bug #805445
7486 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7488 Fixed bug #621531 (const & volatile confusion in the type chain).
7489 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
7490 refer to the const or volatile state of the pointer itself.
7502 * src/pic16/ralloc.c
7503 * support/regression/tests/const.c
7505 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7507 When checking for duplicated modules, use absolute paths
7508 instead of relative paths. Files changed:
7513 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7515 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
7517 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7519 * device/include/string.h: added size_t typedef, changed
7520 prototypes to use size_t, eliminated separate reentrant and
7521 non-reentrant declarations, added _memmove declaration
7522 * device/lib/_memcpy.c: changed to use size_t instead of int,
7523 changed /4 to >>2 to avoid division library call
7524 * device/lib/_memcmp.c,
7525 * device/lib/_memset.c,
7526 * device/lib/_strncat.c,
7527 * device/lib/_strncpy.c,
7528 * device/lib/_strncmp.c: changed to use size_t instead of int
7529 * device/lib/_memmove.c: new file (fixed bug #772294)
7530 * device/lib/Makefile.in: added _memmove.c
7531 * device/lib/z80/asm_strings.s: fixed bug #772290
7532 * support/regression/tests/bitfields.c: attempt to fix host assertion
7533 failure on amd64-unknown-linux2.2
7535 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7537 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
7538 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
7539 * as/z80/asmain.c (main): fixed bug #801766
7541 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
7543 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
7546 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7548 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
7549 reported in bug #800609
7551 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
7553 * Top header beautifications in src/pic16 directory:
7554 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
7555 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
7556 pcoderegs.h, ralloc.c, ralloc.h
7557 * main.c: added top header and GPL license notice
7558 * pcode.c: fixed the if-conditional warning
7560 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
7562 * device/lib/_mullong.c: replaced int by short for gcc
7564 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7566 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
7567 and JUMPTABLE iCodes properly now (worked by accident before)
7568 * src/mcs51/gen.c (leftRightUseAcc),
7569 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
7570 iCode properly now. Use getSize instead of nRegs since a & b
7571 aren't part of the nRegs tally.
7573 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
7575 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
7576 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
7577 before instructions that use the _STATUS register
7579 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
7581 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
7582 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
7583 fetching of the pointer
7584 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
7585 copied from genNearPointerSet()
7586 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
7587 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
7588 If they pop r0/r1 they must be called in the opposite order than aopOp().
7589 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
7590 (resp. --stack-auto), prepared for --xstack
7592 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7594 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
7596 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
7598 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
7599 these ports have their own __sdcc_external_start()
7601 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
7603 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7604 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
7605 type for bits was changed. It resulted in bit variables becoming
7606 global, which is not permitted in PIC 14 assembly output.
7608 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7610 * doc/sdccman.lyx: various additions and updates. Rearranged sections
7612 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7614 Z80 and MCS51 linkers complaint if a public symbol is defined
7615 in more than one library module:
7619 * as/mcs51/Makefile.in
7621 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7623 A few small changes that speed up the peephole optimizer.
7627 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7629 Try to make the peephole optimizer smarter by maintaining
7630 an association between the assembly source code and the
7631 iCodes that originated them. Put this information to use
7632 with a new peephole rule condition "notVolatile" so that
7633 the rules can be aggressive yet still safe.
7638 * src/mcs51/peeph.def
7640 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7644 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
7645 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
7646 if the left or right operand symbols have the accuse flag set.
7648 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7650 Changed the type of the result of the ! (NOT) operator to char;
7651 previously it returned the same type as the source. This allows
7652 us to eliminate all the genFloatNot functions (all of its target
7653 implementations were very buggy) since !float can use the same
7656 * src/SDCCicode.c (ast2iCode): ! returns char
7657 * src/mcs51/gen.c (genNot, genNotFloat),
7658 * src/ds390/gen.c (genNot, genNotFloat),
7659 * src/z80/gen.c (genNot, genNotFloat),
7660 * src/pic/gen.c (genNot, genNotFloat),
7661 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
7663 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
7665 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7666 1. Interrupt would not compile properly. Ensure PCLATH register is saved
7667 during interrupts. Ensure WSAVE is located at a shared bank address.
7668 2. Fixed page selection in some places
7669 3. Fixed BTFSS/C to where necessary use registers directly and not simply
7670 the registers name strings.
7671 4. Fixed "signed / unsigned compare" compiler warnings.
7672 5. The PIC port manages its own allocation of the general purpose
7673 registers, but makes no attempt to reuse them. As a result when
7674 compiling it soon runs out of general purpose registers. Some
7675 additional code was added to the files pcode.c and device.c to walk
7676 through the function call tree and rename the registers so that they
7686 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
7687 genPlus() & genMinus() when the result is the same as left or right
7689 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7691 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
7693 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7695 Made bitfield a distinct type from bit so that bitfields
7696 convert as per ANSI C and bits retain their traditional
7697 boolean style behaviour. Implemented bitfield support in
7705 * src/ds390/gen.c: bit v bitfield split
7706 * src/z80/gen.c: New support for bitfields
7707 * support/regression/tests/bitfields.c: reenabled z80,
7710 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7712 Rules 246.x, 247.x relate to bitfields, the others speed up
7713 access to xdata mapped I/O devices.
7715 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
7717 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7719 Cleaned up genPackBits and genUnpackBits and added two helper
7720 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
7721 for literal assignments in genPackBits (thanks to Frieder for
7727 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7729 Fixed bug #748310 (pointer to function type mishandled when the
7730 function name is omitted). Also fixed a SIGSEGV when a function
7731 attribute (reentrant, etc) is used on a non-function or on a
7732 function but misplaced before the parameter list.
7734 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
7736 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
7737 * support/Util/SDCCerr.h,
7738 * support/Util/SDCCerr.c: Added func attr misuse error msg
7740 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
7742 Fixed bug #787649 by anonymous
7743 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
7744 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
7746 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7748 Fixed numerous bitfield problems.
7750 * src/SDCC.y: More bitfield related error checking
7752 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
7753 * support/Util/SDCCerr.h,
7754 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
7755 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
7756 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
7757 * support/regression/tests/bitfields.c: tests added
7759 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7761 Made the constant following the "interrupt" keyword optional. If
7762 omitted, the function will not automatically be given an entry
7763 in the interrupt vector table (similar to #pragma NOIV, but
7764 less syntacticly kludgy). The interrupt number is also now
7765 range checked. Also fixed a bug in the high order bit example
7772 * support/Util/SDCCerr.c
7773 * support/Util/SDCCerr.h
7776 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
7778 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
7779 * src/SDCCicode.c (operandOperation): rewritten some ops
7780 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
7781 * src/SDCCsymt.c (computeType): literals are handled the same way as any
7783 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
7784 be re-activated by defining REDUCE_LITERALS)
7785 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
7786 unsigned, but are signed by default
7787 * src/SDCCval.c (constVal): rearranged
7788 * src/SDCCval.c (valMod): preliminary fix
7789 * src/SDCCval.c (valCastLiteral): use TYPE_* types
7790 * support/regression/literalop.c: added, work in progress
7792 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7794 Generate warnings for useless declarations like "char data;"
7795 that don't do what new users expect.
7798 * support/Util/SDCCerr.h
7799 * support/Util/SDCCerr.c
7801 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
7803 * src/SDCCval.c (valMult): fix overflow detection of negative int
7805 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7807 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
7809 Changes to support big endian targets:
7822 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
7824 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
7825 * device/lib/time.c: fixed warning "integer overflow in expression"
7827 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
7829 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
7830 * src/SDCCval.c (constVal): changed default to signed; hex and octal
7831 constants are unsigned; added recognition of "u" flag for unsigned
7832 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
7833 * src/SDCCval.c (valDiv, valMod): fixed signdness
7834 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
7835 signedness of modulo, left and right shift
7836 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
7837 * support/Util/SDCCerr.h: added warning W_INT_OVL
7838 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
7839 * src/SDCCast.c (ast_print): improved output of constants
7841 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7843 Fixed some warnings when building with MSVC:
7856 * support\cpp2\cpplib.c
7860 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
7862 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
7864 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7866 * support\librarian\clean.mk: Do not remove Makefile.
7867 * support\librarian\Makefile: added.
7869 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7871 Added librarian to MSVC build:
7874 * support\librarian\librarian.dsp
7876 'configure' not needed for librarian, removed:
7877 * support\librarian\configure
7878 * support\librarian\configure.in
7879 * support\librarian\config_in.h
7880 * support\librarian\Makefile.in
7882 Hopefully these ones built the librarian and the rest of sdcc properly:
7884 * Makefile.common.in
7886 Messed up 'configure', so revert to previous version:
7890 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
7892 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
7893 there, while the mantissa of a double is "only" 53 bits wide.
7895 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7897 Adding sdcclib to the build. MSVC project coming soon.
7898 Files added/changed:
7900 * support\librarian\clean.mk
7901 * support\librarian\configure
7902 * support\librarian\configure.in
7903 * support\librarian\config_in.h
7904 * support\librarian\Makefile.bcc
7905 * support\librarian\Makefile.in
7906 * support\librarian\sdcclib.c
7909 * Makefile.common.in
7913 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7915 Linker now complaints if linked modules have conflicting options, for
7916 example, one compiled using --model-large and another one compiled with
7917 --model-small. The following files were modified:
7939 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7941 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
7942 as/mcs51/lklibr.c: Generate a warning when a library is not found.
7944 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
7946 * src/z80/mappings.i: fix _mul[us][int,long] entries
7948 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7950 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
7952 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
7954 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
7955 * support/regression/tests/bitopcse.c: added
7963 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7965 added support for new library format to z80, gbz80 linkers:
7971 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
7973 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
7974 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
7976 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
7978 added DUMMY_READ_VOLATILE:
7987 * src/SDCCcse.c (algebraicOpts): many improvements
7988 * src/SDCCcse.h: removed algebraicOpts()
7989 * src/SDCCicode.c (picDummyRead): added
7991 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7993 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
7994 "Insufficient space in data memory".
7996 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7998 * src/mcs51/gen.c: fixed bug #771358
7999 * src/z80/gen.c: fixed bug #759087
8001 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
8003 * src/pic16/glue.c: minor cleanup by Vangelis
8005 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8007 * device/include/regc515c.h: fixed #758477
8008 * device/lib/_gptrget.c: saving some cycles in generic pointer get
8009 * device/lib/_gptrput.c: saved a few bytes
8010 * my tab spacing is 8, yours too?)
8011 * device/lib/_ser.c: process RX bytes earlier than TX bytes
8012 * device/lib/serial.c: process RX bytes earlier than TX bytes
8013 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8015 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8017 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8019 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8021 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8023 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
8025 * device/lib/Makefile.in: bad fix, reverted to 1.43
8027 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
8029 * device/lib/Makefile.in: added missing z80 object files
8031 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
8033 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8034 pic16 progress by Vangelis:
8049 * pic16/pcodepeep.c:
8052 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8054 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8056 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8058 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8059 added gbz80 build to MSVC project.
8060 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8061 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8062 from 8051 stuff and setup so it links using a .lnk file.
8064 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8066 * support/librarian/sdcclib.c: sdcc librarian.
8067 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8070 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8072 * as/mcs51/lkmain.c: properly handle extensions in function afile.
8074 2003-07-02 Borut Razem <borut.razem AT siol.net>
8076 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8077 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8078 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8079 src/xa51/main.c, src/z80/main.c:
8080 virtualization of glue() function: each port has it's own glue function,
8081 which is accessed by do_glue function pointer in PORT.general structure
8083 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8085 * DS800C400 fun, improved ROM interface and tinibios.
8087 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8089 * More support for DS80C400. Now includes beginning of interface to ROM.
8091 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
8093 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
8095 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8097 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
8099 2003-06-19 Borut Razem <borut.razem AT siol.net>
8101 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
8103 2003-06-19 Borut Razem <borut.razem AT siol.net>
8105 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
8106 fixed Z80 port - crt0.o: cannot open.
8108 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
8110 * support/Util/MySystem.c (merge_command): revert bad fix
8112 2003-06-18 Borut Razem <borut.razem AT siol.net>
8114 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
8116 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8118 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8119 option --use-stdout sends errors to stdout instead of stderr.
8121 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
8123 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
8125 2003-06-15 Borut Razem <borut.razem AT siol.net>
8127 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
8128 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
8129 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
8130 fixed width array of pointers replaced with sets;
8131 multiple include and lib paths ared transferred to preprocessor and linker
8132 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
8133 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
8134 fixed width array of pointers
8135 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
8136 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
8137 fixupPath(), getPathDifference()
8138 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
8139 fixed width array of pointers
8141 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
8143 * src/pic16/ralloc.c: fix warnings
8144 * src/pic16/pcode.c: fix warning
8146 2003-06-10 Scott Dattalo <scott AT dattalo.com>
8148 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
8149 know all the details, but essentially this set of changes enable
8150 the pic16 port to generate movff instructions and generate assembler
8155 * src/pic16/pcode.c:
8156 * src/pic16/device.c:
8158 * src/pic16/pcode.h:
8159 * src/pic16/pcoderegs.c:
8160 * src/pic16/ralloc.c:
8161 * src/pic16/ralloc.h:
8163 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8165 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8166 added option --vc, so sdcc errors and warnings are compatible with
8167 Microsoft Visual Studio.
8169 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8171 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
8172 device/lib/libfloat.lib: added atof function.
8174 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
8176 * doc/sdccman.lyx: updated to Lyx 1.3
8177 * doc/cdbfileformat.lyx: updated to Lyx 1.3
8178 * doc/test_suite_spec.lyx: updated to Lyx 1.3
8179 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
8181 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
8183 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
8185 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8187 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
8188 additions to the "related tools/documentation" section
8190 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
8192 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
8194 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
8196 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
8197 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
8199 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
8201 * doc/sdccman.lyx: fix double dash and other minor things
8202 * doc/Makefile: fix double dash
8204 2003-05-28 Karl Bongers(patches from Martin Helmling)
8205 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
8206 condition and ignore commands.
8208 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8210 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
8211 is in parts still quite out of date, I did changes as far as I felt makes sense
8212 for a non-native english speaker.
8213 Please feel free to add to the manual or to correct my changes.
8214 * doc/Makefile: undid touching the date of intermediate tex files.
8216 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8218 * doc/sdccman.lyx: Manual has an index now
8220 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
8222 Finalize muluint/mulsint and mululong/mulslong merging:
8223 * device/lib/_mulint.c
8224 * device/lib/_mullong.c
8225 * device/lib/gbz80/mul.s
8226 * device/lib/gbz80/stubs.s
8227 * device/lib/z80/mul.s
8228 * device/lib/z80/stubs.s
8229 * src/SDCCsymt.c (initCSupport)
8231 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8233 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
8234 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
8235 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
8236 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
8239 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8241 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
8242 the regression tests I'm not brave enough to enable 245.b, 245.c
8243 * doc/sdccman.lyx: added latex preamble for hyperref package.
8244 Using pdflatex this will give you a hyperlinked pdf file with
8245 bookmarks. (prepend '%' before /usepackage if this breaks something)
8247 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8249 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
8251 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
8253 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
8255 2003-05-21 <johan AT balder>
8257 * src/SDCCglue.c (printIval): fixed bug #739934
8259 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
8261 Applied patch from bug 737905 (renamed yylineo to mylineno):
8268 * src/pic16/pcode.c: Cleaned warnings
8269 * src/pic16/pcodeflow.c: Cleaned warnings
8270 * src/pic16/pcoderegs.c: Cleaned warnings
8272 2003-05-19 Scott Dattalo <scott AT dattalo.com>
8274 * src/pic16/pcode.c: Cleaned warnings
8275 * src/pic16/pcodepeep.c: Cleaned warnings
8276 * src/pic16/ralloc.c: Cleaned warnings
8278 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
8280 * doc/sdccman.lyx: fixed bug 739745
8281 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
8283 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
8285 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
8286 it can be defined with CFLAGS when running configure
8287 * src/SDCCmain.c: fixed compiling + linking with object files
8289 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
8291 * configure.in: configure for pic16 port,
8292 added --disable-pic16-port
8293 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
8294 * src/SDCCmain.c: linkOptions is changed to set *,
8295 added if/endif conditional macros to remove options help
8296 messages from optionsTable when a port is not configured, added
8297 support for the PIc16 port in the ports table, when executing
8298 the compiler with no port specified on command line, a default
8299 port is selected with the new macro DEFAULT_PORT which is
8300 defined in port.h, in setDefaultOptions() linkOptions is removed
8301 from initialization assignment, since now it is a set,
8302 parseCmdLine uses setParseWithComma for linkOptions, in
8303 linkEdit() linkOptions are accessed with new function indexSet()
8304 which returns the i'th item of a set variable. See SDCCset.c, in
8305 linkEdit() when calling buildCmdLine(), added linkOptions as
8306 last argument. Now users can pass arguments to gplink via the
8307 -Wl option, main() uses pic16glue() to glue up pic16 programs
8308 * src/SDCCpeeph.c: various changes to support pic16
8309 * src/SDCCset.c: added function void *indexSet(set *, int) to
8310 return the i'th item of the set
8311 * src/SDCCset.h: added function prototype for indexSet()
8312 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
8313 * src/clean.mk: added pic16 in CLEANALLPORTS variable
8314 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
8315 added macro DEFAULT_PORT
8316 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
8317 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
8319 * src/pic16/glue.c: commented out some error producing lines
8320 * src/pic16/main.c: __config directives are commented out to stop
8321 gpasm complaining and test the linkage with gplink, _linkCmd and
8322 _asmCmd changed to be more gplink and gpasm friendly
8323 * src/pic16/peeph.def: peep rule 3 is commented out, since it
8324 produced an error when parsed, peep rule 12 is added to utilize
8325 movff, but it is commented out since the pCode does not support
8326 yet a command with 2 address arguments
8328 2003-05-18 <johan AT balder>
8330 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8331 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8332 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
8334 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
8335 Added feature to script commands from file.
8337 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
8339 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
8340 * src/SDCCutil.c: include ctype.h for win32
8342 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
8344 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
8346 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
8348 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
8349 Fixed so you can set breakpoints prior to run, run does not stop
8350 on entry now. Add tbreak. Other enhancements and fixes for use
8353 2003-05-12 Borut Razem <borut.razem AT siol.net>
8355 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
8357 2003-05-11 Borut Razem <borut.razem AT siol.net>
8359 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
8360 the path of bin directory, so that PATH is the only env. variable, which has to be set
8361 in case of standard installation.
8362 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
8363 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
8364 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
8366 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
8368 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
8369 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
8370 temp files are in the port dir; clean the gen/test directory when
8371 generating new test.c
8372 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
8373 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
8374 * support/regression/tests/zeropad.c: added
8376 2003-05-09 <johan AT balder>
8378 * src/SDCCglue.c: fixed bug #597940
8380 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
8382 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8383 cache sfr, optimize next,step, fix off by one sourceline,
8384 support ddd list function.
8385 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
8387 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
8389 * support/regression/HTMLgen.py: added compare_s2f()
8390 * support/regression/Makefile: redo 1.27
8391 * support/regression/generate-cases.py: redo 1.5
8393 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
8395 * support/regression/tests/float.c: workaround 33 bit hex constant
8396 * support/regression/tests/simplefloat.c: fix division for host
8398 2003-04-29 Scott Dattalo <scott AT dattalo.com>
8400 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
8401 that tame's the PIC's over-aggressive optimizer.
8403 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8405 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
8408 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
8410 Initial support for DS80C400. "Hello world" runs on TINIm400
8413 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
8415 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8416 * Some notes on ddd usage added in debugger/README
8417 Martin Helmling adding more features and fixes for ddd GUI debugger.
8418 Code added for nexti, stepi, up, down, and other adjustments.
8420 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
8422 * src/pic/pCodepeep.c non-wildcard asmops are now handled
8423 * src/pic/peeph.def Added two rules to optimize carry manipulation
8424 * src/pic/* removed debug printfs
8426 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
8428 * debugger/mcs51/cmd.c: added header newalloc.h
8430 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
8432 * as/Makefile: new EXEEXT
8433 * as/z80/Makefile: remove trailing slash of BUILDIR
8434 * as/z80/clean.mk: new EXEEXT
8435 * Makefile.common.in: add to CFLAGS (and others), don't replace it
8436 * support/cpp2/Makefile.in: new EXEEXT
8437 * src/pic/glue.c (pic14emitRegularMap): fixed warning
8439 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
8441 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
8442 EXEEXT was introduced to fix all related problems with targets
8443 "clean", "install" and "uninstall"; a couple of further flaws
8444 especially with "clean" have been fixed too
8445 * as/mcs51/Makefile.in
8450 * debugger/mcs51/Makefile.in
8451 * debugger/mcs51/clean.mk
8453 * link/z80/Makefile.in
8456 * packihx/Makefile.in
8458 * sim/ucsim/Makefile
8459 * sim/ucsim/clean.mk
8460 * sim/ucsim/avr.src/Makefile.in
8461 * sim/ucsim/avr.src/clean.mk
8462 * sim/ucsim/s51.src/Makefile.in
8463 * sim/ucsim/s51.src/clean.mk
8464 * sim/ucsim/xa.src/Makefile.in
8465 * sim/ucsim/xa.src/clean.mk
8466 * sim/ucsim/z80.src/Makefile.in
8467 * sim/ucsim/z80.src/clean.mk
8468 * sim/ucsim/main_in.mk
8469 * sim/ucsim/packages_in.mk
8470 * sim/ucsim/gui.src/Makefile.in
8471 * sim/ucsim/gui.src/serio.src/Makefile.in
8472 * sim/ucsim/gui.src/serio.src/clean.mk
8475 * support/cpp2/Makefile.in
8476 * support/cpp2/clean.mk
8477 * support/makebin/Makefile
8478 * support/makebin/clean.mk
8479 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
8480 * doc/sdccman.lyx: --program-suffix no longer needed
8482 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
8484 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
8485 Martin Helmling added support for ddd GUI debugger.
8486 Code added to display assembly, set variables, and other commands
8487 to interface to ddd.
8489 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
8491 * as/Makefile: fix target clean
8492 * as/clean.mk: fix target clean
8493 * as/z80/clean.mk: fix target clean
8495 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
8497 * Makefile.common.in: added AT EXEEXT AT
8498 * configure.in: removed all mingw32 stuff
8499 * configure: rebuilt from configure.in
8500 * doc/sdccman.lyx: updated section "installation"
8501 * support/scripts/sdcc_mingw32: adapted to configure
8502 * support/scripts/sdcc_cygwin_mingw32: added
8504 2003-04-22 Scott Dattalo <scott AT dattalo.com>
8506 * src/pic Added object file support for the PIC port
8507 * src/pic Applied patch from Craig Franklin (this started the object file support)
8508 * src/regression Updated the PIC regression tests for object files
8510 2003-04-20 Borut Razem <borut.razem AT siol.net>
8512 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
8513 lklex.c: In function `getfid':
8514 lklex.c:203: warning: array subscript has type `char'
8515 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
8516 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
8517 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
8518 stack handling macros
8520 2003-04-19 Borut Razem <borut.razem AT siol.net>
8522 * "handling space characters in file path" task:
8523 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
8524 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
8525 * support/Util/MySystem.h: make it self-sufficient
8526 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
8527 src/z80/main.c, sdcc/as/mcs51/lklex.c:
8528 handling space characters in file path
8529 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
8530 (it will be used by assemblers, which have their own includes, e.g. gpasm)
8531 * support/Util/MySystem.c: handling space characters in executable's path
8533 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
8535 * as/z80/Makefile: fix permanent rebuild of z80
8536 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
8537 * support/regression/tests/bitfields.c: added Johan's bitfields.c
8539 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
8541 * src/SDCCopt.c: add special case optimization to replace modulo by
8542 a power of two with a bitwise AND.
8544 2003-04-18 <johan AT balder>
8546 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
8548 2003-04-17 <johan AT balder>
8550 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
8551 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
8553 2003-04-13 Borut Razem <borut.razem AT siol.net>
8555 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
8556 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
8557 fixed mingw problem in adl_NORMALIZE_PATH
8559 2003-04-12 Borut Razem <borut.razem AT siol.net>
8561 * fixed "#pragma SAVE/RESTORE can not be nested":
8562 * src/SDCC.lex: reworked pragma handling functions
8563 * sdcc/src/SDCCglobl.h: reworked stack handling macros
8564 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
8566 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
8568 * src/SDCCutil.c (pathEquivalent): defined but not used
8569 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
8570 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
8571 * configure: rebuilt from configure.in
8572 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8573 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8574 * device/include/Makefile.in: replace sdcc_datadir
8575 * device/lib/Makefile.in: replace sdcc_datadir
8576 * Makefile.common.in: add LDFLAGS from configure
8577 * packihx/Makefile.in: use LDFLAGS
8578 * src/Makefile.in: use LDFLAGS
8579 * support/cpp2/Makefile.in: add LDFLAGS from configure
8580 * support/makebin/Makefile: use LDFLAGS
8581 * .version: bumped version number to 2.3.5
8583 2003-04-12 Borut Razem <borut.razem AT siol.net>
8585 * completed "different paths" task:
8586 * src/SDCCmacro.c: fixed bug in handling quotes
8587 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
8588 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
8590 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
8592 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
8594 2003-04-11 kevin Vigor <kevin AT vigor.nu>
8596 * ds390/gen.c ds390/peeph.def: fix bug 706781
8598 2003-04-11 Borut Razem <borut.razem AT siol.net>
8600 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
8602 2003-04-10 Scott Dattalo <scott AT dattalo.com>
8604 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
8605 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
8606 set - this bit used to not be set...).
8607 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
8608 bad code in PIC Port
8609 * src/regression/and2.c added to test bug 609268
8610 * src/regression/Makefile added and2.c to regression test
8613 2003-04-08 <johan AT CP255758-A>
8615 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
8616 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
8617 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
8619 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
8621 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
8623 * support/cpp2/Makefile.in: fix bug #487815
8624 * configure: rebuilt from configure.in
8625 * Makefile.common.in: docdir changed, new path suffixes
8626 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8627 * sdcc_vc_in.h: reflect changes from sdccconf.h
8628 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
8629 * src/SDCCutil.h: remove BINDIR hack
8630 * doc/sdccman.lyx: update new path hierarchy
8632 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
8634 * src/SDCCpeeph.c: added okToRemoveSLOC test
8636 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
8638 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
8640 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
8642 * src/SDCCpeeph.c: added labelIsReturnOnly test
8643 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
8645 2003-04-05 <johan AT balder>
8647 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
8648 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
8649 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
8650 * src/SDCCast.c: fixed a warning
8651 * src/SDCCast.h: fixed a warning
8652 * src/SDCCicode.c (operandFromAst): fixed a warning
8654 2003-04-04 <johan AT balder>
8656 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
8657 * src/SDCCast.c (decorateType): fixed bug #715076
8658 * src/SDCC.y: fixed bug #702907
8660 2003-04-03 <johan AT balder>
8662 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
8663 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
8664 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
8665 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
8666 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
8668 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
8670 * _decdptr.c: fix return values
8671 * _gptrget.c: fix return values
8672 * _gptrgetc.c: fix return values
8673 * _gptrput.c: fix return values
8674 * _mulint.c: fix return values
8675 * as/z80/Makefile: fix 'make -j' problem
8677 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
8679 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
8680 * configure.in: big cleanup, updated to autoconf 2.5x
8681 * configure: rebuilt from configure.in
8682 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8683 * sdcc_vc_in.h: reflect changes from sdccconf.h
8684 * doc/Makefile: fixed a flaw in "make install"
8686 2003-04-02 <johan AT balder>
8688 * src/ds390/gen.c (genCmp): no comments
8689 * src/mcs51/gen.c (genCmp): no comments
8690 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
8691 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
8693 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
8695 * support/regression/generate-cases.py: place generated file in given sub directory
8696 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
8697 * support/regression/Makefile: improvements for 'make -j';
8698 side effect: it's simpler and faster now
8700 2003-03-31 Borut Razem <borut.razem AT siol.net>
8702 * src/z80/main.c: link-{port} and as-{port} defined without path
8703 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
8705 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
8707 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
8709 2003-03-30 Borut Razem <borut.razem AT siol.net>
8711 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
8712 changed type of list parameter to set
8713 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
8714 * src/port.h: changed type of do_assemble() parameter to set
8715 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
8716 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
8717 definition of "cppoutfilename" macro with NULL value in preProcess()
8718 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
8719 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
8720 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
8721 replaced with set *binPathSet
8722 * shash_add() deallocates the item, if allready exsists, before adding the new one
8723 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
8725 2003-03-30 Scott Dattalo <scott AT dattalo.com>
8727 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
8728 a nested for loop bug in the PIC port
8729 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
8732 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
8734 * support/Util/dbuf.h: remove C++ stuff to make it portable
8736 2003-03-28 Borut Razem <borut.razem AT siol.net>
8738 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
8739 literal strings in stringLiteral()
8740 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
8741 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
8744 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
8746 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
8748 2003-03-26 <johan AT balder>
8750 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
8751 * src/ds390/gen.c (saveRegisters): catched symbol abuse
8752 * src/SDCCast.c (decorateType): fixed " -v < 3"
8754 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8756 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
8757 Added Lenny Story's debug infrastructure changes:
8758 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
8759 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
8760 * src/cdbFile.c: added
8761 * src/SDCCdebug.c: added
8762 * src/SDCCdebug.h: added
8763 * src/SDCCast.c (createFunction)
8764 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
8765 * src/SDCCmain.c (parseCmdLine, main)
8766 * src/SDCCmem.c (redoStackOffsets)
8767 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
8770 * src/avr/gen.c (genAVRCode)
8771 * src/ds390/gen.c (gen390Code)
8772 * src/mcs51/gen.c (gen51Code)
8773 * src/pic/gen.c (genpic14Code)
8774 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
8775 * src/xa51/gen.c (genXA51Code)
8776 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
8778 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8780 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
8781 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
8783 2003-03-22 <johan AT balder>
8785 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
8787 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
8789 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
8790 * doc/cdbfileformat.lyx: added, written by Lenny Story
8791 * doc/Makefile: added cdbfileformat.lyx
8792 * doc/clean.mk: added cdbfileformat.lyx
8794 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
8796 * src/mcs51/peeph.def: fix bug #705773
8798 2003-03-20 <johan AT balder>
8800 An sfr/sbit can have an "at #" AND an initializer
8801 * src/SDCCsymt.c (checkSClass):
8802 * src/SDCCmem.c (allocGlobal):
8803 * src/SDCCmem.c (allocLocal):
8804 * src/SDCCast.c (createBlock):
8806 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
8808 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
8810 2003-03-16 <johan AT balder>
8812 Undid the hackup of const and volatile, the problem is much bigger
8814 * src/SDCCast.c:1.171
8815 * src/SDCCglue.c:1.138
8816 * src/SDCCicode.c:1.146
8817 * src/SDCCsymt.c:1.150
8818 * src/SDCCval.c:1.65
8820 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
8822 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
8823 * src/ds390/gen.c (genAddrOf): fixed bug #704087
8825 2003-03-13 <johan AT balder>
8827 Hackup const and volatile modifiers in type chains a bit:
8829 * src/SDCCast.c:1.169
8830 * src/SDCCglue.c:1.136
8831 * src/SDCCicode.c:1.143
8832 * src/SDCCsymt.c1.146
8833 * src/SDCCsymt.h1.59
8834 * src/SDCCval.c:1.63
8836 2003-03-12 <johan AT balder>
8838 * src/SDCCBBlock.h: more LRH debugging junk
8839 * src/SDCCcflow.h: more LRH debugging junk
8840 * src/SDCCloop.c: more LRH debugging junk
8841 * src/SDCC.y (struct_declaration): fixed bug #697590
8842 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
8843 * src/ds390/gen.c (aopForRemat): fixed bug #700031
8844 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
8846 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8847 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
8848 test function names must now match exactly).
8849 * src/SDCCcse.c: added special case in findCheaperOp to allow
8850 extending a short integer. Makes less awful code for bug 700121 test case.
8852 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8854 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
8855 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
8857 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8859 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
8860 actually called (operandsNotEqual() was called for all
8861 operandsNotEqualX tests).
8863 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8865 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
8866 with shorter literals. Fixes bug 700121.
8868 2003-03-11 <johan AT balder>
8870 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
8872 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
8874 * src/SDCCloop.c (mergeRegions): an evil beast is dead
8875 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
8877 2003-03-10 Borut Razem <borut.razem AT siol.net>
8879 * src/SDCCmain.c: pipe preprocessor's output
8880 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8881 * sdcc_vc_in.h: define pclose as _pclose for WIN32
8882 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8883 which closes all pipes in pipeSet set
8884 * src/SDCCset.c: free deleted item in function deleteSetItem()
8885 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8886 moved from z80 to src subproject
8887 * .version: increased version number to 2.3.4
8889 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
8891 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
8892 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
8893 * support/regression/ports/xa51/spec.mk: fix typo
8895 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
8897 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
8899 2003-03-09 Borut Razem <borut.razem AT siol.net>
8901 * src/SDCCmain.c: pipe preprocessor's output
8902 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8903 * sdcc_vc_in.h: define pclose as _pclose for WIN32
8904 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8905 which closes all pipes in pipeSet set
8906 * src/SDCCset.c: free deleted item in function deleteSetItem()
8907 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8908 moved from z80 to src subproject
8910 2003-03-09 Borut Razem <borut.razem AT siol.net>
8912 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
8913 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
8914 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
8915 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
8916 * src/SDCCglobl.h: unification of WIN32 native definitions
8918 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8920 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
8922 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
8924 * src/configure.in: check for endianess (even while cross-compiling)
8925 * src/configure: check for endianess (even while cross-compiling)
8926 * src/configure_in.h: check for endianess (even while cross-compiling)
8927 * src/avr/gen.c: remove old endianess stuff
8928 * src/mcs51/gen.c: remove old endianess stuff
8929 * src/ds390/gen.c: remove old endianess stuff
8930 * src/pic/gen.c: remove old endianess stuff
8931 * src/pic/genarith.c: remove old endianess stuff
8932 * src/pic/glue.c: fix endianess check
8933 * src/pic16/gen.c: remove old endianess stuff
8934 * src/pic16/genarith.c: remove old endianess stuff
8935 * src/pic16/glue.c: fix endianess check
8936 * src/xa51/gen.c: remove old endianess stuff
8937 * src/z80/gen.c: fix endianess check
8938 * src/SDCCglue.c: fix endianess check
8939 * src/ds390/peeph.def: fix bug 700036
8941 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
8943 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
8944 * src/configure: find appropriate data-types on host for SDCC's int and long
8945 * src/configure.in: find appropriate data-types on host for SDCC's int and long
8946 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
8947 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
8949 2003-03-07 <johan AT balder>
8952 some minor cleanups before the big shot
8953 OP_DEFS and OP_USES now use Kevin's protection
8954 new option --nolabelopt
8965 * src/ds390/ralloc.c:
8966 * src/mcs51/ralloc.c:
8968 * src/xa51/ralloc.c:
8971 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
8973 * src/pic/pcode.c (get_op): fix 64 bit warnings
8974 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
8975 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
8976 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
8977 * support/regression/tests/malloc.c: fix 64 bit warnings
8979 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
8981 * src/mcs51/gen.c (genMinus): fixed bug 696436
8983 2003-03-02 Borut Razem <borut.razem AT siol.net>
8985 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
8987 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
8989 * configure.in: test for mkstemp
8990 * sdccconf_in.h: add HAVE_MKSTEMP
8992 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
8994 * device/include/ctype.h: removed warning while using --stack-auto
8995 * device/include/malloc.h: removed warning while using --stack-auto
8996 * device/include/string.h: removed warning while using --stack-auto
8998 2003-02-23 Borut Razem <borut.razem AT siol.net>
9000 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9001 because NDEBUG is defined (see man assert)
9002 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9004 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9006 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9007 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9009 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9011 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9012 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9014 2003-02-18 <johan AT balder>
9016 * as/mcs51/asmain.c (asmbl): module can start with a digit
9017 * as/z80/asmain.c (asmbl): module can start with a digit
9019 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9021 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9022 * src/asm.c: fix pipe() for Mingw32
9024 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
9026 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9027 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9028 make -V work again; --c1mode reads now from stdin
9029 * doc/sdccman.lyx: added --c1mode
9030 * support/Util/SDCCerr.c: new messages for c1 mode
9031 * support/Util/SDCCerr.h: new messages for c1 mode
9032 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9034 2003-02-15 <johan AT balder>
9036 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9038 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
9040 * doc/sdccman.lyx: Environment variables, -o and other minor things
9042 2003-02-14 <johan AT balder>
9044 * src/xa51/main.c: before anyone really tries to use it :)
9046 * Install doc's in share/sdcc/doc
9047 * removed some obsolete files
9048 * Do a proper make distclean and uninstall
9049 M Makefile.common.in
9052 M device/include/Makefile.in
9053 M device/lib/Makefile.in
9056 M sim/ucsim/doc/Makefile.in
9059 R src/xa51/peeph.rul
9060 M support/cpp2/Makefile.in
9061 M support/makebin/Makefile
9064 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9066 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9068 2003-02-10 Borut Razem <borut.razem AT siol.net>
9070 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9071 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9072 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9073 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9074 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9075 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9076 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9077 src/z80/Makefile.bcc: Borland Makefile cleanup
9078 * as/z80/Makefile.bcc: Added Borland Makefile
9079 * support/cpp2/borland.h: Removed
9081 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
9083 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9084 * src/SDCC.lex: new pragma NOIV
9085 * src/SDCCglobl.h: new pragma NOIV
9086 * src/SDCCmem.c: new pragma NOIV
9088 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9090 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
9092 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9094 * src/SDCCmain.c: signal handling is switched off by --debug
9095 * doc/Makefile: small fix for install; use clean.mk again
9096 * doc/clean.mk: clean *.pdf and *.html too
9098 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
9100 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
9101 * device/lib/printfl.c: fix a ds390 bug by making it portable
9102 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
9103 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
9104 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
9105 * debugger/mcs51/cmd.c: converted multi-line string literals
9106 * sim/ucsim/globals.cc: converted multi-line string literals
9107 * src/SDCCmain.c: introduced signal handler to remove temp files
9108 * doc/Makefile: small tweaks, implement clean
9109 * doc: removed generated files
9111 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9113 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
9114 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
9115 Address Record is not correctly generated for DS390."
9117 2003-02-02 Borut Razem <borut.razem AT siol.net>
9119 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
9120 * as/mcs51/asm.h: fixed compilation with Borland C
9121 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
9122 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
9123 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
9124 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
9125 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
9126 src/z80/Makefile.bcc: delete $(LIB) only if exist
9127 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
9129 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
9131 * device/include/malloc.h: introduced NULL
9132 * device/include/string.h: introduced NULL
9133 * device/include/stdlib.h: introduced NULL
9134 * device/lib/_memcpy.c: removed NULL
9135 * device/lib/_strcat.c: removed NULL
9136 * device/lib/_strchr.c: removed NULL
9137 * device/lib/_strcmp.c: removed NULL
9138 * device/lib/_strcpy.c: removed NULL
9139 * device/lib/_strcspn.c: removed NULL
9140 * device/lib/_strlen.c: removed NULL
9141 * device/lib/_strncat.c: removed NULL
9142 * device/lib/_strncmp.c: removed NULL
9143 * device/lib/_strncpy.c: removed NULL
9144 * device/lib/_strpbrk.c: removed NULL
9145 * device/lib/_strrchr.c: removed NULL
9146 * device/lib/_strspn.c: removed NULL
9147 * device/lib/_strstr.c: removed NULL
9148 * device/lib/_strtok.c: removed NULL
9149 * device/lib/malloc.c: removed NULL, include own header
9151 2003-02-02 <johan AT balder>
9153 * 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
9154 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
9155 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
9156 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
9157 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
9158 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
9160 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9162 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
9165 2003-02-01 <johan AT balder>
9167 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
9169 2003-01-31 <johan AT CP255758-A>
9171 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
9173 2003-01-30 <johan AT balder>
9175 * src/SDCCBBlock.c: automatic bug detection
9176 * src/SDCCicode.c: automatic bug detection
9178 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9180 * src/SDCCglobl.h: now --xram-size 0 works
9181 * src/SDCCmain.c: now --xram-size 0 works
9183 2003-01-29 <johan AT balder>
9185 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
9187 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9189 * as/mcs51/aslink.h: Added options --xram-size and --code-size
9190 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
9191 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
9192 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
9193 * src/SDCCglobl.h: Added options --xram-size and --code-size
9194 * src/SDCCmain.c: Added options --xram-size and --code-size
9196 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
9198 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
9199 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
9201 2003-01-27 <johan AT balder>
9203 * src/SDCC.y: fixed bug #613764
9205 2003-01-26 <johan AT balder>
9207 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
9208 * src/SDCCsymt.h: fixed bug #673374
9209 * src/SDCCglue.c: fixed bug #661910
9210 * src/SDCCast.c: fixed bug #458099 and 673374
9212 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
9214 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
9215 * as/mcs51/strcmpi.h: added
9216 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
9217 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
9218 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
9219 * as/mcs51/assym.c: strcmpi -> as_strcmpi
9220 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
9221 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
9222 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
9223 * as/mcs51/Makefile.aslink: new module strcmpi
9224 * as/mcs51/Makefile.asx8051: new module strcmpi
9225 * as/mcs51/Makefil.bcc: new module strcmpi
9226 * as/mcs51/Makefile.in: new module strcmpi
9227 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
9229 2003-01-26 <johan AT balder>
9231 * src/SDCCglue.c: reverted back to 1.124
9232 * src/SDCCast.c: reverted back to 1.156
9233 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
9235 2003-01-25 <johan AT balder>
9237 * src/SDCCglue.c: A better fix for bug #661910
9238 * src/SDCCast.c: A better fix for bug #661910
9239 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
9241 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
9243 * src/Makefile.in: remove spawn.o
9244 * src/SDCCmain.c: remove spawn.h
9245 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
9246 * src/spawn.c: removed
9247 * src/spawn.h: removed
9248 * support/regression/ports/ds390/spec.mk: link with -r
9250 2003-01-24 <johan AT CP255758-A>
9252 * src/ds390/gen.c (aopOp): fixed bug #667458
9253 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
9254 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
9255 (createIvalCharPtr): an ival doesn't always have a storage class anymore
9257 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
9259 * src/mcs51/peeph.def: better assembler identation by Frieder
9260 * src/mcs51/gen.c: better assembler identation by Frieder
9262 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
9264 * as/z80/string.h: removed for gcc 3.2
9265 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
9266 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
9268 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
9270 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
9271 * src/SDCCpeeph.c (replaceRule): fix bug #663503
9272 * support/regression/Makefile: separate temp files for ports
9273 * support/regression/generate-cases.py: separate temp files for ports
9274 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9275 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9277 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
9279 * moved tinitalk to device/examples/ds390
9281 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
9283 * as/mcs51/lkmem.c: rflag is for DS390
9284 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
9285 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
9286 (linkEdit): move mem- and map-files the same way as ihx-files
9287 * src/z80/main.c (_setDefaultOptions): removed --generic
9288 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
9289 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
9290 * src/pic/glue.c (picglue): --c1mode works again
9291 * src/pic16/glue.c (pic16glue): --c1mode works again
9292 * src/asm.c (printCLine): fix #660034
9294 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
9296 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
9297 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
9298 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
9299 * as/mcs51/lkmem (summary): better fix for sp problem
9300 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
9301 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
9302 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
9303 remove --stack-after-data
9305 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9307 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
9308 * src/SDCCutil.c (join): ugly bug: missing '\0'
9309 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
9311 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
9313 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
9315 * src/pic/main.c (_asmCmd): gpasm supports -o
9316 * src/z80/main.c: more general macros
9317 * device/lib/Makefile.in: remove intermediate files
9319 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
9321 * .version: Bumped version number to 2.3.3
9322 * src/SDCCBBlock.c: new option -o
9323 * src/SDCCglobl.h: new option -o
9324 * src/SDCCglue.c: new option -o
9325 * src/SDCCmain.c: new option -o
9326 * src/asm.c: new option -o
9327 * src/ds390/main.c: new option -o
9328 * src/pic/glue.c: new option -o
9329 * src/pic/pcode.c: new option -o
9330 * src/pic/ralloc.c: new option -o
9331 * src/pic16/glue.c: new option -o
9332 * src/pic16/pcode.c: new option -o
9333 * src/pic16/ralloc.c: new option -o
9334 * src/z80/main.c: new option -o
9335 * device/lib/Makefile.in: use -o
9336 * support/regression/ports/ds390/spec.mk: use -o
9337 * support/regression/ports/gbz80/spec.mk: use -o
9338 * support/regression/ports/mcs51/spec.mk: use -o
9339 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
9340 * support/regression/ports/z80/spec.mk: use -o
9341 * support/regression/ports/ucz80/spec.mk: use -o
9342 * support/regression/ports/xa51/spec.mk: use -o
9343 * support/regression/fwk/lib/timeout.c: fix usage string
9345 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
9346 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
9348 2003-01-07 <johan AT balder>
9350 * src/SDCCast.c (decorateType): fixed bug #600035
9352 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
9353 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
9354 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
9355 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
9356 * src/pic/pcode.c: outcommented unused variable to remove warnings
9357 * src/pic/ralloc.c: outcommented unused variable to remove warnings
9359 2003-01-06 <karl AT turbobit.com>
9360 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
9363 2003-01-06 <johan AT balder>
9365 * src/SDCCicode.c: fixed array add
9367 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
9368 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
9369 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
9371 2003-01-04 <johan AT balder>
9373 * src/SDCCval.c (getNelements): fixed the initialized array of structures
9375 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9376 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
9378 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
9379 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
9380 * support/regression/tests/bug-524697.c: fit mem usage into 8032
9382 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
9383 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
9385 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
9386 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
9388 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
9389 * src/mcs51/main.c: removed {bindir}{sep} from aslink
9391 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9393 * in \sdcc\as\mcs51\ changed these files in order to create an
9394 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
9395 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
9396 following files to include the previous two files: aslink.dsp,
9397 Makefile.aslink, Makefile.bcc, and Makefile.in.
9399 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
9400 .adb instead of .cdb
9402 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9404 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
9405 value from option --iram-size.
9407 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9409 * \sdcc\as\mcs51\lklist.c: added boundary check before using
9412 2002-09-18 <wiml AT hhhh.org>
9414 * SDCClrange.h: exposed setFromRange() and setToRange()
9415 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
9416 packRegsForAccUse() (bug 542397)
9417 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
9418 multiple times and emitting the fetch operations more than once
9419 added aopGetUsesAcc() function to allow binary operators to
9420 fetch their operands in the correct order; made genMinus() emit
9421 compact code for X = LITERAL - Y
9423 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9424 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
9425 sprintf() in line 1267.
9427 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9428 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
9431 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9432 Changes to aslink (All the changes are marked with 'JCF'):
9434 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
9437 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
9438 area BSEG. Also moves, if possible, the DATA area down into the internal
9439 ram so more space is available.
9441 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
9444 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
9445 not bytes. Function summary() which creates a memory usage summary
9446 file with extension .mem. Reports of overlaping stack and small stack
9447 size. If the space for the stack is less than 16 bytes aslink trows a
9450 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
9451 the 8051. Option 'y' for memory summary output file.
9453 Changes to sdcc (All the changes are marked with 'JCF'):
9455 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
9457 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
9458 overlaying area for it (uses RegBankUsed[4]).
9460 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
9461 bank zero as used by default. By default aslink locates the stack
9462 (equivalent to --stack-after-data). Pass option 'y' to aslink for
9463 the creation of the .mem file. Delegates the allocation of data area
9464 to aslink (it is not longer 0x30 by default). If --stack-loc passes
9465 the begining of the stack area to aslink.
9467 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
9468 glue() in SDCCglue.c creates an area for it.
9470 2002-09-03 Borut Razem <borut.razem AT siol.net>
9471 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
9472 sdcc/src/pic/glue.c:
9473 introduced atexit() handler for teporay files removal in case of
9474 errors, assertions, ...
9476 2002-08-29 Borut Razem <borut.razem AT siol.net>
9477 * sdcc/support/cpp2/auto-host_vc_in.h:
9478 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
9479 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
9480 Maybe there is a similar problem with BORLANDC? It should be checked!
9482 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
9483 corrected improper use of assert: the assignment to clr variable was done inside the assert.
9484 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
9485 was not executed, and the compiler (cl) launched a warning:
9486 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
9488 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
9489 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
9491 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
9492 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
9494 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9495 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
9496 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
9497 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9498 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
9499 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
9500 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
9501 - added Release configuration in VS projects
9502 - review of compiler an linker options
9503 - VC .exe files are generated in bin_vc directory, not to interfere
9504 with binaries generated from other projects (cygwin, mingw, bcc ...)
9506 * sdcc/src/yacc.dsp: added
9508 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
9509 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
9510 and insert the version number definitions from .version
9512 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
9514 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
9515 added - genarate auto-host.h using auto-host_vc_in.h as template
9518 removed from CVS, generated automatically
9520 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
9521 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
9523 2002-08-11 Borut Razem <borut.razem AT siol.net>
9524 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
9526 2002-08-10 Borut Razem <borut.razem AT siol.net>
9527 * src/SDCCmain.c (main):
9528 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
9529 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
9530 The consequence was that some temporary files were not removed.
9533 unification of code in functions tempfilename() and tempfile():
9534 function tempnam() is defined in Visual Studio 6.0 and .NET
9536 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
9538 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9539 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
9540 - removed compiler command line option /WX: Treats all warnings as errors
9541 - update a list of source files, included into the project
9543 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9544 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
9545 changed project type to Generic Project so that can be correcly converted to VS.NET project
9547 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
9549 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
9551 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
9553 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
9554 added return 0 statements after assert() to make compiler happy
9556 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
9557 added newline in the def file to keep MSC compiler satisfied
9559 * sdcc/src/z80/gen.c:
9560 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
9561 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
9562 - solved MSC error in function aopDump()
9564 * sdcc_vc.h: define PREFIX as "\\sdcc"
9566 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
9567 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
9569 2002-06-22 Scott Dattalo <scott AT dattalo.com>
9570 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
9571 - Rewrote the register banking algorithm.
9572 - Added pCode live-range analysis to registers (for now, only non-used and
9573 singly-used registers optimized away)
9575 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
9577 * 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.
9579 2002-05-10 Scott Dattalo <scott AT dattalo.com>
9580 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
9582 2002-04-22 Michael Hope <michaelh AT vroom>
9584 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
9586 * configure.in (DD_COPT): Added include support required for gbdk.
9588 * .version: Bumped version number just to increase it.
9590 * src/SDCCmain.c: Added -nostdinc to the default options.
9592 2002-04-15 Michael Hope <michaelh AT vroom>
9594 * device/lib/z80/printf.c (sprintf): Added.
9596 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
9598 * src/z80/peeph.def: Added transpose redundent load rule.
9600 * src/z80/main.c: Added force callee saves for jaune.
9602 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
9604 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
9606 2002-03-28 Johan Knol <johan AT balder>
9608 * src/SDCCval.c: fixed bug #532436
9610 2002-03-14 Scott Dattalo <scott AT dattalo.com>
9612 Added "char *Processor" field to the port structure.
9615 Added -p option. Allows port dependent processor to be specified.
9618 Initialized the new field char *Processor field to NULL in all ports
9621 Compiler generated registers for interrupt context saving
9622 were not getting allocated.
9624 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
9627 Fixed left shift. Will promote the left side of a left shift
9628 if a) left shifting more than size of operand or b) when assigned
9629 to something size > size of left side
9631 2002-03-14 Scott Dattalo <scott AT dattalo.com>
9633 tons of changes. Register allocation has been
9634 rewritten. Added customization for the various PICs. Flow
9635 analysis is restructured. ...
9641 Added. device.c is a PIC port hack to accomodate variations
9644 2002-03-13 Michael Hope <michaelh AT vroom>
9646 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
9648 2002-03-04 johanknol <johanknol AT manik>
9650 * /src/SDCCval.c: fixed
9652 const unsigned char arr[][2] = { { 0, 1 } };
9653 t18.c:1: error: Initializer element is not constant
9655 2002-03-04 bela <bela AT manik>
9657 * /device/include/mcs51reg.h:
9658 ds89c420 register definition update
9660 2002-03-03 <johan AT FRIJA>
9662 * support/Util/SDCCerr.c: did something, but don't no why anymore
9664 * support/regression/tests/bug-524691.c: made it a little less shy
9666 * src/SDCCast.c (decorateType): fixed bug #524697
9668 * src/SDCCast.c: made some lineno improvements
9670 * src/SDCCval.c (getNelements): changed warning to error
9672 * src/SDCCglue.c (printIvalArray): changed warning to error
9674 * src/SDCCicode.c: fixed a warning for mingw
9676 * src/SDCCast.c (decorateType): fixed the << promotion for ops
9678 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
9680 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
9682 * src/ds390/peeph.def:
9683 Added some more peephole rules
9685 * src/ds390/gen.c: Various fixes & enhancements
9687 * src/SDCClrange.c, src/SDCClrange.h:
9688 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
9690 * src/ds390/ralloc.c:
9691 various fixes & enhancements (ds390) specific
9693 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
9694 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
9697 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
9699 2002-03-02 <johan AT FRIJA>
9701 * src/SDCCast.c (decorateType): fixed bug #524708
9703 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
9705 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
9707 2002-03-01 Michael Hope <michaelh AT vroom>
9709 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
9711 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
9713 2002-03-01 <johan AT FRIJA>
9715 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
9717 * src/SDCCast.c (decorateType): fixed bug #524209
9719 * src/SDCCval.c (valNot): fixed bug #524195
9721 2002-02-26 <johan AT balder>
9723 * src/xa51/gen.c: fixed a warning
9725 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
9727 * src/SDCCast.c (decorateType): fixed bug #522534
9729 2002-02-23 <johan AT balder>
9731 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
9733 2002-02-22 <johan AT balder>
9735 * src/SDCCast.c: fixed bug #514865
9737 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
9739 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
9741 * sdcc/src/SDCCloop.c:
9742 Previous fix was not good. basic blocks that have "break" or "return" are
9743 not really partof a loop , but live ranges used in these blocks should
9744 be live thru the entire loop, so set partOfLoop but don't add them to
9747 2002-02-21 <johan AT FRIJA>
9749 * src/SDCCcse.c: fixed bug #514308
9751 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
9754 Fixed BUG #519583. If a conditional block ended in a return/break
9755 statement inside a loop, it was not being considered part of the loop.
9757 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
9759 2002-02-10 Karl Bongers <karl AT turbobit.com>
9762 Fixed up SDCDB debugger somewhat. Updated debugger/README
9763 with lots of comments and notes.
9765 * device/examples/test2.c:
9766 Fix bug, "red" variable not being initialized(compiler complained).
9768 * device/examples/Makefile, examples/test3.c:
9769 Add Makefile in device/examples folder, compiles test3.c
9770 for use as a multiple module SDCDB test case.
9772 * sim/ucsim/cmd.src/cmdset.cc:
9773 Took out debug printfs in ucsim "next" command.
9776 Karl and Johan start ucsim XA support. Most dissassembly working,
9777 about 75% emulation done(plenty of work remaining).
9779 * sim/ucsim/z80.src:
9780 Add Z80 support to ucsim, add test-ucz80 regression test,
9781 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
9782 Notice z80 compiler fails on examples/test3.c/crc code.
9784 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
9786 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
9787 Added support for --parms-in-bank1
9789 * src/ds390/peeph.def:
9790 added a few more peephole optimzations
9793 1) added __builtin_inp & __builtin_outp used to read in data of given length
9794 from a memory mapped port
9795 2) added __builtin_memcmp
9796 3) added __builtin_swapw swap bytes of a short
9798 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
9799 1) handle multiple send & receives from register bank1
9800 2) ralloc can now allocate DPTR1 to some liveRanges
9802 * src/SDCCsymt.c, src/SDCCsymt.h:
9803 changes to handle multiple sends & receives
9806 added some pointer arithmetic optimization
9809 added some pointer arithmetic optimizations but not stable yet so not
9810 called from anywhere (will get this working shortly)
9812 * src/SDCCopt.c: fixed for multiple sends & receives
9815 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
9816 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
9817 set preprocessor defines (depending on options)
9819 * src/SDCCicode.c, src/SDCCicode.h:
9820 changes made to handle multiple sends & receives
9823 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
9825 * src/SDCCcse.c, src/SDCCcse.h:
9826 added function findbackward def (to be used in upcoming optimization)
9828 * src/SDCCcflow.c, src/SDCCcflow.h:
9829 added function returnAtEnd - to determine if a basic block terminates with
9832 * src/SDCCast.c, src/SDCCast.h:
9833 added option parms-in-bank1
9835 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
9836 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
9837 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
9838 adjusted for --parms-in-bank1 option
9840 * device/include/string.h:
9841 donot redefine "reentrant" keyword
9843 * device/include/ds80c390.h: Added some more SFRs
9845 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
9847 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
9849 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
9851 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
9853 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
9855 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
9857 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
9859 * Added --xram-movc option
9861 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
9863 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
9865 2002-01-11 Johan Knol
9867 * Added math lib of Jesus Calvino-Fraga
9869 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
9871 * src/SDCCmain.c (processFile): fix processing of ../../src.c
9872 * support/regression/Makefile: new target test-mcs51-stack-auto
9873 * support/regression/ports/mcs51-stack-auto/spec.mk: added
9875 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
9877 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
9879 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
9881 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
9883 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
9885 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
9887 * src/SDCCglue.h: add definition for printIvalChar()
9889 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
9891 * src/SDCCast.c: fix #498138 by Johan
9893 * src/SDCCglue.c: fix #498138 by Johan
9895 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
9897 * support/regression/Makefile: fix clean
9899 * support/regression/ports/ds390/support.c: fix transmission of last character
9901 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
9903 * /sdcc/src/ds390/gen.c:
9904 a) improved computing address of stack variable
9905 b) took out some #if 0 code
9906 c) improved parmBytes adjustment
9907 d) improved genPlusIncr & genMinusIncr
9908 e) genCmp could generate bad code (when left assigned to DPTR)
9909 f) Fixed bug in hasInc
9911 * /sdcc/src/ds390/ralloc.c:
9912 a) packRegsForSupport could mess up live information (Fixed)
9913 b) packRegsDPTRuse could be incorrect for left & right shift
9915 * /sdcc/src/mcs51/ralloc.c:
9916 packRegsForSupport could mess up the live information (Fixed)
9918 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
9920 * /sdcc/src/SDCCast.c:
9921 can reverse a loop even if function call is present as long
9922 as the loop control variable is local & is not passed as parameter
9924 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
9926 * /sdcc/ChangeLog: *** empty log message ***
9928 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
9929 More builtin function additions for TININative
9931 * /sdcc/src/ds390/ralloc.c:
9932 Had broken the regression testsuite
9934 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
9936 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
9937 Added funcattr hasStackParms will be set for reentrant functions when there
9938 are paramteres on the stack, this helps in minimizing frame pointer generation
9939 typeFromStr can handle function pointers now
9941 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
9942 *** empty log message ***
9944 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
9946 * /src/ds390/gen.c, /src/ds390/main.c:
9947 More builtin function additions for TININative
9949 * /src/ds390/ralloc.c:
9950 Had broken the regression testsuite
9952 * /src/SDCCast.c: Fixed a bug in dumptree
9954 * /src/SDCCsymt.c, /src/SDCCsymt.h:
9955 Added funcattr hasStackParms will be set for reentrant functions when there
9956 are paramteres on the stack, this helps in minimizing frame pointer generation
9957 typeFromStr can handle function pointers now
9959 * /doc/builtins.txt, /doc/TININative.txt:
9960 *** empty log message ***
9963 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
9965 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
9966 ALPHA version for -mTININative
9968 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
9969 updated to reflect changes in the port structure
9972 added function do_assemble (similar to do_link) if non-null this function
9973 will be called to do assembly (-mTININative) requires a multi command
9975 added function genAssemblerEnd will be called to generate assembler Epilogue
9978 added _JavaNative to debug info printing
9980 * /src/SDCCmain.c: added option --tini-libid
9981 added port->do_assemble function (-mTININative) has a multi command assemble
9983 * /src/SDCCglue.c: Disabled "constExpr" check
9984 added port->genAssemblerEnd function
9986 * /src/SDCCglobl.h: Added option --tini-libid value
9989 tookout optimizeCompare from the header (has no external references)
9991 * /src/SDCCast.c: made one more function "static"
9993 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
9995 * src/z80/mappings.i: Added z80asm support.
9997 * src/z80/main.c: Added z80asm support on --asm=z80asm
9999 * src/z80/gen.c: Fixed asm portability issues.
10001 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
10003 * src/SDCCglue.c (printExterns): Added global/extern split.
10005 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
10007 * support/regression/Makefile: added test for mcs51 model large
10009 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10011 * support/regression/ports/gbz80/spec.mk: added -mgbz80
10013 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
10015 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
10017 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
10019 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10021 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10023 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
10025 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10027 * support/regression/tests/simplefloat.c: Port to mcs51.
10029 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
10030 * support/regression/tests/bug-485362.c: Added.
10032 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10034 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10036 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10038 * src/z80/gen.c (aopDump): Added a dump function.
10040 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
10041 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10043 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10045 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10047 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10049 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10051 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10053 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10055 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10057 * support/regression/ports/ds390/support.c: Use tinibios.
10059 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10061 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10063 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10064 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10066 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10068 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10070 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
10072 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10074 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10075 (packRegsForIYUse): Created and optimised.
10077 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
10079 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10080 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
10082 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10084 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10086 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10088 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
10090 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
10092 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
10094 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
10096 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
10098 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
10100 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
10102 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
10104 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
10105 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
10106 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
10108 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
10110 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
10111 (genNotFloat): Added.
10112 (genUminusFloat): Added.
10114 * device/lib/z80/Makefile: Added floating pt stubs.
10116 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
10118 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
10120 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
10122 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
10124 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
10126 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
10128 * sdcc/support/regression/Makefile: Add port ds390.
10130 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
10132 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
10134 * sdcc/support/regression/ports/ds390/spec.mk: Added.
10136 * sdcc/support/regression/ports/ds390/support.c: Added.
10138 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
10140 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
10142 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
10144 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
10146 * device/include/malloc.h: Added z80 and gbz80 support.
10148 * device/lib/gbz80/heap.s: Added.
10150 * device/lib/z80/heap.s: Added.
10152 * device/lib/malloc.c: Added z80 and gbz80 support.
10154 * support/regression/tests/malloc.c (testMalloc): Added.
10156 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
10158 * support/regression/tests/bug-478094.c: Added.
10160 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
10162 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
10164 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
10166 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
10168 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
10170 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
10172 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
10174 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
10176 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
10178 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
10180 * support/regression/tests/bug-477927.c: Added.
10182 * src/z80/peeph.def: Added minor rules.
10184 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
10186 * src/z80/peeph.def: Added jump optimisation modification.
10188 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
10190 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
10192 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
10194 * support/regression/tests/funptrs.c: Added.
10196 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
10198 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
10200 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
10202 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
10204 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
10206 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
10207 (movLeft2ResultLong): Created.
10209 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
10210 (joinPushes): Added. Joins two char pushes into a word push.
10212 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
10214 * support/cpp2/Makefile.in (install): Added creation of dest dir.
10216 * support/makebin/Makefile (install): Added creation of dest dir.
10218 2001-10-24 Karl Bongers <karl AT turbobit.com>
10220 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
10222 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
10224 * src/z80/ralloc.c: Turned off faulty pack for one use.
10226 * src/z80/peeph-gbz80.def: Removed redundent restart options.
10228 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
10230 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
10232 * support/regression/Makefile: Improved clean
10234 * support/regression/ports/gbz80/spec.mk: Added clean
10236 * support/regression/ports/host/spec.mk: Added clean
10238 * support/regression/ports/z80/spec.mk: Added clean
10240 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
10242 * support/regression/ports/mcs51/timeout.c: little improvements
10244 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
10246 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
10248 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
10250 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
10252 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
10254 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
10256 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
10258 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
10259 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
10261 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
10263 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
10265 * src/mcs51/main.c (_linkCmd): Added bin path to command.
10267 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
10269 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
10271 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
10273 * support/regression/tests/longor.c: Added.
10275 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
10277 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
10279 * as/mcs51/aslink.h: define PATH_MAX
10281 * as/mcs51/asm.h: define PATH_MAX
10283 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
10285 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
10287 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
10289 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
10291 * src/SDCCglobl.h: define PATH_MAX
10293 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
10295 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
10297 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
10299 * src/z80/gen.c (gencjneshort): Fixed
10301 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
10303 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
10305 * support/regression/tests/bug-469671.c: Added.
10307 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
10309 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
10311 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
10313 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
10315 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
10317 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
10319 * src/device/lib/_mulint.c : removed hint: nooverlay bug
10321 * src/device/lib/_mullong.c : removed hint: nooverlay bug
10323 * src/device/lib/_divuint.c : removed hint: nooverlay bug
10325 * src/device/lib/_divulong.c: removed hint: nooverlay bug
10327 * src/device/lib/_moduint.c : removed hint: nooverlay bug
10329 * src/device/lib/_modulong.c: removed hint: nooverlay bug
10331 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
10333 * 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.
10335 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
10337 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
10339 2001-10-07 <johan AT FRIJA>
10341 * device/lib/gets.c (gets): fixed the return value.
10343 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
10344 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
10346 * 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.
10348 * 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.
10350 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
10352 * src/pic/gen.c: Removed Safe_strdup.
10354 * configure.in: Added option to enable libgc support.
10356 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
10357 (bitVectUnion): Optimised.
10358 (bitVectIntersect): Optimised.
10359 (bitVectBitsInCommon): Optimised.
10360 (bitVectCplAnd): Optimised.
10362 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
10364 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10366 * src/SDCCmain.c: distinguish between assembler debug and plain options
10368 * src/avr/main.c: remove standard assembler options
10370 * src/ds390/main.c: remove standard assembler options
10372 * src/mcs51/main.c: remove standard assembler options
10374 * src/port.h: removed "PENDING" comment
10376 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10378 * src/device/lib/_mulint.c : new, with assember functions
10380 * src/device/lib/_mullong.c : new, with assember functions
10382 * src/device/lib/_divuint.c : with assember functions
10384 * src/device/lib/_divsint.c : with assember functions
10386 * src/device/lib/_divulong.c: with assember functions
10388 * src/device/lib/_divslong.c: with assember functions
10390 * src/device/lib/_moduint.c : with assember functions
10392 * src/device/lib/_modsint.c : with assember functions
10394 * src/device/lib/_modulong.c: with assember functions
10396 * src/device/lib/_modslong.c: with assember functions
10398 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
10400 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
10402 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
10403 replaced _mululong.c and _mulslong.c by _mullong.c
10405 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10407 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
10409 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10411 * src/SDCCglue.c: test, if win32api is available for MINGW
10413 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10415 * src/SDCCsymt.c: no more _modifier in printTypeChain()
10416 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
10417 * support/regression/ports/gbz80/spec.mk: removed GENERIC
10418 * support/regression/ports/host/spec.mk: removed GENERIC
10419 * support/regression/ports/mcs51/spec.mk: removed GENERIC
10420 * support/regression/ports/z80/spec.mk: removed GENERIC
10422 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
10424 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
10426 * support/regression/tests/bug-467035.c: Created.
10428 2001-10-01 <johan AT FRIJA>
10430 * src/SDCC.y: fixed bug #466586 part 1
10432 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
10434 * SDCCicode.c: z80 has no generic pointers
10435 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
10437 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
10439 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
10441 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
10443 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
10445 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
10447 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
10449 * configure.in: Fixed up so that ucsim is only configured once.
10451 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
10453 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
10454 (getPathDifference): As above.
10456 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
10458 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
10460 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
10461 * .version: Updated to 2.3.1
10463 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
10464 Added copyright header.
10466 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
10467 (assemble): Added support for macro based assembler commands.
10468 (linkEdit): Added support for macro based linker commands.
10469 (preProcess): Changed the pre-processor to use macros.
10470 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
10471 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
10473 * device/lib/z80/crt0.s: Added module name for debugging.
10475 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
10477 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10479 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
10481 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
10483 * src/Makefile.in: Added SDCCmacro and SDCCutil
10485 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
10487 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10489 2001-09-16 <johan AT FRIJA>
10491 * 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.
10493 2001-09-15 <johan AT FRIJA>
10495 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
10496 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
10498 2001-09-11 <johan AT FRIJA>
10500 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
10502 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
10504 * support/regression/tests/bug-460444.c: Added test case.
10506 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
10507 (genCast): Added justification for all of the asserts.
10509 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
10511 * support/regression/support.c: _xdata replaced by xdata
10513 * support/regression/spec.mk: removed _generic
10515 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
10517 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
10519 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
10520 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
10522 * src/z80/peeph.def: Added a rule to optimise shift then compare.
10524 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
10526 * support/regression/tests/bug-460010.c: Added test case.
10528 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
10530 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
10532 * support/regression/Makefile: inter-port-clean adjusted for mcs51
10534 * support/regression/testfwk.c: removed workaround for bug #436344
10536 * support/regression/tests/bp.c: use less memory with mcs51
10538 * support/regression/tests/bug-441448.c: use less memory
10540 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
10542 * support/regression/collate-results.py: typo
10544 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
10546 * support/regression/tests/fetchoverlap.c: Added new test case.
10548 * support/regression/tests/bp.c: Added new test case.
10550 * support/regression/tests/bug-448984.c: Added new test case.
10552 * support/regression/tests/pow2shifts.c: Added new test case.
10554 * src/z80/gen.c: Turned off the noise it normally generates for the release.
10555 (genlshTwo): Fixed right shift for count > 8.
10557 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
10559 2001-09-08 <johan AT FRIJA>
10561 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
10563 2001-09-07 <johan AT FRIJA>
10565 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
10567 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
10569 2001-09-06 <johan AT FRIJA>
10571 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
10572 * bernhard noted me at this: "() equals to (void)" (1.38)
10574 2001-09-05 <johan AT FRIJA>
10576 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
10578 2001-09-04 <johan AT FRIJA>
10580 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
10583 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
10585 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
10587 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
10589 * link/z80/aslink.h: Fixed path for PATH_MAX
10591 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
10593 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
10595 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
10597 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
10599 * 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.
10601 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
10603 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
10604 (genCmp): Fixed up genCmp for the GB with longs.
10606 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
10608 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
10610 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
10612 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
10614 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
10616 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
10618 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
10620 * 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.
10622 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
10624 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
10626 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
10628 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
10630 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10632 * sim/ucsim/configure: little improvement of Cygwin-detection
10633 * sim/ucsim/configure.in: little improvement of Cygwin-detection
10634 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
10635 * support/regression/tests/bug-221100.c: small changes for mcs51
10636 * support/regression/tests/bug-221168.c: small changes for mcs51
10637 * support/regression/tests/bug-227710.c: small changes for mcs51
10638 * support/regression/tests/staticinit.c: small changes for mcs51
10639 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
10640 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
10641 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601