1 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
3 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
5 * src/SDCCast.c (createIvalArray): removed obsolete comment
7 2005-11-24 Borut Razem <borut.razem AT siol.net>
9 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...
11 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
13 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
15 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
17 * device/lib/_fs2schar.c,
18 * device/lib/_fs2sint.c,
19 * device/lib/_fs2slong.c: optimized inline asm
21 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
23 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
24 Better handling of floats between -1.0 and 0.0.
26 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
28 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
29 (the missing "if"s prohibited removal of redundant labels)
31 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
33 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
34 Properly convert floats between -1.0 and 0.0 to long, int, and char
35 types (max integer value of negative floats tends to zero).
36 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
37 Removed changes made so to work properly with floats between
38 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
41 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
43 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
44 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
45 (genCast) cosmetic change
46 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
47 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
49 * support/regression/tests/bitfields (testSignedBitfields): added
51 2005-11-18 Borut Razem <borut.razem AT siol.net>
53 * sdcc/device/lib/Makefile.in: remove all unnecessary files
54 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
55 introduced SILENT option to make building of pic16 libraries less
57 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
59 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
60 Now they work properly with floats between -1.0 and 0.0
61 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
63 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
65 * src/SDCCicode.c (printOperand): added missing else
67 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
69 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
70 reformatted for better readability
71 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
74 2005-11-17 Borut Razem <borut.razem AT siol.net>
76 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
77 introduced SILENT option to make building of pic16 libraries less
78 verbose - used for nightly snapshot build
79 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
80 available on Win32 platforms.
81 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
82 medium, large, pic and pic16
84 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
86 * device/lib/printf_large.c: Temporary patch for bug 1358192:
87 printf("%f"...) sets fraction to zero.
89 2005-11-16 Raphael Neider <rneider AT web.de>
91 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
93 * src/pic/gen.c (genIfx): implemented for CARRY bit
94 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
95 to generic pointers, fixes #1357332,
96 (pic16_movLit2f): NEW,
97 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
99 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
101 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
103 2005-11-11 Raphael Neider <rneider AT web.de>
105 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
106 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
107 compute pointer's type from operand,
108 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
109 improved single bit reads, fixes bug #1353379
111 2005-11-09 Borut Razem <borut.razem AT siol.net>
113 * support/scripts/sdcc.nsi: added lib/pic to the package
115 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
117 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
119 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
121 * support/regression/tests/bug1348008.c: added
122 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
123 * support/regression/tests/bug1337835.c: updated comment
125 2005-11-06 Borut Razem <borut.razem AT siol.net>
127 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
128 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
129 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
130 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
131 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
132 dynamic construction of cl_error_class and derivates - 2.nd try
134 2005-11-05 Borut Razem <borut.razem AT siol.net>
136 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
137 bug, which caused Bus Errors on sparc solaris
139 2005-11-04 Borut Razem <borut.razem AT siol.net>
141 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
142 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
143 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
144 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
145 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
146 and derivates to resolve the initialization problem on OSX
148 2005-11-02 Borut Razem <borut.razem AT siol.net>
150 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
151 corrected typo - #include <winsock2.h>
153 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
155 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
156 (_asxxxx_mapping): added org directive for future enhancements
158 2005-11-01 Borut Razem <borut.razem AT siol.net>
160 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
161 enabled sockets on WIN32
162 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
164 2005-10-31 Borut Razem <borut.razem AT siol.net>
166 * support/regression/generate-cases.py: escape backslashes in {testcase}:
167 WIN32 backslash path delimiters should be escaped when used in C strings
168 * support/regression/tests/bitfields.c: exclude failing assertions for
169 __CYGWIN32__ and __MINGW32__ hosts
171 2005-10-30 Borut Razem <borut.razem AT siol.net>
173 * src/SDCCutil.c: corrected double comparison typo
175 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
177 * device/lib/medium/Makefile: added for new memory model medium
178 * device/include/asm/mcs51/features.h: updated for medium/pdata
179 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
180 added Multiply & Accumulate sbit's and MAC0_PAGE define
181 * device/include/mcs51/c8051f300.h: added sfr16 definitions
182 * device/include/mcs51/c8051f310.h: added sfr16 definitions
183 * device/lib/_mullong.c: update for medium model
184 * device/lib/incl.mk: added medium model
185 * doc/sdccman.lyx: documented medium model
186 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
187 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
188 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
189 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
190 (allocParms): set SCLS and OCLS to pdata for medium model
191 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
193 (powof2): return <0 if not power of 2
194 * src/avr/gen.c (genBitWise): use updated powof2
195 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
196 (shiftR2Left2Result): small optimization in setup, save acc when storing,
197 (shiftLLeftOrResult): use B if necessary
198 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
199 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
200 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
201 * support/regression/Makefile.in: added test-mcs51-medium
202 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
204 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
206 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
208 * device/lib/time.c (mktime): fixed bug 1334315
210 2005-10-28 Raphael Neider <rneider AT web.de>
212 * device/include/pic/p16f_common.inc: added common declarations
213 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
215 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
217 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
218 (aopPutUsesAcc): added to predict accumulator use,
219 (assignResultValue): save acc if necessary,
220 (genMinusDec): store result if indirectly addressed,
221 (genDivOneByte): save acc if necessary,
222 (movLeft2Result): bugfix if left already in acc,
223 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
224 attention to accumulator use (esp. pdata),
225 (genReceive): receive pdata correctly
226 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
227 * src/SDCCicode.h: added isOperandInPagedSpace prototype
229 2005-10-27 Raphael Neider <rneider AT web.de>
231 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
233 2005-10-27 Raphael Neider <rneider AT web.de>
235 * .version: changed version to 2.5.4
236 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
237 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
238 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
239 arithmetics support routines
240 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
241 * device/lib/Makefile.in: also create installdir for pic
243 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
245 * src/pic/device.c (dump_sfr): rewritten to delegate register
246 placement to the linker (use `extern sym' rather than sym EQU addr),
247 (validAddress): fixed to check last specified address
248 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
249 (popGetLit): truncate literal value to 8 bit,
250 (popGet): moved assert to more appropriate place
251 (popGetExternal): create pCode operand from and mark the according
252 symbol as being `extern'
253 (popGetAddr): added sanity check on immediate's offset, provide
254 GPOINTER tag on demand
255 (aopPut): fixed for immediates,
256 (mov2w_op): move operand's address or contents to WREG (depending on
257 operand type), safer variant of mov2w,
258 (movwf,call_libraryfunc): NEW, handy abbreviations,
259 (get_argument_pcop,get_return_val_pcop,pass_argument,
260 get_returnvalue): interface for accessing function parameters and
262 (assignResultValuei,genRet): use new parameter/return value interface
263 (pic14_getDataSize): back to old version handling generic pointers,
264 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
265 provided implementation and/or fixed old one,
266 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
267 calls, removed legacy 8051 reference code
268 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
269 (loadSignToC): NEW, move the operands sign bit to CARRY,
270 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
271 genRightShiftSigned, accepts negative shift counts,
272 (setup_fsr): load FSR and adjust IRP (indirect memory access),
273 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
274 generic pointers, __data pointers and __code pointers,
275 (genUnpackBits,genPackBits): rewritten to work with generic pointers
276 and signed bitfields, limit bitfields to 8 bit,
277 (genDataPointerGet): fixed number of bytes read,
278 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
279 (genPointerGet,genPointerSet): fixed handling of __code pointers,
280 pointers to constant data are no longer assumed to point to __code
281 space, removed invalid pointer types,
282 (bitpatternFromVal): retrieve the PICs representation of an integer
284 (genDataPointerSet): fixed assigning to po_immediate operands,
285 (genGenPointerSet): implemented as library call,
286 (genIfx): fixed incorrect condition,
287 (genAddrOf): limit generic pointers' addresses to 2 bytes,
288 provide GPOINTER tag according to destination's storage class,
289 (genCast): added code to handle casting to generic pointers, added
290 sign-/zero extension of the result
291 (aop_isLitLike,op_isLitLike): fixed handling of immediates
292 * src/pic/gen.h: added macros to access IRP bit in STATUS register
293 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
295 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
296 address/register resides in the shared banks
297 (emitSymbolToFile): improved to handle global and `pinned' symbols,
298 put all variables into separate sections (have the linker arrange
300 (picglue): put init code and interrupt handlers in separate sections
301 * src/pic/main.c: added port specific options table, modified to PORT
302 structure to make GPOINTERs 3 byte, added pic14_options
303 (_pic14_do_link): private linking routine (update paths to libraries,
304 add libsdcc.lib by default)
305 * src/pic/main.h: declare pic14_options
306 * src/pic/pcode.c: fixed instructions i/o relations,
307 (RegCond): reverted to correct version,
308 (newpCodeOpLit): truncate literals to 8 bit,
309 (genericPrint): added debug output,
310 (getRegFromInstruction): fixed for various operand types, simplified
311 (BuildFlow): fixed broken handling of isntructions with labels
312 (LinkFlow): start at last instruction in flow (skip trailing comments),
313 pass the flow on to the next instruction after CALL
314 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
315 (insertPCodeInstruction): fixed inserting after a skip instruction,
316 (DoBankSelect): fixed for labeled instructions
317 (OptimizepBlock): honor --nopeep switch
318 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
319 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
320 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
321 (pCodeOptime2pCodes): allow disabling this optimization via
322 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
323 but is still buggy), started implementation of a dataflow based
324 pCode optimization (CSE + dead code elimination)
325 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
326 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
327 names are independant of the stack location and therefore portable across
330 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
332 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
333 (selectSpil): fixed bug 1337835 by not spilling bit variables
334 * support/regression/tests/bug1337835.c: added test for this bug
335 * src/mcs51/peeph.def: restart after rule 3.c,
336 addded rules 263.x to optimize loading constants
338 2005-10-26 Raphael Neider <rneider AT web.de>
340 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
341 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
342 (genAssign): emit warning when casting literals to generic pointer
343 type, also applies when taking the address of a fixed variable,
344 (genCast): improved casting to generic pointers
345 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
346 extern variables, added verbose error message
347 * device/include/pic16/{string.h,errno.h}: added #pragma library c
349 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
351 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
352 carry must be complemented too
353 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
354 could be emitted by genMinus
355 * src/SDCCval.c (constVal): fixed bug 1305065
357 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
359 * src/SDCCast.c (addCast): added promotion for bit variables
360 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
361 promotion casts + optimisation
362 (optimizeGetWord): fix warning 'i' might be used uninitialized
363 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
364 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
366 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
368 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
369 all chars are promoted to int; promotion should be handled in SDCCast.c
371 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
373 * device/lib/_strcmp.c: Fixed bug 1326457
375 2005-10-11 Raphael Neider <rneider AT web.de>
377 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
378 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
380 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
382 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
383 * support/regression/tests/sfr16.c: added test for the sfr32 bug
385 2005-10-04 Raphael Neider <rneider AT web.de>
387 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
388 device/lib/pic16/pics.all: added pic18f1320
389 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
391 2005-09-30 Raphael Neider <rneider AT web.de>
393 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
394 * src/pic16/devices.inc: NEW, provides device descriptions
395 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
397 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
399 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
402 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
404 * doc/sdccman.lyx: updated Highest Order Bit documentation,
405 documented Any Order Bit, Higher Order Byte and Higher Order Word
406 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
407 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
408 (optimizeGetAbit): new, to get any bit, not only the high bit,
409 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
410 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
411 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
412 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
413 RIGHT_OP: also try GETBYTE, GETWORD optimization,
414 GETABIT, GETBYTE, GETWORD: decorate them,
415 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
416 (ast_print): added GETABIT, GETBYTE, GETWORD
417 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
418 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
419 (geniCodeBinary): new generic binary icode,
420 (ast2iCode): added GETABIT, GETBYTE, GETWORD
421 * src/port.h: updated comment for PORT.hasExtBitOp
422 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
423 (genGetByte): new, to get a single byte,
424 (genGetWord): new, to get a word from a long,
425 (gen51Code): added GETABIT, GETBYTE, GETWORD
426 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
428 2005-09-23 Raphael Neider <rneider AT web.de>
430 * configure.in, configure: have device/lib/pic configured
431 * device/lib/Makefile.in: added model-pic14
432 * device/lib/clean.mk: added pic/ to clean rule
433 * device/lib/pic: added rudimentary pic14 library providing support
434 functions for multiplication/division/generic pointer access
435 * src/SDCCopt.c (convilong): mark support functions as extern
436 for pic14 port as well
437 * src/pic/gen.c (genMult): added assertions,
438 (genpic14Code): emit warning on unhandled iCodes
439 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
440 * src/pic/pcode.c (pCodeOpCopy),
441 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
442 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
443 SFR_REGISTER}), made safe for future extensions
444 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
445 instructions even if preceeded by SKIP instructions (also remove
446 them); removed unused code
447 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
448 prevents leaving parts of the structure uninitialized after copying
450 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
452 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
454 * support/regression/tests/addsub.c: added test for the bug
456 2005-09-21 Raphael Neider <rneider AT web.de>
458 * device/include/pic16/pic18f1220.h,
459 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
460 * device/lib/pic16/Makefile.rules: added missing opening paren
461 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
462 are provided in genutils.c,
463 (genUminusFloat,genUminus,genCmpEq): added asserts on different
464 operand/result sizes,
465 (genCmp): assert on NULL pointers first, then check deref'ed values
466 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
469 2005-09-18 Raphael Neider <rneider AT web.de>
471 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
472 as these are now unused,
473 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
474 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
475 local, avoids uninitialized pointer dereference on r->name
476 * src/pic16/ralloc.c (newReg): fixed indentation
478 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
480 * src/SDCCval.c (constVal): fixed bug 730366
481 * support/Util/SDCCerr.c,
482 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
484 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
486 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
488 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
490 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
492 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
494 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
495 (hex2dec): made hex_digit unsigned char, removed ascii dependance
496 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
497 (hex2dec): made hex_digit unsigned char, removed ascii dependance
498 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
499 * packihx/packihx.c (hexDigit): made c unsigned char
500 * as/mcs51/lklibr.c (fndsym),
501 * link/z80/lkgb.c (gb),
502 * link/z80/lklibr.c (fndsym),
503 * link/z80/lkrloc.c (relr),
504 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
505 * src/SDCC.lex (checkCurrFile, process_pragma),
506 * src/SDCCglue.c (spacesToUnderscores),
507 * src/SDCCmain.c (setParseWithComma, processFile),
508 * src/asm.c (tvsprintf, printCLine),
509 * src/avr/gen.c (emitcode, aopPut),
510 * src/ds390/gen.c (emitcode),
511 * src/hc08/gen.c (emitcode, emitinline),
512 * src/mcs51/gen.c (emitcode, genInline),
513 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
515 * src/pic/ralloc.c (debugLog),
516 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
518 * src/pic16/ralloc.c (debugLog),
519 * src/z80/main.c (_process_pragma):
520 made all ctype.h function calls safe
521 * src/SDCCopt.c: include math.h for fabs
522 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
523 and used them throughout the code to make ctype.h function calls safe
524 * src/ds390/main.c (asmLineNodeFromLineNode),
525 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
526 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
528 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
529 (newpCodeAsmDir): made ctype.h function calls safe
530 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
531 pic16_emitcode): made lbp unsigned char*
532 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
533 (pic16_newpCodeAsmDir): made ctype.h function calls safe
534 * src/xa51/gen.c (emitcode),
535 * src/z80/gen.c (_emit2): made lbp unsigned char*
536 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
539 2005-09-05 Raphael Neider <rneider AT web.de>
541 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
542 access bank splitpoint
544 2005-09-05 Raphael Neider <rneider AT web.de>
546 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
548 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
550 * .version: changed to version 2.5.3
551 * doc/sdccman.lyx: changed version to 2.5.3,
552 documented --codeseg and --constseg and pragma codeseg and constseg,
553 documented bit parameters (reentrant) and bit returning
554 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
555 currFunc->recvSize, but is this ok for all ports?
556 (ast2iCode): result of ~ on unsigned char must be cast to int for
558 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
559 function pointers in bit space
560 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
561 (processFuncArgs): call port.reg_parm() with reentrancy info
569 * src/z80/main.c: port.reg_parm prototype extended with
570 "bool reentrant" parameter
571 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
572 options.stackAuto for allocating bit register parameters
573 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
574 (genSend): set BitBankUsed if it is,
575 (selectRegBank): factored out of genCall for use in genPcall,
576 (genCall): removed redundant dtype assignmen, use selectRegBank,
577 (genPcall): handle returning in Carry properly, save in F0 if needed,
578 (genReceive): handle bit register parameters
579 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
580 (mcs51_assignRegisters): enable bit registers for all reentrant
581 functions and don't set BitBankUsed unconditionally
582 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
583 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
584 * support/regression/tests/funptrs.c: added tests for BOOL and for return
586 2005-08-27 Borut Razem <borut.razem AT siol.net>
588 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
589 ppc-osx (Darwin) does not support -u option. It seems that it is
590 supported only on Linux - GNU cp
592 2005-08-25 Borut Razem <borut.razem AT siol.net>
594 * sim/ucsim/gui.src/serio.src/Makefile.in,
595 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
596 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
597 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
598 install and strip, since the strip at /usr/ccs/bin should be used
601 2005-08-24 Borut Razem <borut.razem AT siol.net>
603 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
605 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
607 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
610 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
612 * as/mcs51/aslink.h: completed lkrloc.c prototypes
613 * as/mcs51/lkmain.c (link_main): fixed warning
614 * device/include/stdbool.h: ds390 has no advanced bit support yet
615 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
616 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
617 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
618 and updated their macros
619 * src/SDCCval.c (constVal): updated comment for renamed b_long
621 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
623 * as/mcs51/asdata.c: changed ctype['['] to BINOP
624 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
625 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
626 (oprio): set priority for '['
627 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
629 * as/mcs51/asm.h: added defines R_BIT and S_BIT
630 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
631 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
632 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
633 added overlayable BIT_BANK area
634 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
635 (summary2): explain 'T' in legenda
636 * as/mcs51/lkrloc.c: replaced old K&R style,
637 (relr): added R_BIT processing,
638 (errmsg): added "Bit-addressable relocation error",
639 (adb_bit): added for converting from byte- to bit-addressable space,
640 (adb_24_bit): added for converting from byte- to bit-addressable space
641 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
642 used in reentrant functions now even as return value
643 * device/lib/_gptrput.c (_gptrput): removed obsolete code
644 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
645 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
646 * src/SDCCglobl.h: added indicator BitBankUsed
647 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
648 the bit registers b0-b7
649 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
650 (geniCodeCast): fixed bug 1263853,
651 (geniCodeLogicAndOr): put result in bool or char,
652 (geniCodeReceive): added parameter func for accessing the return type,
653 (geniCodeFunctionBody): pass func to geniCodeReceive
654 * src/SDCCmain.c: added indicator BitBankUsed
655 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
656 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
657 (checkSClass): don't put automatic bool/bit on stack,
658 (checkFunction): removed check on function cannot return bit
659 * src/SDCCsymt.h: added newBoolLink prototype
660 * src/mcs51/gen.c (rb1regs): added bit registers,
661 (movc): created for assigning to carry,
662 (pushReg, popReg): created for pushing registers,
663 (sameRegs): check both AOP_REG and AOP_CRY types,
664 (aopOp): handle bit registers,
665 (aopPut): optimization no self-assign,
666 (saveRegisters): push reg->base (bits) only once for bit registers,
668 (unsaveRegisters): pop reg->base only once and use popReg,
669 (assignResultValue): added parameter func and return in carry for bits,
670 (genIpush): optimization no reload in A if not changed,
671 (genSend): bit parameters in reentrant functions are passed in bit
672 registers by first assigning to bits in B, then save registers and
674 (genCall): handle returning in Carry properly, save it in F0 if needed,
675 (genPcall): updated assignResultValue call, this is not safe yet for bit
676 returning function !!!
677 (genFunction): don't generate equ's for bit registers and use pushReg,
678 (genEndFunction): take care of bit returning functions and use popReg,
679 (genRet): return bit in Carry,
680 (genIfx): optimize bit registers and other directly addressable bits,
681 (genReceive): updated assignResultValue call
682 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
683 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
684 registers when using stack-auto
685 * src/mcs51/ralloc.c (_G): added allBitregs,
686 (regs8051): added the bit registers,
687 (createStackSpil): use macro IS_BIT,
688 (getRegBit): added to allocate a bit register, else spill,
689 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
690 (updateRegUsage): factored out to ease stepping while debugging,
691 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
692 also allocate bit registers,
693 (fillGaps): handle bit registers,
694 (findAllBitregs): added to create bit vector with all bit registers,
695 (mcs51_allBitregs): returns this bit vector,
696 (mcs51_assignRegisters): when using stack-auto use bit registers for
697 passing parameters and creating local variables
698 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
700 2005-08-22 Borut Razem <borut.razem AT siol.net>
702 * device/lib/Makefile.in: replaced find option -or with -o
703 to make it run on solaris
705 2005-08-22 Raphael Neider <rneider AT web.de>
707 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
708 fixes #1265442 (crash on Solaris)
710 2005-08-20 Borut Razem <borut.razem AT siol.net>
712 * configure, configure.in: added tests for libsocket and libnsl libraries,
713 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
714 from support/regression/Makefile.in
715 * support/regression/Makefile.in: added
716 * device/lib/pic16/Makefile.common.in: force make to use bash shell
717 * sim/ucsim/libtool: regenerated on sparc-solaris
718 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
719 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
720 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
721 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
722 sparc-solaris, which doesn't use GNU ld linker
723 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
724 * as/Makefile: find on sparc-solaris does not support -maxdepth option
726 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
728 * src/mcs51/peeph.def: updated comments
730 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
732 * device/lib/_gptrget.c,
733 * device/lib/_gptrput.c: slightly shorter
734 * doc/sdccman.lyx: incremented version
735 * src/mcs51/peeph.def: moved peephole comments to the line of first
736 change to better keep line correlation, reanimated 186.e
737 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
739 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
741 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
742 David Saxton with quotes around file name.
744 2005-08-15 Borut Razem <borut.razem AT siol.net>
746 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
747 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
748 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
749 make tests run on x86_64 platform
751 2005-08-13 Raphael Neider <rneider AT web.de>
753 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
754 as it might be executed DURING a build (parallel make is wonderful)
756 2005-08-13 Raphael Neider <rneider AT web.de>
758 * device/lib/Makefile.in (port-specific-objects-pic16):
759 revert to cp $(PORT)/bin/*.* $(PORTDIR)
760 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
762 * device/lib/pic16/Makefile.rules: build subdirs before creating
763 the library, removed builddir rule, create $(builddir) early in
764 recurse rule, use empty recurse rule for leaf directories
765 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
766 mkdir errors (race condition), removed duplicate suffix "hex"
768 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
769 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
770 prevents mkdir -p from aborting on Alpha
772 2005-08-12 Raphael Neider <rneider AT web.de>
774 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
775 db-statements in order to allow for arrays of pointers in code
776 sections to be placed without interspersed 0-padding, fixes
778 * (emitStatistics): fixed division by zero for pic18f1220
779 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
780 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
781 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
782 * (pic16_pCodeConstString): keep track of already emitted string
783 literals to prevent "duplicate definitions of symbol _str_NR"
784 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
786 * device/lib/Makefile.in: ignore failing PIC16 library builds
787 * device/lib/pic16/Makefile: do not build if gputils are missing
788 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
790 2005-08-10 Raphael Neider <rneider AT web.de>
792 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
795 2005-08-10 Raphael Neider <rneider AT web.de>
797 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
798 Rokas' patch to add the new fixed point type "__fixed16x16"
799 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
800 functions for __fixed16x16 arithmetics
801 * device/lib/pic16: reimplemented the build system to support
802 a separate build directory, better handling of libio (create
803 the library in a separate subdir for each architecture) and
804 easier configuration (centralized in Makefile.common)
806 2005-08-07 Raphael Neider <rneider AT web.de>
808 * src/pic16/gen.c (genrshTwo): fixed sign extension
809 * src/pic16/device.c: added pic18f2320, 4220 and 4320
810 * device/include/pic16/pic18f2220.h: changed some bit definitions,
812 * device/include/pic16/pic18f4220.h: NEW, header for
813 pic18f4220 and pic18f4320
814 * device/include/pic16/pic18fregs.h: added new devices,
815 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
816 * device/include/pic16/signal.h: resolved name clashes
817 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
818 to also allow testing for interrupt enable bits, added
819 comments on how to use the macros
820 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
821 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
822 register definitions for the devices
823 * device/lib/pic16/pics.all: added new devices
824 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
826 * device/lib/pic16/libc/stdlib/memfree: do not count
827 the block header as free memory
828 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
829 simplified and added missing end-of-blocklist-marker
830 (reported by Peter Onion, fixes #1252814)
831 * (_mergeHeapBlock): fixed loop condition
832 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
833 len==0, restructured code
834 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
835 up a bit, reduced bitfield accesses, prevent endless loops
836 in case of heap corruption
837 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
838 "unreferenced arguments/must return a value" warnings
839 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
840 replaced BAUDREG with SPBRG
841 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
842 device/lib/pic16/debug/gstack/gstack.c: replaced
843 _naked, _asm, _endasm with __naked, __asm, __endasm
845 2005-08-05 Raphael Neider <rneider AT web.de>
847 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
848 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
850 2005-08-05 Borut Razem <borut.razem AT siol.net>
852 * device/lib/Makefile.in: added missing ';'
853 * configure: removed ^M characters
855 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
857 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
858 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
861 2005-08-04 Borut Razem <borut.razem AT siol.net>
863 * configure.in: pic16 libraries build 2nd try - enable running
864 configure in device/lib/pic16
865 * configure: regenerated from configure.in
866 * device/lib/Makefile.in: create $(PORT)/bin directory
868 2005-08-03 Raphael Neider <rneider AT web.de>
870 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
871 to get/set values via pointers
872 * (genUnpackBits,genPackBits): changed detection of
873 ptr->bitfield vs. sym.bitfield, fixed access via generic
874 pointers, removed dead (wrong) code for multibyte bitfields
875 * (genNearPointerGet, genGenPointerGet): removed useless code,
876 fixed bitfield detection, fixes #1250594
877 * (genNearPointerSet): removed useless code
878 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
879 and introduced macro pic16_emitpcode that conditionally emits
880 the origin of the following pCode (useful for debugging SDCC)
881 * src/pic16/pcode.c: changed (and disabled) some debug outputs
882 * (createDefmap): fixed handling of LFSR for --optimize-df
884 2005-08-02 Borut Razem <borut.razem AT siol.net>
886 * device/lib/Makefile.in: pic16 libraries build enabled since
887 gputils-0.13.2 are now localy installed at sourceforge's compile farm
889 2005-08-02 Raphael Neider <rneider AT web.de>
891 * src/pic16/gen.c (genPackBits): removed deprecated warning
892 * (genGenPointerSet): fixed bitfield detection
894 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
896 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
898 2005-07-31 Raphael Neider <rneider AT web.de>
900 * device/lib/pic16/libdev/pic18f458.c,
901 device/include/pic16/pic18f458.h: added missing T0CONbits
903 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
905 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
907 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
909 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
911 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
913 * device/include/mcs51/at89c51ed2.h: added.
915 2005-07-23 Raphael Neider <rneider AT web.de>
917 * src/pic/gen.h: added emitpcode macro for debugging
918 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
919 and replace by macro adding debug information on demand
920 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
921 * (gencjne): tried to fix; replaced with correct (slower) code
922 * (gen{Unp,P}ackBits): fixed single bit access
923 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
924 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
926 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
927 register has to be handled with care (forbidding movement
928 of assignments/uses, removing assignments completely, ...)
929 * (pCodeOptime2pCodes): make use of regIsSpecial
930 * added lots of debugging output (commented out)
931 * src/pic/rallloc.c (deassignLRs): prevent operand registers
932 from being reused as result UNLESS it is known to work
934 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
936 * support/Util/dbuf.h: include <stddef.h> for size_t
937 * .version: changed to version 2.5.2
939 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
941 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
943 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
945 * src/hc08/gen.c (genMinus): fixed bug #1241835,
946 (genModOneByte): removed needless psha/pula
948 2005-07-22 Raphael Neider <rneider AT web.de>
950 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
951 have PIC14 handled like PIC16, fixes broken pic14 linker calls
952 * src/pic/gen.c (resolveIfx): do not "invent" labels
953 * (genSkipc): changed to positive logic
954 * (genSkipCond): removed as no longer needed
955 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
957 * (genLeftShift): check operands are in different registers
958 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
959 INCF does not update CARRY...
960 * src/pic/main.c: fixed _linkCmd
961 * src/pic/pcode.c (unlinkpCode): added inactive code
962 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
963 alive (do not assign result and operand overlapping registers)
965 2005-07-22 Raphael Neider <rneider AT web.de>
967 * src/pic/device.c (dump_sfr): replaced register declaration with
968 call to emitSymbolToFile() to avoid duplicate symbols
969 * (assignRelocatableRegisters): do not declare external symbols
970 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
971 right (take size of type, not etype)
972 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
973 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
974 * (packRegsForAccUse): disabled assignment of WREG as
975 the result reg to prevent occurence of just fixed #1235003,
977 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
978 symbols (avoids duplicate symbols in .asm file)
979 * (pic14emitRegularMap): use emitSymbolToFile()
980 * src/pic/gen.c (aopOp): fixed spillLocation handling
981 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
982 * (genDataPointerSet): removed unneccessary variables/output
984 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
986 * as/mcs51/lkarea.c: enlarged codemap for banked memory
987 * device/lib/mcs51/crtbank.asm: added # to 0x0F
989 2005-07-21 Raphael Neider <rneider AT web.de>
991 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
992 architecture cannot handle them efficiently, fixes bug #1235003
993 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
994 check for empty sets before using them (fixes bug #1232190)
996 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
998 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
999 (lnksect2): generate warnings for memory overlap
1000 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
1001 constseg to set the name of these segments so you can instruct the linker
1002 to place them in banks
1003 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
1004 * src/SDCCglobl.h: added MODEL_HUGE to enum,
1005 added code_seg and const_seg to options
1006 * src/SDCCglue.c (emitMaps): use options.const_seg,
1007 (createInterruptVect): put interrupt vectors in segment HOME,
1008 (glue): put HOME before static segment and put the main glue in HOME,
1009 (glue): use options.code_seg
1010 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
1011 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
1012 these segments so you can instruct the linker to place them in banks
1013 (linkEdit): use code_loc for HOME segment which should be the first
1014 segment in code memory now
1015 * src/SDCCmem.c: fixed more stuff like bug 1238386
1016 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
1017 (changePointer): don't change function pointers to code pointers for
1019 (compareType): added exceptional check for banked function pointers
1020 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
1021 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
1022 after static in code memory
1023 * src/mcs51/gen.c: added aopLiteralLong prototype,
1024 (aopForSym): use getSize for functions,
1025 (genCall): generate banked calls over one trampoline __sdcc_banked_call
1026 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
1027 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
1029 (genPcall): use call for literal function pointers and generate banked
1030 calls over the one trampoline so there's only one place for the user to
1031 modify according to his/hers hardware,
1032 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
1033 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
1034 * src/mcs51/main.c: added keyword banked,
1035 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
1036 * support/Util/SDCCerr.c,
1037 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
1038 needed for passing the bank and address to the trampoline
1039 * device/lib/mcs51/crtbank.asm: added for bankswitching
1040 * device/lib/mcs51/Makefile: added crtbank
1042 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1044 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
1045 for fields at offset 0 of a struct or union as reported
1046 on 2005-07-07 in the developer mailing list.
1048 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1050 * src/SDCCmem.c: fixed bug 1238386
1052 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1054 * src/mcs51/peeph.def: added labelrefcounting for peepholes
1055 (patch #1144962), added peephole 300, enabled 259.x
1056 * doc/sdccman.lyx: removed screenshot and provided link instead
1058 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1060 * doc/sdccman.lyx: added section about debugging with ddd
1061 * doc/figures/ddd_example.eps: screenshot of debugging session
1063 2005-07-04 Raphael Neider <rneider AT web.de>
1065 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
1066 like CODE pointers, fixes #1115683
1067 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
1068 call, fixes bugs #1232211, #1228110,
1069 fixed wrong casts to pCodeFlow from pCodeInstructions
1071 2005-07-04 Raphael Neider <rneider AT web.de>
1073 * src/pic/gen.c (popGet): changed assert to allow for
1075 * (popGetAddr): changed signature to provide
1076 an additional index, patched all call sites
1077 * (genCmpEq): handle literal-like operands correctly
1078 * (genAddrOf): added sanity checks on __code/__data pointers
1079 * (genAssign): added handling of symbols from __code section
1080 * (gencjne): do not generate code for comparisons whose result
1081 is neither stored nor used, fixes bug #1171114
1082 * (AccLsh, AccRsh): operate on operand instead of WREG
1083 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
1084 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
1086 * rewrote complete shift-by-literal logic, commented unused
1088 * (genConstPointerGet): get multiple bytes (if result size > 1),
1089 fixed handling of non-immediate addresses
1090 * (genPointerGet): handle CODE pointers like CONST pointers
1091 * (genpic14Code): insert C-SRC lines as Cource-pCodes
1092 * ({aop,op}_isLitLike): NEW, single place to decide whether an
1093 operand is to be treated as a literal or not
1094 * (mov2w,genPcall,genCmpEq),
1095 src/pic/genarith.c: use aop_isLitLike() to decide between
1096 literal/register contents
1097 * (addSign): added missing offset
1098 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
1099 only emit comment in debug-mode,
1100 use {aop,op}_isLitLike throughout the file
1101 * src/pic/glue.c: fix initializers for pointers (work in progress)
1102 * src/pic/pcode.c (get_op): honor index on _const symbols
1103 * ({reset,dump}pCodeStatistics): NEW, estimate code size
1104 * (dumppBlock): added pCode size estimation
1105 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
1106 check for IS_SYMOP before OP_SYMBOL'ing
1107 * fixed indentation, compacted switch-statements
1108 * (allocReg): find free register and allocate it instead of
1109 allocating new registers all the time
1110 * (deassignLRs): prevent POINTER_GET's from being assigned the same
1111 registers as its operands (necessary only for multibyte GETs)
1113 2005-07-01 Raphael Neider <rneider AT web.de>
1115 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
1116 debugging .asm-output macros FENTRY + FEXIT
1117 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
1119 * (emitpComment): NEW, printf to pCode
1120 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
1122 * (popGetAddr): NEW, variant of popGet to access an immediates
1123 high(er) bytes instead of the n'th byte of memory they reference,
1124 replaced popGet with popGetAddr where neccessary
1125 * (genDataPointerGet): reactivated and fixed implementation
1126 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
1128 * (genDataPointerSet): fixed multibyte assignments
1129 * (genpic14Code): fixed --i-code-in-asm handling
1130 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
1131 * (genPlus): fixed index-out-of-bounds error
1132 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
1133 * src/pic/ralloc.c: added debugging output macro FENTRY2
1134 * (spillThis): fixed indentation, enbraced for-body for clarity
1135 * (rematStr): commented out as now unused
1136 * (regTypeNum): commented out special spill case (overwrites
1138 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
1140 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
1142 * doc/sdccman.lyx: documented sfr16/sfr32,
1143 added example for using storage class with function pointers
1144 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
1146 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
1148 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
1149 * device/lib/_itoa.c,
1150 * device/lib/_ltoa.c: optimized codesize
1151 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
1152 but don't know how to suppress the double warning.
1153 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
1154 * support/Util/SDCCerr.c,
1155 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
1157 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
1159 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
1160 fixed old K&R prototypes
1161 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
1162 * device/lib/_gptrget.c,
1163 * device/lib/_gptrgetc.c,
1164 * device/lib/_gptrput.c: changed versions for new memory indicator values,
1165 also new versions for small generic pointers and banked generic pointers
1166 * src/port.h: added const_name
1167 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
1168 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
1169 * src/SDCCcse.c (findPrevIc): check all associative operators
1170 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
1171 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
1172 * src/SDCCmem.c: updated comments,
1173 set far-space to 0 for pdata, results in optimized code
1174 * src/SDCCmem.h: added macro CONST_NAME
1175 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
1176 moving the info into the highest bits, see also gptrget/gptrput
1177 * src/src.dsp: added sdcc.ico to project files
1178 * src/avr/gen.c (genCast): fixed bug 0x%d
1179 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
1180 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
1181 relation between ptr_type and DCL_TYPE,
1182 (genCast): fixed bug 0x%d
1183 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
1184 (CODE)" for const_name
1185 * src/hc08/gen.c (genCast): fixed bug 0x%d
1186 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
1187 (hc08_port): added "CONST (CODE)" for const_name
1188 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
1189 (aopForRemat, adjustArithmeticResult): disconnected direct relation
1190 between ptr_type and DCL_TYPE,
1191 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
1192 operand* and took AOP() inside function so sfr-ness can be checked,
1193 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
1195 (genFunction, genEndFunction): optimized stack setup,
1196 (genMinus): optimized for literals with ending zeroes (in bytes),
1197 (genCast): fixed bug 0x%d
1198 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
1199 (mcs51_port): added "CONST (CODE)" for const_name
1200 * src/mcs51/peeph.def: made rule 226 more generic
1201 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
1202 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
1203 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
1204 * src/z80/main.c (z80_port): added NULL for const_name,
1205 (gbz80_port): added NULL for const_name
1206 * support/regression/tests/bug663539.c,
1207 * support/regression/tests/sfr16.c: new tests
1209 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1211 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
1213 2005-06-24 Raphael Neider <rneider AT web.de>
1215 * device/lib/pic16/libdev/pic18f[68][567]20.c:
1217 * device/include/pic16/signal.h: added USBIF
1220 2005-06-24 Raphael Neider <rneider AT web.de>
1222 * device/lib/pic16/libdev/pic18f2455.c,
1223 device/include/pic16/pic18f2455.h: NEW
1224 * device/include/pic16/pic18fregs.h,
1225 device/lib/pic16/pics.all,
1226 src/pic16/device.c: added 18f2455
1227 * device/lib/pic16/libdev/pic18f[68][567]20.c,
1228 device/include/pic16/{pic18f[68][567].h,usart.h}:
1229 replaced MULTIPLE_USARTS define with more relaible
1230 compatibility sfrs (for USART access)
1232 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
1234 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
1235 and the output asm file line is printed on two lines.
1237 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1239 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
1240 BGT, BLE, BHI, and BLS instructions
1241 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
1243 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
1244 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
1246 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
1248 2005-06-15 Raphael Neider <rneider AT web.de>
1250 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
1251 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
1252 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
1253 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
1254 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
1256 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1258 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
1259 Marcel Telka in bug #1215704
1261 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
1263 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
1264 located in shared memory bank.
1266 2005-05-31 Raphael Neider <rneider AT web.de>
1268 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
1269 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
1270 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
1272 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
1274 * device/lib/_strncpy.c: fixed the fix
1276 2005-05-26 Raphael Neider <rneider AT web.de>
1278 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
1279 initializers with \0, bug #1208187
1280 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
1281 intializers with \0, bug #1208187
1283 2005-05-26 Raphael Neider <rneider AT web.de>
1285 * src/pic16/glue.c (pic16_printIvalChar): fixed string
1286 initializers with \0, bug #1208187
1287 * src/pic16/main.c (_process_pragma): added sanity checks
1288 for stack position and size, emit warnings when appropriate
1290 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
1292 * device/lib/_strncpy.c: fixed not filling with \0
1294 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1296 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
1298 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
1299 compound_statement),
1301 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
1303 2005-05-24 Raphael Neider <rneider AT web.de>
1305 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
1307 2005-05-24 Raphael Neider <rneider AT web.de>
1309 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
1310 TRISE definitions, closes bug #1162453
1312 2005-05-22 Raphael Neider <rneider AT web.de>
1314 * src/pic16/main.c (_process_pragma): check for missing
1315 arguments to pragmas code and udata
1316 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
1317 consistency fixes to match other headers (thanks to Jim Paris)
1318 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
1320 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1322 * src/SDCCicode.c (isOperandEqual): fixed missing ;
1324 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
1326 * support/regression/tests/bug1198642.c: new test
1327 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
1328 * src/SDCCcse.c (findPrevIc): added comment, please have a look
1329 * support/scripts/resource.h,
1330 * support/scripts/resource.rc,
1331 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
1332 * support/scripts/sdcc.ico: added 32x32 icon
1334 2005-05-18 Raphael Neider <rneider AT web.de>
1336 * device/lib/pic16/libdev/pic18f*.c,
1337 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
1338 keywords to "__sfr" and "__at (X)"
1339 * device/include/pic16/pic18fregs.h: added pic18f4520
1340 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
1341 #1203088 (MPLAB compatibility)
1343 2005-05-17 Raphael Neider <rneider AT web.de>
1345 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
1346 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
1347 * device/lib/pic16/pics.all: added new devices
1348 * src/pic16/device.c: added support for pic18f4520
1350 2005-05-16 Raphael Neider <rneider AT web.de>
1351 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
1352 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
1353 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
1354 convenience function for bit access
1356 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1358 * device/lib/printf_large.c: fixed bug 1193299
1359 * support/regression/tests/bug1057979.c: added test %3.3s
1361 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1363 * device/include/mcs51/8051.h,
1364 * device/include/mcs51/8052.h: made parseable with lint
1365 * device/include/mcs51/lint.h: added include file for (sp)lint
1366 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
1367 * doc/cdbfileformat.lyx,
1368 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
1370 2005-05-14 Raphael Neider <rneider AT web.de>
1372 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
1373 * device/lib/pic16/libc/stdlib/itoa.c (new)
1374 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
1375 * device/lib/pic16/libio/Makefile: exclude subdir according to
1376 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
1377 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
1378 * src/pic16/gen.c (genFunction): prevent annoying warning
1379 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
1381 * support/cpp2/cppmain.c (cpp_output_string): new
1382 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
1385 2005-05-13 Borut Razem <borut.razem AT siol.net>
1387 * src/SDCCmain.c (linkEdit): fixed bug 1195202
1389 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1391 * .version: changed to version 2.5.1; back to bleeding edge development
1393 2005-05-11 Borut Razem <borut.razem AT siol.net>
1395 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
1396 generate PDF version 1.3 documents
1398 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1400 * .version: changed to version 2.5.0
1402 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1404 * doc/sdccman.lyx: updated weblinks, index and smaller updates
1406 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1408 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
1409 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
1410 well as many smaller updates.
1411 * .version: changed to version 2.5.0-pre1
1413 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1415 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
1417 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1419 * support/regression/tests/bug1185672.c: added
1420 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
1422 * src/mcs51/gen.c (genCall): added comments, made it look safer
1423 * src/mcs51/gen.c (genEndFunction): simplified
1425 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1427 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
1429 2005-04-14 Borut Razem <borut.razem AT siol.net>
1431 * fixed bug 1045046 - SIGSEGV with really simple code?:
1432 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
1433 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
1435 2005-04-14 Borut Razem <borut.razem AT siol.net>
1437 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
1438 src/pic16/device.h: temporarily disabled experimental #inline pragma
1441 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1443 * device/include/z80/stdio.h,
1444 * device/include/z80/string.h: removed these highly incomplete files so
1445 SDCC can use the default ones in device/include/
1447 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1449 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
1451 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
1454 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1456 * device/include/malloc.h: removed redundant __reentrant prototypes
1457 * device/lib/_mullong.c: added working xstack variant in asm (C version
1458 doesn't pass regression tests)
1459 * device/lib/bpx.c: used __data and made bpx char for mcs51
1460 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
1461 (createFunction): fixed bug with xstackPtr
1462 * src/SDCCcse.c: corrected comments
1463 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
1464 (killDeadCode, eBBlockFromiCode): removed unused code
1465 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
1467 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
1468 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
1469 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
1470 (genModOneByte): fixed warning in MSVC
1471 * src/mcs51/main.c (): added comments
1472 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
1474 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1476 * src/SDCCmain.c (linkEdit): oops, changed one line too many
1478 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
1480 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
1482 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
1484 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
1485 characters arrays of larger size than the declared one.
1487 2005-04-10 Borut Razem <borut.razem AT siol.net>
1489 * src/pic/gen.c (genInline),
1490 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
1491 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
1492 (findNextInstruction), (findPrevInstruction),
1493 (findInstructionUsingLabel),
1494 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
1495 * src/pic/pcode.c (findLabel): added missing '\n'
1496 * src/src.dsp: added SDCCdwarf2.c to the project
1498 2005-04-09 Borut Razem <borut.razem AT siol.net>
1500 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
1502 2005-04-08 Raphael Neider <rneider AT web.de>
1504 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
1505 into the chain after a given one) and mergeDefmapSymbols (combine
1506 defmap entries for each symbol per pcode)
1507 * (createDefmap): have defmap entries merged in the end
1508 * (defmapReplaceSymRef): split defmap entries covering two accesses to
1509 a symbol before replacing one access type's symbol, merge symbols in
1510 the end (replacement symbol might already have an entry)
1511 * (assignValnums): keep reference to written WREG intact
1513 2005-04-08 Raphael Neider <rneider AT web.de>
1515 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
1518 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
1520 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
1523 2005-04-07 Raphael Neider <rneider AT web.de>
1525 * device/include/pic16/usart.h: added compatibility defines for
1526 devices with more than one USART
1527 * device/include/pic16/pic18f[68][567]20.h: activated above defines
1529 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1531 * device/lib/Makefile.in: updated for port specific include
1533 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1535 * support/regression/ports/mcs51/spec.mk: added mcs51 include
1537 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1539 * device/include/8051.h,
1540 * device/include/8052.h,
1541 * device/include/at89S8252.h,
1542 * device/include/at89c55.h,
1543 * device/include/at89x051.h,
1544 * device/include/at89x51.h,
1545 * device/include/at89x52.h,
1546 * device/include/mcs51reg.h,
1547 * device/include/reg51.h,
1548 * device/include/reg764.h,
1549 * device/include/regc515c.h,
1550 * device/include/sab80515.h: (re)moved these 12 files
1551 * device/include/mcs51/8051.h,
1552 * device/include/mcs51/8052.h,
1553 * device/include/mcs51/at89S8252.h,
1554 * device/include/mcs51/at89c55.h,
1555 * device/include/mcs51/at89x051.h,
1556 * device/include/mcs51/at89x51.h,
1557 * device/include/mcs51/at89x52.h,
1558 * device/include/mcs51/mcs51reg.h,
1559 * device/include/mcs51/reg51.h,
1560 * device/include/mcs51/reg764.h,
1561 * device/include/mcs51/regc515c.h,
1562 * device/include/mcs51/sab80515.h: and added them here
1564 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1566 * device/include/stdarg.h: changed SDCC specific keywords to double
1568 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
1570 * device/include/hc08/mc68hc908gp32.h,
1571 * device/include/hc08/mc68hc908jb8.h,
1572 * device/include/hc08/mc68hc908jkjl.h,
1573 * device/include/hc08/mc68hc908qy.h: fixed comments
1574 * device/include/mcs51/README: updated
1575 * device/include/mcs51/c8051f120.h: added PINRSF
1576 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
1577 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
1578 amidst code. Also inline is not supported.
1580 2005-04-06 Raphael Neider <rneider AT web.de>
1582 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
1583 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
1584 callers stack/frame pointers
1586 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1588 * device/include/pic16/usart.h: added, missing in previous commit,
1589 * device/include/pic16/adc.h: fixed typo,
1590 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
1592 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
1594 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
1595 uninitialized because a bug appears with gplink
1596 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
1597 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
1598 complains for unrecognised option
1600 2005-04-05 Raphael Neider <rneider AT web.de>
1602 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
1603 structs as well (using memcpy)
1604 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
1605 on ISRs (GOTO has no label)
1606 * src/pic16/device.h: added OF_OPTIMIZE_DF
1607 * src/pic16/main.c: added compiler switch --optimize-df to enable the
1608 new data flow analysis/optimization
1609 * src/pic16/pcode.c: added (prototypes for and implementation of)
1610 dataflow analysis functions, fixed pCodeInstructions' inCond and
1611 outCond values, made RCALL a branch instruction
1612 * (pic16_unlinkpCode): keep C line if possible
1613 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
1614 C line moved if possible
1615 * (pic16_getRegFrompCodeOp): NEW, improved version of...
1616 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
1617 to use new pic16_getRegFrompCodeOp (works for more SFRs)
1618 * (pic16_BuildFlow): fixed skip instructions with label (did not start
1620 * (pic16_getJumptabpCode): NEW, needed in...
1621 * (LinkFlow): fixed handling of jumptables, calls and conditional
1623 * (pic16_InsertCommentAfter): NEW
1624 * (pic16_pCodeReplace): made verbose and flow preserving
1625 * (AnalyzeFlow): added call to data flow analysis
1626 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
1627 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
1628 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
1630 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1632 * src/SDCCast.c (decorateType): fixed bug #1105626
1634 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
1636 * device/include/asm/pic16/features.h,
1637 * pic18f*.h headers,
1638 * device/include/pic16/adc.h,
1639 * device/include/pic16/delay.h,
1640 * device/include/pic16/i2c.h,
1641 * device/include/pic16/malloc.h,
1642 * device/include/pic16/stdio.h,
1643 * device/include/pic16/stdlib.h,
1644 * device/include/pic16/string.h,
1645 * device/lib/pic16/libc/stdio/printf_tiny.c,
1646 * device/lib/pic16/libc/stdio/printf_small.c,
1647 * device/lib/pic16/libc/stdio/strmgpsim.c,
1648 * device/lib/pic16/libc/stdio/strmmssp.c,
1649 * device/lib/pic16/libc/stdio/strmusart.c,
1650 * device/lib/pic16/libc/stdio/vfprintf.c,
1651 * device/lib/pic16/libc/stdlib/ltoa.c,
1652 * device/lib/pic16/libc/stdlib/putchar.c,
1653 * device/lib/pic16/libc/stdlib/x_ftoa.c,
1654 * device/lib/pic16/libc/stdlib/memchrpgm.c,
1655 * device/lib/pic16/libc/stdlib/memchrram.c,
1656 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
1657 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
1658 * device/lib/pic16/libio/adc/adcbusy.c,
1659 * device/lib/pic16/libio/adc/adcread.c,
1660 * device/lib/pic16/libio/adc/adcsetch.c,
1661 * device/lib/pic16/libio/usart/ubaud.c,
1662 * device/lib/pic16/libio/usart/ubusy.c,
1663 * device/lib/pic16/libio/usart/udrdy.c,
1664 * device/lib/pic16/libio/usart/uopen.c,
1665 * device/lib/pic16/libio/usart/uputc.c,
1666 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
1667 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
1668 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
1669 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
1670 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
1671 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
1672 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
1673 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
1674 specific keywords to double underlined form,
1675 * device/lib/pic16/libc/Makefile.rules,
1676 * device/lib/pic16/libsdcc/Makefile.rules,
1677 * device/lib/pic16/libm/Makefile,
1678 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
1679 to compile with C standard set in Makefile.common
1680 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
1681 rand.c and crc.c in compilation process,
1682 * device/lib/pic16/libsdcc/int/divuint.c,
1683 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
1684 `c' from signed to unsigned,
1685 * device/lib/pic16/startup/crt0.c,
1686 * device/lib/pic16/startup/crt0i.c,
1687 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
1688 keywords to double underlined form, bug fixes in _do_cinit function
1689 which prevented the correct initialization of the .idata segment,
1690 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
1691 core to enter a infinite loop
1692 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
1694 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1696 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
1698 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1700 * device/include/Makefile.in: add support for hc08 subdirectory
1701 * device/include/hc08/: new subdirectory
1702 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
1703 Lucas Loizaga, thanks!
1704 * device/include/hc08/mc68hc908qy.h,
1705 * device/include/hc08/mc68hc908gp32.h,
1706 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
1707 their own directory. Changed internal macro names to use the compiler
1708 reserved namespace. Changed SDCC specific keywords to double
1710 * device/include/math.h,
1711 * device/include/malloc.h,
1712 * device/include/stdarg.h,
1713 * device/include/stdbool.h
1714 * device/include/string.h,
1715 * device/include/tinibios.h,
1716 * device/include/ds400rom.h,
1717 * device/include/8051.h,
1718 * device/include/8052.h,
1719 * device/include/80c51xa.h,
1720 * device/include/at89c55.h,
1721 * device/include/at89S8252.h,
1722 * device/include/at89x51.h,
1723 * device/include/at89x52.h,
1724 * device/include/ds80c390.h,
1725 * device/include/reg764.h,
1726 * device/include/regc515c.h,
1727 * device/include/sab80515.h,
1728 * device/include/mcs51/c8051f000.h,
1729 * device/include/mcs51/c8051f018.h,
1730 * device/include/mcs51/c8051f020.h,
1731 * device/include/mcs51/c8051f040.h,
1732 * device/include/mcs51/c8051f060.h,
1733 * device/include/mcs51/c8051f120.h,
1734 * device/include/mcs51/c8051f300.h,
1735 * device/include/mcs51/c8051f310.h,
1736 * device/include/mcs51/c8051f320.h,
1737 * device/include/mcs51/c8051f330.h,
1738 * device/include/mcs51/c8051f350.h,
1739 * device/include/z180.h: Changed SDCC specific keywords to double
1742 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
1744 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
1746 * (pic16_assignConfigWordValue): disable testing of configuration
1747 register value with config mask,
1748 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
1749 function with port->fun_prefix,
1750 * (genFunction): when generating a naked interrupt function never
1751 create an absolute segment placed in interrupt vector address, place
1752 the actual interrupt function at IVA instead, when an interrupt
1753 function is generated with unspecified interrupt then do not create
1754 the absolute section,
1755 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
1756 code for generating a call to generic pointer get/put function with
1757 a call to function pic16_callGenericPointer(),
1758 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
1759 the call to the generic pointer get/put functions with prefixing the
1760 function name with port->fun_prefix,
1761 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
1762 * src/pic16/main.c (_process_pragma): prefix function with
1764 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
1765 calling assembler, old 18Fxxxx macro is deprecated,
1766 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
1767 PC_ASMDIR in while condition,
1768 * (findInstruction): add PC_ASMDIR in while condition,
1769 * (buildCallTree): prefix main with port->fun_prefix,
1770 * (pic16_pCode2str): fixed bug that didn't emit the memory access
1771 identifier for variable with banked access in instructions BTFSS,
1772 BTFSC, BCF, BSF, BTG
1773 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
1774 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
1775 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
1776 perform optimization when enviroment variable NO_REG_OPT is set,
1777 * (insideLRBlock): NEW, return 1 if register is inside an
1778 INF_LOCALREGS block,
1779 * (RemoveRegFromLRBlock): remove a register that is completely
1780 eliminated by register optimization, but it is still left in local
1781 register store/restore in/from stack block,
1782 * (Remove2pcodes): after removing register, check to see if it
1783 should be removed from local register store/restore in/from stack
1785 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
1786 DUMMY_READ_VOLATILE,
1788 * device/include/pic16/adc.h: minor prototype modifications and
1790 * device/include/pic16/malloc.h: added GPL notice various
1792 * device/include/pic16/stdint.h: NEW, standard header for ints
1793 * device/include/pic16/delay.h: NEW, header for delay functions,
1794 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
1796 * device/include/pic16/signal.h: NEW, header providing helper macros
1797 for implementing signal handlers,
1798 * device/include/pic16/stdio.h: added prototypes for functions,
1799 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
1800 prototypes for stdin and stdout, added macro PUTCHAR to
1801 automatically implement putchar function prototype,
1802 * device/include/pic16/usart.h: modified and updated USART library,
1803 * device/lib/pic16/libio/adc/,
1804 * device/lib/pic16/libio/i2c: some modifications to improve library
1806 * device/lib/pic16/libc/stdio/: modifications for the new printf*
1807 family of functions,
1808 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
1809 family of functions and other sources,
1810 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
1811 of the PIC18Fxx[28] devices,
1812 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
1813 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
1814 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
1815 _do_cinit function, because the previous failed when local variables
1816 where not placed in the same memory bank,
1817 * device/lib/pic16/libsdcc/char/: various modifications to improve
1818 library performance,
1819 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
1820 information on the new functions of the c library and more...
1822 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1824 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
1826 2005-03-26 Raphael Neider <rneider AT web.de>
1828 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
1829 if condition == CARRY)
1830 * (genCmp): adapted to new genSkipc semantics
1831 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
1832 on rIfx (genCmp was broken)
1834 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1836 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
1837 * src/z80/main.c (_keywords[]),
1838 * src/SDCCglobal.h (struct options),
1840 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
1841 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
1842 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
1843 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
1844 always available in leading double underscore form. The C99 support is
1845 mostly missing, but it's a start.
1846 * support/regression/tests/bug-227710.c: fixed nonconforming use of
1847 reserved identifier "__data".
1849 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1851 * src/mcs51/peeph.def: fixed bug 1170013
1853 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1855 * device/include/mcs51reg.h: fixed bug 842007
1857 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1859 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
1862 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1864 * src/port.h (struct PORT),
1865 * src/avr/ralloc.c (avr_assignRegisters),
1867 * src/ds390/ralloc.c (ds390_assignRegisters),
1869 * src/hc08/ralloc.c (hc08_assignRegisters),
1871 * src/mcs51/ralloc.c (mcs51_assignRegisters),
1873 * src/pic/ralloc.c (pic14_assignRegisters),
1875 * src/pic16/ralloc.c (pic16_assignRegisters),
1877 * src/xa51/ralloc.c (xa51_assignRegisters),
1879 * src/z80/ralloc.c (z80_assignRegisters),
1881 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
1882 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
1884 * src/SDCCdflow.c (computeDataFlow),
1886 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
1888 * src/SDCCcflow.c (*),
1890 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
1891 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
1892 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
1893 immedDom() returning wrong block; probably fixes bug #1160833)
1895 2005-03-20 Borut Razem <borut.razem AT siol.net>
1897 * support/scripts/inc2h.pl: WIN32 port
1899 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
1901 * device/lib/makefile.in: added abs.c and labs.c
1903 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1905 * device/include/stdint.h: added
1906 * device/lib/abs.c: added
1907 * device/lib/labs.c: added
1908 * device/include/stdlib.h: added abs() and labs() prototypes
1909 * device/lib/libsdcc.lib: added abs and labs
1910 * device/include/float.h,
1911 * device/lib/_fsmul.c,
1912 * device/lib/printf_fast.c,
1913 * device/lib/printf_tiny.c: updated comments
1915 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1917 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
1920 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1922 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
1923 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
1925 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
1927 * device/lib/printf_large.c: removed inline assembly for portability and
1928 readability. Use printf_fast if speed or size are more important.
1929 * src/pic16/gen.c: removed conditions around use of DEBUGpc
1930 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
1932 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
1934 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
1935 prevent compiler warning
1937 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1939 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
1940 moved to level 0 and declared as static. Also they are explicit
1941 placed in access bank. This was necessery because some times they
1942 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
1943 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
1944 optimizations. Currently only compare to unsigned char is implemented,
1945 * src/pic16/gen.c: added fReturnIdx array,
1946 * (struct resolvedIfx) is moved to gen.h and made public,
1947 * (struct _G): added sregsAlloc and sregsAllocSet fields,
1948 * (aopForSym): added an optimization to directly store in stack of
1949 the operand of a SEND iCode,
1950 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
1951 but as registers instead (AOP_REG) using the fReturnIdx array,
1952 * (pic16_freeAsmop): remove the freed register from the
1953 _G.sregsAlloc field,
1954 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
1955 a compare of 'WREG',
1956 * (pic16_popGetTempRegCond): changed function prototype, now
1957 function takes also a bitVector argument v which holds the current
1958 set of registers that are allocated for stack access by aopForSym,
1959 registers allocated in aopForSym for accessing stack symbols are not
1960 any more part of the functions usedRegs field,
1961 * (genCall): some times aopOp is called for a stack variable to be
1962 send, aopForSym might perform the push, if this is true make sure
1963 that genCall doesn't push the variable twice by testing _G.resDirect,
1964 * (genFunction): changed testing for unspecified interrupt number
1965 from 256 to INTNO_UNSPEC,
1966 * modified selection scheme of frame pointer generation. Previously
1967 if function did use local registers a frame pointer was generated,
1968 now a frame pointer is generated only if function has arguments
1969 (that need PLUSW2 register access), or has stack arguments, or the
1970 compiler is not instructed to omit the frame pointer,
1971 * (genEndFunction): before restoring local registers that were saved
1972 in the function preamble, also restore the registers that *might*
1973 have been allocated for stack access,
1974 * (genRet): removed some old comments,
1975 * (genCmp, the active (RN's) version): added a call to the
1976 pic16_genCmp_special function to perform the compare with a more
1977 robust and optimized way,
1978 * (genInline): a feature has been added in inline code generation,
1979 which allows a wildcard variable substitution when writing inline
1980 assembly. Code is incomplete and experimental therefore undocumented,
1981 * (genCast): changed order of aopOp for result and right to allow
1982 aopForSym to directly load the result if possible,
1983 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
1984 perform an optimized compare on some selected special occasions,
1985 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
1986 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
1987 generate an IVT any more,
1988 * src/pic16/main.c (pic16_optionsTable): added command line option
1990 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
1991 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
1993 * src/pic16/NOTES: Raphael Neider added in list of active developers
1994 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
1995 jumptable_end to prevent bug #,
1996 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
1997 inCond and outCond fields,
1998 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
1999 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
2000 turn off register spilling,
2001 * (packRegsForOneUse): synced with other ports' versions although it
2002 is not used currently,
2003 * (pic16_packRegisters): added an optimization while reading
2004 structure bitfields, some registers may be saved (malloc code is
2005 decreased by 80 bytes)
2007 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
2009 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
2010 left is a bitfield, if yes, then don't optimize assignment. Perhaps
2011 this can be optimized more?
2013 2005-03-10 Raphael Neider <rneider AT web.de>
2015 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
2016 genNearPointerGet): (hopefully) fixed access to bitfields via
2017 pointers (p->bitN = x; and x = p->bitN; failed)
2019 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
2021 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
2023 2005-03-09 Raphael Neider <rneider AT web.de>
2025 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
2027 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
2029 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
2030 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
2031 (regTypeNum): set REG_BIT type if necessary
2032 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
2033 * support/regression/tests/critical.c: check bug 1144613
2035 2005-03-02 Raphael Neider <rneider AT web.de>
2037 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
2039 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2041 * src/avr/ralloc.c (serialRegAssign),
2042 * src/ds390/ralloc.c (serialRegAssign),
2043 * src/hc08/ralloc.c (serialRegAssign),
2044 * src/mcs51/ralloc.c (serialRegAssign),
2045 * src/pic/ralloc.c (serialRegAssign),
2046 * src/pic16/ralloc.c (serialRegAssign),
2047 * src/xa51/ralloc.c (serialRegAssign),
2048 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
2050 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2052 * src/SDCCast.c (decorateType): fixed bug 1124787
2054 2005-02-20 Hubert Sack <sack AT digiplan.de>
2055 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2057 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
2060 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2062 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
2063 to keep the correct label reference count when adding/removing references
2064 to labels. A peephole file using this is appended to patch #1144962.
2066 2005-02-14 Raphael Neider <rneider AT web.de>
2068 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
2069 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
2070 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
2071 retrievals of result operand's value on assignment
2073 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
2075 * device/include/pic16/string.h: modified prototype for memccpy()
2076 to memccpy(void *, void *, char, size_t)
2077 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
2078 check whether to omit frame pointer or not,
2079 * (genInline): convert all occurences of "\n" to LF in inline
2080 assembler blocks, this helps formatting the inline text,
2081 * (pic16_loadFSR0): modified prototype,
2082 * (genNearPointerGet, genNearPointerSet): reorganization of code,
2083 removed some 8051 legacy code,
2084 * (genPackBits): enabled handling bitfields exceeding one byte in size,
2085 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
2086 before allocating temporary registers in functions,
2088 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2090 * support/regression/tests/bitvars.c: corrected the "fix"
2092 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
2094 * support/regression/tests/bitvars.c,
2095 * support/regression/tests/bitwise.c,
2096 * support/regression/tests/rotate.c: "fixed" problems on Alpha
2098 2005-02-10 Raphael Neider <rneider AT web.de>
2100 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
2101 different size for Alpha
2102 * src/pic16/gen.c (genCmpEq) : improved compare with 0
2104 2005-02-09 Raphael Neider <rneider AT web.de>
2106 * src/SDCC.lex(doPragma) : save and restore warning options as well
2107 (also added new stack plus clone- and copyAndFreeSDCCERRG())
2108 * have #pragma less_pedantic set the errorlevel to WARNING
2110 * (cloneOptimize) : fixed wrong malloc's size
2111 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
2112 facilitate correct handling of #pragma (save|restore)
2114 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
2116 * src/mcs51/gen.c: removed non-standard C nameless struct/union
2118 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
2120 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
2122 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
2124 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
2126 2005-02-02 Raphael Neider <rneider AT web.de>
2128 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
2129 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
2130 * (pic16_storeForReturn): fixed to allow returning function pointers
2131 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
2132 * device/include/pic16/{stddef.h,stdbool.h}: added
2134 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
2136 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
2138 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
2140 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
2141 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
2142 appeared to be required
2144 2005-01-31 Borut Razem <borut.razem AT siol.net>
2146 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
2147 include/mcs51 and include/z80 directories to the package
2149 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2151 * src/hc08/gen.c (genFunction): fixed bug #1112752
2153 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2155 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
2157 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2159 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
2161 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
2163 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
2165 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
2167 * device/include/c8051fxxx.h: removed these 6 files
2168 * device/include/mcs51/c8051fxxx.h: added these 11 new files
2170 2005-01-26 Raphael Neider <rneider AT web.de>
2172 * src/pic16/gen.c (genAssign): fixed assignment from longs
2173 in codespace (were cut to three bytes)
2174 * (genDummyRead): implemented (except for CODESPACE...),
2176 * src/pic16/glue.c (emitStatistics): beautified
2177 * device/lib/pic16/libm/Makefile: added include path
2179 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2181 * src/z80/gen.c (aopPut): fixed bug #1103902
2183 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2185 * device/lib/expf.c: fixed bug #1095792
2187 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
2189 * device/lib/pic16/libm: added Math library sources
2191 2005-01-24 Raphael Neider <rneider AT web.de>
2193 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
2194 to enable upcast to pCodeOpReg2 (there is no type tag to
2195 differenciate the two and pic16_popGet2p cast into PCOR2)
2196 * src/pic16/main.c (_process_pragma): fixed another malloc bug
2197 (sizeof(sectNames) changed to sizeof(sectName))
2198 Both patches fix segfaults under MinGW.
2200 2005-01-23 Raphael Neider <rneider AT web.de>
2202 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
2203 Safe_[mc]?alloc()'ed variables
2204 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
2205 of (byte sized) temporaries (assign them to WREG for now)
2206 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
2207 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
2208 this might fix SIGSEGVs on MinGW...
2209 * src/SDCCopt.c (killDeadCode): restored original behaviour
2210 (volatile operands might get thrown away though)
2212 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
2214 * src/pic16/gen.c: fixed bug #1106975,
2215 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
2216 pointer update, INTCON is saved, global interrupts are disabled and
2217 restored after updateing TOS.
2218 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
2219 * added function attribute 'shadowregs' to take advantage of shadow
2221 * added function attribute 'wparam' as an alternative to the wparam
2223 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
2224 user declares a non-ISR function as 'shadowregs',
2225 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
2227 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
2229 * .version: bumped version number to 2.4.8
2230 * device/lib/pic16/pics.all: list of PIC18F devices supported by
2232 * device/lib/pic16/libio/i2c/: I2C module support library,
2233 * device/include/pic16/i2c.h: I2C support library header,
2234 * device/lib/pic16/libc/stdio/: standard IO support sources,
2235 * (printf_small.c): printf_small() source, supports float print,
2236 * (printf_tiny.c): printf_tiny() source, does not support floats,
2237 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
2238 enable global optimizations for entire library source, other
2239 Makefiles in the source tree are also modified to reflect this,
2240 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
2242 * doc/sdccman.lyx: updated to reflect new changes,
2243 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
2244 sym->onStack if-case,
2245 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
2246 sbit, idata, _idata, xdata, _xdata,
2247 * added pragma library, to link an external library, (see doc),
2248 * removed command line options, --pomit-config-words, --pomit-ivt,
2249 --pleave-reset-vector,
2250 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
2251 when calling assembler to reflect memory model used, also define
2252 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
2253 reflect stack model used,
2254 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
2255 on stack return NULL,
2257 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2259 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
2260 of the operands is volatile. Fixes #1020220
2262 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2264 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
2265 * (OptimizeRegUsage): make sure that there is really no other flow where
2266 the first pCode is used
2268 2005-01-22 Raphael Neider <rneider AT web.de>
2270 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
2271 to fix #1106967 (pCode->seq are not set up correctly)
2273 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2275 * src/SDCCglue.c (glue): make sure code area is declared before the
2276 static initialization area.
2278 2005-01-21 Raphael Neider <rneider AT web.de>
2280 * device/lib/Makefile.in: fixed test for pic16 install dir
2281 * device/lib/pic16/*/Makefile*: modified compile flags to enable
2283 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
2284 added --optimize-goto compiler switch and pragma wparam documentation
2285 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
2286 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
2287 and PRODH closing bug #1071770 (peephole optimizer)
2289 2005-01-19 Raphael Neider <rneider AT web.de>
2291 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
2292 cmdLine buffers (used when calling sdcpp...) are large enough
2293 (MAX_PATH=256 truncates arguments leading to system halts when
2295 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
2296 * (genUminus): rewritten to for efficiency
2297 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
2298 used uninitialized in some cases)
2299 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
2300 copy the third byte from the int -- now assumes 0x80 (data memory)
2301 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
2302 operands (genAddLit expects the iCode's operands to swapped as
2303 well), fixed leftover bytes (crashed for short left operands)
2304 * (pic16_genMinusDec): performance improvements, removed false
2306 * (pic16_genMinus): fixed to cope with differently sized operands
2307 * src/pic16/glue.c (pic16_glue): added new banksel optimization
2309 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
2310 * src/pic16/graph.[ch]: implementation of directed graphs, used by
2311 new banksel optimization
2312 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
2313 analysis for temporary registers (segfaults...)
2314 * src/pic16/peeph.def: added rule
2316 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
2318 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
2319 which converts a float number to its ASCII representation
2320 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
2321 functions to convert the fractional and integer part of a float to ASCII,
2322 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
2323 realloc.c): added _MALLOC_SPEC to explicit place variables in data
2325 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
2327 * device/include/pic16/adc.h: added GPL info,
2328 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
2329 a pCodeOp as tested operand,
2330 * (genNearPointerGet): optimized bit testing, does not use
2331 intermediate register for bit value, test directly instead with
2332 BTFSS, BTFSC, works only for single bits,
2333 * (genpic16Code): dump the name of the iCode in the asm,
2334 * src/pic16/ralloc.c (decodeOp): removed static declaration and
2335 renamed to pic16_decodeOp,
2336 * (serialRegAssign): do not allocate a temporary register for iCode
2337 sequences that test a single bit for 1/0
2339 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
2341 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
2342 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
2343 access stack and frame pointers. They are initially assigned to
2344 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
2345 accessing SFRs. Updated all occurences of modification of stack or
2346 frame pointer in gen.c and pcode.c,
2347 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
2348 assigning of a literal value to pointers,
2349 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
2350 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
2353 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
2355 * doc/sdccman.lyx: update documentation about stack pragma, added
2356 some info for stack memory models
2358 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2360 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
2362 2005-01-08 Raphael Neider <rneider AT web.de>
2364 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
2365 udata sections to fix bug #1097823
2367 2005-01-05 Raphael Neider <rneider AT web.de>
2369 * src/pic16/gen.c (genGenericShift): added handling of differently
2370 sized left operand and result
2372 2005-01-04 Raphael Neider <rneider AT web.de>
2374 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
2375 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
2376 to hold the condition bit)
2377 * added new version of genCmp (old code available via #define)
2378 * added new version of genShiftLeft/genShiftRight in a generic
2379 way, now supports shifting by negative values
2380 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
2381 shiftCount (expected by genGenericShift)
2382 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
2383 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
2385 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
2386 is an invalid literal too...)
2388 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
2390 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
2391 from Raphael Neider,
2392 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
2393 for 8-bit literals. This fixes some literal operands which are sign
2394 extended to 16-bits ints when instruction needs only 8-bits.
2396 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
2398 * device/lib/logf.c: added mcs51 assembly version
2399 * device/lib/expf.c: added mcs51 assembly version
2400 * device/lib/_logexpf.c: new shared asm code for expf and logf
2401 * device/include/math.h: add defines for assembly math library
2402 * device/lib/Makefile.in: build new _logexpf.c
2403 * device/lib/libfloat.lib: use new _logexpf.c
2405 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2408 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
2409 device types which have less than 0x7f registers.
2411 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2413 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
2415 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2417 * device/lib/printf_fast.c: only build on supported arch.
2418 * device/lib/printf_tiny.c: only build on supported arch.
2419 * device/lib/printf_fast_f.c: only build if asm float lib
2420 * device/lib/_fsget1arg.c: only build if asm float lib
2421 * device/lib/_fsget2args.c: only build if asm float lib
2422 * device/lib/_fsnormalize.c: only build if asm float lib
2423 * device/lib/_fsreturnval.c: only build if asm float lib
2424 * device/lib/_fsrshift.c: only build if asm float lib
2425 * device/lib/_fsswapargs.c: only build if asm float lib
2426 * device/include/stdio.h: don't provide print_fast,
2427 print_fast_f, print_tiny prototypes if --xstack used
2429 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
2431 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
2432 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
2435 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2437 * device/lib/printf_fast_f.c: same as printf_fast, but
2438 with floating point enabled
2439 * device/lib/printf_fast.c: minor tweaks
2440 * device/include/stdio.h: add printf_fast_f
2442 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2444 * src/SDCCmain.c: make --float-reent default for mcs51
2445 * device/lib/_fsadd.c: added mcs51 assembly version
2446 * device/lib/_fssub.c: added mcs51 assembly version
2447 * device/lib/_fsmul.c: added mcs51 assembly version
2448 * device/lib/_fsdiv.c: added mcs51 assembly version
2449 * device/lib/_fseq.c: added mcs51 assembly version
2450 * device/lib/_fsneq.c: added mcs51 assembly version
2451 * device/lib/_fsgt.c: added mcs51 assembly version
2452 * device/lib/_fslt.c: added mcs51 assembly version
2453 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
2454 * device/lib/Makefile.in: add _fscmp to build
2455 * device/lib/libfloat.lib: add _fscmp to build
2457 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2459 * device/lib/_fs2slong.c: added mcs51 assembly version
2460 * device/lib/_fs2sint.c: added mcs51 assembly version
2461 * device/lib/_fs2schar.c: added mcs51 assembly version
2462 * device/lib/_fs2ulong.c: added mcs51 assembly version
2463 * device/lib/_fs2uint.c: added mcs51 assembly version
2464 * device/lib/_fs2uchar.c: added mcs51 assembly version
2465 * device/lib/_slong2fs.c: added mcs51 assembly version
2466 * device/lib/_sint2fs.c: added mcs51 assembly version
2467 * device/lib/_schar2fs.c: added mcs51 assembly version
2468 * device/lib/_ulong2fs.c: added mcs51 assembly version
2469 * device/lib/_uint2fs.c: added mcs51 assembly version
2470 * device/lib/_uchar2fs.c: added mcs51 assembly version
2471 * device/include/float.h: added #define to select asm vs c
2473 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
2475 * device/lib/printf_fast.c: improvements to float output
2476 * device/include/float.h: add defines for assembly float library
2477 * device/lib/_fsget1arg.c: receive 1 float arg
2478 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
2479 * device/lib/_fsnormalize.c: normalize a float
2480 * device/lib/_fsreturnval.c: return float, various helper routines
2481 * device/lib/_fsrshift.c: right shift a float's mantissa
2482 * device/lib/_fsswapargs.c: swap 2 floats
2483 * device/lib/Makefile.in: build these 6 new files for mcs51
2484 * device/lib/libfloat.lib: add these 6 files to the library
2486 2004-12-26 Borut Razem <borut.razem AT siol.net>
2488 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
2491 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
2493 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
2494 and fully reentrant and register bank neutral.
2495 * device/lib/printf_fast.c: added float (not enabled by default),
2496 added compact/slower integer (also not enabled by default),
2497 improved size/speed of fast integer code, other minor changes
2498 * device/include/stdio.h, device/lib/Makefile.in,
2499 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
2501 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
2503 * src/pic16/pcode.c: declaring variables other than at the start of a
2504 block is not supported in C by VC6.
2506 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
2508 * applied a previous patch from Raphael Neider that wasn't included
2509 in the previous commits, which fixes infinite loops within jumptable
2511 * made some fixes that previous patches introduced
2513 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
2515 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
2516 that fixes an issue with AOP_PCODE asmop's offset,
2517 * (pic16_popCopyReg): update instance field too,
2518 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
2519 function of pic port,
2520 * (genCmp, genAnd, genAssign),
2521 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
2523 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
2525 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
2526 variables initial values to idata section,
2527 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
2528 variables in some functions. This utilizes parmBytes field of iCode
2529 structure to hold the offset of the variable in stack. (might be
2530 able to use the stack field too?)
2531 * applied patch from Raphael Neider # ### , # ###
2532 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
2533 variable initial values in idata section,
2534 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
2535 for static variables with initial value
2536 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
2537 applied fix in while loop from Raphael Neider.
2539 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
2541 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
2542 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
2543 * src/ds390/ralloc.c (serialRegAssign): spill bits
2544 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
2545 * support/Util/SDCCerr.c,
2546 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
2547 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
2548 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
2550 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
2552 * device/include/sdcc-lib.h: inserted LGPL, added includes
2553 asm/ds390/features.h and asm/mcs51/features.h
2554 * device/include/asm/default/features.h,
2555 * device/include/asm/gbz80/features.h,
2556 * device/include/asm/z80/features.h: added empty _AUTOMEM
2558 * device/include/asm/ds390/features.h,
2559 * device/include/asm/mcs51/features.h: added files with defines for
2560 _AUTOMEM and _STATMEM indicating automatic and static storage class
2561 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
2562 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
2563 * src/SDCCicode.c (geniCodeCast),
2564 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
2565 * src/SDCCloop.c (loopInduction): removed unused variable lr
2566 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
2567 to convertToFcall to include char modulo (RFE 1065037), added check
2568 if left operand is unsigned and use abs of literal value
2569 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
2570 as it doesn't work after conversion from peephole.def to peephole.rul
2571 * src/mcs51/gen.c (toBoolean): added check for size,
2572 (genModOneByte): optimized code for signed char modulo a literal
2573 power of 2 (thanks to Hubert Sack),
2574 (genRRC): removed unnecessary "clr c",
2575 (genRLC): replaced "add a,acc" with cheaper "rlc a"
2576 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
2578 swapped rules 256.c and 256.d,
2579 extended 256.d by using new multiple checks (thanks Erik),
2580 added rules 256.e and 256.f,
2581 updated rule 261.a and 261.b to new generated code
2582 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
2584 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2586 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
2587 induction related bugs, including first part of bug #1074377
2589 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
2591 * applied patch from bug-report #1076292,
2592 * applied patches for genAnd and Goto-optimizations for Raphael
2594 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
2595 dump a less iCode information,
2596 * src/pic16/device.h (pic16_options_t): added field debgen,
2597 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
2598 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
2599 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
2601 * (various functions): added macros FENTRY and FENTRY2 to functions,
2602 to emit function prologue,
2603 * (various functions): fixed indentation,
2604 * (genNearPointerGet): fixed loading of FSR0,
2605 * (genPackBits): applied patch from Raphael Neider to fix updating
2606 of FSR0 and touching only the modified bits,
2607 * src/pic16/genarith.c (various functions): added macros FENTRY to
2608 emit function prologue in comments,
2609 * src/pic16/pcode.h: added functions debugf2, debugf3,
2610 * src/pic16/ralloc.c: partial fix for packForPush caused
2613 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2615 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
2616 <stsp AT users.sourceforge.net> with reversed byte order
2617 * support/regression/tests/rotate.c: added (ds390 skips some tests)
2619 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2621 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
2623 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
2624 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
2626 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
2628 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
2630 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2632 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
2634 (setFromConditionArgs): friendly operand parser for peephole rules,
2635 (operandBaseName, operandsNotRelated): new peephole condition
2636 "operandsNotRelated" -- similar to "operandsNotSame", but takes
2637 architecture specific register naming into account, handles n-way
2638 comparisons, and supports quoted literals
2639 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
2641 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2643 * src/mcs51/peeph.def: fixed bug #1076940
2645 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
2647 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
2649 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2651 Adding support for replacing ljmps with sjmps in jumptables
2652 generated for switch statements. For now you need to set the
2653 environment variable SDCC_SJMP_JUMPTABLE to enable this.
2654 Now 4 algorithms for mcs51 jumptable generation are used:
2655 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
2656 addresses loaded pc-relative for up to 112 cases and stack-pushing
2657 target addresses loaded with offset from dptr for up to 256 cases.
2659 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
2660 * src/mcs51/main.c: adapted constants for switch table generation
2661 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
2663 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
2665 * device/lib/printf_large.c (_print_format): fixed bug 1073386
2666 * support/regression/tests/bug1057979.c: added test for bug 1073386
2668 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
2670 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
2673 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
2675 * src/pic16/device.h,
2676 * src/pic16/genarith.c,
2679 * src/pic16/pcode.c: applied patches #1068154 and #1070213
2681 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
2683 Large cummulative patch for pic16 port.
2684 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
2685 to call when a stack overflow occurs,
2686 * (malloc.h): added CVS Id tag,
2687 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
2689 * added libc directory. The current version of LibC contains string
2690 functions, ctype functions and macros and some functions of the
2691 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
2692 be extensively tested in the future. Standard disclaimer here.
2693 Library is not automatically build yet. But one can build it by
2694 invoking 'make' inside the libc directory.
2695 * added ADC library under libio. Preliminary version yet.
2697 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
2698 * src/pic16/gen.c (aopForRemat): asmop size is filled by
2699 aopForRemat() now and not by pic16_aopOp(),
2700 * (pic16_popGetTempReg): removed warning messgae when allocating
2701 temporary registers, its a buggy feature and will be removed,
2702 * (pic16_popGet): set register instance field in AOP_CRY,
2703 * (pic16_outBitC): fixed for results in size greater than 1,
2704 * (genUminusFloat): fixed for pic16, ported code from mcs51,
2705 * (pic16_storeForReturn): optimized return of 0,
2706 * (genCmp): experimental code for new genCmp which uses PIC18's
2707 special compare&skip instructions. Initial tests fail some times
2708 with variables grater than 1 byte in size, so new code is disabled,
2709 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
2711 * (genCast): began a fix to optimize the casting of a bit to another
2712 bit, now assigning a bitfield to another bitfield will fail, sorry,
2713 * src/pic16/main.c: disabled the use of lr-support feature,
2714 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
2715 * added some function prototypes, added function _debugf prototype,
2716 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
2717 bits with offset (case PO_GPR_BIT),
2718 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
2720 * (isBankInstruction): modified to return 0 for no banking instruction,
2721 and 1 for banking instruction,
2722 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
2723 caused stop processing pCodes after a inline assembly block,
2724 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
2725 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
2726 registers when it shouldn't,
2727 * src/pic16/ralloc.c (allocReg): add preliminary support for
2728 supporting a limited set of temporary registers,
2730 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2732 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
2733 genDataPointerSet): ensure assignments always copy in MSB to LSB
2735 (loadRegFromAop): recognize CLRH optimization,
2736 (genFunction): optimize RECEIVE iCodes in reentrant functions
2738 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2740 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
2741 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
2743 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
2744 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
2745 contiguous with data
2747 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2749 * device/lib/_gptrget.c (_gptrget),
2750 * device/lib/_gptrgetc.c (_gptrgetc),
2751 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
2752 instead of sjmp to ret
2753 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
2754 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
2756 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
2758 * .version: bumped version to 2.4.7
2759 * device/lib/_gptrget.c (_gptrget): is now _naked
2760 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
2761 * device/lib/_gptrput.c (_gptrput): is now _naked
2762 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
2763 (createFunction): fixed xstack
2764 * src/SDCCglue.c (emitMaps): set allocation required for bit area
2765 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
2767 (geniCodeCritical): store original interrupt state in an iTemp bit
2768 var unless stack-auto
2769 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
2770 * src/SDCCmain.c (setIncludePath): added include/target to search path
2771 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
2772 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
2774 (processFuncArgs): put bit vars in bit area
2775 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
2776 unsaveRBank): fixed xstack,
2777 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
2778 (genFunction, genEndFunction): fixed xstack,
2779 (genAssign): optimization don't walk backwards through mem
2780 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
2781 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
2782 * support/regression/Makefile: also make library (for stack-auto) when
2783 making "all" and added "test-mcs51-xstack-auto"
2784 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
2785 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
2786 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
2787 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
2788 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
2789 make-library by MAKE_LIBRARY
2790 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
2791 regression tests for xstack
2792 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
2793 * support/regression/tests/critical.c: test for critical on mcs51
2795 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2797 * support/regression/ports/ucz80/spec.mk: use include and lib files from
2798 built version of sdcc instead of installed version
2800 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2802 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
2803 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
2805 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
2806 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
2807 WARNING: remove device/lib/build/z80/printf.o by hand when
2808 updating from previous build!
2809 * device/lib/z80/printf.c: updated comment
2810 * support/regression/tests/bug1057979.c: test all ports now
2811 * support/regression/tests/bug1065458.c: file added
2813 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2815 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
2816 *_start and *_end symbols for static functions
2818 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2820 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
2821 and search crt0.o in all library paths,
2822 (setIncludePath): proper handling of --nostdinc,
2823 (setLibPath): proper handling of --nostdlib
2824 * support/regression/Makefile,
2825 * support/regression/ports/ds390/spec.mk,
2826 * support/regression/ports/gbz80/spec.mk,
2827 * support/regression/ports/hc08/spec.mk,
2828 * support/regression/ports/mcs51/spec.mk,
2829 * support/regression/ports/mcs51-large/spec.mk,
2830 * support/regression/ports/mcs51-stack-auto/spec.mk,
2831 * support/regression/ports/z80/spec.mk: use include and lib files from
2832 built version of sdcc instead of installed version
2833 * doc/sdccman.lyx: fixed typo in --nostdinc
2835 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
2840 * src/pic/gen.c : added support to generate code for struct bit fields.
2842 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
2844 * as/xa51/xa_version.h,
2845 * device/include/errno.h,
2846 * device/include/regc515c.h,
2847 * device/lib/_itoa.c,
2848 * device/lib/_ltoa.c,
2849 * device/lib/ser_ir_cts_rts.c,
2850 * sim/ucsim/xa.src/glob.cc,
2851 * sim/ucsim/xa.src/inst_gen.cc,
2852 * sim/ucsim/xa.src/xa_bit.cc,
2853 * sim/ucsim/xa.src/xa_sfr.cc,
2854 * sim/ucsim/z80.src/inst_dd.cc,
2855 * sim/ucsim/z80.src/inst_fdcb.cc,
2856 * support/scripts/keil2sdcc.pl,
2857 * src/pic16/pic16.dsp,
2858 * src/pic16/pic16a.dsp: corrected cvs line endings
2859 * device/lib/printf_large.c: fixed bug 1057979
2860 * src/pic16/gen.c: fixed non-C standard code
2861 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
2862 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
2863 * support/regression/ports/mcs51/support.c: reload T1 asap
2864 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
2865 pdata use and clear idata startup behaviour
2866 * support/regression/tests/bug1057979.c: added
2868 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
2870 * device/examples/ds390/ow390/ad26.h,
2871 * device/examples/ds390/ow390/cnt1d.h,
2872 * device/examples/ds390/ow390/crcutil.c,
2873 * device/examples/ds390/ow390/ownet.h,
2874 * device/examples/ds390/ow390/owsesu.c,
2875 * device/examples/ds390/ow390/swt12.h,
2876 * device/examples/ds390/ow390/swtoper.c,
2877 * device/examples/ds390/ow390/temp10.h,
2878 * device/examples/ds390/ow390/thermodl.c,
2879 * device/examples/ds390/tinitalk/tinitalk.dsp,
2880 * device/examples/ds390/tinitalk/tinitalk.dsw,
2881 * device/examples/mcs51/clock/hw.h,
2882 * device/examples/mcs51/simple2/go.bat,
2883 * device/examples/serialcomm/windows/serial.h,
2884 * device/examples/xa51/dummy.c,
2885 * device/examples/xa51/hello.c,
2886 * device/include/80c51xa.h,
2887 * device/include/at89x051.h: corrected cvs line endings
2889 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
2891 * src/pic16/main.c (options): added command line --gstack, to trace
2892 stack over/under flows,
2893 * added pragma 'wparam' to allow passing first byte of function
2894 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
2895 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
2896 call to __gstack_test function and sets up the symbol as extern,
2897 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
2898 * popaop): added call to pic16_testStackOverflow,
2899 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
2901 * (genCall, genPcall): now all parameters are passed via stack
2902 except in functions that are pass to wparam pragma in which WREG is
2904 * (genPcall): REENTRANT flag is checked to see if variable prototype
2905 contains reentrant keyword, don't call a non-reentrant function, via
2906 a reentrant function pointer or vice versa, functions are never
2908 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
2910 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
2911 SIGSEGV when accessing a NULL register stucture,
2912 * (pic16_printGPointerType): modified to handle UPPER modifier for
2913 function initializers, changed prototype of function to simpler one,
2914 * (pic16_printIvalFuncPtr): check to see if function is already
2915 added in externs list,
2916 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
2917 optimized a move from W to SFR with a move to the same register
2919 * device/lib/pic16/debug: NEW directory, contains debug features
2920 which are enabled when linking with libdebug.lib, currently command
2921 line option --gstack enables stack pointer tracing for over/under
2922 flow, corresponding sources are in debug/gstack
2924 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
2926 * doc/sdccman.lyx: updated SDCC version,
2927 * (PIC16 port): update list of command line options,
2928 * src/pic16/device.h (structure pic16_options_t): added field gstack
2929 to enable stack overflow tracing on push/pops,
2930 * src/pic16/device.c (statistics structure): added statistics
2932 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
2933 pic16_dump_int_registers): increase statistics counters for each
2934 * variable which is encountered
2935 * (pic16_dump_usection): emit each .udata variable to its own udata
2937 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
2938 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
2939 parameters via stack, otherwise use old scheme,
2940 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
2941 assembler output file,
2942 * src/pic16/main.c: added command line options --gstack to enable
2943 push/pop tracing for stack overflow,
2944 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
2945 instructions): added size of each instruction,
2946 * (pic16_countInstruction): estimate size of instructions in
2947 the_pFile list, inline assembly blocks are not counted,
2948 * (pic16_FixRegisterBanking): trace previous register usage, when
2949 banksel optimizations is greater than 0, don't emit a redudant
2952 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
2954 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
2955 * src/pic16/ralloc.c : applied same fix for pic16.
2956 * src/pic/gen.c : tidied it up a little.
2958 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2960 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
2961 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
2963 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2965 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
2967 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2969 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
2970 non-reentrant function __modsint in the interrupt function (thus
2971 corrupting math operations during serial I/O)
2972 * device/lib/ser_ir.c: as above, changed buffersize
2973 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
2975 * doc/Makefile: added option -t for rsync
2977 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2979 * src/SDCCast.h (struct ast),
2980 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
2982 2004-10-20 Borut Razem <borut.razem AT siol.net>
2984 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
2987 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
2989 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
2991 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
2992 support functions to replace long sequences of MOVFF's from access
2993 bank registers to stack and vice versa,
2994 * src/pic16/device.h: added new field opt_flags, where optimization
2995 flags can be set to enable certain features,
2996 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
2997 * pBlock, (genFunction, genEndFunction): surroung loop for
2998 saving/loading used registers in stack with PC_INFO pCodes,
2999 INF_LREGS. Code in between can then be optimized by pCode optimizer
3000 to support function calls,
3001 * (genDataPointerSet): fixed bug which loaded float fields in
3002 structures with corrupt data,
3003 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
3004 in a standard way debug info on stderr. Feature used for developing
3006 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
3007 obsolete chunks of code,
3008 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
3009 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
3010 * pic16/src/pcode.c (pic16_newpCodeInfo,
3011 * (pic16_newpCodeOpLocalRegs),
3012 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
3014 * (pic16_pCodeConstString): printing of the initial value of a
3015 symbol as a comment is inhibited since parsing was already done by
3016 copyStr and output is corrupt,
3017 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
3019 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3021 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
3023 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3025 * as/mcs51/lkarea.c: removed old K&R style,
3026 (lnksect): changed check on boundary error,
3027 (lnksect2): changed check on boundary error,
3028 (lnksect2): extend XSTK to end of page if size = 1
3029 * as/mcs51/lkmain.c: removed old K&R style,
3030 (Areas51): create l_IRAM symbol
3031 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
3032 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
3033 model-mcs51-stack-auto, added model-mcs51-xstack-auto
3034 * device/lib/_mullong.c: added version to be compiled with xstack
3035 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
3036 * device/lib/mcs51/crtxclear.asm: clear pdata as well
3037 * device/lib/mcs51/crtxstack.asm: fixed comment
3038 * src/SDCCglue.c: maxInterrupts defaults to 0,
3039 (emitMaps): added pdata,
3040 (createInterruptVect): (re)moved default,
3041 (glue): added pdata,
3042 (glue): moved __start__xstack to XSTK with default size 1
3043 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
3044 and options.float_rent when options.stackAuto is set,
3045 (linkEdit): only write XDATA_NAME if provided on command line
3047 * src/SDCCmem.c: added pdata
3048 * src/port.h: added pdata_name to PORT
3049 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
3050 (saveRegisters, unsaveRegisters): removed usage of B,
3051 (genMinus): fixed accumulator clash,
3052 (genJumpTab): added comment, this needs another look
3053 * src/mcs51/gen.c: added check for "B in use" paranoia,
3054 added pushB() and popB()
3055 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
3064 * src/z80/main.c: (reset_regparms) made void parameter explicit and
3065 added PSEG (PAG,XDATA) or NULL to port specifier
3066 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
3067 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
3068 (_mcs51_genInitStartup): removed __start__xstack equ,
3069 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
3070 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
3071 * src/z80/gen.c (_rleAppend): fixed warnings
3072 * support/regression/tests/zeropad.c: added pdata test
3073 * .version: bumped to 2.4.6
3075 2004-10-17 Borut Razem <borut.razem AT siol.net>
3077 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
3078 as a part of nightly build
3080 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
3082 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
3083 WREG holds the first byte function parameters,
3084 * (aopForSym): take special case for symbols which are in FARSPACE
3085 but in CODESPACE too,
3086 * (assignResultValue): modified to take into account _G.useWreg,
3087 * (genCall): don't use wreg for parameter passing when function is
3088 declared as reentrant, too, added optimization INCF to stack
3089 pointer when stack parameter count is 1,
3090 * (genFunction, genEndFunction): refurnished and fixed to not using
3091 wreg for passing parameters when function has varargs or is
3092 reentrant, fixed bug with symbol name compare for generating
3093 functions in absolute address,
3094 * (pic16_storeForReturn): refurnished,
3095 * (genCmp): began writing a new version of the function, not ready
3096 yet, therefore it is disabled,
3097 * (genAssign): do not read code memory when assigning a function to
3099 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
3100 array of characters, not pointer,
3101 * (pic16initialComments): in debug mode emit an .ident directive for
3103 * (_process_pragma): emit a new warning type (internal to pic16)
3104 when setting stack to default length, emit a similar warning when
3105 placing a function at absolute address and address is not word aligned
3106 * (_pic16_parseOptions): added 'return TRUE' statement,
3107 * (_pic16_linkEdit): if compiling a source, then add the source's
3108 file object, first in the list of objects to link,
3110 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
3112 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
3113 * src/pic/main.c : removed VC warning.
3114 * src/pic/gen.c : changed comment.
3116 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
3118 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
3119 reference to a deprecated symbol _GPTRREG was causing failure to
3120 link. Thanks G. M. Gallant for the info.
3122 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
3124 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
3125 comments for Bugs item #954788.
3127 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
3129 * src/pic16/device.c (pic16_dump_gsection,
3130 * pic16_groupRegistersInSection): handle symbols declared to be in
3131 access bank differently,
3132 * src/pic16/gen.c (struct _G): added field resDirect,
3133 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
3134 send values read from stack directly to result and don't allocate
3136 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
3138 * (pic16_sameRegsOfs): NEW,
3139 * (freeAsmop): if _G.resDirect is set then do not mark registers as
3140 free because they were not allocated from temporary pool,
3141 * pic16_popRegFromString): workaround to fix a problem with
3142 allocating variables twice or never,
3143 * (genGenPointerGet): using PRODL instead of FSR0H,
3144 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
3146 * (genAssign): take advantage of the _G.resDirect flag,
3147 * (genCast): around line 11844, use mov2f instead of directly
3148 MOVFF'ing between operands to account for literal values,
3149 * src/pic16/genutils.c: some new debug functions for gpsim have been
3151 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
3152 float with integer part only,
3153 * src/pic16/main.c (_process_pragma): handle pragma udata access to
3154 place variables in access bank
3155 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
3156 updated sources to reflect recent changes in gen.c
3158 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
3160 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
3161 sources that searched for headers in installation path, now the
3162 device/include/pic16 is used,
3163 * src/pic16/glue.c (pic16glue),
3164 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
3165 .line directives if not in debug mode, this suppresses assembler's
3166 warnings for ignored directives
3168 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
3170 * src/port.h: made reset_regparms prototype void parameter explicit.
3171 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
3172 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
3173 * doc/sdccman.lyx: documented warning disabling and how to use
3174 printf_large to make it print floats.
3175 * device/include/stdbool.h: NEW
3176 * device/lib/_atof.c,
3177 * device/lib/_divuint.c,
3178 * device/lib/_divulong.c,
3179 * device/lib/expf.c,
3180 * device/lib/printf_large.c,
3181 * device/lib/sincosf.c,
3182 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
3183 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
3184 a completely reentrant lib.
3186 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
3188 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
3189 * device/include/pic16/stdio.h: fixed bug with colon
3191 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
3193 * device/include/pic16/stdio.h,
3194 * device/include/pic16/stdlib.h,
3195 * device/include/pic16/math.h: NEW
3196 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
3197 declared as _naked to reduce overhead
3198 * device/lib/Makefile.in (target port-specific-objects-pic16):
3199 changed * to *.* so to ignore the CVS directory,
3200 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
3201 stacked variables back in stack,
3202 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
3205 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
3207 * .version: bumped version number to 2.4.5
3208 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
3209 * support/Util/SDCCerr.c (messages structure): added entry for
3212 Large cumulative patch for pic16 port and libraries.
3213 * device/include/pic16/sdcc-lib.h,
3214 * device/include/pic16/stdarg.h,
3215 * device/include/asm/pic16/features.h,
3216 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
3217 * device/include/pic16/float.h: changes reentrant keyword with
3218 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
3219 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
3220 updated target build-libraries to include objects from gptr,
3221 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
3222 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
3223 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
3224 all function headings,
3225 * src/SDCCmain.c: added global parameter userIncDirsSet,
3226 * (parseCmdLine): when option -I is encountered add directory to
3228 * src/version.awk: added space between control and long,
3229 * src/pic16/NOTES: added some notes for the port,
3230 * src/pic16/gen.c: added prototype for mov2fp function,
3231 * (fReturnpic16[]): properly named return value registers,
3232 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
3233 * (aopForSym): added code to handle symbols with onStack flag set,
3234 symbols onStack are allocated PTRSIZE bytes,
3235 * (aopFreeAsmop): handles special case where asmops are stack objects,
3236 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
3237 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
3238 added argument lock to trace flaws in allocating temporary registers
3239 when developing port,
3240 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
3241 * (pic16_popRegFromString): reenabled allocating a direct register
3243 * (assignResultValue): various beautifications,
3244 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
3245 referenced function argument,
3246 * (genIpush): reenabled to allow stacked arguments, handles only
3247 ic->parmPush iCodes,
3248 * (genCall, genPcall): major changes to allow for variable argument
3249 functions, fixed a bug with falsely restoring stack pointer after
3250 returning from call,
3251 * (genFunction): pending code for critical function,
3252 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
3253 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
3254 * (genNearPointerGet): fixed bug with indirect reading, was always
3256 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
3258 * (genAddrOf): rewrote code to take address of a stacked function parameter
3259 * (genCast): fixed casting to generic pointer type,
3260 * src/pic16/gen.h: added AOP_STA,
3261 * (struct asmop): added field stk,
3262 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
3263 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
3264 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
3265 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
3266 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
3267 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
3269 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
3271 * (pic16_port structure): generic pointer size is set to 3,
3272 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
3273 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
3275 * src/pic16/ralloc.c (allocReg): prevent allocating register when
3276 operand is an iTemp,
3278 2004-09-24 Martin Helmling <mh AT octo-soft.de>
3280 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
3281 * debugger/mcs51/simi.c: addapt new syntax of s51
3283 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
3285 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
3286 * src/pic16/pcode.c: commented out some calls to free() in order to
3289 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3292 * src/SDCCicode.c (isiCodeInFunctionCall),
3293 * src/avr/ralloc.c (selectSpil),
3294 * src/pic/ralloc.c (selectSpil),
3295 * src/pic16/ralloc.c (selectSpil),
3296 * src/ds390/ralloc.c (selectSpil),
3297 * src/hc08/ralloc.c (selectSpil),
3298 * src/xa51/ralloc.c (selectSpil),
3299 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
3300 stack in the middle of a function call sequence (fixes bug #1020268)
3301 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
3302 costs associated with the minimum switch case.
3304 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3306 * src/SDCC.lex: fixed bug #1030549
3308 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3310 * src/SDCCcse.h (struct cseDef),
3311 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
3312 over a function call if the CSE is derived from a symbol whose
3313 address has been taken (fixes bug #1029883)
3314 * support/regression/tests/bug-1029883: a new regression test for
3317 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3319 * src/hc08/gen.c (emitinline): fixed bug #1029778
3320 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
3321 to a cast object is no longer a syntax error ("fixes" bug #1030006,
3322 and starts toward RFE #905167)
3324 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
3326 * src/pic16/gen.c (mov2f): New function to move an operand to
3327 another without considering if it is a literal or a register,
3328 * (pic16_sameRegs): don't check if they are both AOP_REG,
3329 * (AccRsh): removed andmask=0 lines,
3330 * (genLeftShift): duplicated to be improved in future versions,
3331 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
3332 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
3333 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
3334 * (pic16initMnemonics): added initialization for POC_INFSNZW,
3335 * (insertBankSwitch): fixed inserting banksel directives algorithm
3336 for instructions that follow a skip instruction, this fixes a report
3337 for broken subtraction code generation,
3338 * src/pic16/ralloc.c (deassignLRs): do not free register if current
3339 iCode is a left op, just in case result and right share the same
3342 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3345 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
3347 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
3348 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
3349 on 2004-09-12; it was buggy
3351 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
3353 * src/SDCCsymt.h: removed RESULT_CHECK
3358 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
3360 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
3362 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
3363 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
3364 configuration values no more rejected by compiler, they are assigned
3365 to configuration registers with a warning message instead,
3366 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
3367 the for-loop so last conf register is emitted too,
3368 * (_pic16_initPaths): link library libsdcc.lib by default,
3369 * (_hasNativeMulFor): modified test for multiplication according to
3370 Raphael Neider's remarks. Integer multiplication is also done with
3372 * device/include/pic16/pic18fregs.h: corrected type error in while
3373 testing and including 18f6720 header file
3375 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
3377 * src/pic16/device.h (pic16_options): removed field use_crt,
3378 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
3379 until an optimization to handle single bits is added,
3380 * (pic16_loadFSR0): moved before genUnpackBits,
3381 * (genAnd): some white lines removed,
3382 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
3383 leave_reset flags in pic16_options when using crt modules,
3385 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
3387 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
3388 for bugs 898889 & 979599. Also used some safer print instructions.
3390 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
3392 * src/pic16/device.h (pic16_options_t): added field use_crt,
3394 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
3395 catch a probable future bug,
3396 * src/pic16/gen.c: aopIdx function commented out,
3397 * (genAssign): commented out old code which used aopIdx,
3398 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
3399 code, added if conditionals to take into account the --use-crt
3400 command line options,
3401 * src/pic16/main.c (pic16_optionsTable): added new command line
3402 options, --use-crt= and --no-crt,
3403 * (_pic16_linkEdit): now the proper crt object is added in the
3404 linker command line except than when --no-crt is specified,
3405 * src/pic16/pcode.c,
3406 * src/pic16/pcode.h: added some structures and functions for a new
3407 optimization scheme to compansate for instruction overhead between
3408 same iCodes, this scheme is currently under development and is not
3410 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
3412 * device/lib/pic16/startup/crt0i.c,
3413 * device/lib/pic16/startup/crt0iz.c: added global char variable
3414 __uflags to force the generation of an idata section
3416 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
3419 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
3420 * doc/sdccman.lyx: updated sdcc version to 2.4.4
3422 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3424 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
3425 Frieder) and clarified the default code optimization mode
3427 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3429 * src/SDCC.lex (doPragma, process_pragma),
3430 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
3431 "opt_code_size", and "opt_code_balanced"
3432 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
3433 regrouped options by category, added support for category headers
3434 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
3435 and "--opt-code-size"
3436 * doc/sdccman.lyx: documented these new options and pragmas
3437 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
3438 preference into account
3440 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3442 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
3443 geniCodePreDec): Fixed bug 904237 by generating a warning
3445 * src/SDCCerr.c: added warning W_SIZEOF_VOID
3447 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
3449 * src/pic/device.c : When no max ram set validate full memory range.
3451 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
3453 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3455 * device/lib/_gptrget.c,
3456 * device/lib/_gptrput.c: updated comment
3457 * device/lib/calloc.c,
3458 * device/lib/free.c,
3459 * device/lib/malloc.c,
3460 * device/lib/realloc.c: added LGPL, made them reentrant-safe
3461 * src/SDCCcse.c (cseBBlock),
3462 * src/SDCCicode.c (printOperand, geniCodeArray),
3463 * src/SDCCicode.h (struct operand): fixed bug 868103
3464 * support/regression/tests/bug-868103.c: added
3465 * src/SDCCast.c (searchLitOp),
3466 * src/SDCCcse.h (struct cseDef),
3467 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
3468 * src/SDCCicode.h (struct operand),
3469 * src/SDCCsymt.h (struct sym_link),
3470 * src/avr/gen.c (hasInc),
3471 * src/ds390/gen.c (hasInc),
3472 * src/hc08/gen.c (genPlusIncr, hasInc),
3473 * src/mcs51/gen.c (hasInc),
3474 * src/pic16/glue.c (pic16_printIvalChar),
3475 * src/pic16/ralloc.c (regWithIdx),
3476 * src/xa51/gen.c (hasInc) : removed warnings
3477 * src/SDCCast.c (createBlock): added comment ???
3478 * src/hc08/ralloc.c: updated comments
3480 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3482 * doc/sdccman.lyx: updated section on switch statements, added
3483 section about semaphore locking
3484 * doc/Makefile: added option -info for latex2html
3485 * device/lib/_gptrget.c,
3486 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
3488 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3492 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
3493 maxram is less than 0x100.
3495 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3497 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
3499 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3510 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
3511 a jump table is the best form for a switch statement, including
3512 automatic insertion of missing cases to make the case range
3513 continuous. Developed in collaboration with Frieder Ferlemann.
3515 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3517 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
3518 accumulator result if it needs sign extension
3520 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3522 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
3524 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3526 * device/lib/gbz80/printf.c,
3527 * device/lib/z80/printf.c: removed define for NULL
3529 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3531 * as/xa51/xa_link.c,
3532 * device/examples/ds390/ow390/ad26.c,
3533 * device/examples/ds390/ow390/cnt1d.c,
3534 * device/examples/ds390/ow390/counter.c,
3535 * device/examples/ds390/ow390/ds2480.h,
3536 * device/examples/ds390/ow390/ds2480ut.c,
3537 * device/examples/ds390/ow390/findtype.c,
3538 * device/examples/ds390/ow390/gethumd.c,
3539 * device/examples/ds390/ow390/owllu.c,
3540 * device/examples/ds390/ow390/ownetu.c,
3541 * device/examples/ds390/ow390/swt12.c,
3542 * device/examples/ds390/ow390/swtloop.c,
3543 * device/examples/ds390/ow390/temp.c,
3544 * device/examples/ds390/ow390/temp10.c,
3545 * device/examples/ds390/ow390/thermo21.c,
3546 * device/examples/ds390/ow390/tinilnk.c,
3547 * device/examples/ds390/ow390/tstfind.c,
3548 * device/examples/serialcomm/windows/serial.cpp,
3549 * device/examples/serialcomm/windows/test_serialcomm.cpp,
3550 * device/include/reg51.h: fixed line endings for cvs
3552 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3554 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
3555 packRegsForAccUse, packRegisters): new accumulator register
3557 * support/regression/ports/hc08/support.c (_putchar): suppress
3558 warning of unused variable
3559 * src/SDCCicode.c: added SWAP entry to codeTable
3561 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
3563 * device/lib/sprintf.c: forgot to add this file before previous commit
3565 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
3567 * src/pic16/gen.c (genPackBits): added operand right in function
3568 parameters, load result directly if p_type is POINTER (that is
3569 called by genNearPointerSet)
3570 * (genUnPackBits): added operand left in function parameters,
3571 * (genNearPointerGet, genNearPointerSet): prevent the loading of
3572 FSR0 if accessing bitfields,
3574 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
3576 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
3577 _print_format; updated printf, sprintf, vsprintf
3578 * device/include/asm/default/features.h: corrected comment/define
3579 * device/lib/Makefile.in: added sprintf.c
3580 * device/lib/libsdcc.lib: added sprintf module
3581 * device/lib/printf_large.c,
3582 * device/lib/vprintf.c,
3583 * device/lib/sprintf.c: totally refactored printf_large and vprintf
3585 * support/regression/Makefile: changed ALL_PORTS into a usefull default
3586 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
3587 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
3589 * support/regression/tests/zeropad.c: define idata as data for hc08
3591 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3593 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
3594 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
3595 labels are referenced at least once (even if a reference is not found)
3596 * src/hc08/gen.c (emitcode): set isComment flag for comments
3597 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
3598 loads), rules 6a..6b (optimize jumps to return)
3600 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3602 * device/lib/acosf.c (acosf),
3603 * device/lib/asinf.c (asinf),
3604 * device/lib/atanf.c (atanf),
3605 * device/lib/ceilf.c (ceilf),
3606 * device/lib/cosf.c (cosf),
3607 * device/lib/coshf.c (coshf),
3608 * device/lib/cotf.c (cotf),
3609 * device/lib/fabsf.c (fabsf),
3610 * device/lib/floorf.c (floorf),
3611 * device/lib/log10f.c (log10f),
3612 * device/lib/logf.c (logf),
3613 * device/lib/sinf.c (sinf),
3614 * device/lib/sinhf.c (sinhf),
3615 * device/lib/sqrtf.c (sqrtf),
3616 * device/lib/tanf.c (tanf),
3617 * device/lib/tanhf.c (tanhf),
3618 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
3619 replaced all instances of "reentrant" in the library functions
3620 defined in math.h with this macro.
3621 * support/regression/tests/float_trans.c: reenabled test for hc08
3623 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
3625 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
3628 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3630 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
3631 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
3632 multi-byte volatile operands are used
3633 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
3634 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
3635 initialization to area GSINIT0 so that it would always precede
3636 any static initializers in GSINIT
3637 * support/regression/tests/zeropad.c: fixed idata define for hc08
3638 * support/regression/tests/bug-927659.c,
3639 * support/regression/tests/float_trans.c: disabled tests for hc08
3640 pending missing library routines
3641 * .version: increased version number to 2.4.4 - hc08 port now passes
3645 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
3647 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
3648 * Makefile.common.in,
3650 * as/hc08/Makefile.in,
3651 * as/mcs51/Makefile.in,
3652 * as/z80/Makefile.in,
3653 * debugger/mcs51/Makefile.in,
3654 * device/include/Makefile.in,
3655 * device/lib/Makefile.in,
3658 * link/z80/Makefile.in,
3659 * packihx/Makefile.in,
3660 * sim/ucsim/main_in.mk,
3661 * sim/ucsim/avr.src/Makefile.in,
3662 * sim/ucsim/doc/Makefile.in,
3663 * sim/ucsim/gui.src/serio.src/Makefile.in,
3664 * sim/ucsim/hc08.src/Makefile.in,
3665 * sim/ucsim/s51.src/Makefile.in,
3666 * sim/ucsim/xa.src/Makefile.in,
3667 * sim/ucsim/z80.src/Makefile.in,
3669 * support/cpp2/Makefile.in,
3670 * support/librarian/Makefile,
3671 * support/makebin/Makefile: added DESTDIR to the install path proposed
3672 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
3673 * doc/sdccman.lyx: added DESTDIR documentation
3675 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
3677 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
3678 instruction for interrupt handlers, use fast returns when returning
3679 from high priority interrupts
3681 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3683 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
3685 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
3686 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
3687 bugs, ported much of Bernhard's code from mcs51
3688 * src/mcs51/gen.c (genSend),
3689 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
3690 than one when calling a reentrant function
3691 * device/lib/_mullong.c: defined an alternate struct layout for big
3694 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3696 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
3699 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3701 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
3702 are sane and complete before asking the port its prefered parameter
3703 passing method (fixes bug #1017633)
3704 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
3707 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3709 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
3710 problem in bitfields >= 8 bits.
3712 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3714 * src/SDCCsymt.c: undid changes that were not meant to be committed
3716 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3718 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
3720 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3722 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
3723 copied and wrong bit got inverted
3725 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3727 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
3728 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
3729 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
3730 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
3731 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
3732 assignments to bitfields at known addresses
3733 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
3734 reads from bitfields at known addresses
3735 * src/hc08/ralloc.c (packRegisters),
3736 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
3737 genhc08Code): optimize pointer get values used as conditionals
3738 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
3741 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3743 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
3744 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
3745 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
3748 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3750 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
3752 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3754 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
3757 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
3759 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
3761 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3763 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
3766 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
3768 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
3770 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3772 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
3773 cases use more compact code.
3775 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
3777 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
3779 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3781 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
3783 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3786 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
3787 parameter of changePointer() from symbol* to sym_link*
3788 * src/SDCCast.c (decorateType): call changePointer() for CAST op
3789 * src/SDCCsymt.c (compareType): void* type is castable to other
3790 pointers, but not necesarily an exact match.
3791 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
3792 is no longer blindly treated as an exact match.
3793 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
3795 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
3797 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
3799 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
3804 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
3806 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
3810 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
3812 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3814 * src/mcs51/gen.c (emitcode): fixed bug #992819
3816 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
3818 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
3819 there's no need to make it worse
3821 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3823 * src/mcs51/ralloc.c (deassignLR),
3824 * src/ds390/ralloc.c (deassignLR),
3825 * src/hc08/ralloc.c (deassignLR),
3826 * src/z80/ralloc.c (deassignLR),
3827 * src/pic/ralloc.c (deassignLR),
3828 * src/pic16/ralloc.c (deassignLR),
3829 * src/avr/ralloc.c (deassignLR),
3830 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
3831 rlivePoint): fixed another part of bug #971834
3833 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3835 * src/z80/main.c: enabled "critical" keyword
3836 * src/z80/mappings.i,
3837 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
3838 functions (fixes bug #979646)
3839 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
3841 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3843 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
3846 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
3848 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
3849 doesn't disable too much optimizations
3851 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3853 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
3855 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
3857 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
3859 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3861 * src/pic/gen.c tidied up tabs
3862 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
3863 * src/pic/main.c tidied up tabs
3864 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
3865 * src/pic/pcoderegs.c tidied up tabs
3866 * src/pic/ralloc.c tidied up tabs
3868 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
3870 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
3871 to S_FIXED for pic16 port and when symbol is not in level 0,
3872 allocate for S_REGISTER storage class and pic16 port, too,
3873 * src/pic16/device.h: prototype for checkSym,
3874 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
3875 * (pic16_assignConfigWordValue): test the value and the mask to
3876 validate that the value is suitable for the configuration word,
3877 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
3878 collect extern declared symbols, don't emit symbol twice, check
3879 first if symbol is in publics set first,
3880 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
3881 * added command line '--fstack' which enables an experimental
3882 feature for stack access, too buggy to be used yet...
3883 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
3884 * (pic16_allocDirReg): when register has storage class S_REGISTER
3885 allocate in pic16_dynAccessRegs,
3886 * device/include/pic16/pic18f????.h: modified configuration word
3887 naming convention, words started as CONFIG0H but should be CONFIG1H
3889 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3891 * device/include/mcs51reg.h: fixed bug 970993
3893 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
3895 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
3896 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
3897 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
3898 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
3899 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
3900 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
3901 error/warning numbers,
3902 added function setWarningDisabled()
3903 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
3904 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
3905 _memcmp.c _memmove.c calloc.c realloc.c free.c
3906 * support/regression/tests/malloc.c: added tests for new functionality
3907 * support/regression/tests/zeropad.c: added tests for truncated initializers
3908 and initialized char arrays starting with '\x0'
3909 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
3911 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
3913 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
3915 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3917 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
3918 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
3919 peephole 177.e. Thanks to anonymous
3921 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
3923 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
3924 function isn't used in the source but referenced as a
3925 variable initializer then declare it as extern in .asm file
3927 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
3929 * .version: increased version number to 2.4.3
3931 Adding version extension according to ChangeLog CVS revision
3932 * src/Makefile.in (target all): added dependency 'version.h'
3933 * (rule version.h): added rule to create version.h from ChangeLog,
3934 * (rule dep): added dependency version.h,
3935 * src/version.awk: AWK script to create version.h
3936 * src/SDCCdwarf2.c (dwWriteModule),
3937 * src/SDCCglue.c (initialComments),
3938 * src/SDCCmain.c (printVersionInfo): modified to write after
3939 version string the version extension number,
3940 * src/SDCCutil.c: included "version.h"
3941 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
3943 * src/SDCCutil.h: added prototype for getBuildNumber
3945 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
3946 includeDirsSet, too,
3947 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
3948 const char [] is found in function prototype...
3950 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
3951 moving to WREG with source is already in WREG,
3952 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
3953 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
3954 * (aopForSym): stack'ed symbols are partially supported, added
3955 if-clause to support symbols in FARSPACE,
3956 * (sameRegs): added test for AOP_ACC to see if registers are same,
3957 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
3958 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
3959 * (pic16_popRegFromString): will not allocate a new register if it
3960 doesn't find one by name, bug may have introduced...
3961 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
3962 * (genIpush): revived to use pic16 port's stack,
3963 * (genAddrOf): added incomplete case for stack'ed operand,
3964 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
3965 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
3966 can handle multibyte operands,
3967 * src/pic16/glue.c (pic16_printIval*): some debug info added,
3968 * (pic16initialComments): added message for MPLAB compatibility
3970 * src/pic16/main.h: prototype for pic16_mplab_comp,
3971 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
3972 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
3973 * (_pic16_linkEdit): NEW, handles link stage, transferred here
3974 because of increased complexity of procedure,
3975 * (_process_pragma): stack pragma changed to format 'stack pos len',
3976 emit symbol '_stack_end' to conform with gplink,
3977 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
3978 to search for register,
3979 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
3981 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
3982 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
3983 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
3984 case for PO_GPR_REGISTER,
3985 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
3986 dies, the new era is ahead !...
3987 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
3988 pic16_dynInternalRegs,
3989 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
3990 * (pic16_allocDirReg): minor optimizations and bug fixes,
3991 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
3993 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
3994 load stack and frame pointer with address of 'stack_end' symbol
3996 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
3998 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
3999 without source code but only variable initializers
4001 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
4003 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
4004 external are not declared as extern to reduce overhead while linking
4006 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
4008 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
4010 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
4012 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
4013 Yee Keat for the patch
4014 * src/SDCCast.c (decorateType): fixed bug #979599
4015 * src/ds390/gen.h: removed local fReturnSizeDS390
4016 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
4017 * src/ds390/gen.c (genAnd, genOr, genXor),
4018 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
4020 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
4022 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
4023 add relFilesSet to $3, manipulate $2 to handle linking of object
4024 files without source files in command line,
4025 * device/include/pic16 (all headers): added ID location macros,
4026 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
4027 entries for ID location bytes,
4028 * (pic16_assignIdByteValue): NEW,
4029 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
4030 added field dumpcalltree to pic16_options_t,
4031 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
4032 is used instead of pic16_Gstack_base_addr, check if (ifx) before
4033 emitting rFalseIfx label after check_carry label,
4034 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
4035 pic16_emitDIRegs), NEW
4036 * (pic16glue): dump .calltree file when option --calltree found,
4037 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
4038 * (_pic16_genAssemblerPreamble): emit ID locations after
4039 configuration registers,
4040 * (pic16_linkCmd): modifications of the link command,
4041 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
4042 * (pic16_pCodeInitRegisters): don't init stack registers,
4043 * (pic16_findPrevInstruction): fixed bug,
4044 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
4045 bug with immediate registers,
4046 * (buildCallTree): traces stack push and pop,
4047 * (pct2): dump also stack usage for each function,
4048 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
4049 * (pic16_allocDirReg): various modifications,
4050 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
4053 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
4055 * src/pic16/pcode.c: removed buggy double colon
4057 2004-07-01 Borut Razem <borut.razem AT siol.net>
4059 * support/scripts/sdcc.nsi: added include/pic16 to setup
4061 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
4063 * device/lib/Makefile.in: fixed bug in target objects-pic16,
4064 * device/lib/pic16/Makefile: prefixed with dash (-) command under
4066 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
4067 specific command line arguments. Also added sample lkr script
4068 for placing a variable at a specific memory bank.
4069 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
4070 at a specific memory bank,
4071 * (pic16_dump_isection): fixed bug which caused string literals to
4072 be omitted when dumping idata section,
4073 * (pic16_groupRegistersInSection): added code to handle registers
4074 in specific memory banks,
4075 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
4076 public, all references are renamed too,
4077 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
4079 * (pic16_storeForReturn): added case to handle when dest is WREG,
4080 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
4081 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
4082 pic16_rel_udata, check to see if that register is marked as being
4083 a member of a specific memory bank,
4084 * (pic16_printIvalCharPtr): added code to add string literals either
4085 to code or the idata sections,
4086 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
4087 also accept the 'udata' pragma,
4088 * src/pic16/main.h: new structure types sectName and sectSym
4089 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
4090 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
4091 * (pic16_findPrevInstruction): fixed, it returned nothing,
4092 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
4093 instruction combinations,
4094 * (pic16_FixRegisterBanking): heavily reorganised,
4095 * (pic16_AnalyzeBanking): if generating banksel directives is
4096 disabled, then don't call FixRegisterBanking at all,
4097 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
4099 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
4101 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4103 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
4104 Phuah Yee Keat <yk.phuah AT nestac.com>
4106 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4108 * src/pic16/glue.c (pic16createInterruptVect): function now emits
4109 correctly the IVT even if it is relocated to some other location
4111 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4113 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
4114 * device/include/pic16/pic18f2220.h: NEW,
4115 * device/lib/pic16/libdev/pic18f2220.c: NEW,
4116 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
4117 * src/pic16/device.c (struct Pics16): added info for 18f2220,
4118 * src/pic16/device.h (struct pic16_options): added ivt_loc and
4119 nodefaultlibs, ivt_loc is the location of the interrupt vector
4120 table, and nodefaultlibs signs that default libraries should not be
4121 linked in link stage,
4122 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
4123 according to --ivt-loc argument,
4124 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
4125 when pragma stack is found,
4127 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4129 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
4130 256 (range check), 257 (do while), 258.a-f (bit banging
4131 f.e. on 3-wire SPI bus)
4133 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4135 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
4136 variables used exclusively within a loop
4138 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
4140 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
4142 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4144 * src/SDCClrange.c (computeClash): fixed bug #971834
4146 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4148 * src/mcs51/gen.c (genCmp): fixed bug #975903
4149 * src/hc08/gen.c (operandsEqu),
4150 * src/ds390/gen.c (operandsEqu),
4151 * src/z80/gen.c (operandsEqu),
4152 * src/pic/gen.c (operandsEqu),
4153 * src/pic16/gen.c (operandsEqu),
4154 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
4155 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
4157 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4159 * src/SDCCcse.c (cseBBlock): fixed bug #966963
4161 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
4163 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
4164 default case in switch statement,
4165 * glue.c (pic16_initPointer): expr is initialised via decoarteType
4166 to eliminate problem with initialisation of pointers, but problem
4168 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
4169 * (emitStaticSegment): removed various lines emitting debug info,
4170 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
4171 added processor registers for utilizing EEPROM,
4172 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
4173 configurable and set 8
4175 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
4177 * .version: increased version number to 2.4.2,
4179 Cumulative patch for pic16 port
4180 * src/pic16/device.c: changed scheme to dump initial values for
4181 variables in idata segment, all print_idata* functions were removed,
4182 now the pic16_printIval* will be called,
4183 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
4184 * _pic16_printPointerType, pic16_printPointerType,
4185 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
4186 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
4187 NEW, similar to the respective functions in SDCCglue.c,
4188 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
4189 way, emitting hex bytes,
4190 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
4192 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4194 * src/avr/ralloc.c (serialRegAssign),
4195 * src/xa51/ralloc.c (serialRegAssign),
4196 * src/pic/ralloc.c (serialRegAssign),
4197 * src/pic16/ralloc.c (serialRegAssign),
4198 * src/hc08/ralloc.c (serialRegAssign),
4199 * src/z80/ralloc.c (serialRegAssign),
4200 * src/ds390/ralloc.c (serialRegAssign),
4201 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
4203 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4205 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
4206 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
4208 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
4210 Cumulative patch for pic16 port:
4211 * src/pic16/device.h (typedef PIC16_device) modified fields for
4212 defining microcontrollers,
4213 * src/pic16/device.c: added new info for all devices in Pics16 array,
4214 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
4215 to be optimised out by the pCode optimiser,
4216 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
4217 specially, bug reported by G.M. Gallant,
4218 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
4219 as force'd so that cannot be optimised out by pCode optimiser,
4220 * src/pic16/pcode.c,
4221 * src/pic16/pcodepeeph.c,
4222 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
4223 they are disabled by default, but can be enabled explicit with
4224 command argument --denable-peeps, for testing,
4225 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
4226 --pomit-ivt in COMPILE_FLAGS
4228 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4230 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
4233 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4235 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
4237 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4239 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
4240 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
4242 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
4244 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
4245 would only assign 0x300001 register.
4247 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
4249 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
4250 in COMPILE_FLAGS. Thanks to G. Gallant for report.
4252 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4254 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
4256 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
4257 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
4258 added peephole 254 (left shift), 255 (jump table)
4260 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
4262 * device/lib/Makefile.in: removed comment line with model-pic16,
4263 * (target port-specific-objects-pic16): the libraries and objects
4264 are copied to the build directory form the device/lib/pic16/bin
4267 Cumulative patch concerning pic16 port:
4268 * library directory has been re-organized,
4269 * added support for PIC18F1220,
4270 * added headers and library sources for chips 18f1220,18f6520,
4271 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
4273 * configuration registers setting has changed, now each supported
4274 device has a complete description of the registers it uses,
4275 * all initialisations are moved to idata sections, these section
4276 can be absolute or relocatable,
4277 * fixed initialisation of codespace variables,
4278 * fixed warning about PCLATU and gpsim,
4279 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
4280 * (genAssign): use table reads when assigning from variables in codespace,
4281 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
4282 char/int variables placed in codespace,
4283 * (pic16_emitConfigRegs): NEW, emits a list with configuration
4284 registers set in .asm file, no need for --pomit-config-words anymore,
4285 * (pic16glue): some 8051 legacy segments are commented out
4286 (to be removed completely),
4287 * added support for alternative assembler and linker with --asm=
4288 and --link= command line arguments,
4289 * peepholes are disabled automatically in the port, no need to
4290 specify on command line,
4291 * port supports natively char/int/long multiplication, but converts
4292 all divisions to support functions,
4293 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
4294 to the file set in variable $2,
4295 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
4296 strings in ASCII format and not in hex,
4297 * ralloc.c (serialRegAssign): added a triplet of conditional calls
4298 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
4299 allocate proper register if iCodes aren't temporary,
4301 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4303 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
4305 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
4307 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
4310 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4312 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
4313 computed address is reused
4314 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
4315 multi-byte bitfields
4317 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4319 * src/z80/gen.c: (genArrayInit): must check for pointers too
4321 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4323 * support/regression/tests/zeropad.c: never meant to commit the
4324 nestedstruct test: removed, added check for GCC version
4326 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
4328 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
4329 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
4330 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
4331 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
4332 bugs 928906 and 954082 half-empty initializers
4334 * src/SDCCsymt.c (getAllocSize): added for above fix
4335 * src/z80/gen.c (genArrayInit): fixed bug 741044
4336 * support/regression/tests/zeropad.c: added tests
4338 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
4340 * src/pic16/device.c (pic16_dump_section): corrected bug which
4341 caused some symbols of the libraries to be misplaced
4343 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
4346 * src/pic16/ralloc.h,
4347 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
4348 to fix conflict with pic port
4350 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
4352 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
4353 externs configuration variables,
4354 * src/pic16/ralloc.h,
4355 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
4356 prototype in header, commented out some debug messages
4358 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
4362 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
4363 for gpasm COFF object generation. Thanks to D. Hawkins for
4366 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4369 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
4370 Brock for spotting this)
4371 * src/ds390/gen.c (genEndFunction),
4372 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
4373 interrupt handler and critical. Disable push/pop optimizations when
4374 peephole optimizations disabled.
4376 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
4378 Updated pic16 library sources and headers.
4379 * device/lib/pic16/pic18f*/ ,
4380 * device/include/pic16/*.h: modified to handle structured SFR
4383 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
4385 * src/port.h (PORT structure): added hook initPaths, now each
4386 port can declare its own default search paths,
4387 which can been seen with the --print-search-dirs option,
4388 see pic16 port for example,
4389 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
4390 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
4391 * (doPrintSearchDirs): NEW, replaces in a central manner the
4392 printing of search dirs which was split in set*Paths functions,
4393 * (main): added call to port->initPaths and doPrintSearchDirs,
4398 * src/izt/tlcs900h.c,
4401 * src/pic16/main.c: modified port structures to reflect addition of
4404 * src/pic16/device.c (regCompare): registers are finally sorted by name,
4405 * (pic16_dump_section): for registers in same address reserve memory once,
4406 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
4408 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
4409 result is greater in size than right or left,
4410 * (pic16_genUMult8X8_8): there are some cases where the result can
4411 be 16 bits size, so handle these,
4412 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
4413 * (pic16_outBitC): modified to emit pcodes,
4414 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
4416 * (genDivOneByte): implemented algorithm to divide 8-bits,
4417 * (genCmp): uncommented goto, but issues still exist,
4418 * (genAnd): fixed a bug with variables >8bits,
4419 * (genPackBits): optimization added that uses BCF/BSF to change a
4421 * (genAssign): fixed bug when assigning floating point literals,
4422 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
4423 __sdcc_gsinit_startup label,
4424 * src/pic16/main.c (_pic16_init): removed search directory
4426 * (_pic16_initPaths): NEW, used to initialise search directories,
4427 * (_hasNativeMulFor): support functions for all except char/int
4428 multiplication, and char division,
4429 * (PIC16_port struct): modified entry for native mul support,
4430 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
4432 * (buildCallTree): call to register_usage is ifdef'ed out,
4434 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4436 * device/include/string.h: applied Stas Sergeev's patch to make this
4437 header file compatible with the preprocessor -Wundef option
4438 * src/SDCCmain.c (main): abort compilation if preprocessor reports
4439 failure (fixes bug #941458)
4441 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4443 * src/SDCCopt.c (killDeadCode): fixed bug #907733
4444 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
4445 that the variable, not the function, should be static
4446 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
4447 to be consistent with non-literal case
4449 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4451 * src/SDCCast.c (isConformingBody): fixed bug #949967
4452 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
4453 convilong): fixed bug #952086
4455 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4457 * src/SDCCmem.c (allocVariables): fixed bug #955321
4459 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4461 * src/hc08/main.c (_hc08_genAssemblerEnd),
4462 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
4463 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
4464 completely eliminated the use of a temporary file
4465 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
4466 when more than one file linked
4467 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
4469 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4471 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
4472 which fixes bug #543481
4473 * support/regression/tests/bug-751703.c: fixed comments left from a
4475 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
4476 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
4477 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
4479 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
4480 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
4481 are now changed to underscores in moduleName
4483 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4485 * as/mcs51/lkmem.c: better fix for bug #954173
4487 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4488 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4490 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
4491 * device/include/c8051f000.h,
4492 * device/include/c8051f120.h,
4493 * device/include/c8051f300.h,
4494 * device/include/c8051f310.h,
4495 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
4498 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4500 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
4501 and mailing lists, doc'ed --no-peep-comments, removed reference
4502 to knoppix (newest version has no LyX/LaTeX), other minor changes
4503 * src/SDCCglue.c (glue): save 2 bytes stack space with
4504 option --main-return. The ljmp could probably be avoided too
4506 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4508 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
4510 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4512 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
4513 * src/SDCCopt.c (isLocalWithoutDef),
4514 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
4515 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
4516 (credit to Maarten Brock for patch #949363, on which this is based)
4517 * support/regression/tests/bug-751703.c: some test cases of extern used
4518 within inner scopes.
4520 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4522 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
4524 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
4526 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
4527 dwWriteLabel): fix to create valid debugger symbols even when
4528 the module name has non-alphanumeric symbols in it
4529 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
4530 when a variable's allocation has been optimized away
4533 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4535 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
4537 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
4539 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
4541 * src/z80/gen.c (z80_emitDebuggerSymbol),
4543 * src/pic/gen.c (pic14_emitDebuggerSymbol),
4545 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
4547 * src/avr/gen.c (avr_emitDebuggerSymbol),
4549 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
4551 * src/SDCCdebug.c (emitDebuggerSymbol),
4553 * src/port.h: added a debugger struct to the port struct. Added a
4554 callback for defining debugger symbols
4556 * src/SDCCast.c (createLabel),
4557 * src/SDCC.y (labeled_statement): mark all compiler generated labels
4560 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
4561 iCode back to the ast for the function
4563 * src/hc08/ralloc.c (hc08_assignRegisters),
4564 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
4565 unneeded fields from the regs struct.
4566 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
4567 pushReg() & pullReg() functions instead of emitcode()
4569 * src/hc08/gen.c (genLabel, genhc08Code),
4570 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
4572 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
4575 * src/hc08/gen.c (genEndFunction, genhc08Code),
4577 * src/mcs51/gen.c (genEndFunction, gen51Code),
4579 * src/ds390/gen.c (genEndFunction, gen390Code),
4581 * src/z80/gen.c (genEndFunction, genZ80Code),
4584 * src/pic/gen.c (genEndFunction, genpic14Code),
4586 * src/pic16/gen.c (genEndFunction, genpic16Code),
4588 * src/avr/gen.c (genEndFunction, genAVRCode),
4590 * src/xa51/gen.c (genEndFunction, genXA51Code),
4592 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
4593 specific code to cdbFile.c and out of the backend code generators
4595 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
4596 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
4597 starting address is now 0
4601 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
4602 assembler directive for DWARF support
4603 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
4607 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
4609 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4611 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
4612 and inappropriate peephole optimization in jump tables
4614 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4617 * src/SDCCglue.c: sdccopt works for the hc08 port now
4619 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
4621 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
4623 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4625 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
4627 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4629 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
4633 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
4634 comments from the peephole optimizer replacement rules
4635 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
4637 * src/SDCCcse.c (updateSpillLocation),
4638 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
4640 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
4641 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
4642 objects far pointers
4644 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4646 * src/SDCCsymt.h: a missing part of my last change
4647 * src/pic/ralloc.c (regTypeNum),
4648 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
4650 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4653 * src/SDCCicode.c (aggrToPtrDclType),
4655 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
4656 ptrPseudoSymConvert),
4657 * src/pic/ralloc.c (regTypeNum),
4658 * src/pic16/ralloc.c (regTypeNum),
4659 * src/hc08/ralloc.c (regTypeNum),
4660 * src/ds390/ralloc.c (regTypeNum),
4661 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
4662 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
4664 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4666 * link/z80/lkmain.c (afile),
4667 * as/hc08/lkmain.c (afile),
4668 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
4669 prevent a pointer problem when a filename has no directory and
4670 no extension specified.
4672 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4674 * link/z80/lkmain.c (afile): allow periods in directory names
4675 * link/z80/lkmain.c (afile),
4676 * as/mcs51/lkmain.c (afile),
4677 * as/hc08/lkmain.c (afile): allow linker script file to have an
4678 extension other than ".lnk"
4679 * link/z80/lklex.c (getfid),
4680 * link/z80/lkmain.c (parse),
4681 * as/mcs51/lklex.c (getfid),
4682 * as/mcs51/lkmain.c (parse),
4683 * as/hc08/lklex.c (getfid),
4684 * as/hc08/lkmain.c (parse): Support comments in the linker script
4685 file on lines by themselves and after filenames
4687 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4689 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
4691 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4693 * src/z80/peeph-z80.def: removed some peephole rules that don't
4694 work with multibyte arithmetic (fixed bug #937126)
4695 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
4696 to registers and not global variables
4697 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
4698 geniCodePreInc, geniCodePostDec, geniCodePreDec,
4699 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
4700 checking for assignments not internally generated (fixed bug #931895)
4701 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
4702 structure member (fixed bug #930072)
4704 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4706 * src/SDCCmain.c (linkEdit),
4707 * src/hc08/main.c (_hc08_parseOptions),
4708 * as/hc08/Makefile.in,
4712 * as/hc08/lkrloc.c (relr, rele),
4713 * as/hc08/lkarea.c (lnkarea)
4714 * as/hc08/lkmain.c (afile, parse),
4715 * as/hc08/lkelf.c: support for ELF output
4716 * as/hc08/lks19.c (s19),
4717 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
4719 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4721 * as/mcs51/lkihx.c: Fixed bug #899105.
4723 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4725 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
4726 .dsp files from Unix to DOS.
4728 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4730 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
4731 function pointers; we have been compliant for several months now.
4732 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
4733 change that was accidently commented out
4734 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
4735 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
4738 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4740 * src/hc08/gen.c: output of all of the internal debugging information
4741 is now controlled by the D() macro; it is disabled by default
4743 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4745 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
4746 harder to keep the same registers during a CAST iCode
4747 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
4748 long via int can be done in a single cast, if the signedness is
4750 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
4751 putchar() in tinibios.c in ds390's library
4753 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
4755 * src/SDCCast.c (decorateType): fixed bug #898889,
4756 cast result of a literal complement too
4757 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
4758 fixed check for bitfields
4760 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
4762 * src/SDCCicode.c (geniCodeLogic): made it static,
4763 (geniCodeLogicAndOr): added in order to fix bug #905492,
4764 (ast2iCode): fixed bug #905492
4765 * support/regression/tests/bug-905492.c: added
4766 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
4767 (processParms): fixed bug #927659: don't copy parms, this will clear
4769 * support/regression/tests/bug-927659.c: added
4771 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
4773 * src/SDCCast.c (addCast): don't cast float to char
4774 * device/lib/libsdcc.lib: added _memmove
4776 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
4778 * device/lib/large/Makefile: fixed parallel execution by
4779 replacing `make` by `$(MAKE)`
4781 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4783 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
4784 offsets (fixes bug #923936)
4786 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
4788 * device/lib/small/Makefile: fixed parallel execution by
4789 replacing `make` by `$(MAKE)`
4791 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4793 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
4795 2004-03-23 Scott Dattalo <scott AT dattalo.com>
4797 * src/pic/gen.c (genCpl): multi-byte complements were not working.
4798 * src/regression/Makefile: Regression test was not running.
4800 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4802 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
4803 complement if possible
4804 * src/SDCCval.c (valComplement),
4805 * src/SDCCicode.c (operandOperation): fixed complement of literal
4806 * support/regression/tests/onebyte.c (testComplement): added
4808 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
4810 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
4811 return an optimized tree; actually replace actParm with the new tree
4812 * src/SDCCast.h: added some parantheses to remove side effects
4813 * support/regression/tests/bug-920866.c
4815 2004-03-21 Scott Dattalo <scott AT dattalo.com>
4816 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
4817 Bit operands were not being handled properly in the pic14 port.
4818 (now src/regression/add.c passes again).
4820 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4822 * src/SDCC.y (labeled_statement): case and default no longer require
4823 a following statement (RFE #893037)
4825 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4827 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
4828 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
4829 disabled (fixes bug #916294)
4830 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
4831 "mov a,acc"; patch provided by Lenny Story
4832 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
4834 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4836 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
4838 * src/ds390/gen.c (genFunction, genEndFunction),
4839 * src/ds390/ralloc.c (ds390_assignRegisters),
4840 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
4841 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
4842 pushed if there are parameters passed on the stack. Also, a cleaner
4843 way to decide if r0/r1 should be pushed/popped. (Together they fix
4846 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4849 * device/lib/mcs51/crtpagesfr.asm,
4850 * device/lib/mcs51/crtxinit.asm,
4851 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
4852 to avoid confusion with Si Lab's SFRPAGE register.
4854 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4856 * src/SDCCglue.c (emitMaps): allow public sfr variables
4857 * src/SDCCglue.c (initialComments): include compiler build date
4858 with compiler version and put the timestamp of the generated
4859 assembly file on a serperate line to be less confusing.
4860 * src/port.h: added genInitStartup hook
4867 * src/z80/main.c: genInitStartup initialize as NULL (default to
4868 historical behaviour)
4869 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
4870 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
4871 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
4872 library instead of hard coding it into the compiler.
4873 * support/regression/ports/mcs51-stack-auto/spec.mk,
4874 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
4875 * device/lib/mcs51/Makefile,
4876 * device/lib/small/Makefile,
4877 * device/lib/large/Makefile,
4878 * device/lib/mcs51/crtpagesfr.asm,
4879 * device/lib/mcs51/crtstart.asm,
4880 * device/lib/mcs51/crtxclear.asm,
4881 * device/lib/mcs51/crtxinit.asm,
4882 * device/lib/mcs51/crtclear.asm,
4883 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
4884 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
4885 and into user configurable files.
4886 * device/lib/clean.mk: clean mcs51 directory too
4887 * support/regression/tests/longlit.c: added static to T1 declaration
4888 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
4889 accesses in the initialization code
4891 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4893 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
4894 OSCTRIMVAL as noted in bug #916008
4896 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4898 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
4899 in loops with multiple exits (reported as incorrect registers
4900 used by Martin Helmling in Sdcc-user list)
4902 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4904 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
4905 made ds390 register extensions look less like error messages
4907 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4909 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
4910 reported by Adam Wozniak in Sdcc-user list
4912 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
4914 * src/SDCCast.c (decorateType): fixed with bug and promotion in
4915 arithmetic optimizations, added debug output
4917 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
4919 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
4920 * sdcc.spec: updated and split sdcc into 3 rpms
4921 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
4922 needed for literals of LEFT_OP and '+'
4923 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
4924 introduced RESULT_TYPE_NOPROM
4925 (geniCodeMultiply): fixed logic for decision if mul is optimized to
4927 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
4928 limited promotion to int only for '*'
4929 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
4931 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
4933 * src/pic16/gen.c (genSkip),
4934 (genc16bit2lit), (gencjneshort): commented out
4935 (is_LitOp): new helper function, checks operand type
4936 (genCmpEq): rewritten
4938 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
4940 * support/regression/tests/bug-908454.c: added
4942 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
4944 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
4945 * src/SDCCicode.c (usualBinaryConversions): op needs int type
4946 (geniCodeCast): cosmetic, don't preserve bit storage class
4947 (geniCodeLeftShift): added promotion
4948 (geniCodeLogic): fixed regression
4949 * src/SDCCsymt.c (computeTypeOr): accept bits too
4950 (compareType): 2nd part of fix for bug #908454, needed for bitfields
4952 2004-03-07 Borut Razem <borut.razem AT siol.net>
4954 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
4956 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
4958 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
4959 version of pic16_genPackRegisters which does not check if ic is a
4961 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
4962 function cause string1.c regression test fails
4964 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
4966 * sim/ucsim/configure.in,
4967 * sim/ucsim/configure,
4968 * sim/ucsim/doc/Makefile.in: use docdir
4969 * src/SDCC.y: fixed sbit atrributes
4970 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
4971 * src/SDCCast.c (decorateType): |^& need special promotion handling
4973 * src/SDCCsymt.h: moved definition of RESULT_TYPE
4974 * src/SDCCsymt.h (computeType),
4975 * src/SDCCicode.c: computeType() needs op
4976 * src/SDCCsymt.c (checkTypeSanity),
4977 * doc/sddman.lyx: "plain" bitfields are unsigned
4978 * src/SDCCsymt.c (computeTypeOr): added
4979 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
4981 * src/SDCCval.c (val*): computeType() needs op
4982 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
4983 * support/regression/tests/onebyte.c: added tests for |^&
4985 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
4987 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
4988 for writing icode into asm output.
4990 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
4992 * src/pic16/device.c: added some debug lines enabled
4993 with macro DEBUG_CHECK,
4994 * src/pic16/genarith.c: more debug in genPlus,
4995 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
4996 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
4997 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
4998 * (aopForSym): onStack symbols are re-placed in data memspace,
4999 and onStack flag is cleared,
5000 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
5001 copy temporary pcodeop,
5002 * (genPcall): added warning for not updating PCLATU,
5003 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
5004 always true for pic16 port,
5005 * (genMultOneWord): NEW, supports integer multiplication,
5006 * (genMult): modified to call genMultOneWord,
5007 * (ifxForOp): added warning when return NULL,
5008 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
5009 flag is set before call to operandFromSymbol for implicit
5011 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
5012 options.intlong_rent are set by default,
5013 * (_hasNativeMulFor): modified to allow port generation of integer
5015 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
5016 set regtype to REG_SFR for all registers, restricting seting the
5017 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
5019 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5021 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
5022 more than 500 times in the regression tests
5024 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5026 * support/Util/SDCCerr.h,
5027 * support/Util/SDCCerr.c,
5028 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5030 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
5031 for symbol conflicts.
5032 * support/valdiags/tests/enum.c,
5033 * support/valdiags/tests/tentdecl.c,
5034 * support/valdiags/tests/struct.c: expect possible error messages
5035 referring to original symbol definitions.
5036 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
5038 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
5040 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
5042 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
5044 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
5046 * src/pic16/ralloc.c (newReg): fixed bug #908929
5048 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5050 * src/ds390/gen.c: added missing #include "main.h"
5052 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
5054 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
5055 checking if symbol is already in set,
5056 * src/pic16/device.h: prototype for checkAddSym,
5057 * src/pic16/gen.c: (_G): added entry interruptvector,
5058 * (assignResultValue): removed some commented out lines,
5059 * (genFunction): check for ISR via sym->type, absolute section for
5060 interrupt code is created via a new pBlock, the goto instruction is
5061 placed now correctly at the interrupt vector position, changed all
5062 references from ivec to _G.interruptvector,
5063 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
5064 is the interrupt is a high priority one, same for return from ISR,
5065 * src/pic16/glue.c: changed all calls of addSetHead for publics and
5066 externs to calls of checkAddSym,
5067 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
5068 pic16_pcode_verbose flag is set,
5069 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
5070 * src/pic16/pcoderegs.c: message about how many registers are saved
5071 will only be emitted if pic16_pcode_verbose flag is set,
5073 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5075 * src/ds390/ralloc.h,
5076 * src/ds390/ralloc.c (ds390_regWithIdx),
5077 * src/ds390/gen.c (emitcode),
5079 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
5080 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5081 ds390operandCompare, getRegsRead, getRegsWritten,
5082 initializeAsmLineNode): customized instruction size calculation for
5083 ds390, started basis for some register optimizations
5084 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
5085 corresponding assembly output
5086 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
5087 missing push/pop of r0/r1. Optimized push/pops
5089 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5091 * src/mcs51/main.c (instructionSize): fixed ACALL size
5092 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
5094 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
5096 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
5097 the sorting of rlist with NULL elements
5098 * (print_idataType, print_idata): NEW to create idata sections
5099 * src/pic16/device.h: idataSymSet new variable
5100 * src/pic16/gen.c (genFunction): fixed some bugs in string
5101 comparing, improved the absolute section creation for ISRs,
5102 added FSR0L/FSR0H in registers that are saved in an ISR,
5103 * (genInline): fixed the processing of inline snippets,
5104 now they undergo no process by the peephole optimizer
5105 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
5106 are placed in idataSymSet,
5107 * (pic16emitStaticSeg): extern symbols are added in externs,
5108 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
5109 switching when aboslute variables are placed in access bank memory
5110 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
5111 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
5112 commented out with #if,
5113 * (pic16_packRegisters): reintroduce the check for CAST because some
5114 symbols are not correctly handled,
5115 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
5116 pCodeInstruction instead of pCode,
5117 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
5118 pCodeAsmDir definition,
5119 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
5120 directive, then the argument directive is emitted without the leading
5121 tab, hack for inline labels which must be in the first column,
5122 * (compareLabel,pic16_findNextInstruction),
5123 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
5124 * (insertBankSwitch): modified for the new pCodeAsmDir,
5126 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5127 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
5129 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
5131 * (pushSide): commented out with #if,
5132 * (assignResultValue): fixed some typos in saving
5134 * (genPcall): FIXED and sync'ed with genCall,
5135 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
5136 * (genNearPointerGet): fixed to handle some more cases,
5137 implementation scheme via table reads,
5138 * (genConstPointerGet): modified to access code memory correct,
5139 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
5140 and improved to handle some cases
5141 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
5142 instead of "RETLW" for init data
5143 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
5144 not IN_DIRSPACE, work around to reduce bank switching when aboslute
5145 variables are placed in access bank memory (<0x80 and >=0xf80),
5146 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
5147 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
5148 TBLWT_POSTDEC,TBLWT_PREINC
5149 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
5150 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
5152 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
5153 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
5154 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
5155 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
5157 2004-02-29 Borut Razem <borut.razem AT siol.net>
5159 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
5160 support/Util/findme.h, support/Util/system.h: enhance binary relative
5161 search for lib and include by using findProgramPath()
5163 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5166 * src/SDCCpeeph.c (pcDistance),
5168 * src/mcs51/ralloc.h,
5169 * src/mcs51/ralloc.c (mcs51_regWithIdx),
5171 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
5172 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5173 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
5174 size calculation port specific, started basis for some register
5176 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
5177 missing push/pop of r0/r1. Optimized push/pops
5178 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
5179 * device/lib/_modsint.c (_modsint),
5180 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
5181 and stack version so regression tests pass
5183 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
5185 * src/Makefile.in (dep): include SLIBOBJS in dependency check
5186 * src/SDCCast.c (decorateType): catch another small optimization
5188 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
5189 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
5190 modified to finally use computeType() all over SDCC,
5191 see Feature Request #877103
5192 * src/SDCCval.h: cosmetic
5193 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
5194 valCompare(); regression tested in muldiv.c
5195 * support/regression/tests/muldiv.c (testMod): mod sign follows
5198 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
5200 * src/SDCCast.c (decorateType): fixed bug #902362
5201 * doc/INSTALL.txt: fixed install instructions for win32
5203 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
5205 * device/include/Makefile.in (install): fixed by replacing spaces
5208 * doc/INSTALL.txt: updated for release
5209 * doc/sdccman.lyx: added warning for --xstack being buggy
5211 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
5213 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
5214 to eliminate build warnings.
5215 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
5217 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
5218 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5220 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
5221 removed -penable-stack, added comment for stack pragma, added
5222 warning for not initializing the stack/frame registers, removed
5223 comment at interrupts section
5225 Stack is made permanent, there is no ability to disable stack usage.
5226 * src/pic16/device.h,
5227 * src/pic16/device.c: removed all references to USE_STACK macro,
5228 * src/pic16/device.c (pic16_dump_section): when no elements in
5229 rlist, free rlist before return,
5230 * (pic16_dump_int_registers): NEW, internal registers are a new set
5231 of general purpose registers reused by each function,
5232 * (checkAddReg): returns 1 if registers is added to set,
5233 * (pic16_groupRegistersInSection): when a registers is of type
5234 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
5235 * src/pic16/device.h: memRange and Assigned Memory are deleted,
5236 SRCASECMP macro is moved here from device.c
5237 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
5238 PO_PCLATU, PO_PRODL, PO_PRODH,
5239 * (pic16_pCodeOpType, genMinus,
5240 changed compares to "a" register, with AOP_ACC,
5241 * (pic16_genPlus): fixed some bugs and indented properly,
5242 * (pic16_addSign): changed size to size+offset in the MOVWF
5244 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
5245 multiply 8-bit operand by literal, result is 8-bit,
5246 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
5247 multiply 2 8-bit operand, result is 8-bit,
5248 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
5250 * src/pic16/gen.c: changed accUse to contain WREG only,
5251 * (pic16_emitcomment): renamed to pic16_emitpcomment,
5252 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
5253 true, do not use immediate addressing any more unless sym is a
5254 pointer in codespace,
5255 * (aopForRemat): do not use immediate addressing when symbol not in
5256 codespace and when symbol's address is requested,
5257 * (aopOp): for-loop in if(sym->accUse) is modified for the new
5259 * (aopGet): added case for AOP_ACC and don't return "accumulator
5260 bug" but WREG instead,
5261 * (popGetTempReg): pushes contents of temporary register in stack,
5262 * (popReleaseTempReg): pops contents of temporary register from
5263 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
5264 * (pic16_popGet): separated case AOP_ACC to return register WREG
5265 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
5266 or PO_IMMEDIATE and initializes their instance/offset appropriately,
5267 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
5268 the use of immediate pointers to certain cases only.
5270 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
5271 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
5272 * (assignResultValue, genCall, genRet): modified to use the new
5273 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
5274 genPcall is still broken,
5275 * (genFunction): added code to create 'A' type pBlocks when
5276 interrupt functions are generated, code not extensively tested yet,
5277 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
5278 * (genEndFunction): modified so ISRs pop stored registers from stack,
5279 * (genMultOneByte): cleanup,
5280 * (AccRsh): added flag andmask, to and result with appropriate mask,
5281 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
5282 * (genDataPointerGet): fixed and reenabled its use,
5283 * (genNearDataPointerGet): bugs fixed,
5284 * (genDataPointerSet): bugs fixed,
5285 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
5286 pic16_DumpSymbol, pic16_DumpOp,
5287 * src/pic16/genutils.h: function prototypes for the above functions,
5288 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
5290 * (pic16emitRegularMap): many many many improvements, but needs a
5292 * src/pic16/main.c: enable_stack in pic16_options is removed,
5293 * (_pic16_parseOptions): removed command line options -penable-stack,
5294 * (_process_pragma): emit stack symbol only when stack pragma is
5296 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
5297 redirected to FSR0L/FSR0H pair,
5298 * (pic16_get_op, pic16_get_op2): modifications and improvements,
5299 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5300 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
5302 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
5303 * (dumpPicOptype): NEW,
5304 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
5305 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
5306 with movff instruction,
5307 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
5308 added pic16_int_regs, some packRegsFor* functions are commented out,
5309 because produce errors,
5310 * src/pic16/NOTES: minor modifications
5312 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5314 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
5315 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
5317 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
5318 * as/mcs51/lkaomf51.c: fixed bug #895763
5320 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
5322 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
5324 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5326 * doc/sdccman.lyx: added details about the HC08 storage classes and
5327 interrupts, fixed the register usage info for z80 & gbz80
5329 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
5331 * doc/sdccman.lyx: added more pic16 port documentation
5332 * device/include/pic16/: added header pic18fregs.h
5334 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
5336 * doc/sdccman.lyx: added Vangelis' contribution
5338 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5340 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
5341 extend to the next CALL or PCALL, not just to the next CALL.
5343 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
5345 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
5347 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5349 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
5350 bug #895752 and a better fix for bug #716790
5352 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5354 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
5356 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5358 * doc/sdccman.lyx: minor changes, minor changed
5360 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
5362 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
5363 which can't handle SDCC_NEWONEBYTEOPS,
5364 (geniCodeMultiply): removed conversion from mult to shift for pic14
5367 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5370 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
5371 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
5372 thus fixing bug #895406
5374 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
5376 * device/lib/_modsint.c,
5377 * device/lib/_modslong.c: sign follows divisor only
5378 * src/hc08/gen.c (genMultOneByte): if result size is 1,
5379 signs or signedness can be ignored
5380 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
5381 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
5382 added optimization for IFX,
5383 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
5385 reenabled optimization for IFX, which was removed on 2004-01-11
5386 * src/SDCCast.h: added return type IFX
5387 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
5388 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
5389 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
5390 SDCC_OLDONEBYTEOPS selects the old behaviour
5391 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
5392 changed again and commented promotion rule
5393 * src/SDCCval.c (valDiv): promotion no longer necessary
5394 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
5395 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
5397 * support/regression/tests/onebyte.c: added
5399 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
5401 * gen.c (genInline): reverted to old code for assemnling inline
5402 code because of bug reported James Chadd
5404 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
5406 * ralloc.h: missing declarations from previous patch,
5407 seems that patch for ralloc.h was never applied, fixed
5409 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5410 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5414 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
5415 indirect addressing. Marked FSR0 as deprecated
5416 * gen.c (pointerCode): commented out, not needed now
5417 (pic16_popGet2p): new MOVFF helper function
5419 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
5420 (shiftRLong): removed duplicate debugging info
5422 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5424 * src/ds390/gen.c (genNearPointerGet),
5425 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
5426 optimization with bits, but not bitfields.
5427 * src/ds390/ralloc.c (packRegisters),
5428 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
5430 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
5432 * src/SDCCcse.c (algebraicOpts): copy operands before modification
5434 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5437 * src/SDCCicode.c (operandFromSymbol),
5438 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
5439 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
5440 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
5441 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
5442 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
5443 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
5445 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
5446 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
5447 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
5448 * src/SDCCsymt.c (newSymbol),
5449 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5452 * src/SDCCval.c (newiList): fixed bug #885705
5454 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5456 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
5457 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
5459 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5461 * device/include/c8051f120.h,
5462 * device/include/c8051f300.h,
5463 * device/include/c8051f310.h: added/updated header files for Silicon
5464 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5465 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
5466 in new section Submitting patches
5468 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5470 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
5471 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5472 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5474 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
5475 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5476 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5478 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
5479 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5480 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5482 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
5483 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5484 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5485 genGenPointerSet): fixed bug #892400
5486 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
5487 to eliminate build warnings.
5488 * src/SDCCast.c (processParms),
5489 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
5491 * support/valdiag/valdiag.py: added GCC to the list of defines active
5492 when compiling with gcc
5494 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5496 * support/Util/SDCCerr.h,
5497 * support/Util/SDCCerr.c,
5498 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
5499 with an incomplete type (fixed bug #883734)
5500 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
5502 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5504 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
5506 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5508 * src/SDCCast.c (decorateType),
5509 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
5510 function pointer implementation
5511 * support/regression/tests/funptrs.c: added tests to verify both forms
5512 of function pointers work correctly. Added tests to verify parameters
5513 are passed in the correct order.
5515 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
5517 * device.c (regCompare): registers are sorted by ascending
5518 address and increasing size,
5519 * main.c (_pic16_finaliseOptions): removed the declaration
5520 of compiler macro MCU. Now a macro of the format pic18fxxxx
5521 will be defined from the command line
5523 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5524 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5526 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
5527 PCOP_RLCF was overwritten!
5528 * gen.c (genSkip): commented out calls to pic16_emitcode,
5529 * (genCmpEQ): fixed "long" compares, only high word did get compared,
5531 * (genRRC): added debugging info,
5532 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
5533 overwritten while shifting,
5534 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
5535 overwritten while shifting,
5538 * (shiftLLeftOrResult),
5539 * (shiftRLeftOrResult),
5541 * (shiftLLong): Implemented with pic16_emitpcode
5542 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
5543 * (genLeftShift): Fixed bug, operand for shift by variable always
5544 was "and"ed with 0x0f,
5545 * (genLeftShiftLiteral),
5547 * (genRightShiftLiteral): added debugging info,
5548 * (genrshFour): added comment,
5549 * (genRightShift): determined signedness from operand "left"
5552 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5554 * src/SDCCicode.c (geniCodeParms),
5555 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
5556 function pointers, fixed function pointer bugs #861242 and #861896
5558 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5560 * device/include/c8051f000.h,
5561 * device/include/c8051f120.h,
5562 * device/include/c8051f300.h: added header files for Silicon
5563 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5565 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
5567 * src/SDCCast.c (processParams): added new type flow and restructured
5568 (gatherAutoInit): added new type flow
5569 (addCast): cosmetic changes
5570 (getLeftResultType): added new type flow for array indices, patch
5571 provided by Stas, see FR #877103
5572 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
5573 array index patch by Stas
5574 * src/SDCCast.h: added prototype getResultTypeFromType()
5576 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
5577 * src/pic/glue.c (pic14emitStaticSeg),
5578 * src/pic16/glue.c (pic16emitStaticSeg),
5579 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
5580 for initialization of symbols
5581 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
5582 * support/Util/SDCCerr.h:
5583 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
5584 * .version: bumped version number to 2.3.8
5585 * device/include/Makefile.in (install),
5586 * doc/Makefile (install): changed to 'rm `find ...`' construct to
5589 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
5591 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
5592 Slade Rich fixed an optimization bug
5593 * src/pic/pcodepeep.c,
5594 * src/pic/pcoderegs.c
5595 * doc/Makefile (install): added test for directory
5597 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5599 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
5600 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
5601 * src/pic/ralloc.c (getRegPtr, getRegGpr),
5602 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
5603 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
5604 * as/mcs51/asexpr.c (term),
5605 * as/hc08/asexpr.c (term): fixed bug #887146
5607 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5609 * src/z80/gen.c (genMult): handle single byte result product
5610 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
5611 DUMMY_READ_VOLATILE (fixed bug #886367)
5613 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5615 * support/regression/tests/libmullong.c: fixed logic, on little endian
5616 hosts we ended without a mullong_wrapper()
5618 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5620 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
5621 virus/worm forged address usage.
5623 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5625 Fixed promotion, it should be done on AST level:
5626 * src/SDCCast.c (addCast): added promotion to int
5627 (decorateType): updated call to upCast()
5628 * src/SDCCicode.c (geniCodeLeftShift): removed call to
5629 usualUnaryConversions()
5631 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
5633 * support/regression/tests/literalop.c (mulWrapper): Added a
5634 wrapper to remove integer overflow warnings.
5636 * support/regression/tests/float_trans.c: Made work on host.
5638 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
5641 * support/regression/generate-cases.py (main): Changed from inline
5644 * doc/Makefile (install): Changed to depth first to get rid of
5645 missing directory install warning.
5647 * as/Makefile (install-doc): Made work on Mac.
5649 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
5651 * src/SDCCast.c: added an additional type flow in decorateType() of
5652 opposite direction, see feature request #860006; it's enabled at runtime
5653 by setting the environment variable SDCC_NEWTYPEFLOW
5654 * src/SDCCast.h: changed prototype of decorateType()
5655 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
5656 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
5657 'char' to 'int' can be omitted, if both operands are 'unsigned char';
5658 see feature request #877103
5659 * src/SDCCval.c: updated call of decorateType()
5660 (valBitwise): fixed bug #882876
5661 (valMinus): added promotion
5662 (valLogicAndOr): result is unsigned
5663 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
5664 * src/SDCCsymt.c (computeType),
5665 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
5666 must not cause an unsigned operation
5667 * src/pic/glue (pic14emitRegularMap),
5668 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
5670 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
5672 * src/pic/pcode.c (PCodeID): commented out left over debug code
5674 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5676 * support/valdiag/tests/overflow.c: added shift tests
5684 * src/pic/pcodepeep.c,
5685 * src/pic/pcoderegs.c,
5687 * src/pic/ralloc.h: applied patch from Slade Rich;
5688 added support for multiple code pages and multiple RAM banks on the
5689 PIC 14 port. The ASM files now no longer simply assume all the
5690 code / RAM are in the same page / bank. This means the linker can
5691 safely allocate code/RAM of separate ASM files to different pages/banks.
5692 * doc/sdccman.lyx: added Slade's tips
5693 * src/mcs51/peeph.def: fixed bug #880768
5695 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5697 * src/hc08/ralloc.c (rematStr): fixed bug #879282
5698 * src/SDCCast.c (decorateType): fixed bug #880197
5700 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
5702 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
5705 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
5706 strtof is not part of C89 and isn't included with Mac OS X.
5708 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5710 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
5711 shiftL2Left2Result): fixed bug #879326
5712 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
5713 (genMultOneByte): fixed bug in signed vs unsigned multiplication
5714 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
5715 address fetch for clr instruction
5716 * device/lib/hc08/_mulint.c: created optimized assembly version
5717 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
5719 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
5721 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
5722 proposed in FR #877103
5724 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5726 * src/SDCCval.c (cheapestVal): added missing checks
5727 * src/SDCCicode.c (usualBinaryConversions): fixed condition
5728 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
5730 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
5732 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
5735 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
5737 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
5738 loaded with the linker search paths (-L arguments) and the libraries
5739 to be linked with the current source (-l arguments). Changes
5740 currently will affect only the pic16 port.
5741 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
5742 include path the port specific paths and port specific libraries,
5743 * gplink command now contains the $3 argument,
5744 * src/pic16/device.h,
5745 * src/pic16/device.c,: structure PIC_device is made public and
5746 renamed to PIC16_device, the same for variable Pics which is renamed
5747 to Pics16. Updated all references to them.
5748 * src/pic16/glue.c (pic16glue): corrected bug with code
5749 initialization which bypassed the variable initializations block.
5751 * device/lib/pic16/Makefile.rules: removed --penable-stack from
5752 COMPILE_FLAGS and added the --nostdinc option
5754 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5756 * device/include/mc68hc908jb8.h: Register defs for another member
5757 of the hc08 family. Contributed by Bjorn Bringert - thanks!
5759 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
5761 Documenting changes from previous commits.
5762 * configure.in (version 1.56),
5763 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
5764 when generating output files to configure the pic16 library,
5765 but now I've commented it out, since gputils aren't installed in the
5766 SF compile farm, so library won't compile
5768 * device/lib/Makefile.in (version 1.56): initially I've added in
5769 target 'all' the prerequestive 'model-pic16' so it compiled the
5770 pic16 library, but now I've commented it out for the same reasons
5772 * added targets 'model-pic16' and 'objects-pic16' to compile the
5774 * added target 'port-specific-objects-pic16' to handle the
5775 generated libraries and copy them into the build/ directory
5776 * added target 'clean-intermediate-pic16' to clean intermediate
5777 files into pic16 directory
5778 * in target 'installdirs' added line to create directory pic16 in
5779 the installation path
5781 * device/include/Makefile.in (version 1.11): in target 'install'
5782 added lines to copy all header files to installation path,
5783 * in target 'installdirs' added line create directory for pic16
5784 headers in the installation path
5786 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
5788 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
5791 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
5794 * device/lib/configure.in,
5795 * device/lib/configure: fixed for autoconf 2.57
5797 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5799 * src/z80/main.c (_parseOptions): fixed the portmode= command line
5800 option so that it actually works. Made it specific to the z80, since
5801 the gbz80 doesn't have these kinds of I/O ports.
5803 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5805 * device/include/z180.h,
5806 * device/lib/_memcpy.c,
5807 * device/lib/_memmove.c,
5808 * device/lib/_mulint.c,
5809 * device/lib/ser_ir.c,
5810 * device/lib/ser_ir_cts_rts.c,
5811 * device/lib/_strcmp.c,
5812 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
5813 * src/z80/main.c (_process_pragma): add support for pragmas bank and
5814 portmode; added deprecation warning for bank= and protmode= forms.
5815 Also, guard against buffer overflow.
5816 * src/z80/gen.c (aopGet): generate better code for sfr banked read
5818 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5820 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
5821 changed interrupt vector table generation to only emit declared vectors.
5822 * device/include/Makefile.in: added missing backslash
5823 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
5825 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
5827 Mainly changes to support compilation of the device libraries
5828 * src/pic16/device.c: stack is allocated via symbol and not
5829 via literal number. The symbol is placed in the corresponding
5830 position of the data ram
5831 * (pic16_dump_section): relocatable and absolute uninitialized
5832 data are now emitted in sorted order to reduce section naming,
5833 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
5834 weren't marked as being in the access bank,
5836 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
5838 Added portion of GNU PIC Library under the directory
5839 device/include/pic16 and device/lib/pic16. These files
5840 contain the declarations of SFRs for the PIC18Fxx2 devices.
5841 The directory is initialized via configure from toplevel.
5843 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
5845 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
5846 the spilllocations to be compared correctly
5848 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5850 * src/SDCCast.c (decorateType): fixed bug introduced today
5852 2004-01-12 Borut Razem <borut.razem AT siol.net>
5854 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
5855 doc/sdccman.lyx: upper case pragmas are deprecated
5857 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5859 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
5860 in simpler and even better code
5862 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
5864 * src/SDCCicode.c (operandOperation): fixed bug #874819
5865 * src/SDCCast.c (decorateType): fixed
5866 char foo (unsigned long ul) { return ul > 0; }
5868 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5870 * doc/sdccman.lyx: Moved and added some sections, small changes
5871 all over. Telling LaTeX to be less strict with word spacing
5872 to better keep the right margin. Changed some notes about
5873 maintainance of the ports in section 3.2.1 - is it OK like this?
5875 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
5877 SDCC source changes:
5878 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
5879 convilong): modified to inform the pic16 port that builtin functions
5882 PIC16 PORT specific changes:
5883 * src/pic16/device.c pic16_dump_equates() added,
5884 processor registers declared internally by the port are emitted in
5885 the translation as equates,
5886 * src/pic16/gen.c: inline code is passed unprocessed to the
5888 * (pic16_popGetLit2): fnuction modified to take second operand as
5889 pCodeOp pointer and not as literal,
5890 * (popRegFromIdx): prefixed with pic16_,
5891 * (pic16_popCombine2): modified to receive already allocated pCode
5893 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
5894 * (genFunction): initializes local stack frame and pushes on stack
5895 all the registers used by this function,
5896 * (genEndFunction): restores all registers from stack and restores
5898 * src/pic16/glue.c (pic16emitRegularMap): various changes and
5900 * (pic16glue): changed the program startup sequence,
5901 * added new dbName code 'A' for functions placed in absolute section
5902 * src/pic16/main.c: added function attribute _naked,
5903 * added pragma 'code' to place a fnuction at an absolute address,
5904 * added command line arguments --debug-ralloc and --pcode-verbose,
5905 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
5906 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
5907 * (pic16_newpCodeOpLit2): modified to take the second operand as
5909 * (pic16_printpBlock): modified to emit each function in a separate
5911 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
5912 UPPER for immediate operands,
5913 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
5915 * src/pic16/peeph.def: all peepholes with movff are commented out,
5916 because there is a problem in the pcode peep optimizer,
5917 * src/pic16/ralloc.c: the register allocator can now reuse local
5918 function symbols for another function. This saves register usage.
5919 * src/pic16/ralloc.h: added flag isLocal in structure regs,
5921 Added file src/pic16/NOTES with information about program writing on
5922 the current port version.
5924 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5926 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
5927 and peephole 252 (array access)
5929 2004-01-09 Borut Razem <borut.razem AT siol.net>
5931 * src/SDCCmain.c : fixed #872250: -l command line defined library
5932 files are scanned before standard library files
5934 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5936 * src/SDCCast.c (decorateType): fixed bug #874046
5938 2004-01-09 Borut Razem <borut.razem AT siol.net>
5940 * support/scripts/sdcc.nsi: remove previous installation
5942 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5944 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
5945 bytes for last interrupt vector (mcs51)
5946 * sdcc.spec: fixed typo
5948 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5950 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
5951 gen51Code): more efficient parameter receive for --model-large
5954 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5957 * src/z80/main.c: added missed needLinkerScript flags (more than
5958 one port structure defined in these file)
5959 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
5962 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
5964 * src/SDCCmain.c: removed various references to DEFAULT_PORT
5965 * src/port.h: added flag needLinkerScript in port->linker
5966 structure to inform whether to create a .lnk file or not,
5974 * src/z80/main.c: changed appropriately to configure
5975 needLinkerScript flag
5977 * src/pic16/gen.c (genAddrOf): fixed bug #863624
5978 * src/pic/glue.c: added variable udata_section_name to
5979 override default uninitialized data segment definition for
5980 devices only with SHAREBANK memory (reported from Erik Epetrich)
5981 * (pic14emitOverlay): modified to emit a commented overlay segment
5982 directive when no overlay data exist
5983 * (picglue): modified to emit uninitialized data segment
5984 according to udata_section_name
5985 * src/pic/main.c (_pic14_parseOptions): added command line
5986 options --udata-section-name=[name] to override default
5987 udata definition name
5988 * modified _linkCmd and _asmCmd to include compiler passed
5989 arguments via -W option
5990 * src/pic16/main.c: added $l in _asmCmd, changed extension for
5991 object file from '.rel' to '.o' in port->linker structure,
5992 changed size of fptr from 2 to 3 in port structure
5994 2004-01-07 Borut Razem <borut.razem AT siol.net>
5996 * support/scripts/sdcc.nsi: update PATH
5997 * support/scripts/sdcc.ico: craeted
5999 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
6001 * device/include/Makefile.in: fix install
6002 * doc/Makefile: fix install
6004 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6006 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
6008 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
6009 how the function variable allocation summary is displayed; also
6010 include information about variables allocated to the overlay
6013 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6015 * as/mcs51/lkmain.c: Help about -Y option
6016 * as/mcs51/lkarea.c: Fixed gcc warnings
6018 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6020 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
6022 * support/valdiag/tests/overflow.c: added
6023 * src/SDCCast.c (decorateType),
6024 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
6025 LEFT_OP (left shift)
6027 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6029 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
6030 (default behaviour).
6032 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6034 A python script to validate compiler diagnostic messages. It can be
6035 used to verify that sdcc complains about bad c source code and
6036 gives a good location of the error.
6037 * support/valdiag/Makefile,
6038 * support/valdiag/valdiag.py,
6039 * support/valdiag/tests/*
6041 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6043 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
6044 * src/SDCCsymt.c (newEnumType),
6046 * support/Util/SDCCerr.c,
6047 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
6049 * support/regression/tests/enum.c: added test for enum values that
6050 require at least 2 bytes of storage.
6052 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6054 * src/common.h: added ifndef/define/endif macros
6055 around the header file.
6056 Bug reported from Jesus Calvino-Fraga
6058 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6060 * sdcc.spec: updated
6061 * device/include/Makefile.in: don't install CVS directories
6062 * device/lib/Makefile.in: added removal of CVS directories after install
6063 * doc/Makefile: fixed install, added local_icons
6064 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
6065 * src/mcs51/gen.c (genRightShift): fixed bug #870788
6066 * src/ds390/gen.c (genRightShift): fixed bug #870788
6067 * src/SDCCast.c (decorateType): fixed bug #870781
6069 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6071 PIC16 port related changes:
6072 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
6073 added variable stackPos,
6075 * gen.c: genCall, assignResultValue: added support for
6076 pushing/retrieving function parameters to/from stack,
6077 genFunction,genEndFunction: setup stack frame for the
6079 genAddrOf: will be changed according to bug 863624
6081 * added files genutils.c and genutils.h which contain gen*
6082 debugged and optimised functions extracted from gen.c
6084 * glue.c: added variable 'externs' which holds extern symbols,
6085 pic16emitRegularMap: is modified to properly handle relocatable
6086 symbols under the new scheme,
6087 pic16createInterruptVect: is modified
6088 pic16printPublics: is modified to emit 'global' assembler directives,
6089 added pic16_printExterns to print extern symbols,
6090 pic16glue: initializes stack/frame pointer in the beginning of
6091 the assembly output. Temporary hack, will be corrected later,
6092 because gplink yet does not support stack and SDCC does not
6093 yet support a type of crt0.o object to create the final binary.
6095 * Removed many lines that contain 8051 legacy code.
6096 * The code is finally placed under a 'code' directive.
6097 * Added port specific options.
6099 * _process_pragma: simplified since now we do not need *special*
6100 include file to define SFR registers. But a separate header
6101 will be needed. This will be developed later.
6102 * _pic16_parseOptions: added, parses port specific options:
6103 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
6104 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
6105 --preplace-udata-with=
6107 * _pic16_setDefaultOptions: modified to initialize section names,
6108 but hack is temporarly out of order since it needs improvement.
6109 * _pic16_genAssemblerPreamble: configuration words are emitted by
6110 their address instead of their name. This part is incomplete and
6111 supports only the 18Fxx2 devices. Other devices will emit an error
6112 during assembly since they do not contain the same set of config
6114 * _pic16_genIVT: is modified,
6116 * pcode.c: added definitions for some hardware registers that are needed
6118 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
6119 All PCI entries are updated. Now LFSR is supported.
6120 * Removed pic16_pciTRIS is mentioned by mdubuc in source
6121 * added pic16_newpCodeOpLit2 to support instructions with
6122 two literal arguments
6123 * pic16_pCode2str: corrected code that emits assembler instructions
6124 with two literal operands and those that have an access bit modifier
6125 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
6126 this fixes a bug which caused some labels to be lost, when an
6127 assembler directive was added, i.e. banksel,
6128 * pic16_FixRegisterBanking: improved logic that causes the insertion
6130 * InlineFunction: functions that are called once, are not any more
6131 inlined. This can be a port option in the future,
6133 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
6135 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
6136 hold the corresponding uninitialized symbols,
6137 * pic16_allocProcessorRegister: registers have explicit marked the
6139 * pic16_allocInternalRegister: registers are explicit marked as
6141 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
6142 processing list, so bit registers were lost,
6145 * ralloc.h: added field 'accessBank' and original symbol operand
6146 in register definition,
6147 * removed the field isMapped from register definition,
6149 ** Several functions have been removed from various sources:
6150 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
6151 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
6152 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
6153 pic16_assignRelocatableRegisters
6155 ** others have been introduced:
6156 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
6157 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
6159 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
6161 * support/scripts/inc2h.pl: changed definition of BIT_AT
6162 to emit 'sbit at' instead of 'bit at'. This was a request.
6164 PIC16 port related preliminary changes:
6165 * gen.c: prefixed function popRegFromString with
6166 pic16_ and all references to it corrected
6167 * pcode.c: all pic16_pc_* hardware registers prefixed
6168 with underscore (_),
6169 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
6170 * ralloc.c: newReg(): when register is REG_SFR then
6171 set address to rIdx,
6172 pic16_allocProcessorRegister(): marks register wasUsed=0
6173 pic16_writeUsedRegs(): added a call to assign processor
6174 registers via pic16_assignFixedRegisters
6176 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6178 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
6179 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
6180 variables in unused register banks. Also the SSEG is placed
6181 wherever there is enough space for it, and IDATA can be anywhere
6182 in internal RAM. For now compile using -Wl-Y[stack_size].
6183 The mem file is different for this option as well, since it
6184 makes no sense of talking about DSEG lenght.
6186 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
6188 * src/SDCClrange.c: fixed bug 869095 that caused segfault
6189 in certain cases, e.g. when ROM assignment, patch provided
6190 from Albert den Haan.
6192 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
6194 Many signedness and type propagation fixes:
6195 * src/SDCCicode.c: made geniCodeCast() static
6196 replaced SPEC_ by IS_ (cosmetic)
6197 (operandOperation): fixed div and mod operation
6198 (usualBinaryConversions): added support for promotion of char
6199 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
6200 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
6201 (geniCodeAdd): an array index will stay unsigned, even if promoted
6203 (geniCodeArray): ditto
6204 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
6205 * src/SDCCsymt.c (computeType): added more support for char;
6206 promotion of char is selectable by promoteCharToInt, fixed signedness
6208 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6209 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6210 * src/SDCCval (val*): replaced signedness calculation by
6212 rearranged if-branches (cosmetic)
6213 (valShift): added warning W_SHIFT_CHANGED
6214 (valCompare): fixed problem with different types
6215 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
6216 * support/regression/tests/literalop.c: added many cases
6217 * support/regression/tests/ast_constant_folding.c: changed finally to
6219 * .version: new year, new version: 2.3.7
6220 * src/SDCCmain.c (main): applied patch #866468
6221 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
6222 provided by Scott Bronson
6223 * doc/sdccman.lyx: updated documentation for sdcdb
6224 updated and added chapter tips
6226 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6228 * src/SDCCsymt.h: missing from yesterday's commits
6230 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6232 * src/SDCC.y (struct_or_union_specifier),
6233 * support/Util/SDCCerr.c,
6234 * support/Util/SDCCerr.h: verify that struct & union tags are used
6237 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6239 * src/SDCCglobl.h: missing from yesterday's commits
6241 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6243 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
6244 sft_attributes, struct_declaration, parameter_declaration,
6245 type_name, start_block, declaration_list),
6246 * src/SDCC.lex (check_type): support redefinition of typedef names
6248 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6250 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
6251 aligned xdata arrays. Erik helped me with the if clause.
6253 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6255 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
6258 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6261 * src/SDCCast.c (newAst_),
6263 * src/SDCCicode.c (ast2iCode, newiCode),
6265 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
6266 expr, statement, expression_statement, selection_statement,
6267 iteration_statement, expr_opt, jump_statement): foundation for tracking
6269 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
6272 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6274 * support/Util/SDCCerr.c,
6276 * src/SDCCast.c (createCase, createDefault, decorateType),
6277 * src/SDCClabel.c (labelUnreach),
6278 * src/SDCC.y (labeled_statement, jump_statement): More improvements
6280 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
6281 (with thanks to Stas Sergeev)
6282 * device/include/time.h,
6283 * device/lib/time.c (CheckTime): suppress unreachable code warning
6285 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6287 * src/SDCCast.c (createIvalCharPtr),
6288 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
6290 * support/regression/tests/nullstring.c: tests for these two bugs
6292 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6294 * support/Util/SDCCerr.h,
6295 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
6296 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
6297 about storage class and 'at' used inside struct or union
6298 * src/SDCCBBlock.c (iCodeFromeBBlock),
6299 * src/SDCCcse.c (ifxOptimize),
6300 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
6301 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
6302 printIval, emitStaticSeg, emitOverlay),
6303 * src/SDCClabel.c (deleteIfx),
6304 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
6305 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
6306 gatherAutoInit, processParms),
6307 * support/Util/SDCCerr.h,
6308 * support/Util/SDCCerr.c (werrorfl): Support for better error location
6309 reporting for post-parse errors.
6311 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6313 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
6314 implicit casts via union; they don't work on big endian systems
6315 (possible fix for bug #861138)
6317 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6319 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
6320 * src/mcs51/main.c: fixed the fix for bug #737001
6322 2003-12-15 Borut Razem <borut.razem AT siol.net>
6324 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
6326 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6328 * support/makebin/makebin.c: put output in binary mode
6330 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6332 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
6333 xdata and data memory on startup. Set the environment variable
6334 SDCC_NOGENRAMCLEAR to disable this.
6335 * src/mcs51/peephole.def,
6336 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
6337 (allows non-interrupt and interrupt code to safely compete for a resource
6338 without the non-interrupt code having to disable interrupts)
6340 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6342 * src/SDCCicode.c (geniCodeAdd),
6343 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
6344 with valFromType if type might be a pointer and host is big endian).
6345 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
6346 types, not just integer types.
6347 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
6348 multiply defined with mismatching "at" address.
6350 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6352 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
6353 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
6354 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
6355 with embedded nulls (fixed bug #753752)
6357 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6359 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
6360 Apparently this did not see much testing (endless loop)
6362 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6364 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
6366 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6368 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
6369 gracefully handle NULL memmap pointers
6371 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6373 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
6374 instead of deleting the iCode when an operand is volatile
6375 * src/z80/gen.c (genDummyRead),
6376 * src/mcs51/gen.c (genDummyRead),
6377 * src/ds390/gen.c (genDummyRead),
6378 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
6380 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
6381 * src/SDCC.y: fixed bug #850420
6383 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6385 Applied z80 i/o port patch from Peter Townson and fixed some operators
6386 to better handle operands in A register.
6387 * device/include/z180.h
6393 * src/z80/peeph-z80.def
6397 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6399 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
6401 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6403 * device/lib/hc08/_mullong.c: Removed extra #endif
6405 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6407 * sim/ucsim/hc08.src/inst.cc,
6408 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
6410 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
6411 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
6412 * device/include/stdarg.h: fixed varargs for hc08
6413 * device/lib/Makefile.in,
6414 * device/lib/hc08/Makefile,
6415 * device/lib/hc08/_mulint.c,
6416 * device/lib/hc08/_mullong.c: fixed some endian problems
6418 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6420 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
6421 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
6422 * device/lib/_gptrget.c,
6423 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
6425 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6427 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
6428 * src/SDCCast.c (astErrors): fixed bug #846007
6429 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
6431 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6433 * src/SDCCast.c (decorateType): disabled a transformation I added in
6434 revision 1.188 (access to fields of a structure at an absolute address);
6435 it breaks with bitfields, extern declarations, and gcse analysis.
6436 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
6437 could be assigned through a pointer, so don't complain.
6438 * src/SDCCast.c (astErrors),
6440 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
6442 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
6444 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
6445 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
6446 output of __config directives, since gpasm now supports them
6447 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
6448 pre-processor macro, i.e. -DMCU=p18f452
6449 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
6450 and modified to handle 'cast' icode similarly to '=' icode
6451 * src/pic16/device.h (typedef struct PIC_device): added field
6452 'extMIface' to indicate that chip has external memory interface
6453 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
6454 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
6457 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6459 * src/SDCC.y (pointer): fixed bug #846006
6460 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
6461 * src/SDCCast.c (decorateType): fixed bug #846009
6462 * src/ds390/peeph.def,
6463 * src/ds390/gen.c (genAnd, genOr),
6464 * src/mcs51/peeph.def,
6465 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
6467 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6469 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
6476 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
6480 * src/SDCCbitv.c: added function to free a bitvector
6482 * src/SDCClrange.c: added function to recompute the liveranges
6484 * src/ds390/ralloc.c,
6485 * src/hc08/ralloc.c,
6486 * src/mcs51/ralloc.c,
6488 * src/pic16/ralloc.c,
6489 * src/xa51/ralloc.c,
6490 * src/z80/ralloc.c: recompute the liveranges after register packing
6492 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
6494 * src/SDCCloop.c (newInduction): fixed bug #845630
6496 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6498 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
6499 inadvertantly left behind from my 2003-11-12 change
6501 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6503 Updated headers I neglected to commit yesterday.
6507 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6509 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
6510 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
6511 * src/SDCCopt.c (eBBlockFromiCode),
6512 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
6513 the creation of the key hash table from the sequencing so it can be used
6514 earlier (for some GCSE bug fixes still pending)
6516 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6518 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
6519 * support/regression/tests/addsub.c: testing genPlus shortcut
6521 2003-11-15 Borut Razem <borut.razem AT siol.net>
6523 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
6525 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6527 * src/SDCCcse.c (cseBBlock): fixed bug #527779
6528 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
6529 ordering is immaterial.
6530 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
6532 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6534 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
6535 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
6536 (SIGSEV) of bug #840381
6537 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
6538 unlink new file before rename if new and old filenames are the same)
6540 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6542 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
6543 uninitialized variables) for the mcs51. Set environment variable
6544 SDCC_GENRAMCLEAR to test.
6545 xdata initialization slightly shorter
6547 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6550 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
6551 #838241 & 780691 (basicly the same bug)
6552 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
6553 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
6555 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
6557 * src/SDCCmain.c (linkEdit): "fix" #834252
6559 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6561 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
6563 * src/SDCC.y: fixed bug #819403
6565 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6567 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
6568 the reentrant attribute.
6569 * src/hc08/gen.c (genPackBits): added missing stack readjustment
6570 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
6572 * src/SDCCast.c (decorateType): fixed bug with storage class not being
6573 updated during pointer dereference; f.e. ~(((char *)1)*) was being
6574 erroneously reduced to a literal.
6575 * src/hc08/ralloc.c (packRegisters, rematStr),
6576 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
6579 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6581 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
6582 * doc/sdccman.lyx: changed from 'article' to 'book'
6583 * doc/Makefile: readded test_suite_spec and cdbfileformat
6585 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
6587 * device/include/stdlib.h: include malloc.h to comply with ANSI
6588 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
6590 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6592 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
6593 * doc/clean.mk: also remove *.out files
6594 * doc/sdccman.lyx: some additions, larger top/bottom margins
6596 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6598 * src/SDCC.y: fixed bug #837365
6599 * support/regression/tests/bitopcse.c
6600 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
6601 a symbol (might be valop instead)
6602 * device/lib/Makefile.in: added errno.c to HC08SOURCES
6603 * device/lib/clean.mk: added hc08 to the cleaning list
6605 2003-11-04 Borut Razem <borut.razem AT siol.net>
6607 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
6609 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
6610 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
6611 malloc is declared in standard stdlib.h
6613 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6615 * device/lib/hc08/Makefile: need to clean .rel not .o files
6616 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
6618 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6628 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
6629 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
6630 tests (which uses the port's oclsExpense function)
6636 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
6638 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6640 * src/SDCCcse.c (ifxOptimize),
6641 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
6642 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
6643 deleting the IFX iCode.
6644 * src/hc08/ralloc.c: reduced unneeded slocs
6645 * src/hc08/gen.c: fixed bug in asmopToBoolean
6647 2003-11-04 Borut Razem <borut.razem AT siol.net>
6649 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
6650 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
6651 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
6652 transferred to configure
6654 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
6656 Use headers defined in the C[++] standards:
6657 * sim/ucsim/gui.src/serio.src/fileio.cc
6658 * sim/ucsim/gui.src/serio.src/frontend.cc
6659 * sim/ucsim/gui.src/serio.src/main.cc
6660 * sim/ucsim/gui.src/serio.src/posix_signal.cc
6661 * support/Util/NewAlloc.c
6667 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6669 * Added MSVC projects for hc08 assembler and linker:
6670 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
6671 /as/hc08/link_hc08.dsp
6673 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
6675 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
6677 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
6679 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
6681 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6683 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
6685 2003-10-31 Borut Razem <borut.razem AT siol.net>
6687 * support/cpp2/cpplib.h,
6688 support/cpp2/cpplib.c,
6689 support/cpp2/cpplex.c,
6690 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
6691 to switch _asm block preprocessing on / off. Default is
6692 #pragma preproc_asm +
6694 2003-10-31 Borut Razem <borut.razem AT siol.net>
6696 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
6697 when outputting comment blocks (when executed with -C option) and
6698 _asm (SDCPP specific) blocks
6700 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6702 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
6704 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
6706 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
6708 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
6710 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
6711 * src/SDCCast.c (decorateType): fixed bug #832664
6713 2003-10-31 Borut Razem <borut.razem AT siol.net>
6715 * support\cpp2\cpplex.c: fixed for SDCPP:
6716 comments(when executed with -C option) and _asm blocks
6717 were included even if they where in skipped #if block.
6718 Applied solution from GCC cpp 3.3.2
6720 2003-10-31 Borut Razem <borut.razem AT siol.net>
6722 * src/SDCC.lex: sdcc now understands both formats:
6723 '# <line_number> <file_name>' and
6724 '#line <line_number> <file_name>'
6725 * support/cpp2/cppmain.c: sdcpp now generates the standard
6726 '# <line_number> <file_name>' instead of former
6727 '#line <line_number> <file_name>'
6729 2003-10-30 Borut Razem <borut.razem AT siol.net>
6731 * support/cpp2/cpphash.h,
6732 * support/cpp2/cpplib.h
6733 * support/cpp2/cpplex.c,
6734 * support/cpp2/cppmain.c,
6735 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
6737 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6739 Fixed a number of problems revealed by bug #827883.
6740 * src/SDCCloop.c (loopInvariants): Spill location of the
6741 result operand should be recomputed if extracted from
6742 a loop. Also, don't extract assignments of an iTemp
6744 * src/SDCCast.c (isConformingBody): loop reversal should
6745 not occur if the control variable is involved with a
6746 relational operator.
6748 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6750 * .version: bumped to 2.3.6 to reflect the big improvements
6751 made by Erik and Klaus. Thanks!
6753 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
6755 Replaced the livrange code.
6756 * src/SDCClrange.c: added new LR code
6758 * src/SDCCBBlock.h: removed remainig parts from old LR code
6759 * src/ds390/ralloc.c,
6760 * src/ds390/gen.c: minor fixes to make it work with new code
6762 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6767 * src/hc08/ralloc.c: Fix various warnings related to the hc08
6768 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
6769 (tweaked fix for bug #818696)
6771 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6773 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
6775 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6778 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
6779 * src/mcs51/gen.c (gencjneshort),
6780 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
6781 more efficient (per Scott Bronson's suggestion)
6783 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6785 Extended the semantics of the critical keyword to include
6786 individual statements. See RFE #827755 and #799831
6791 * support/Util/SDCCerr.c
6792 * support/Util/SDCCerr.h
6797 2003-10-19 Borut Razem <borut.razem AT siol.net>
6799 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
6801 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6803 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
6805 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
6806 and predecrement operand is displayed
6808 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
6810 * src/SDCCval.c (valMinus): fixed bug #826041
6812 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6814 Some hc08 related updates that I missed earlier
6815 * sim/ucsim/stypes.h
6816 * support/regression/ports/hc08/spec.mk
6818 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6820 New target "hc08" for the Motorola 68hc08 family of micros
6828 * sim/ucsim/hc08.src/*
6829 * sim/ucsim/configure.in
6830 * src/ucsim/configure
6831 * sim/ucsim/packages_in.mk
6834 * device/include/mc68hc908qy.h
6836 * device/lib/Makefile.in
6837 * support/regression/ports/hc08/*
6838 * support/regression/Makefile
6840 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6842 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
6844 * src/ds390/gen.c (genCast): fixed bug #821957
6846 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
6848 * device/lib/logf.c: "fixed" overlay bug
6849 * support/regression/ports/host/spec.mk: added m library
6850 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
6851 * support/regression/tests/float_trans: added (for Eric)
6853 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
6855 * src/mcs51/gen.c (genCpl): fixed bug
6856 http://sf.net/mailarchive/message.php?msg_id=6263915
6858 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
6860 * src/SDCCast.c (decorateType): added extended constant folding
6861 * src/SDCCsymt.c (computeType): cleanup
6862 * src/SDCCval.c (valShift): minor optimization
6863 * support/regression/tests/ast_constant_folding.c: added
6865 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6867 * src/SDCCmain.c: removed some unintended changes
6869 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6871 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
6872 * src/z80/gen.c: fixed part of bug #817589
6873 * src/SDCCsymt.c (checkFunction): fixed bug #817895
6875 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
6877 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
6888 * src/ds390/ralloc.c
6890 * src/mcs51/ralloc.c
6892 * src/pic16/ralloc.c
6895 * src/z80/gen.c: removed unused label "release:"
6897 2003-10-06 Borut Razem <borut.razem AT siol.net>
6899 * src/SDCC.lex: removed definition of unused variables
6900 save_optimize and save_options
6902 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
6904 * clean.mk: removed '=' in "-maxdepth=1"
6905 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
6906 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
6908 2003-10-06 Borut Razem <borut.razem AT siol.net>
6910 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
6911 my_unput() replaced by unput()
6913 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
6915 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
6916 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
6917 type-punned pointer will break strict-aliasing rules"
6918 Old LR behaviour is again default; Klaus' LR can be choosen by
6919 defining the environment variable LRKLAUS
6923 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
6924 * clean.mk: fixed removal of files in bin/CVS/
6925 * device/lib/clean.mk: fixed removal of directories small and large
6926 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
6928 * src/SDCCval.c: removed superflous test for pedantic
6930 2003-10-05 Borut Razem <borut.razem AT siol.net>
6932 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
6933 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
6934 message "unmatched #pragma SAVE and #pragma RESTORE"
6936 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6938 * doc/sdccman.lyx: various additions and updates (interrupts, inline
6939 assembly, critical functions, atomic, nojtbound)
6941 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
6943 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
6949 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6952 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6954 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6956 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6957 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
6958 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
6960 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6962 * src/z80/gen.c (genRet): fixed bug #524753
6963 * src/z80/gen.c (genCast): fixed internal error on cast from
6965 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
6966 fix for bug #477835 to the z80
6967 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
6968 for tracking iCodes in the peephole optimizer for z80
6970 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6972 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
6973 the other part of bug #814548
6974 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
6976 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
6978 * src/SDCCcse.c: fixed part of bug #814548
6980 2003-09-28 Borut Razem <borut.razem AT siol.net>
6982 * src/asm.c: rewrite of printILine() to use temporary file instead
6984 * src/xa51/main.c: commented out declaration of int rewinds
6986 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6988 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
6990 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6992 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
6993 * src/asm.c (printILine): Fixed bug #811015
6995 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6997 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
7000 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7002 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
7003 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
7004 to correctly handle general case of AOP_PAIRPTR
7005 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
7007 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7009 * src/mcs51/ralloc.c (fillGaps),
7010 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
7011 register positioning bug)
7013 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
7015 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
7017 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7019 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
7020 genCodePointerGet, genGenPointerGet, genFarPointerSet,
7021 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
7022 (ralloc doesn't intentionally do this now, but perhaps later)
7023 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
7024 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
7025 register positioning bugs (Fixed bug #762602 and #795325)
7026 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
7028 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
7029 lines that --i-code-in-asm generates
7031 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7033 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
7034 trying to fclose a FILE* that was already closed.
7036 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7038 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
7039 of const struct should be treated as if const themselves)
7041 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
7043 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
7045 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7047 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
7048 Unix (/n) and DOS (/r/n) line terminations.
7050 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7052 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
7055 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7057 * src/mcs51/gen.c (genFunction, genEndFunction),
7058 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
7059 and restore of EA so that stack offsets to parameters are
7060 correct when using both critical and reentrant/stack-auto.
7061 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
7062 size (can be triggered in error if sloc is shared between
7063 different sized objects)
7064 * device/include/float.h: fixed macros to explicitly use
7065 unsigned long where needed
7067 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7069 Feature req. 799831: added code to allow nesting of critical functions
7070 * src/mcs51/gen.c (genFunction, genEndFunction)
7071 * src/ds390/gen.c (genFunction, genEndFunction)
7073 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7075 * src/SDCCsymt.c (sclsFromPtr),
7077 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
7078 support for standard C idiom of memory mapped variables; for
7079 example, *((xdata int*)0x1234) = 1 is now internally equivalent
7080 to xdata int at 0x1234 tempvar = 1.
7081 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
7082 provided by Akiya ISHIDA
7084 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
7086 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
7087 * src/SDCCval.c (constVal): added reduction from int to char
7088 * src/SDCCval.c (valMult, valDiv): fixed sign handling
7089 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
7090 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
7092 * support/regression/tests/shifts.c: fixed
7094 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7096 * src/z80/gen.c (genXor): Fixed bug #805445
7098 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7100 Fixed bug #621531 (const & volatile confusion in the type chain).
7101 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
7102 refer to the const or volatile state of the pointer itself.
7114 * src/pic16/ralloc.c
7115 * support/regression/tests/const.c
7117 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7119 When checking for duplicated modules, use absolute paths
7120 instead of relative paths. Files changed:
7125 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7127 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
7129 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7131 * device/include/string.h: added size_t typedef, changed
7132 prototypes to use size_t, eliminated separate reentrant and
7133 non-reentrant declarations, added _memmove declaration
7134 * device/lib/_memcpy.c: changed to use size_t instead of int,
7135 changed /4 to >>2 to avoid division library call
7136 * device/lib/_memcmp.c,
7137 * device/lib/_memset.c,
7138 * device/lib/_strncat.c,
7139 * device/lib/_strncpy.c,
7140 * device/lib/_strncmp.c: changed to use size_t instead of int
7141 * device/lib/_memmove.c: new file (fixed bug #772294)
7142 * device/lib/Makefile.in: added _memmove.c
7143 * device/lib/z80/asm_strings.s: fixed bug #772290
7144 * support/regression/tests/bitfields.c: attempt to fix host assertion
7145 failure on amd64-unknown-linux2.2
7147 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7149 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
7150 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
7151 * as/z80/asmain.c (main): fixed bug #801766
7153 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
7155 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
7158 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7160 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
7161 reported in bug #800609
7163 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
7165 * Top header beautifications in src/pic16 directory:
7166 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
7167 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
7168 pcoderegs.h, ralloc.c, ralloc.h
7169 * main.c: added top header and GPL license notice
7170 * pcode.c: fixed the if-conditional warning
7172 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
7174 * device/lib/_mullong.c: replaced int by short for gcc
7176 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7178 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
7179 and JUMPTABLE iCodes properly now (worked by accident before)
7180 * src/mcs51/gen.c (leftRightUseAcc),
7181 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
7182 iCode properly now. Use getSize instead of nRegs since a & b
7183 aren't part of the nRegs tally.
7185 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
7187 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
7188 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
7189 before instructions that use the _STATUS register
7191 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
7193 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
7194 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
7195 fetching of the pointer
7196 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
7197 copied from genNearPointerSet()
7198 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
7199 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
7200 If they pop r0/r1 they must be called in the opposite order than aopOp().
7201 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
7202 (resp. --stack-auto), prepared for --xstack
7204 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7206 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
7208 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
7210 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
7211 these ports have their own __sdcc_external_start()
7213 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
7215 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7216 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
7217 type for bits was changed. It resulted in bit variables becoming
7218 global, which is not permitted in PIC 14 assembly output.
7220 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7222 * doc/sdccman.lyx: various additions and updates. Rearranged sections
7224 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7226 Z80 and MCS51 linkers complaint if a public symbol is defined
7227 in more than one library module:
7231 * as/mcs51/Makefile.in
7233 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7235 A few small changes that speed up the peephole optimizer.
7239 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7241 Try to make the peephole optimizer smarter by maintaining
7242 an association between the assembly source code and the
7243 iCodes that originated them. Put this information to use
7244 with a new peephole rule condition "notVolatile" so that
7245 the rules can be aggressive yet still safe.
7250 * src/mcs51/peeph.def
7252 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7256 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
7257 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
7258 if the left or right operand symbols have the accuse flag set.
7260 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7262 Changed the type of the result of the ! (NOT) operator to char;
7263 previously it returned the same type as the source. This allows
7264 us to eliminate all the genFloatNot functions (all of its target
7265 implementations were very buggy) since !float can use the same
7268 * src/SDCCicode.c (ast2iCode): ! returns char
7269 * src/mcs51/gen.c (genNot, genNotFloat),
7270 * src/ds390/gen.c (genNot, genNotFloat),
7271 * src/z80/gen.c (genNot, genNotFloat),
7272 * src/pic/gen.c (genNot, genNotFloat),
7273 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
7275 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
7277 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7278 1. Interrupt would not compile properly. Ensure PCLATH register is saved
7279 during interrupts. Ensure WSAVE is located at a shared bank address.
7280 2. Fixed page selection in some places
7281 3. Fixed BTFSS/C to where necessary use registers directly and not simply
7282 the registers name strings.
7283 4. Fixed "signed / unsigned compare" compiler warnings.
7284 5. The PIC port manages its own allocation of the general purpose
7285 registers, but makes no attempt to reuse them. As a result when
7286 compiling it soon runs out of general purpose registers. Some
7287 additional code was added to the files pcode.c and device.c to walk
7288 through the function call tree and rename the registers so that they
7298 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
7299 genPlus() & genMinus() when the result is the same as left or right
7301 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7303 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
7305 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7307 Made bitfield a distinct type from bit so that bitfields
7308 convert as per ANSI C and bits retain their traditional
7309 boolean style behaviour. Implemented bitfield support in
7317 * src/ds390/gen.c: bit v bitfield split
7318 * src/z80/gen.c: New support for bitfields
7319 * support/regression/tests/bitfields.c: reenabled z80,
7322 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7324 Rules 246.x, 247.x relate to bitfields, the others speed up
7325 access to xdata mapped I/O devices.
7327 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
7329 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7331 Cleaned up genPackBits and genUnpackBits and added two helper
7332 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
7333 for literal assignments in genPackBits (thanks to Frieder for
7339 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7341 Fixed bug #748310 (pointer to function type mishandled when the
7342 function name is omitted). Also fixed a SIGSEGV when a function
7343 attribute (reentrant, etc) is used on a non-function or on a
7344 function but misplaced before the parameter list.
7346 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
7348 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
7349 * support/Util/SDCCerr.h,
7350 * support/Util/SDCCerr.c: Added func attr misuse error msg
7352 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
7354 Fixed bug #787649 by anonymous
7355 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
7356 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
7358 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7360 Fixed numerous bitfield problems.
7362 * src/SDCC.y: More bitfield related error checking
7364 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
7365 * support/Util/SDCCerr.h,
7366 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
7367 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
7368 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
7369 * support/regression/tests/bitfields.c: tests added
7371 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7373 Made the constant following the "interrupt" keyword optional. If
7374 omitted, the function will not automatically be given an entry
7375 in the interrupt vector table (similar to #pragma NOIV, but
7376 less syntacticly kludgy). The interrupt number is also now
7377 range checked. Also fixed a bug in the high order bit example
7384 * support/Util/SDCCerr.c
7385 * support/Util/SDCCerr.h
7388 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
7390 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
7391 * src/SDCCicode.c (operandOperation): rewritten some ops
7392 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
7393 * src/SDCCsymt.c (computeType): literals are handled the same way as any
7395 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
7396 be re-activated by defining REDUCE_LITERALS)
7397 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
7398 unsigned, but are signed by default
7399 * src/SDCCval.c (constVal): rearranged
7400 * src/SDCCval.c (valMod): preliminary fix
7401 * src/SDCCval.c (valCastLiteral): use TYPE_* types
7402 * support/regression/literalop.c: added, work in progress
7404 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7406 Generate warnings for useless declarations like "char data;"
7407 that don't do what new users expect.
7410 * support/Util/SDCCerr.h
7411 * support/Util/SDCCerr.c
7413 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
7415 * src/SDCCval.c (valMult): fix overflow detection of negative int
7417 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7419 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
7421 Changes to support big endian targets:
7434 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
7436 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
7437 * device/lib/time.c: fixed warning "integer overflow in expression"
7439 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
7441 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
7442 * src/SDCCval.c (constVal): changed default to signed; hex and octal
7443 constants are unsigned; added recognition of "u" flag for unsigned
7444 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
7445 * src/SDCCval.c (valDiv, valMod): fixed signdness
7446 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
7447 signedness of modulo, left and right shift
7448 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
7449 * support/Util/SDCCerr.h: added warning W_INT_OVL
7450 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
7451 * src/SDCCast.c (ast_print): improved output of constants
7453 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7455 Fixed some warnings when building with MSVC:
7468 * support\cpp2\cpplib.c
7472 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
7474 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
7476 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7478 * support\librarian\clean.mk: Do not remove Makefile.
7479 * support\librarian\Makefile: added.
7481 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7483 Added librarian to MSVC build:
7486 * support\librarian\librarian.dsp
7488 'configure' not needed for librarian, removed:
7489 * support\librarian\configure
7490 * support\librarian\configure.in
7491 * support\librarian\config_in.h
7492 * support\librarian\Makefile.in
7494 Hopefully these ones built the librarian and the rest of sdcc properly:
7496 * Makefile.common.in
7498 Messed up 'configure', so revert to previous version:
7502 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
7504 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
7505 there, while the mantissa of a double is "only" 53 bits wide.
7507 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7509 Adding sdcclib to the build. MSVC project coming soon.
7510 Files added/changed:
7512 * support\librarian\clean.mk
7513 * support\librarian\configure
7514 * support\librarian\configure.in
7515 * support\librarian\config_in.h
7516 * support\librarian\Makefile.bcc
7517 * support\librarian\Makefile.in
7518 * support\librarian\sdcclib.c
7521 * Makefile.common.in
7525 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7527 Linker now complaints if linked modules have conflicting options, for
7528 example, one compiled using --model-large and another one compiled with
7529 --model-small. The following files were modified:
7551 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7553 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
7554 as/mcs51/lklibr.c: Generate a warning when a library is not found.
7556 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
7558 * src/z80/mappings.i: fix _mul[us][int,long] entries
7560 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7562 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
7564 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
7566 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
7567 * support/regression/tests/bitopcse.c: added
7575 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7577 added support for new library format to z80, gbz80 linkers:
7583 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
7585 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
7586 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
7588 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
7590 added DUMMY_READ_VOLATILE:
7599 * src/SDCCcse.c (algebraicOpts): many improvements
7600 * src/SDCCcse.h: removed algebraicOpts()
7601 * src/SDCCicode.c (picDummyRead): added
7603 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7605 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
7606 "Insufficient space in data memory".
7608 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7610 * src/mcs51/gen.c: fixed bug #771358
7611 * src/z80/gen.c: fixed bug #759087
7613 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
7615 * src/pic16/glue.c: minor cleanup by Vangelis
7617 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7619 * device/include/regc515c.h: fixed #758477
7620 * device/lib/_gptrget.c: saving some cycles in generic pointer get
7621 * device/lib/_gptrput.c: saved a few bytes
7622 * my tab spacing is 8, yours too?)
7623 * device/lib/_ser.c: process RX bytes earlier than TX bytes
7624 * device/lib/serial.c: process RX bytes earlier than TX bytes
7625 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
7627 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7629 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
7631 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7633 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
7635 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
7637 * device/lib/Makefile.in: bad fix, reverted to 1.43
7639 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
7641 * device/lib/Makefile.in: added missing z80 object files
7643 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
7645 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
7646 pic16 progress by Vangelis:
7661 * pic16/pcodepeep.c:
7664 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7666 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
7668 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7670 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
7671 added gbz80 build to MSVC project.
7672 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
7673 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
7674 from 8051 stuff and setup so it links using a .lnk file.
7676 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7678 * support/librarian/sdcclib.c: sdcc librarian.
7679 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
7682 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7684 * as/mcs51/lkmain.c: properly handle extensions in function afile.
7686 2003-07-02 Borut Razem <borut.razem AT siol.net>
7688 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
7689 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
7690 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
7691 src/xa51/main.c, src/z80/main.c:
7692 virtualization of glue() function: each port has it's own glue function,
7693 which is accessed by do_glue function pointer in PORT.general structure
7695 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
7697 * DS800C400 fun, improved ROM interface and tinibios.
7699 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
7701 * More support for DS80C400. Now includes beginning of interface to ROM.
7703 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
7705 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
7707 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7709 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
7711 2003-06-19 Borut Razem <borut.razem AT siol.net>
7713 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
7715 2003-06-19 Borut Razem <borut.razem AT siol.net>
7717 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
7718 fixed Z80 port - crt0.o: cannot open.
7720 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
7722 * support/Util/MySystem.c (merge_command): revert bad fix
7724 2003-06-18 Borut Razem <borut.razem AT siol.net>
7726 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
7728 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7730 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
7731 option --use-stdout sends errors to stdout instead of stderr.
7733 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
7735 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
7737 2003-06-15 Borut Razem <borut.razem AT siol.net>
7739 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
7740 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
7741 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
7742 fixed width array of pointers replaced with sets;
7743 multiple include and lib paths ared transferred to preprocessor and linker
7744 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
7745 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
7746 fixed width array of pointers
7747 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
7748 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
7749 fixupPath(), getPathDifference()
7750 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
7751 fixed width array of pointers
7753 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
7755 * src/pic16/ralloc.c: fix warnings
7756 * src/pic16/pcode.c: fix warning
7758 2003-06-10 Scott Dattalo <scott AT dattalo.com>
7760 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
7761 know all the details, but essentially this set of changes enable
7762 the pic16 port to generate movff instructions and generate assembler
7767 * src/pic16/pcode.c:
7768 * src/pic16/device.c:
7770 * src/pic16/pcode.h:
7771 * src/pic16/pcoderegs.c:
7772 * src/pic16/ralloc.c:
7773 * src/pic16/ralloc.h:
7775 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7777 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
7778 added option --vc, so sdcc errors and warnings are compatible with
7779 Microsoft Visual Studio.
7781 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7783 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
7784 device/lib/libfloat.lib: added atof function.
7786 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
7788 * doc/sdccman.lyx: updated to Lyx 1.3
7789 * doc/cdbfileformat.lyx: updated to Lyx 1.3
7790 * doc/test_suite_spec.lyx: updated to Lyx 1.3
7791 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
7793 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
7795 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
7797 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7799 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
7800 additions to the "related tools/documentation" section
7802 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
7804 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
7806 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
7808 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
7809 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
7811 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
7813 * doc/sdccman.lyx: fix double dash and other minor things
7814 * doc/Makefile: fix double dash
7816 2003-05-28 Karl Bongers(patches from Martin Helmling)
7817 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
7818 condition and ignore commands.
7820 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7822 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
7823 is in parts still quite out of date, I did changes as far as I felt makes sense
7824 for a non-native english speaker.
7825 Please feel free to add to the manual or to correct my changes.
7826 * doc/Makefile: undid touching the date of intermediate tex files.
7828 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7830 * doc/sdccman.lyx: Manual has an index now
7832 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
7834 Finalize muluint/mulsint and mululong/mulslong merging:
7835 * device/lib/_mulint.c
7836 * device/lib/_mullong.c
7837 * device/lib/gbz80/mul.s
7838 * device/lib/gbz80/stubs.s
7839 * device/lib/z80/mul.s
7840 * device/lib/z80/stubs.s
7841 * src/SDCCsymt.c (initCSupport)
7843 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7845 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
7846 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
7847 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
7848 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
7851 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7853 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
7854 the regression tests I'm not brave enough to enable 245.b, 245.c
7855 * doc/sdccman.lyx: added latex preamble for hyperref package.
7856 Using pdflatex this will give you a hyperlinked pdf file with
7857 bookmarks. (prepend '%' before /usepackage if this breaks something)
7859 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7861 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
7863 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
7865 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
7867 2003-05-21 <johan AT balder>
7869 * src/SDCCglue.c (printIval): fixed bug #739934
7871 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
7873 Applied patch from bug 737905 (renamed yylineo to mylineno):
7880 * src/pic16/pcode.c: Cleaned warnings
7881 * src/pic16/pcodeflow.c: Cleaned warnings
7882 * src/pic16/pcoderegs.c: Cleaned warnings
7884 2003-05-19 Scott Dattalo <scott AT dattalo.com>
7886 * src/pic16/pcode.c: Cleaned warnings
7887 * src/pic16/pcodepeep.c: Cleaned warnings
7888 * src/pic16/ralloc.c: Cleaned warnings
7890 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
7892 * doc/sdccman.lyx: fixed bug 739745
7893 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
7895 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
7897 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
7898 it can be defined with CFLAGS when running configure
7899 * src/SDCCmain.c: fixed compiling + linking with object files
7901 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
7903 * configure.in: configure for pic16 port,
7904 added --disable-pic16-port
7905 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
7906 * src/SDCCmain.c: linkOptions is changed to set *,
7907 added if/endif conditional macros to remove options help
7908 messages from optionsTable when a port is not configured, added
7909 support for the PIc16 port in the ports table, when executing
7910 the compiler with no port specified on command line, a default
7911 port is selected with the new macro DEFAULT_PORT which is
7912 defined in port.h, in setDefaultOptions() linkOptions is removed
7913 from initialization assignment, since now it is a set,
7914 parseCmdLine uses setParseWithComma for linkOptions, in
7915 linkEdit() linkOptions are accessed with new function indexSet()
7916 which returns the i'th item of a set variable. See SDCCset.c, in
7917 linkEdit() when calling buildCmdLine(), added linkOptions as
7918 last argument. Now users can pass arguments to gplink via the
7919 -Wl option, main() uses pic16glue() to glue up pic16 programs
7920 * src/SDCCpeeph.c: various changes to support pic16
7921 * src/SDCCset.c: added function void *indexSet(set *, int) to
7922 return the i'th item of the set
7923 * src/SDCCset.h: added function prototype for indexSet()
7924 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
7925 * src/clean.mk: added pic16 in CLEANALLPORTS variable
7926 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
7927 added macro DEFAULT_PORT
7928 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
7929 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
7931 * src/pic16/glue.c: commented out some error producing lines
7932 * src/pic16/main.c: __config directives are commented out to stop
7933 gpasm complaining and test the linkage with gplink, _linkCmd and
7934 _asmCmd changed to be more gplink and gpasm friendly
7935 * src/pic16/peeph.def: peep rule 3 is commented out, since it
7936 produced an error when parsed, peep rule 12 is added to utilize
7937 movff, but it is commented out since the pCode does not support
7938 yet a command with 2 address arguments
7940 2003-05-18 <johan AT balder>
7942 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7943 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7944 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
7946 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
7947 Added feature to script commands from file.
7949 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
7951 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
7952 * src/SDCCutil.c: include ctype.h for win32
7954 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
7956 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
7958 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
7960 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
7961 Fixed so you can set breakpoints prior to run, run does not stop
7962 on entry now. Add tbreak. Other enhancements and fixes for use
7965 2003-05-12 Borut Razem <borut.razem AT siol.net>
7967 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
7969 2003-05-11 Borut Razem <borut.razem AT siol.net>
7971 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
7972 the path of bin directory, so that PATH is the only env. variable, which has to be set
7973 in case of standard installation.
7974 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
7975 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
7976 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
7978 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
7980 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
7981 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
7982 temp files are in the port dir; clean the gen/test directory when
7983 generating new test.c
7984 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
7985 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
7986 * support/regression/tests/zeropad.c: added
7988 2003-05-09 <johan AT balder>
7990 * src/SDCCglue.c: fixed bug #597940
7992 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
7994 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7995 cache sfr, optimize next,step, fix off by one sourceline,
7996 support ddd list function.
7997 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
7999 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
8001 * support/regression/HTMLgen.py: added compare_s2f()
8002 * support/regression/Makefile: redo 1.27
8003 * support/regression/generate-cases.py: redo 1.5
8005 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
8007 * support/regression/tests/float.c: workaround 33 bit hex constant
8008 * support/regression/tests/simplefloat.c: fix division for host
8010 2003-04-29 Scott Dattalo <scott AT dattalo.com>
8012 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
8013 that tame's the PIC's over-aggressive optimizer.
8015 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8017 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
8020 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
8022 Initial support for DS80C400. "Hello world" runs on TINIm400
8025 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
8027 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8028 * Some notes on ddd usage added in debugger/README
8029 Martin Helmling adding more features and fixes for ddd GUI debugger.
8030 Code added for nexti, stepi, up, down, and other adjustments.
8032 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
8034 * src/pic/pCodepeep.c non-wildcard asmops are now handled
8035 * src/pic/peeph.def Added two rules to optimize carry manipulation
8036 * src/pic/* removed debug printfs
8038 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
8040 * debugger/mcs51/cmd.c: added header newalloc.h
8042 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
8044 * as/Makefile: new EXEEXT
8045 * as/z80/Makefile: remove trailing slash of BUILDIR
8046 * as/z80/clean.mk: new EXEEXT
8047 * Makefile.common.in: add to CFLAGS (and others), don't replace it
8048 * support/cpp2/Makefile.in: new EXEEXT
8049 * src/pic/glue.c (pic14emitRegularMap): fixed warning
8051 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
8053 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
8054 EXEEXT was introduced to fix all related problems with targets
8055 "clean", "install" and "uninstall"; a couple of further flaws
8056 especially with "clean" have been fixed too
8057 * as/mcs51/Makefile.in
8062 * debugger/mcs51/Makefile.in
8063 * debugger/mcs51/clean.mk
8065 * link/z80/Makefile.in
8068 * packihx/Makefile.in
8070 * sim/ucsim/Makefile
8071 * sim/ucsim/clean.mk
8072 * sim/ucsim/avr.src/Makefile.in
8073 * sim/ucsim/avr.src/clean.mk
8074 * sim/ucsim/s51.src/Makefile.in
8075 * sim/ucsim/s51.src/clean.mk
8076 * sim/ucsim/xa.src/Makefile.in
8077 * sim/ucsim/xa.src/clean.mk
8078 * sim/ucsim/z80.src/Makefile.in
8079 * sim/ucsim/z80.src/clean.mk
8080 * sim/ucsim/main_in.mk
8081 * sim/ucsim/packages_in.mk
8082 * sim/ucsim/gui.src/Makefile.in
8083 * sim/ucsim/gui.src/serio.src/Makefile.in
8084 * sim/ucsim/gui.src/serio.src/clean.mk
8087 * support/cpp2/Makefile.in
8088 * support/cpp2/clean.mk
8089 * support/makebin/Makefile
8090 * support/makebin/clean.mk
8091 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
8092 * doc/sdccman.lyx: --program-suffix no longer needed
8094 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
8096 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
8097 Martin Helmling added support for ddd GUI debugger.
8098 Code added to display assembly, set variables, and other commands
8099 to interface to ddd.
8101 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
8103 * as/Makefile: fix target clean
8104 * as/clean.mk: fix target clean
8105 * as/z80/clean.mk: fix target clean
8107 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
8109 * Makefile.common.in: added AT EXEEXT AT
8110 * configure.in: removed all mingw32 stuff
8111 * configure: rebuilt from configure.in
8112 * doc/sdccman.lyx: updated section "installation"
8113 * support/scripts/sdcc_mingw32: adapted to configure
8114 * support/scripts/sdcc_cygwin_mingw32: added
8116 2003-04-22 Scott Dattalo <scott AT dattalo.com>
8118 * src/pic Added object file support for the PIC port
8119 * src/pic Applied patch from Craig Franklin (this started the object file support)
8120 * src/regression Updated the PIC regression tests for object files
8122 2003-04-20 Borut Razem <borut.razem AT siol.net>
8124 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
8125 lklex.c: In function `getfid':
8126 lklex.c:203: warning: array subscript has type `char'
8127 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
8128 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
8129 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
8130 stack handling macros
8132 2003-04-19 Borut Razem <borut.razem AT siol.net>
8134 * "handling space characters in file path" task:
8135 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
8136 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
8137 * support/Util/MySystem.h: make it self-sufficient
8138 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
8139 src/z80/main.c, sdcc/as/mcs51/lklex.c:
8140 handling space characters in file path
8141 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
8142 (it will be used by assemblers, which have their own includes, e.g. gpasm)
8143 * support/Util/MySystem.c: handling space characters in executable's path
8145 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
8147 * as/z80/Makefile: fix permanent rebuild of z80
8148 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
8149 * support/regression/tests/bitfields.c: added Johan's bitfields.c
8151 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
8153 * src/SDCCopt.c: add special case optimization to replace modulo by
8154 a power of two with a bitwise AND.
8156 2003-04-18 <johan AT balder>
8158 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
8160 2003-04-17 <johan AT balder>
8162 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
8163 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
8165 2003-04-13 Borut Razem <borut.razem AT siol.net>
8167 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
8168 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
8169 fixed mingw problem in adl_NORMALIZE_PATH
8171 2003-04-12 Borut Razem <borut.razem AT siol.net>
8173 * fixed "#pragma SAVE/RESTORE can not be nested":
8174 * src/SDCC.lex: reworked pragma handling functions
8175 * sdcc/src/SDCCglobl.h: reworked stack handling macros
8176 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
8178 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
8180 * src/SDCCutil.c (pathEquivalent): defined but not used
8181 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
8182 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
8183 * configure: rebuilt from configure.in
8184 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8185 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8186 * device/include/Makefile.in: replace sdcc_datadir
8187 * device/lib/Makefile.in: replace sdcc_datadir
8188 * Makefile.common.in: add LDFLAGS from configure
8189 * packihx/Makefile.in: use LDFLAGS
8190 * src/Makefile.in: use LDFLAGS
8191 * support/cpp2/Makefile.in: add LDFLAGS from configure
8192 * support/makebin/Makefile: use LDFLAGS
8193 * .version: bumped version number to 2.3.5
8195 2003-04-12 Borut Razem <borut.razem AT siol.net>
8197 * completed "different paths" task:
8198 * src/SDCCmacro.c: fixed bug in handling quotes
8199 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
8200 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
8202 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
8204 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
8206 2003-04-11 kevin Vigor <kevin AT vigor.nu>
8208 * ds390/gen.c ds390/peeph.def: fix bug 706781
8210 2003-04-11 Borut Razem <borut.razem AT siol.net>
8212 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
8214 2003-04-10 Scott Dattalo <scott AT dattalo.com>
8216 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
8217 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
8218 set - this bit used to not be set...).
8219 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
8220 bad code in PIC Port
8221 * src/regression/and2.c added to test bug 609268
8222 * src/regression/Makefile added and2.c to regression test
8225 2003-04-08 <johan AT CP255758-A>
8227 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
8228 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
8229 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
8231 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
8233 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
8235 * support/cpp2/Makefile.in: fix bug #487815
8236 * configure: rebuilt from configure.in
8237 * Makefile.common.in: docdir changed, new path suffixes
8238 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8239 * sdcc_vc_in.h: reflect changes from sdccconf.h
8240 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
8241 * src/SDCCutil.h: remove BINDIR hack
8242 * doc/sdccman.lyx: update new path hierarchy
8244 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
8246 * src/SDCCpeeph.c: added okToRemoveSLOC test
8248 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
8250 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
8252 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
8254 * src/SDCCpeeph.c: added labelIsReturnOnly test
8255 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
8257 2003-04-05 <johan AT balder>
8259 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
8260 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
8261 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
8262 * src/SDCCast.c: fixed a warning
8263 * src/SDCCast.h: fixed a warning
8264 * src/SDCCicode.c (operandFromAst): fixed a warning
8266 2003-04-04 <johan AT balder>
8268 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
8269 * src/SDCCast.c (decorateType): fixed bug #715076
8270 * src/SDCC.y: fixed bug #702907
8272 2003-04-03 <johan AT balder>
8274 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
8275 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
8276 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
8277 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
8278 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
8280 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
8282 * _decdptr.c: fix return values
8283 * _gptrget.c: fix return values
8284 * _gptrgetc.c: fix return values
8285 * _gptrput.c: fix return values
8286 * _mulint.c: fix return values
8287 * as/z80/Makefile: fix 'make -j' problem
8289 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
8291 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
8292 * configure.in: big cleanup, updated to autoconf 2.5x
8293 * configure: rebuilt from configure.in
8294 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8295 * sdcc_vc_in.h: reflect changes from sdccconf.h
8296 * doc/Makefile: fixed a flaw in "make install"
8298 2003-04-02 <johan AT balder>
8300 * src/ds390/gen.c (genCmp): no comments
8301 * src/mcs51/gen.c (genCmp): no comments
8302 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
8303 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
8305 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
8307 * support/regression/generate-cases.py: place generated file in given sub directory
8308 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
8309 * support/regression/Makefile: improvements for 'make -j';
8310 side effect: it's simpler and faster now
8312 2003-03-31 Borut Razem <borut.razem AT siol.net>
8314 * src/z80/main.c: link-{port} and as-{port} defined without path
8315 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
8317 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
8319 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
8321 2003-03-30 Borut Razem <borut.razem AT siol.net>
8323 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
8324 changed type of list parameter to set
8325 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
8326 * src/port.h: changed type of do_assemble() parameter to set
8327 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
8328 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
8329 definition of "cppoutfilename" macro with NULL value in preProcess()
8330 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
8331 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
8332 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
8333 replaced with set *binPathSet
8334 * shash_add() deallocates the item, if allready exsists, before adding the new one
8335 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
8337 2003-03-30 Scott Dattalo <scott AT dattalo.com>
8339 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
8340 a nested for loop bug in the PIC port
8341 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
8344 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
8346 * support/Util/dbuf.h: remove C++ stuff to make it portable
8348 2003-03-28 Borut Razem <borut.razem AT siol.net>
8350 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
8351 literal strings in stringLiteral()
8352 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
8353 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
8356 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
8358 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
8360 2003-03-26 <johan AT balder>
8362 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
8363 * src/ds390/gen.c (saveRegisters): catched symbol abuse
8364 * src/SDCCast.c (decorateType): fixed " -v < 3"
8366 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8368 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
8369 Added Lenny Story's debug infrastructure changes:
8370 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
8371 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
8372 * src/cdbFile.c: added
8373 * src/SDCCdebug.c: added
8374 * src/SDCCdebug.h: added
8375 * src/SDCCast.c (createFunction)
8376 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
8377 * src/SDCCmain.c (parseCmdLine, main)
8378 * src/SDCCmem.c (redoStackOffsets)
8379 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
8382 * src/avr/gen.c (genAVRCode)
8383 * src/ds390/gen.c (gen390Code)
8384 * src/mcs51/gen.c (gen51Code)
8385 * src/pic/gen.c (genpic14Code)
8386 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
8387 * src/xa51/gen.c (genXA51Code)
8388 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
8390 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8392 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
8393 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
8395 2003-03-22 <johan AT balder>
8397 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
8399 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
8401 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
8402 * doc/cdbfileformat.lyx: added, written by Lenny Story
8403 * doc/Makefile: added cdbfileformat.lyx
8404 * doc/clean.mk: added cdbfileformat.lyx
8406 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
8408 * src/mcs51/peeph.def: fix bug #705773
8410 2003-03-20 <johan AT balder>
8412 An sfr/sbit can have an "at #" AND an initializer
8413 * src/SDCCsymt.c (checkSClass):
8414 * src/SDCCmem.c (allocGlobal):
8415 * src/SDCCmem.c (allocLocal):
8416 * src/SDCCast.c (createBlock):
8418 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
8420 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
8422 2003-03-16 <johan AT balder>
8424 Undid the hackup of const and volatile, the problem is much bigger
8426 * src/SDCCast.c:1.171
8427 * src/SDCCglue.c:1.138
8428 * src/SDCCicode.c:1.146
8429 * src/SDCCsymt.c:1.150
8430 * src/SDCCval.c:1.65
8432 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
8434 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
8435 * src/ds390/gen.c (genAddrOf): fixed bug #704087
8437 2003-03-13 <johan AT balder>
8439 Hackup const and volatile modifiers in type chains a bit:
8441 * src/SDCCast.c:1.169
8442 * src/SDCCglue.c:1.136
8443 * src/SDCCicode.c:1.143
8444 * src/SDCCsymt.c1.146
8445 * src/SDCCsymt.h1.59
8446 * src/SDCCval.c:1.63
8448 2003-03-12 <johan AT balder>
8450 * src/SDCCBBlock.h: more LRH debugging junk
8451 * src/SDCCcflow.h: more LRH debugging junk
8452 * src/SDCCloop.c: more LRH debugging junk
8453 * src/SDCC.y (struct_declaration): fixed bug #697590
8454 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
8455 * src/ds390/gen.c (aopForRemat): fixed bug #700031
8456 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
8458 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8459 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
8460 test function names must now match exactly).
8461 * src/SDCCcse.c: added special case in findCheaperOp to allow
8462 extending a short integer. Makes less awful code for bug 700121 test case.
8464 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8466 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
8467 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
8469 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8471 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
8472 actually called (operandsNotEqual() was called for all
8473 operandsNotEqualX tests).
8475 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8477 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
8478 with shorter literals. Fixes bug 700121.
8480 2003-03-11 <johan AT balder>
8482 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
8484 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
8486 * src/SDCCloop.c (mergeRegions): an evil beast is dead
8487 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
8489 2003-03-10 Borut Razem <borut.razem AT siol.net>
8491 * src/SDCCmain.c: pipe preprocessor's output
8492 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8493 * sdcc_vc_in.h: define pclose as _pclose for WIN32
8494 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8495 which closes all pipes in pipeSet set
8496 * src/SDCCset.c: free deleted item in function deleteSetItem()
8497 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8498 moved from z80 to src subproject
8499 * .version: increased version number to 2.3.4
8501 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
8503 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
8504 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
8505 * support/regression/ports/xa51/spec.mk: fix typo
8507 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
8509 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
8511 2003-03-09 Borut Razem <borut.razem AT siol.net>
8513 * src/SDCCmain.c: pipe preprocessor's output
8514 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8515 * sdcc_vc_in.h: define pclose as _pclose for WIN32
8516 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8517 which closes all pipes in pipeSet set
8518 * src/SDCCset.c: free deleted item in function deleteSetItem()
8519 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8520 moved from z80 to src subproject
8522 2003-03-09 Borut Razem <borut.razem AT siol.net>
8524 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
8525 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
8526 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
8527 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
8528 * src/SDCCglobl.h: unification of WIN32 native definitions
8530 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8532 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
8534 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
8536 * src/configure.in: check for endianess (even while cross-compiling)
8537 * src/configure: check for endianess (even while cross-compiling)
8538 * src/configure_in.h: check for endianess (even while cross-compiling)
8539 * src/avr/gen.c: remove old endianess stuff
8540 * src/mcs51/gen.c: remove old endianess stuff
8541 * src/ds390/gen.c: remove old endianess stuff
8542 * src/pic/gen.c: remove old endianess stuff
8543 * src/pic/genarith.c: remove old endianess stuff
8544 * src/pic/glue.c: fix endianess check
8545 * src/pic16/gen.c: remove old endianess stuff
8546 * src/pic16/genarith.c: remove old endianess stuff
8547 * src/pic16/glue.c: fix endianess check
8548 * src/xa51/gen.c: remove old endianess stuff
8549 * src/z80/gen.c: fix endianess check
8550 * src/SDCCglue.c: fix endianess check
8551 * src/ds390/peeph.def: fix bug 700036
8553 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
8555 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
8556 * src/configure: find appropriate data-types on host for SDCC's int and long
8557 * src/configure.in: find appropriate data-types on host for SDCC's int and long
8558 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
8559 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
8561 2003-03-07 <johan AT balder>
8564 some minor cleanups before the big shot
8565 OP_DEFS and OP_USES now use Kevin's protection
8566 new option --nolabelopt
8577 * src/ds390/ralloc.c:
8578 * src/mcs51/ralloc.c:
8580 * src/xa51/ralloc.c:
8583 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
8585 * src/pic/pcode.c (get_op): fix 64 bit warnings
8586 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
8587 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
8588 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
8589 * support/regression/tests/malloc.c: fix 64 bit warnings
8591 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
8593 * src/mcs51/gen.c (genMinus): fixed bug 696436
8595 2003-03-02 Borut Razem <borut.razem AT siol.net>
8597 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
8599 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
8601 * configure.in: test for mkstemp
8602 * sdccconf_in.h: add HAVE_MKSTEMP
8604 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
8606 * device/include/ctype.h: removed warning while using --stack-auto
8607 * device/include/malloc.h: removed warning while using --stack-auto
8608 * device/include/string.h: removed warning while using --stack-auto
8610 2003-02-23 Borut Razem <borut.razem AT siol.net>
8612 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
8613 because NDEBUG is defined (see man assert)
8614 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
8616 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8618 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
8619 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
8621 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8623 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
8624 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
8626 2003-02-18 <johan AT balder>
8628 * as/mcs51/asmain.c (asmbl): module can start with a digit
8629 * as/z80/asmain.c (asmbl): module can start with a digit
8631 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
8633 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
8634 * src/asm.c: fix pipe() for Mingw32
8636 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
8638 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
8639 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
8640 make -V work again; --c1mode reads now from stdin
8641 * doc/sdccman.lyx: added --c1mode
8642 * support/Util/SDCCerr.c: new messages for c1 mode
8643 * support/Util/SDCCerr.h: new messages for c1 mode
8644 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
8646 2003-02-15 <johan AT balder>
8648 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
8650 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
8652 * doc/sdccman.lyx: Environment variables, -o and other minor things
8654 2003-02-14 <johan AT balder>
8656 * src/xa51/main.c: before anyone really tries to use it :)
8658 * Install doc's in share/sdcc/doc
8659 * removed some obsolete files
8660 * Do a proper make distclean and uninstall
8661 M Makefile.common.in
8664 M device/include/Makefile.in
8665 M device/lib/Makefile.in
8668 M sim/ucsim/doc/Makefile.in
8671 R src/xa51/peeph.rul
8672 M support/cpp2/Makefile.in
8673 M support/makebin/Makefile
8676 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
8678 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
8680 2003-02-10 Borut Razem <borut.razem AT siol.net>
8682 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
8683 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
8684 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
8685 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
8686 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
8687 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
8688 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
8689 src/z80/Makefile.bcc: Borland Makefile cleanup
8690 * as/z80/Makefile.bcc: Added Borland Makefile
8691 * support/cpp2/borland.h: Removed
8693 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
8695 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
8696 * src/SDCC.lex: new pragma NOIV
8697 * src/SDCCglobl.h: new pragma NOIV
8698 * src/SDCCmem.c: new pragma NOIV
8700 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
8702 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
8704 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
8706 * src/SDCCmain.c: signal handling is switched off by --debug
8707 * doc/Makefile: small fix for install; use clean.mk again
8708 * doc/clean.mk: clean *.pdf and *.html too
8710 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
8712 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
8713 * device/lib/printfl.c: fix a ds390 bug by making it portable
8714 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
8715 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
8716 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
8717 * debugger/mcs51/cmd.c: converted multi-line string literals
8718 * sim/ucsim/globals.cc: converted multi-line string literals
8719 * src/SDCCmain.c: introduced signal handler to remove temp files
8720 * doc/Makefile: small tweaks, implement clean
8721 * doc: removed generated files
8723 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8725 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
8726 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
8727 Address Record is not correctly generated for DS390."
8729 2003-02-02 Borut Razem <borut.razem AT siol.net>
8731 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
8732 * as/mcs51/asm.h: fixed compilation with Borland C
8733 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
8734 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
8735 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
8736 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
8737 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
8738 src/z80/Makefile.bcc: delete $(LIB) only if exist
8739 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
8741 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
8743 * device/include/malloc.h: introduced NULL
8744 * device/include/string.h: introduced NULL
8745 * device/include/stdlib.h: introduced NULL
8746 * device/lib/_memcpy.c: removed NULL
8747 * device/lib/_strcat.c: removed NULL
8748 * device/lib/_strchr.c: removed NULL
8749 * device/lib/_strcmp.c: removed NULL
8750 * device/lib/_strcpy.c: removed NULL
8751 * device/lib/_strcspn.c: removed NULL
8752 * device/lib/_strlen.c: removed NULL
8753 * device/lib/_strncat.c: removed NULL
8754 * device/lib/_strncmp.c: removed NULL
8755 * device/lib/_strncpy.c: removed NULL
8756 * device/lib/_strpbrk.c: removed NULL
8757 * device/lib/_strrchr.c: removed NULL
8758 * device/lib/_strspn.c: removed NULL
8759 * device/lib/_strstr.c: removed NULL
8760 * device/lib/_strtok.c: removed NULL
8761 * device/lib/malloc.c: removed NULL, include own header
8763 2003-02-02 <johan AT balder>
8765 * 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
8766 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
8767 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
8768 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
8769 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
8770 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
8772 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8774 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
8777 2003-02-01 <johan AT balder>
8779 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
8781 2003-01-31 <johan AT CP255758-A>
8783 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
8785 2003-01-30 <johan AT balder>
8787 * src/SDCCBBlock.c: automatic bug detection
8788 * src/SDCCicode.c: automatic bug detection
8790 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8792 * src/SDCCglobl.h: now --xram-size 0 works
8793 * src/SDCCmain.c: now --xram-size 0 works
8795 2003-01-29 <johan AT balder>
8797 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
8799 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8801 * as/mcs51/aslink.h: Added options --xram-size and --code-size
8802 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
8803 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
8804 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
8805 * src/SDCCglobl.h: Added options --xram-size and --code-size
8806 * src/SDCCmain.c: Added options --xram-size and --code-size
8808 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
8810 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
8811 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
8813 2003-01-27 <johan AT balder>
8815 * src/SDCC.y: fixed bug #613764
8817 2003-01-26 <johan AT balder>
8819 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
8820 * src/SDCCsymt.h: fixed bug #673374
8821 * src/SDCCglue.c: fixed bug #661910
8822 * src/SDCCast.c: fixed bug #458099 and 673374
8824 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
8826 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
8827 * as/mcs51/strcmpi.h: added
8828 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
8829 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
8830 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
8831 * as/mcs51/assym.c: strcmpi -> as_strcmpi
8832 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
8833 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
8834 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
8835 * as/mcs51/Makefile.aslink: new module strcmpi
8836 * as/mcs51/Makefile.asx8051: new module strcmpi
8837 * as/mcs51/Makefil.bcc: new module strcmpi
8838 * as/mcs51/Makefile.in: new module strcmpi
8839 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
8841 2003-01-26 <johan AT balder>
8843 * src/SDCCglue.c: reverted back to 1.124
8844 * src/SDCCast.c: reverted back to 1.156
8845 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
8847 2003-01-25 <johan AT balder>
8849 * src/SDCCglue.c: A better fix for bug #661910
8850 * src/SDCCast.c: A better fix for bug #661910
8851 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
8853 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
8855 * src/Makefile.in: remove spawn.o
8856 * src/SDCCmain.c: remove spawn.h
8857 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
8858 * src/spawn.c: removed
8859 * src/spawn.h: removed
8860 * support/regression/ports/ds390/spec.mk: link with -r
8862 2003-01-24 <johan AT CP255758-A>
8864 * src/ds390/gen.c (aopOp): fixed bug #667458
8865 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
8866 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
8867 (createIvalCharPtr): an ival doesn't always have a storage class anymore
8869 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
8871 * src/mcs51/peeph.def: better assembler identation by Frieder
8872 * src/mcs51/gen.c: better assembler identation by Frieder
8874 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
8876 * as/z80/string.h: removed for gcc 3.2
8877 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
8878 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
8880 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
8882 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
8883 * src/SDCCpeeph.c (replaceRule): fix bug #663503
8884 * support/regression/Makefile: separate temp files for ports
8885 * support/regression/generate-cases.py: separate temp files for ports
8886 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8887 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8889 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
8891 * moved tinitalk to device/examples/ds390
8893 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
8895 * as/mcs51/lkmem.c: rflag is for DS390
8896 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
8897 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
8898 (linkEdit): move mem- and map-files the same way as ihx-files
8899 * src/z80/main.c (_setDefaultOptions): removed --generic
8900 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
8901 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
8902 * src/pic/glue.c (picglue): --c1mode works again
8903 * src/pic16/glue.c (pic16glue): --c1mode works again
8904 * src/asm.c (printCLine): fix #660034
8906 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
8908 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
8909 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
8910 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
8911 * as/mcs51/lkmem (summary): better fix for sp problem
8912 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
8913 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
8914 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
8915 remove --stack-after-data
8917 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8919 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
8920 * src/SDCCutil.c (join): ugly bug: missing '\0'
8921 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
8923 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
8925 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
8927 * src/pic/main.c (_asmCmd): gpasm supports -o
8928 * src/z80/main.c: more general macros
8929 * device/lib/Makefile.in: remove intermediate files
8931 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
8933 * .version: Bumped version number to 2.3.3
8934 * src/SDCCBBlock.c: new option -o
8935 * src/SDCCglobl.h: new option -o
8936 * src/SDCCglue.c: new option -o
8937 * src/SDCCmain.c: new option -o
8938 * src/asm.c: new option -o
8939 * src/ds390/main.c: new option -o
8940 * src/pic/glue.c: new option -o
8941 * src/pic/pcode.c: new option -o
8942 * src/pic/ralloc.c: new option -o
8943 * src/pic16/glue.c: new option -o
8944 * src/pic16/pcode.c: new option -o
8945 * src/pic16/ralloc.c: new option -o
8946 * src/z80/main.c: new option -o
8947 * device/lib/Makefile.in: use -o
8948 * support/regression/ports/ds390/spec.mk: use -o
8949 * support/regression/ports/gbz80/spec.mk: use -o
8950 * support/regression/ports/mcs51/spec.mk: use -o
8951 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
8952 * support/regression/ports/z80/spec.mk: use -o
8953 * support/regression/ports/ucz80/spec.mk: use -o
8954 * support/regression/ports/xa51/spec.mk: use -o
8955 * support/regression/fwk/lib/timeout.c: fix usage string
8957 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
8958 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
8960 2003-01-07 <johan AT balder>
8962 * src/SDCCast.c (decorateType): fixed bug #600035
8964 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
8965 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
8966 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
8967 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
8968 * src/pic/pcode.c: outcommented unused variable to remove warnings
8969 * src/pic/ralloc.c: outcommented unused variable to remove warnings
8971 2003-01-06 <karl AT turbobit.com>
8972 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
8975 2003-01-06 <johan AT balder>
8977 * src/SDCCicode.c: fixed array add
8979 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
8980 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
8981 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
8983 2003-01-04 <johan AT balder>
8985 * src/SDCCval.c (getNelements): fixed the initialized array of structures
8987 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8988 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
8990 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
8991 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
8992 * support/regression/tests/bug-524697.c: fit mem usage into 8032
8994 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
8995 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
8997 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
8998 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
9000 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
9001 * src/mcs51/main.c: removed {bindir}{sep} from aslink
9003 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9005 * in \sdcc\as\mcs51\ changed these files in order to create an
9006 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
9007 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
9008 following files to include the previous two files: aslink.dsp,
9009 Makefile.aslink, Makefile.bcc, and Makefile.in.
9011 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
9012 .adb instead of .cdb
9014 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9016 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
9017 value from option --iram-size.
9019 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9021 * \sdcc\as\mcs51\lklist.c: added boundary check before using
9024 2002-09-18 <wiml AT hhhh.org>
9026 * SDCClrange.h: exposed setFromRange() and setToRange()
9027 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
9028 packRegsForAccUse() (bug 542397)
9029 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
9030 multiple times and emitting the fetch operations more than once
9031 added aopGetUsesAcc() function to allow binary operators to
9032 fetch their operands in the correct order; made genMinus() emit
9033 compact code for X = LITERAL - Y
9035 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9036 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
9037 sprintf() in line 1267.
9039 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9040 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
9043 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9044 Changes to aslink (All the changes are marked with 'JCF'):
9046 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
9049 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
9050 area BSEG. Also moves, if possible, the DATA area down into the internal
9051 ram so more space is available.
9053 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
9056 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
9057 not bytes. Function summary() which creates a memory usage summary
9058 file with extension .mem. Reports of overlaping stack and small stack
9059 size. If the space for the stack is less than 16 bytes aslink trows a
9062 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
9063 the 8051. Option 'y' for memory summary output file.
9065 Changes to sdcc (All the changes are marked with 'JCF'):
9067 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
9069 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
9070 overlaying area for it (uses RegBankUsed[4]).
9072 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
9073 bank zero as used by default. By default aslink locates the stack
9074 (equivalent to --stack-after-data). Pass option 'y' to aslink for
9075 the creation of the .mem file. Delegates the allocation of data area
9076 to aslink (it is not longer 0x30 by default). If --stack-loc passes
9077 the begining of the stack area to aslink.
9079 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
9080 glue() in SDCCglue.c creates an area for it.
9082 2002-09-03 Borut Razem <borut.razem AT siol.net>
9083 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
9084 sdcc/src/pic/glue.c:
9085 introduced atexit() handler for teporay files removal in case of
9086 errors, assertions, ...
9088 2002-08-29 Borut Razem <borut.razem AT siol.net>
9089 * sdcc/support/cpp2/auto-host_vc_in.h:
9090 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
9091 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
9092 Maybe there is a similar problem with BORLANDC? It should be checked!
9094 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
9095 corrected improper use of assert: the assignment to clr variable was done inside the assert.
9096 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
9097 was not executed, and the compiler (cl) launched a warning:
9098 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
9100 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
9101 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
9103 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
9104 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
9106 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9107 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
9108 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
9109 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9110 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
9111 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
9112 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
9113 - added Release configuration in VS projects
9114 - review of compiler an linker options
9115 - VC .exe files are generated in bin_vc directory, not to interfere
9116 with binaries generated from other projects (cygwin, mingw, bcc ...)
9118 * sdcc/src/yacc.dsp: added
9120 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
9121 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
9122 and insert the version number definitions from .version
9124 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
9126 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
9127 added - genarate auto-host.h using auto-host_vc_in.h as template
9130 removed from CVS, generated automatically
9132 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
9133 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
9135 2002-08-11 Borut Razem <borut.razem AT siol.net>
9136 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
9138 2002-08-10 Borut Razem <borut.razem AT siol.net>
9139 * src/SDCCmain.c (main):
9140 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
9141 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
9142 The consequence was that some temporary files were not removed.
9145 unification of code in functions tempfilename() and tempfile():
9146 function tempnam() is defined in Visual Studio 6.0 and .NET
9148 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
9150 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9151 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
9152 - removed compiler command line option /WX: Treats all warnings as errors
9153 - update a list of source files, included into the project
9155 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9156 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
9157 changed project type to Generic Project so that can be correcly converted to VS.NET project
9159 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
9161 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
9163 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
9165 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
9166 added return 0 statements after assert() to make compiler happy
9168 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
9169 added newline in the def file to keep MSC compiler satisfied
9171 * sdcc/src/z80/gen.c:
9172 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
9173 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
9174 - solved MSC error in function aopDump()
9176 * sdcc_vc.h: define PREFIX as "\\sdcc"
9178 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
9179 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
9181 2002-06-22 Scott Dattalo <scott AT dattalo.com>
9182 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
9183 - Rewrote the register banking algorithm.
9184 - Added pCode live-range analysis to registers (for now, only non-used and
9185 singly-used registers optimized away)
9187 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
9189 * 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.
9191 2002-05-10 Scott Dattalo <scott AT dattalo.com>
9192 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
9194 2002-04-22 Michael Hope <michaelh AT vroom>
9196 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
9198 * configure.in (DD_COPT): Added include support required for gbdk.
9200 * .version: Bumped version number just to increase it.
9202 * src/SDCCmain.c: Added -nostdinc to the default options.
9204 2002-04-15 Michael Hope <michaelh AT vroom>
9206 * device/lib/z80/printf.c (sprintf): Added.
9208 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
9210 * src/z80/peeph.def: Added transpose redundent load rule.
9212 * src/z80/main.c: Added force callee saves for jaune.
9214 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
9216 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
9218 2002-03-28 Johan Knol <johan AT balder>
9220 * src/SDCCval.c: fixed bug #532436
9222 2002-03-14 Scott Dattalo <scott AT dattalo.com>
9224 Added "char *Processor" field to the port structure.
9227 Added -p option. Allows port dependent processor to be specified.
9230 Initialized the new field char *Processor field to NULL in all ports
9233 Compiler generated registers for interrupt context saving
9234 were not getting allocated.
9236 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
9239 Fixed left shift. Will promote the left side of a left shift
9240 if a) left shifting more than size of operand or b) when assigned
9241 to something size > size of left side
9243 2002-03-14 Scott Dattalo <scott AT dattalo.com>
9245 tons of changes. Register allocation has been
9246 rewritten. Added customization for the various PICs. Flow
9247 analysis is restructured. ...
9253 Added. device.c is a PIC port hack to accomodate variations
9256 2002-03-13 Michael Hope <michaelh AT vroom>
9258 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
9260 2002-03-04 johanknol <johanknol AT manik>
9262 * /src/SDCCval.c: fixed
9264 const unsigned char arr[][2] = { { 0, 1 } };
9265 t18.c:1: error: Initializer element is not constant
9267 2002-03-04 bela <bela AT manik>
9269 * /device/include/mcs51reg.h:
9270 ds89c420 register definition update
9272 2002-03-03 <johan AT FRIJA>
9274 * support/Util/SDCCerr.c: did something, but don't no why anymore
9276 * support/regression/tests/bug-524691.c: made it a little less shy
9278 * src/SDCCast.c (decorateType): fixed bug #524697
9280 * src/SDCCast.c: made some lineno improvements
9282 * src/SDCCval.c (getNelements): changed warning to error
9284 * src/SDCCglue.c (printIvalArray): changed warning to error
9286 * src/SDCCicode.c: fixed a warning for mingw
9288 * src/SDCCast.c (decorateType): fixed the << promotion for ops
9290 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
9292 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
9294 * src/ds390/peeph.def:
9295 Added some more peephole rules
9297 * src/ds390/gen.c: Various fixes & enhancements
9299 * src/SDCClrange.c, src/SDCClrange.h:
9300 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
9302 * src/ds390/ralloc.c:
9303 various fixes & enhancements (ds390) specific
9305 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
9306 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
9309 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
9311 2002-03-02 <johan AT FRIJA>
9313 * src/SDCCast.c (decorateType): fixed bug #524708
9315 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
9317 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
9319 2002-03-01 Michael Hope <michaelh AT vroom>
9321 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
9323 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
9325 2002-03-01 <johan AT FRIJA>
9327 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
9329 * src/SDCCast.c (decorateType): fixed bug #524209
9331 * src/SDCCval.c (valNot): fixed bug #524195
9333 2002-02-26 <johan AT balder>
9335 * src/xa51/gen.c: fixed a warning
9337 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
9339 * src/SDCCast.c (decorateType): fixed bug #522534
9341 2002-02-23 <johan AT balder>
9343 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
9345 2002-02-22 <johan AT balder>
9347 * src/SDCCast.c: fixed bug #514865
9349 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
9351 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
9353 * sdcc/src/SDCCloop.c:
9354 Previous fix was not good. basic blocks that have "break" or "return" are
9355 not really partof a loop , but live ranges used in these blocks should
9356 be live thru the entire loop, so set partOfLoop but don't add them to
9359 2002-02-21 <johan AT FRIJA>
9361 * src/SDCCcse.c: fixed bug #514308
9363 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
9366 Fixed BUG #519583. If a conditional block ended in a return/break
9367 statement inside a loop, it was not being considered part of the loop.
9369 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
9371 2002-02-10 Karl Bongers <karl AT turbobit.com>
9374 Fixed up SDCDB debugger somewhat. Updated debugger/README
9375 with lots of comments and notes.
9377 * device/examples/test2.c:
9378 Fix bug, "red" variable not being initialized(compiler complained).
9380 * device/examples/Makefile, examples/test3.c:
9381 Add Makefile in device/examples folder, compiles test3.c
9382 for use as a multiple module SDCDB test case.
9384 * sim/ucsim/cmd.src/cmdset.cc:
9385 Took out debug printfs in ucsim "next" command.
9388 Karl and Johan start ucsim XA support. Most dissassembly working,
9389 about 75% emulation done(plenty of work remaining).
9391 * sim/ucsim/z80.src:
9392 Add Z80 support to ucsim, add test-ucz80 regression test,
9393 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
9394 Notice z80 compiler fails on examples/test3.c/crc code.
9396 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
9398 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
9399 Added support for --parms-in-bank1
9401 * src/ds390/peeph.def:
9402 added a few more peephole optimzations
9405 1) added __builtin_inp & __builtin_outp used to read in data of given length
9406 from a memory mapped port
9407 2) added __builtin_memcmp
9408 3) added __builtin_swapw swap bytes of a short
9410 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
9411 1) handle multiple send & receives from register bank1
9412 2) ralloc can now allocate DPTR1 to some liveRanges
9414 * src/SDCCsymt.c, src/SDCCsymt.h:
9415 changes to handle multiple sends & receives
9418 added some pointer arithmetic optimization
9421 added some pointer arithmetic optimizations but not stable yet so not
9422 called from anywhere (will get this working shortly)
9424 * src/SDCCopt.c: fixed for multiple sends & receives
9427 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
9428 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
9429 set preprocessor defines (depending on options)
9431 * src/SDCCicode.c, src/SDCCicode.h:
9432 changes made to handle multiple sends & receives
9435 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
9437 * src/SDCCcse.c, src/SDCCcse.h:
9438 added function findbackward def (to be used in upcoming optimization)
9440 * src/SDCCcflow.c, src/SDCCcflow.h:
9441 added function returnAtEnd - to determine if a basic block terminates with
9444 * src/SDCCast.c, src/SDCCast.h:
9445 added option parms-in-bank1
9447 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
9448 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
9449 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
9450 adjusted for --parms-in-bank1 option
9452 * device/include/string.h:
9453 donot redefine "reentrant" keyword
9455 * device/include/ds80c390.h: Added some more SFRs
9457 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
9459 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
9461 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
9463 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
9465 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
9467 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
9469 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
9471 * Added --xram-movc option
9473 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
9475 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
9477 2002-01-11 Johan Knol
9479 * Added math lib of Jesus Calvino-Fraga
9481 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
9483 * src/SDCCmain.c (processFile): fix processing of ../../src.c
9484 * support/regression/Makefile: new target test-mcs51-stack-auto
9485 * support/regression/ports/mcs51-stack-auto/spec.mk: added
9487 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
9489 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
9491 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
9493 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
9495 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
9497 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
9499 * src/SDCCglue.h: add definition for printIvalChar()
9501 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
9503 * src/SDCCast.c: fix #498138 by Johan
9505 * src/SDCCglue.c: fix #498138 by Johan
9507 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
9509 * support/regression/Makefile: fix clean
9511 * support/regression/ports/ds390/support.c: fix transmission of last character
9513 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
9515 * /sdcc/src/ds390/gen.c:
9516 a) improved computing address of stack variable
9517 b) took out some #if 0 code
9518 c) improved parmBytes adjustment
9519 d) improved genPlusIncr & genMinusIncr
9520 e) genCmp could generate bad code (when left assigned to DPTR)
9521 f) Fixed bug in hasInc
9523 * /sdcc/src/ds390/ralloc.c:
9524 a) packRegsForSupport could mess up live information (Fixed)
9525 b) packRegsDPTRuse could be incorrect for left & right shift
9527 * /sdcc/src/mcs51/ralloc.c:
9528 packRegsForSupport could mess up the live information (Fixed)
9530 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
9532 * /sdcc/src/SDCCast.c:
9533 can reverse a loop even if function call is present as long
9534 as the loop control variable is local & is not passed as parameter
9536 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
9538 * /sdcc/ChangeLog: *** empty log message ***
9540 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
9541 More builtin function additions for TININative
9543 * /sdcc/src/ds390/ralloc.c:
9544 Had broken the regression testsuite
9546 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
9548 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
9549 Added funcattr hasStackParms will be set for reentrant functions when there
9550 are paramteres on the stack, this helps in minimizing frame pointer generation
9551 typeFromStr can handle function pointers now
9553 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
9554 *** empty log message ***
9556 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
9558 * /src/ds390/gen.c, /src/ds390/main.c:
9559 More builtin function additions for TININative
9561 * /src/ds390/ralloc.c:
9562 Had broken the regression testsuite
9564 * /src/SDCCast.c: Fixed a bug in dumptree
9566 * /src/SDCCsymt.c, /src/SDCCsymt.h:
9567 Added funcattr hasStackParms will be set for reentrant functions when there
9568 are paramteres on the stack, this helps in minimizing frame pointer generation
9569 typeFromStr can handle function pointers now
9571 * /doc/builtins.txt, /doc/TININative.txt:
9572 *** empty log message ***
9575 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
9577 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
9578 ALPHA version for -mTININative
9580 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
9581 updated to reflect changes in the port structure
9584 added function do_assemble (similar to do_link) if non-null this function
9585 will be called to do assembly (-mTININative) requires a multi command
9587 added function genAssemblerEnd will be called to generate assembler Epilogue
9590 added _JavaNative to debug info printing
9592 * /src/SDCCmain.c: added option --tini-libid
9593 added port->do_assemble function (-mTININative) has a multi command assemble
9595 * /src/SDCCglue.c: Disabled "constExpr" check
9596 added port->genAssemblerEnd function
9598 * /src/SDCCglobl.h: Added option --tini-libid value
9601 tookout optimizeCompare from the header (has no external references)
9603 * /src/SDCCast.c: made one more function "static"
9605 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
9607 * src/z80/mappings.i: Added z80asm support.
9609 * src/z80/main.c: Added z80asm support on --asm=z80asm
9611 * src/z80/gen.c: Fixed asm portability issues.
9613 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
9615 * src/SDCCglue.c (printExterns): Added global/extern split.
9617 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
9619 * support/regression/Makefile: added test for mcs51 model large
9621 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
9623 * support/regression/ports/gbz80/spec.mk: added -mgbz80
9625 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
9627 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
9629 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
9631 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
9633 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
9635 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
9637 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
9639 * support/regression/tests/simplefloat.c: Port to mcs51.
9641 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
9642 * support/regression/tests/bug-485362.c: Added.
9644 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
9646 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
9648 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
9650 * src/z80/gen.c (aopDump): Added a dump function.
9652 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
9653 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
9655 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
9657 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
9659 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
9661 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
9663 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
9665 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
9667 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
9669 * support/regression/ports/ds390/support.c: Use tinibios.
9671 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
9673 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
9675 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
9676 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
9678 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
9680 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
9682 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
9684 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
9686 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
9687 (packRegsForIYUse): Created and optimised.
9689 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
9691 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
9692 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
9694 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
9696 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
9698 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
9700 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
9702 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
9704 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
9706 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
9708 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
9710 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
9712 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
9714 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
9716 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
9717 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
9718 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
9720 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
9722 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
9723 (genNotFloat): Added.
9724 (genUminusFloat): Added.
9726 * device/lib/z80/Makefile: Added floating pt stubs.
9728 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
9730 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
9732 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
9734 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
9736 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
9738 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
9740 * sdcc/support/regression/Makefile: Add port ds390.
9742 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
9744 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
9746 * sdcc/support/regression/ports/ds390/spec.mk: Added.
9748 * sdcc/support/regression/ports/ds390/support.c: Added.
9750 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
9752 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
9754 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
9756 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
9758 * device/include/malloc.h: Added z80 and gbz80 support.
9760 * device/lib/gbz80/heap.s: Added.
9762 * device/lib/z80/heap.s: Added.
9764 * device/lib/malloc.c: Added z80 and gbz80 support.
9766 * support/regression/tests/malloc.c (testMalloc): Added.
9768 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
9770 * support/regression/tests/bug-478094.c: Added.
9772 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
9774 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
9776 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
9778 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
9780 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
9782 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
9784 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
9786 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
9788 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
9790 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
9792 * support/regression/tests/bug-477927.c: Added.
9794 * src/z80/peeph.def: Added minor rules.
9796 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
9798 * src/z80/peeph.def: Added jump optimisation modification.
9800 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
9802 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
9804 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
9806 * support/regression/tests/funptrs.c: Added.
9808 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
9810 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
9812 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
9814 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
9816 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
9818 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
9819 (movLeft2ResultLong): Created.
9821 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
9822 (joinPushes): Added. Joins two char pushes into a word push.
9824 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
9826 * support/cpp2/Makefile.in (install): Added creation of dest dir.
9828 * support/makebin/Makefile (install): Added creation of dest dir.
9830 2001-10-24 Karl Bongers <karl AT turbobit.com>
9832 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
9834 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
9836 * src/z80/ralloc.c: Turned off faulty pack for one use.
9838 * src/z80/peeph-gbz80.def: Removed redundent restart options.
9840 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
9842 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
9844 * support/regression/Makefile: Improved clean
9846 * support/regression/ports/gbz80/spec.mk: Added clean
9848 * support/regression/ports/host/spec.mk: Added clean
9850 * support/regression/ports/z80/spec.mk: Added clean
9852 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
9854 * support/regression/ports/mcs51/timeout.c: little improvements
9856 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
9858 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
9860 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
9862 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
9864 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
9866 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
9868 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
9870 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
9871 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
9873 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
9875 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
9877 * src/mcs51/main.c (_linkCmd): Added bin path to command.
9879 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
9881 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
9883 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
9885 * support/regression/tests/longor.c: Added.
9887 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
9889 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
9891 * as/mcs51/aslink.h: define PATH_MAX
9893 * as/mcs51/asm.h: define PATH_MAX
9895 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
9897 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
9899 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
9901 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
9903 * src/SDCCglobl.h: define PATH_MAX
9905 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
9907 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
9909 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
9911 * src/z80/gen.c (gencjneshort): Fixed
9913 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
9915 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
9917 * support/regression/tests/bug-469671.c: Added.
9919 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
9921 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
9923 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
9925 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
9927 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
9929 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
9931 * src/device/lib/_mulint.c : removed hint: nooverlay bug
9933 * src/device/lib/_mullong.c : removed hint: nooverlay bug
9935 * src/device/lib/_divuint.c : removed hint: nooverlay bug
9937 * src/device/lib/_divulong.c: removed hint: nooverlay bug
9939 * src/device/lib/_moduint.c : removed hint: nooverlay bug
9941 * src/device/lib/_modulong.c: removed hint: nooverlay bug
9943 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
9945 * 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.
9947 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
9949 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
9951 2001-10-07 <johan AT FRIJA>
9953 * device/lib/gets.c (gets): fixed the return value.
9955 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
9956 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
9958 * 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.
9960 * 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.
9962 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
9964 * src/pic/gen.c: Removed Safe_strdup.
9966 * configure.in: Added option to enable libgc support.
9968 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
9969 (bitVectUnion): Optimised.
9970 (bitVectIntersect): Optimised.
9971 (bitVectBitsInCommon): Optimised.
9972 (bitVectCplAnd): Optimised.
9974 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
9976 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9978 * src/SDCCmain.c: distinguish between assembler debug and plain options
9980 * src/avr/main.c: remove standard assembler options
9982 * src/ds390/main.c: remove standard assembler options
9984 * src/mcs51/main.c: remove standard assembler options
9986 * src/port.h: removed "PENDING" comment
9988 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9990 * src/device/lib/_mulint.c : new, with assember functions
9992 * src/device/lib/_mullong.c : new, with assember functions
9994 * src/device/lib/_divuint.c : with assember functions
9996 * src/device/lib/_divsint.c : with assember functions
9998 * src/device/lib/_divulong.c: with assember functions
10000 * src/device/lib/_divslong.c: with assember functions
10002 * src/device/lib/_moduint.c : with assember functions
10004 * src/device/lib/_modsint.c : with assember functions
10006 * src/device/lib/_modulong.c: with assember functions
10008 * src/device/lib/_modslong.c: with assember functions
10010 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
10012 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
10014 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
10015 replaced _mululong.c and _mulslong.c by _mullong.c
10017 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10019 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
10021 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10023 * src/SDCCglue.c: test, if win32api is available for MINGW
10025 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10027 * src/SDCCsymt.c: no more _modifier in printTypeChain()
10028 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
10029 * support/regression/ports/gbz80/spec.mk: removed GENERIC
10030 * support/regression/ports/host/spec.mk: removed GENERIC
10031 * support/regression/ports/mcs51/spec.mk: removed GENERIC
10032 * support/regression/ports/z80/spec.mk: removed GENERIC
10034 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
10036 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
10038 * support/regression/tests/bug-467035.c: Created.
10040 2001-10-01 <johan AT FRIJA>
10042 * src/SDCC.y: fixed bug #466586 part 1
10044 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
10046 * SDCCicode.c: z80 has no generic pointers
10047 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
10049 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
10051 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
10053 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
10055 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
10057 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
10059 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
10061 * configure.in: Fixed up so that ucsim is only configured once.
10063 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
10065 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
10066 (getPathDifference): As above.
10068 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
10070 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
10072 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
10073 * .version: Updated to 2.3.1
10075 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
10076 Added copyright header.
10078 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
10079 (assemble): Added support for macro based assembler commands.
10080 (linkEdit): Added support for macro based linker commands.
10081 (preProcess): Changed the pre-processor to use macros.
10082 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
10083 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
10085 * device/lib/z80/crt0.s: Added module name for debugging.
10087 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
10089 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10091 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
10093 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
10095 * src/Makefile.in: Added SDCCmacro and SDCCutil
10097 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
10099 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10101 2001-09-16 <johan AT FRIJA>
10103 * 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.
10105 2001-09-15 <johan AT FRIJA>
10107 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
10108 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
10110 2001-09-11 <johan AT FRIJA>
10112 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
10114 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
10116 * support/regression/tests/bug-460444.c: Added test case.
10118 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
10119 (genCast): Added justification for all of the asserts.
10121 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
10123 * support/regression/support.c: _xdata replaced by xdata
10125 * support/regression/spec.mk: removed _generic
10127 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
10129 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
10131 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
10132 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
10134 * src/z80/peeph.def: Added a rule to optimise shift then compare.
10136 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
10138 * support/regression/tests/bug-460010.c: Added test case.
10140 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
10142 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
10144 * support/regression/Makefile: inter-port-clean adjusted for mcs51
10146 * support/regression/testfwk.c: removed workaround for bug #436344
10148 * support/regression/tests/bp.c: use less memory with mcs51
10150 * support/regression/tests/bug-441448.c: use less memory
10152 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
10154 * support/regression/collate-results.py: typo
10156 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
10158 * support/regression/tests/fetchoverlap.c: Added new test case.
10160 * support/regression/tests/bp.c: Added new test case.
10162 * support/regression/tests/bug-448984.c: Added new test case.
10164 * support/regression/tests/pow2shifts.c: Added new test case.
10166 * src/z80/gen.c: Turned off the noise it normally generates for the release.
10167 (genlshTwo): Fixed right shift for count > 8.
10169 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
10171 2001-09-08 <johan AT FRIJA>
10173 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
10175 2001-09-07 <johan AT FRIJA>
10177 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
10179 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
10181 2001-09-06 <johan AT FRIJA>
10183 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
10184 * bernhard noted me at this: "() equals to (void)" (1.38)
10186 2001-09-05 <johan AT FRIJA>
10188 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
10190 2001-09-04 <johan AT FRIJA>
10192 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
10195 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
10197 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
10199 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
10201 * link/z80/aslink.h: Fixed path for PATH_MAX
10203 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
10205 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
10207 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
10209 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
10211 * 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.
10213 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
10215 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
10216 (genCmp): Fixed up genCmp for the GB with longs.
10218 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
10220 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
10222 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
10224 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
10226 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
10228 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
10230 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
10232 * 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.
10234 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
10236 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
10238 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
10240 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
10242 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10244 * sim/ucsim/configure: little improvement of Cygwin-detection
10245 * sim/ucsim/configure.in: little improvement of Cygwin-detection
10246 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
10247 * support/regression/tests/bug-221100.c: small changes for mcs51
10248 * support/regression/tests/bug-221168.c: small changes for mcs51
10249 * support/regression/tests/bug-227710.c: small changes for mcs51
10250 * support/regression/tests/staticinit.c: small changes for mcs51
10251 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
10252 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
10253 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601