1 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
3 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5 (optimizeGetAbit): new, to get any bit, not only the high bit,
6 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
8 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
9 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
10 RIGHT_OP: also try GETBYTE, GETWORD optimization,
11 GETABIT, GETBYTE, GETWORD: decorate them,
12 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
13 (ast_print): added GETABIT, GETBYTE, GETWORD
14 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
15 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
16 (geniCodeBinary): new generic binary icode,
17 (ast2iCode): added GETABIT, GETBYTE, GETWORD
18 * src/port.h: updated comment for PORT.hasExtBitOp
19 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
20 (genGetByte): new, to get a single byte,
21 (genGetWord): new, to get a word from a long,
22 (gen51Code): added GETABIT, GETBYTE, GETWORD
23 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
25 2005-09-23 Raphael Neider <rneider AT web.de>
27 * configure.in, configure: have device/lib/pic configured
28 * device/lib/Makefile.in: added model-pic14
29 * device/lib/clean.mk: added pic/ to clean rule
30 * device/lib/pic: added rudimentary pic14 library providing support
31 functions for multiplication/division/generic pointer access
32 * src/SDCCopt.c (convilong): mark support functions as extern
33 for pic14 port as well
34 * src/pic/gen.c (genMult): added assertions,
35 (genpic14Code): emit warning on unhandled iCodes
36 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
37 * src/pic/pcode.c (pCodeOpCopy),
38 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
39 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
40 SFR_REGISTER}), made safe for future extensions
41 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
42 instructions even if preceeded by SKIP instructions (also remove
43 them); removed unused code
44 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
45 prevents leaving parts of the structure uninitialized after copying
47 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
49 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
51 * support/regression/tests/addsub.c: added test for the bug
53 2005-09-21 Raphael Neider <rneider AT web.de>
55 * device/include/pic16/pic18f1220.h,
56 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
57 * device/lib/pic16/Makefile.rules: added missing opening paren
58 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
59 are provided in genutils.c,
60 (genUminusFloat,genUminus,genCmpEq): added asserts on different
62 (genCmp): assert on NULL pointers first, then check deref'ed values
63 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
66 2005-09-18 Raphael Neider <rneider AT web.de>
68 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
69 as these are now unused,
70 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
71 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
72 local, avoids uninitialized pointer dereference on r->name
73 * src/pic16/ralloc.c (newReg): fixed indentation
75 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
77 * src/SDCCval.c (constVal): fixed bug 730366
78 * support/Util/SDCCerr.c,
79 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
81 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
83 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
85 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
87 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
89 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
91 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
92 (hex2dec): made hex_digit unsigned char, removed ascii dependance
93 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
94 (hex2dec): made hex_digit unsigned char, removed ascii dependance
95 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
96 * packihx/packihx.c (hexDigit): made c unsigned char
97 * as/mcs51/lklibr.c (fndsym),
98 * link/z80/lkgb.c (gb),
99 * link/z80/lklibr.c (fndsym),
100 * link/z80/lkrloc.c (relr),
101 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
102 * src/SDCC.lex (checkCurrFile, process_pragma),
103 * src/SDCCglue.c (spacesToUnderscores),
104 * src/SDCCmain.c (setParseWithComma, processFile),
105 * src/asm.c (tvsprintf, printCLine),
106 * src/avr/gen.c (emitcode, aopPut),
107 * src/ds390/gen.c (emitcode),
108 * src/hc08/gen.c (emitcode, emitinline),
109 * src/mcs51/gen.c (emitcode, genInline),
110 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
112 * src/pic/ralloc.c (debugLog),
113 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
115 * src/pic16/ralloc.c (debugLog),
116 * src/z80/main.c (_process_pragma):
117 made all ctype.h function calls safe
118 * src/SDCCopt.c: include math.h for fabs
119 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
120 and used them throughout the code to make ctype.h function calls safe
121 * src/ds390/main.c (asmLineNodeFromLineNode),
122 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
123 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
125 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
126 (newpCodeAsmDir): made ctype.h function calls safe
127 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
128 pic16_emitcode): made lbp unsigned char*
129 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
130 (pic16_newpCodeAsmDir): made ctype.h function calls safe
131 * src/xa51/gen.c (emitcode),
132 * src/z80/gen.c (_emit2): made lbp unsigned char*
133 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
136 2005-09-05 Raphael Neider <rneider AT web.de>
138 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
139 access bank splitpoint
141 2005-09-05 Raphael Neider <rneider AT web.de>
143 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
145 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
147 * .version: changed to version 2.5.3
148 * doc/sdccman.lyx: changed version to 2.5.3,
149 documented --codeseg and --constseg and pragma codeseg and constseg,
150 documented bit parameters (reentrant) and bit returning
151 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
152 currFunc->recvSize, but is this ok for all ports?
153 (ast2iCode): result of ~ on unsigned char must be cast to int for
155 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
156 function pointers in bit space
157 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
158 (processFuncArgs): call port.reg_parm() with reentrancy info
166 * src/z80/main.c: port.reg_parm prototype extended with
167 "bool reentrant" parameter
168 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
169 options.stackAuto for allocating bit register parameters
170 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
171 (genSend): set BitBankUsed if it is,
172 (selectRegBank): factored out of genCall for use in genPcall,
173 (genCall): removed redundant dtype assignmen, use selectRegBank,
174 (genPcall): handle returning in Carry properly, save in F0 if needed,
175 (genReceive): handle bit register parameters
176 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
177 (mcs51_assignRegisters): enable bit registers for all reentrant
178 functions and don't set BitBankUsed unconditionally
179 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
180 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
181 * support/regression/tests/funptrs.c: added tests for BOOL and for return
183 2005-08-27 Borut Razem <borut.razem AT siol.net>
185 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
186 ppc-osx (Darwin) does not support -u option. It seems that it is
187 supported only on Linux - GNU cp
189 2005-08-25 Borut Razem <borut.razem AT siol.net>
191 * sim/ucsim/gui.src/serio.src/Makefile.in,
192 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
193 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
194 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
195 install and strip, since the strip at /usr/ccs/bin should be used
198 2005-08-24 Borut Razem <borut.razem AT siol.net>
200 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
202 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
204 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
207 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
209 * as/mcs51/aslink.h: completed lkrloc.c prototypes
210 * as/mcs51/lkmain.c (link_main): fixed warning
211 * device/include/stdbool.h: ds390 has no advanced bit support yet
212 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
213 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
214 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
215 and updated their macros
216 * src/SDCCval.c (constVal): updated comment for renamed b_long
218 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
220 * as/mcs51/asdata.c: changed ctype['['] to BINOP
221 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
222 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
223 (oprio): set priority for '['
224 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
226 * as/mcs51/asm.h: added defines R_BIT and S_BIT
227 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
228 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
229 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
230 added overlayable BIT_BANK area
231 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
232 (summary2): explain 'T' in legenda
233 * as/mcs51/lkrloc.c: replaced old K&R style,
234 (relr): added R_BIT processing,
235 (errmsg): added "Bit-addressable relocation error",
236 (adb_bit): added for converting from byte- to bit-addressable space,
237 (adb_24_bit): added for converting from byte- to bit-addressable space
238 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
239 used in reentrant functions now even as return value
240 * device/lib/_gptrput.c (_gptrput): removed obsolete code
241 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
242 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
243 * src/SDCCglobl.h: added indicator BitBankUsed
244 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
245 the bit registers b0-b7
246 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
247 (geniCodeCast): fixed bug 1263853,
248 (geniCodeLogicAndOr): put result in bool or char,
249 (geniCodeReceive): added parameter func for accessing the return type,
250 (geniCodeFunctionBody): pass func to geniCodeReceive
251 * src/SDCCmain.c: added indicator BitBankUsed
252 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
253 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
254 (checkSClass): don't put automatic bool/bit on stack,
255 (checkFunction): removed check on function cannot return bit
256 * src/SDCCsymt.h: added newBoolLink prototype
257 * src/mcs51/gen.c (rb1regs): added bit registers,
258 (movc): created for assigning to carry,
259 (pushReg, popReg): created for pushing registers,
260 (sameRegs): check both AOP_REG and AOP_CRY types,
261 (aopOp): handle bit registers,
262 (aopPut): optimization no self-assign,
263 (saveRegisters): push reg->base (bits) only once for bit registers,
265 (unsaveRegisters): pop reg->base only once and use popReg,
266 (assignResultValue): added parameter func and return in carry for bits,
267 (genIpush): optimization no reload in A if not changed,
268 (genSend): bit parameters in reentrant functions are passed in bit
269 registers by first assigning to bits in B, then save registers and
271 (genCall): handle returning in Carry properly, save it in F0 if needed,
272 (genPcall): updated assignResultValue call, this is not safe yet for bit
273 returning function !!!
274 (genFunction): don't generate equ's for bit registers and use pushReg,
275 (genEndFunction): take care of bit returning functions and use popReg,
276 (genRet): return bit in Carry,
277 (genIfx): optimize bit registers and other directly addressable bits,
278 (genReceive): updated assignResultValue call
279 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
280 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
281 registers when using stack-auto
282 * src/mcs51/ralloc.c (_G): added allBitregs,
283 (regs8051): added the bit registers,
284 (createStackSpil): use macro IS_BIT,
285 (getRegBit): added to allocate a bit register, else spill,
286 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
287 (updateRegUsage): factored out to ease stepping while debugging,
288 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
289 also allocate bit registers,
290 (fillGaps): handle bit registers,
291 (findAllBitregs): added to create bit vector with all bit registers,
292 (mcs51_allBitregs): returns this bit vector,
293 (mcs51_assignRegisters): when using stack-auto use bit registers for
294 passing parameters and creating local variables
295 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
297 2005-08-22 Borut Razem <borut.razem AT siol.net>
299 * device/lib/Makefile.in: replaced find option -or with -o
300 to make it run on solaris
302 2005-08-22 Raphael Neider <rneider AT web.de>
304 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
305 fixes #1265442 (crash on Solaris)
307 2005-08-20 Borut Razem <borut.razem AT siol.net>
309 * configure, configure.in: added tests for libsocket and libnsl libraries,
310 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
311 from support/regression/Makefile.in
312 * support/regression/Makefile.in: added
313 * device/lib/pic16/Makefile.common.in: force make to use bash shell
314 * sim/ucsim/libtool: regenerated on sparc-solaris
315 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
316 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
317 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
318 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
319 sparc-solaris, which doesn't use GNU ld linker
320 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
321 * as/Makefile: find on sparc-solaris does not support -maxdepth option
323 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
325 * src/mcs51/peeph.def: updated comments
327 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
329 * device/lib/_gptrget.c,
330 * device/lib/_gptrput.c: slightly shorter
331 * doc/sdccman.lyx: incremented version
332 * src/mcs51/peeph.def: moved peephole comments to the line of first
333 change to better keep line correlation, reanimated 186.e
334 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
336 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
338 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
339 David Saxton with quotes around file name.
341 2005-08-15 Borut Razem <borut.razem AT siol.net>
343 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
344 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
345 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
346 make tests run on x86_64 platform
348 2005-08-13 Raphael Neider <rneider AT web.de>
350 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
351 as it might be executed DURING a build (parallel make is wonderful)
353 2005-08-13 Raphael Neider <rneider AT web.de>
355 * device/lib/Makefile.in (port-specific-objects-pic16):
356 revert to cp $(PORT)/bin/*.* $(PORTDIR)
357 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
359 * device/lib/pic16/Makefile.rules: build subdirs before creating
360 the library, removed builddir rule, create $(builddir) early in
361 recurse rule, use empty recurse rule for leaf directories
362 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
363 mkdir errors (race condition), removed duplicate suffix "hex"
365 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
366 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
367 prevents mkdir -p from aborting on Alpha
369 2005-08-12 Raphael Neider <rneider AT web.de>
371 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
372 db-statements in order to allow for arrays of pointers in code
373 sections to be placed without interspersed 0-padding, fixes
375 * (emitStatistics): fixed division by zero for pic18f1220
376 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
377 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
378 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
379 * (pic16_pCodeConstString): keep track of already emitted string
380 literals to prevent "duplicate definitions of symbol _str_NR"
381 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
383 * device/lib/Makefile.in: ignore failing PIC16 library builds
384 * device/lib/pic16/Makefile: do not build if gputils are missing
385 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
387 2005-08-10 Raphael Neider <rneider AT web.de>
389 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
392 2005-08-10 Raphael Neider <rneider AT web.de>
394 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
395 Rokas' patch to add the new fixed point type "__fixed16x16"
396 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
397 functions for __fixed16x16 arithmetics
398 * device/lib/pic16: reimplemented the build system to support
399 a separate build directory, better handling of libio (create
400 the library in a separate subdir for each architecture) and
401 easier configuration (centralized in Makefile.common)
403 2005-08-07 Raphael Neider <rneider AT web.de>
405 * src/pic16/gen.c (genrshTwo): fixed sign extension
406 * src/pic16/device.c: added pic18f2320, 4220 and 4320
407 * device/include/pic16/pic18f2220.h: changed some bit definitions,
409 * device/include/pic16/pic18f4220.h: NEW, header for
410 pic18f4220 and pic18f4320
411 * device/include/pic16/pic18fregs.h: added new devices,
412 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
413 * device/include/pic16/signal.h: resolved name clashes
414 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
415 to also allow testing for interrupt enable bits, added
416 comments on how to use the macros
417 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
418 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
419 register definitions for the devices
420 * device/lib/pic16/pics.all: added new devices
421 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
423 * device/lib/pic16/libc/stdlib/memfree: do not count
424 the block header as free memory
425 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
426 simplified and added missing end-of-blocklist-marker
427 (reported by Peter Onion, fixes #1252814)
428 * (_mergeHeapBlock): fixed loop condition
429 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
430 len==0, restructured code
431 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
432 up a bit, reduced bitfield accesses, prevent endless loops
433 in case of heap corruption
434 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
435 "unreferenced arguments/must return a value" warnings
436 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
437 replaced BAUDREG with SPBRG
438 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
439 device/lib/pic16/debug/gstack/gstack.c: replaced
440 _naked, _asm, _endasm with __naked, __asm, __endasm
442 2005-08-05 Raphael Neider <rneider AT web.de>
444 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
445 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
447 2005-08-05 Borut Razem <borut.razem AT siol.net>
449 * device/lib/Makefile.in: added missing ';'
450 * configure: removed ^M characters
452 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
454 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
455 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
458 2005-08-04 Borut Razem <borut.razem AT siol.net>
460 * configure.in: pic16 libraries build 2nd try - enable running
461 configure in device/lib/pic16
462 * configure: regenerated from configure.in
463 * device/lib/Makefile.in: create $(PORT)/bin directory
465 2005-08-03 Raphael Neider <rneider AT web.de>
467 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
468 to get/set values via pointers
469 * (genUnpackBits,genPackBits): changed detection of
470 ptr->bitfield vs. sym.bitfield, fixed access via generic
471 pointers, removed dead (wrong) code for multibyte bitfields
472 * (genNearPointerGet, genGenPointerGet): removed useless code,
473 fixed bitfield detection, fixes #1250594
474 * (genNearPointerSet): removed useless code
475 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
476 and introduced macro pic16_emitpcode that conditionally emits
477 the origin of the following pCode (useful for debugging SDCC)
478 * src/pic16/pcode.c: changed (and disabled) some debug outputs
479 * (createDefmap): fixed handling of LFSR for --optimize-df
481 2005-08-02 Borut Razem <borut.razem AT siol.net>
483 * device/lib/Makefile.in: pic16 libraries build enabled since
484 gputils-0.13.2 are now localy installed at sourceforge's compile farm
486 2005-08-02 Raphael Neider <rneider AT web.de>
488 * src/pic16/gen.c (genPackBits): removed deprecated warning
489 * (genGenPointerSet): fixed bitfield detection
491 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
493 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
495 2005-07-31 Raphael Neider <rneider AT web.de>
497 * device/lib/pic16/libdev/pic18f458.c,
498 device/include/pic16/pic18f458.h: added missing T0CONbits
500 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
502 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
504 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
506 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
508 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
510 * device/include/mcs51/at89c51ed2.h: added.
512 2005-07-23 Raphael Neider <rneider AT web.de>
514 * src/pic/gen.h: added emitpcode macro for debugging
515 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
516 and replace by macro adding debug information on demand
517 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
518 * (gencjne): tried to fix; replaced with correct (slower) code
519 * (gen{Unp,P}ackBits): fixed single bit access
520 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
521 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
523 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
524 register has to be handled with care (forbidding movement
525 of assignments/uses, removing assignments completely, ...)
526 * (pCodeOptime2pCodes): make use of regIsSpecial
527 * added lots of debugging output (commented out)
528 * src/pic/rallloc.c (deassignLRs): prevent operand registers
529 from being reused as result UNLESS it is known to work
531 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
533 * support/Util/dbuf.h: include <stddef.h> for size_t
534 * .version: changed to version 2.5.2
536 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
538 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
540 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
542 * src/hc08/gen.c (genMinus): fixed bug #1241835,
543 (genModOneByte): removed needless psha/pula
545 2005-07-22 Raphael Neider <rneider AT web.de>
547 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
548 have PIC14 handled like PIC16, fixes broken pic14 linker calls
549 * src/pic/gen.c (resolveIfx): do not "invent" labels
550 * (genSkipc): changed to positive logic
551 * (genSkipCond): removed as no longer needed
552 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
554 * (genLeftShift): check operands are in different registers
555 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
556 INCF does not update CARRY...
557 * src/pic/main.c: fixed _linkCmd
558 * src/pic/pcode.c (unlinkpCode): added inactive code
559 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
560 alive (do not assign result and operand overlapping registers)
562 2005-07-22 Raphael Neider <rneider AT web.de>
564 * src/pic/device.c (dump_sfr): replaced register declaration with
565 call to emitSymbolToFile() to avoid duplicate symbols
566 * (assignRelocatableRegisters): do not declare external symbols
567 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
568 right (take size of type, not etype)
569 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
570 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
571 * (packRegsForAccUse): disabled assignment of WREG as
572 the result reg to prevent occurence of just fixed #1235003,
574 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
575 symbols (avoids duplicate symbols in .asm file)
576 * (pic14emitRegularMap): use emitSymbolToFile()
577 * src/pic/gen.c (aopOp): fixed spillLocation handling
578 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
579 * (genDataPointerSet): removed unneccessary variables/output
581 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
583 * as/mcs51/lkarea.c: enlarged codemap for banked memory
584 * device/lib/mcs51/crtbank.asm: added # to 0x0F
586 2005-07-21 Raphael Neider <rneider AT web.de>
588 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
589 architecture cannot handle them efficiently, fixes bug #1235003
590 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
591 check for empty sets before using them (fixes bug #1232190)
593 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
595 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
596 (lnksect2): generate warnings for memory overlap
597 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
598 constseg to set the name of these segments so you can instruct the linker
599 to place them in banks
600 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
601 * src/SDCCglobl.h: added MODEL_HUGE to enum,
602 added code_seg and const_seg to options
603 * src/SDCCglue.c (emitMaps): use options.const_seg,
604 (createInterruptVect): put interrupt vectors in segment HOME,
605 (glue): put HOME before static segment and put the main glue in HOME,
606 (glue): use options.code_seg
607 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
608 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
609 these segments so you can instruct the linker to place them in banks
610 (linkEdit): use code_loc for HOME segment which should be the first
611 segment in code memory now
612 * src/SDCCmem.c: fixed more stuff like bug 1238386
613 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
614 (changePointer): don't change function pointers to code pointers for
616 (compareType): added exceptional check for banked function pointers
617 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
618 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
619 after static in code memory
620 * src/mcs51/gen.c: added aopLiteralLong prototype,
621 (aopForSym): use getSize for functions,
622 (genCall): generate banked calls over one trampoline __sdcc_banked_call
623 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
624 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
626 (genPcall): use call for literal function pointers and generate banked
627 calls over the one trampoline so there's only one place for the user to
628 modify according to his/hers hardware,
629 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
630 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
631 * src/mcs51/main.c: added keyword banked,
632 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
633 * support/Util/SDCCerr.c,
634 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
635 needed for passing the bank and address to the trampoline
636 * device/lib/mcs51/crtbank.asm: added for bankswitching
637 * device/lib/mcs51/Makefile: added crtbank
639 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
641 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
642 for fields at offset 0 of a struct or union as reported
643 on 2005-07-07 in the developer mailing list.
645 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
647 * src/SDCCmem.c: fixed bug 1238386
649 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
651 * src/mcs51/peeph.def: added labelrefcounting for peepholes
652 (patch #1144962), added peephole 300, enabled 259.x
653 * doc/sdccman.lyx: removed screenshot and provided link instead
655 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
657 * doc/sdccman.lyx: added section about debugging with ddd
658 * doc/figures/ddd_example.eps: screenshot of debugging session
660 2005-07-04 Raphael Neider <rneider AT web.de>
662 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
663 like CODE pointers, fixes #1115683
664 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
665 call, fixes bugs #1232211, #1228110,
666 fixed wrong casts to pCodeFlow from pCodeInstructions
668 2005-07-04 Raphael Neider <rneider AT web.de>
670 * src/pic/gen.c (popGet): changed assert to allow for
672 * (popGetAddr): changed signature to provide
673 an additional index, patched all call sites
674 * (genCmpEq): handle literal-like operands correctly
675 * (genAddrOf): added sanity checks on __code/__data pointers
676 * (genAssign): added handling of symbols from __code section
677 * (gencjne): do not generate code for comparisons whose result
678 is neither stored nor used, fixes bug #1171114
679 * (AccLsh, AccRsh): operate on operand instead of WREG
680 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
681 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
683 * rewrote complete shift-by-literal logic, commented unused
685 * (genConstPointerGet): get multiple bytes (if result size > 1),
686 fixed handling of non-immediate addresses
687 * (genPointerGet): handle CODE pointers like CONST pointers
688 * (genpic14Code): insert C-SRC lines as Cource-pCodes
689 * ({aop,op}_isLitLike): NEW, single place to decide whether an
690 operand is to be treated as a literal or not
691 * (mov2w,genPcall,genCmpEq),
692 src/pic/genarith.c: use aop_isLitLike() to decide between
693 literal/register contents
694 * (addSign): added missing offset
695 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
696 only emit comment in debug-mode,
697 use {aop,op}_isLitLike throughout the file
698 * src/pic/glue.c: fix initializers for pointers (work in progress)
699 * src/pic/pcode.c (get_op): honor index on _const symbols
700 * ({reset,dump}pCodeStatistics): NEW, estimate code size
701 * (dumppBlock): added pCode size estimation
702 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
703 check for IS_SYMOP before OP_SYMBOL'ing
704 * fixed indentation, compacted switch-statements
705 * (allocReg): find free register and allocate it instead of
706 allocating new registers all the time
707 * (deassignLRs): prevent POINTER_GET's from being assigned the same
708 registers as its operands (necessary only for multibyte GETs)
710 2005-07-01 Raphael Neider <rneider AT web.de>
712 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
713 debugging .asm-output macros FENTRY + FEXIT
714 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
716 * (emitpComment): NEW, printf to pCode
717 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
719 * (popGetAddr): NEW, variant of popGet to access an immediates
720 high(er) bytes instead of the n'th byte of memory they reference,
721 replaced popGet with popGetAddr where neccessary
722 * (genDataPointerGet): reactivated and fixed implementation
723 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
725 * (genDataPointerSet): fixed multibyte assignments
726 * (genpic14Code): fixed --i-code-in-asm handling
727 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
728 * (genPlus): fixed index-out-of-bounds error
729 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
730 * src/pic/ralloc.c: added debugging output macro FENTRY2
731 * (spillThis): fixed indentation, enbraced for-body for clarity
732 * (rematStr): commented out as now unused
733 * (regTypeNum): commented out special spill case (overwrites
735 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
737 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
739 * doc/sdccman.lyx: documented sfr16/sfr32,
740 added example for using storage class with function pointers
741 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
743 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
745 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
746 * device/lib/_itoa.c,
747 * device/lib/_ltoa.c: optimized codesize
748 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
749 but don't know how to suppress the double warning.
750 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
751 * support/Util/SDCCerr.c,
752 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
754 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
756 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
757 fixed old K&R prototypes
758 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
759 * device/lib/_gptrget.c,
760 * device/lib/_gptrgetc.c,
761 * device/lib/_gptrput.c: changed versions for new memory indicator values,
762 also new versions for small generic pointers and banked generic pointers
763 * src/port.h: added const_name
764 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
765 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
766 * src/SDCCcse.c (findPrevIc): check all associative operators
767 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
768 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
769 * src/SDCCmem.c: updated comments,
770 set far-space to 0 for pdata, results in optimized code
771 * src/SDCCmem.h: added macro CONST_NAME
772 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
773 moving the info into the highest bits, see also gptrget/gptrput
774 * src/src.dsp: added sdcc.ico to project files
775 * src/avr/gen.c (genCast): fixed bug 0x%d
776 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
777 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
778 relation between ptr_type and DCL_TYPE,
779 (genCast): fixed bug 0x%d
780 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
781 (CODE)" for const_name
782 * src/hc08/gen.c (genCast): fixed bug 0x%d
783 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
784 (hc08_port): added "CONST (CODE)" for const_name
785 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
786 (aopForRemat, adjustArithmeticResult): disconnected direct relation
787 between ptr_type and DCL_TYPE,
788 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
789 operand* and took AOP() inside function so sfr-ness can be checked,
790 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
792 (genFunction, genEndFunction): optimized stack setup,
793 (genMinus): optimized for literals with ending zeroes (in bytes),
794 (genCast): fixed bug 0x%d
795 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
796 (mcs51_port): added "CONST (CODE)" for const_name
797 * src/mcs51/peeph.def: made rule 226 more generic
798 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
799 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
800 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
801 * src/z80/main.c (z80_port): added NULL for const_name,
802 (gbz80_port): added NULL for const_name
803 * support/regression/tests/bug663539.c,
804 * support/regression/tests/sfr16.c: new tests
806 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
808 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
810 2005-06-24 Raphael Neider <rneider AT web.de>
812 * device/lib/pic16/libdev/pic18f[68][567]20.c:
814 * device/include/pic16/signal.h: added USBIF
817 2005-06-24 Raphael Neider <rneider AT web.de>
819 * device/lib/pic16/libdev/pic18f2455.c,
820 device/include/pic16/pic18f2455.h: NEW
821 * device/include/pic16/pic18fregs.h,
822 device/lib/pic16/pics.all,
823 src/pic16/device.c: added 18f2455
824 * device/lib/pic16/libdev/pic18f[68][567]20.c,
825 device/include/pic16/{pic18f[68][567].h,usart.h}:
826 replaced MULTIPLE_USARTS define with more relaible
827 compatibility sfrs (for USART access)
829 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
831 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
832 and the output asm file line is printed on two lines.
834 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
836 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
837 BGT, BLE, BHI, and BLS instructions
838 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
840 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
841 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
843 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
845 2005-06-15 Raphael Neider <rneider AT web.de>
847 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
848 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
849 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
850 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
851 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
853 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
855 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
856 Marcel Telka in bug #1215704
858 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
860 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
861 located in shared memory bank.
863 2005-05-31 Raphael Neider <rneider AT web.de>
865 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
866 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
867 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
869 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
871 * device/lib/_strncpy.c: fixed the fix
873 2005-05-26 Raphael Neider <rneider AT web.de>
875 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
876 initializers with \0, bug #1208187
877 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
878 intializers with \0, bug #1208187
880 2005-05-26 Raphael Neider <rneider AT web.de>
882 * src/pic16/glue.c (pic16_printIvalChar): fixed string
883 initializers with \0, bug #1208187
884 * src/pic16/main.c (_process_pragma): added sanity checks
885 for stack position and size, emit warnings when appropriate
887 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
889 * device/lib/_strncpy.c: fixed not filling with \0
891 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
893 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
895 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
898 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
900 2005-05-24 Raphael Neider <rneider AT web.de>
902 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
904 2005-05-24 Raphael Neider <rneider AT web.de>
906 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
907 TRISE definitions, closes bug #1162453
909 2005-05-22 Raphael Neider <rneider AT web.de>
911 * src/pic16/main.c (_process_pragma): check for missing
912 arguments to pragmas code and udata
913 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
914 consistency fixes to match other headers (thanks to Jim Paris)
915 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
917 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
919 * src/SDCCicode.c (isOperandEqual): fixed missing ;
921 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
923 * support/regression/tests/bug1198642.c: new test
924 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
925 * src/SDCCcse.c (findPrevIc): added comment, please have a look
926 * support/scripts/resource.h,
927 * support/scripts/resource.rc,
928 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
929 * support/scripts/sdcc.ico: added 32x32 icon
931 2005-05-18 Raphael Neider <rneider AT web.de>
933 * device/lib/pic16/libdev/pic18f*.c,
934 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
935 keywords to "__sfr" and "__at (X)"
936 * device/include/pic16/pic18fregs.h: added pic18f4520
937 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
938 #1203088 (MPLAB compatibility)
940 2005-05-17 Raphael Neider <rneider AT web.de>
942 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
943 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
944 * device/lib/pic16/pics.all: added new devices
945 * src/pic16/device.c: added support for pic18f4520
947 2005-05-16 Raphael Neider <rneider AT web.de>
948 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
949 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
950 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
951 convenience function for bit access
953 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
955 * device/lib/printf_large.c: fixed bug 1193299
956 * support/regression/tests/bug1057979.c: added test %3.3s
958 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
960 * device/include/mcs51/8051.h,
961 * device/include/mcs51/8052.h: made parseable with lint
962 * device/include/mcs51/lint.h: added include file for (sp)lint
963 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
964 * doc/cdbfileformat.lyx,
965 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
967 2005-05-14 Raphael Neider <rneider AT web.de>
969 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
970 * device/lib/pic16/libc/stdlib/itoa.c (new)
971 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
972 * device/lib/pic16/libio/Makefile: exclude subdir according to
973 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
974 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
975 * src/pic16/gen.c (genFunction): prevent annoying warning
976 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
978 * support/cpp2/cppmain.c (cpp_output_string): new
979 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
982 2005-05-13 Borut Razem <borut.razem AT siol.net>
984 * src/SDCCmain.c (linkEdit): fixed bug 1195202
986 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
988 * .version: changed to version 2.5.1; back to bleeding edge development
990 2005-05-11 Borut Razem <borut.razem AT siol.net>
992 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
993 generate PDF version 1.3 documents
995 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
997 * .version: changed to version 2.5.0
999 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1001 * doc/sdccman.lyx: updated weblinks, index and smaller updates
1003 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1005 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
1006 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
1007 well as many smaller updates.
1008 * .version: changed to version 2.5.0-pre1
1010 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1012 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
1014 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1016 * support/regression/tests/bug1185672.c: added
1017 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
1019 * src/mcs51/gen.c (genCall): added comments, made it look safer
1020 * src/mcs51/gen.c (genEndFunction): simplified
1022 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1024 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
1026 2005-04-14 Borut Razem <borut.razem AT siol.net>
1028 * fixed bug 1045046 - SIGSEGV with really simple code?:
1029 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
1030 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
1032 2005-04-14 Borut Razem <borut.razem AT siol.net>
1034 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
1035 src/pic16/device.h: temporarily disabled experimental #inline pragma
1038 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1040 * device/include/z80/stdio.h,
1041 * device/include/z80/string.h: removed these highly incomplete files so
1042 SDCC can use the default ones in device/include/
1044 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1046 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
1048 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
1051 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1053 * device/include/malloc.h: removed redundant __reentrant prototypes
1054 * device/lib/_mullong.c: added working xstack variant in asm (C version
1055 doesn't pass regression tests)
1056 * device/lib/bpx.c: used __data and made bpx char for mcs51
1057 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
1058 (createFunction): fixed bug with xstackPtr
1059 * src/SDCCcse.c: corrected comments
1060 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
1061 (killDeadCode, eBBlockFromiCode): removed unused code
1062 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
1064 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
1065 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
1066 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
1067 (genModOneByte): fixed warning in MSVC
1068 * src/mcs51/main.c (): added comments
1069 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
1071 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
1073 * src/SDCCmain.c (linkEdit): oops, changed one line too many
1075 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
1077 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
1079 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
1081 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
1082 characters arrays of larger size than the declared one.
1084 2005-04-10 Borut Razem <borut.razem AT siol.net>
1086 * src/pic/gen.c (genInline),
1087 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
1088 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
1089 (findNextInstruction), (findPrevInstruction),
1090 (findInstructionUsingLabel),
1091 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
1092 * src/pic/pcode.c (findLabel): added missing '\n'
1093 * src/src.dsp: added SDCCdwarf2.c to the project
1095 2005-04-09 Borut Razem <borut.razem AT siol.net>
1097 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
1099 2005-04-08 Raphael Neider <rneider AT web.de>
1101 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
1102 into the chain after a given one) and mergeDefmapSymbols (combine
1103 defmap entries for each symbol per pcode)
1104 * (createDefmap): have defmap entries merged in the end
1105 * (defmapReplaceSymRef): split defmap entries covering two accesses to
1106 a symbol before replacing one access type's symbol, merge symbols in
1107 the end (replacement symbol might already have an entry)
1108 * (assignValnums): keep reference to written WREG intact
1110 2005-04-08 Raphael Neider <rneider AT web.de>
1112 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
1115 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
1117 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
1120 2005-04-07 Raphael Neider <rneider AT web.de>
1122 * device/include/pic16/usart.h: added compatibility defines for
1123 devices with more than one USART
1124 * device/include/pic16/pic18f[68][567]20.h: activated above defines
1126 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1128 * device/lib/Makefile.in: updated for port specific include
1130 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1132 * support/regression/ports/mcs51/spec.mk: added mcs51 include
1134 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1136 * device/include/8051.h,
1137 * device/include/8052.h,
1138 * device/include/at89S8252.h,
1139 * device/include/at89c55.h,
1140 * device/include/at89x051.h,
1141 * device/include/at89x51.h,
1142 * device/include/at89x52.h,
1143 * device/include/mcs51reg.h,
1144 * device/include/reg51.h,
1145 * device/include/reg764.h,
1146 * device/include/regc515c.h,
1147 * device/include/sab80515.h: (re)moved these 12 files
1148 * device/include/mcs51/8051.h,
1149 * device/include/mcs51/8052.h,
1150 * device/include/mcs51/at89S8252.h,
1151 * device/include/mcs51/at89c55.h,
1152 * device/include/mcs51/at89x051.h,
1153 * device/include/mcs51/at89x51.h,
1154 * device/include/mcs51/at89x52.h,
1155 * device/include/mcs51/mcs51reg.h,
1156 * device/include/mcs51/reg51.h,
1157 * device/include/mcs51/reg764.h,
1158 * device/include/mcs51/regc515c.h,
1159 * device/include/mcs51/sab80515.h: and added them here
1161 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1163 * device/include/stdarg.h: changed SDCC specific keywords to double
1165 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
1167 * device/include/hc08/mc68hc908gp32.h,
1168 * device/include/hc08/mc68hc908jb8.h,
1169 * device/include/hc08/mc68hc908jkjl.h,
1170 * device/include/hc08/mc68hc908qy.h: fixed comments
1171 * device/include/mcs51/README: updated
1172 * device/include/mcs51/c8051f120.h: added PINRSF
1173 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
1174 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
1175 amidst code. Also inline is not supported.
1177 2005-04-06 Raphael Neider <rneider AT web.de>
1179 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
1180 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
1181 callers stack/frame pointers
1183 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1185 * device/include/pic16/usart.h: added, missing in previous commit,
1186 * device/include/pic16/adc.h: fixed typo,
1187 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
1189 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
1191 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
1192 uninitialized because a bug appears with gplink
1193 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
1194 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
1195 complains for unrecognised option
1197 2005-04-05 Raphael Neider <rneider AT web.de>
1199 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
1200 structs as well (using memcpy)
1201 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
1202 on ISRs (GOTO has no label)
1203 * src/pic16/device.h: added OF_OPTIMIZE_DF
1204 * src/pic16/main.c: added compiler switch --optimize-df to enable the
1205 new data flow analysis/optimization
1206 * src/pic16/pcode.c: added (prototypes for and implementation of)
1207 dataflow analysis functions, fixed pCodeInstructions' inCond and
1208 outCond values, made RCALL a branch instruction
1209 * (pic16_unlinkpCode): keep C line if possible
1210 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
1211 C line moved if possible
1212 * (pic16_getRegFrompCodeOp): NEW, improved version of...
1213 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
1214 to use new pic16_getRegFrompCodeOp (works for more SFRs)
1215 * (pic16_BuildFlow): fixed skip instructions with label (did not start
1217 * (pic16_getJumptabpCode): NEW, needed in...
1218 * (LinkFlow): fixed handling of jumptables, calls and conditional
1220 * (pic16_InsertCommentAfter): NEW
1221 * (pic16_pCodeReplace): made verbose and flow preserving
1222 * (AnalyzeFlow): added call to data flow analysis
1223 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
1224 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
1225 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
1227 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1229 * src/SDCCast.c (decorateType): fixed bug #1105626
1231 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
1233 * device/include/asm/pic16/features.h,
1234 * pic18f*.h headers,
1235 * device/include/pic16/adc.h,
1236 * device/include/pic16/delay.h,
1237 * device/include/pic16/i2c.h,
1238 * device/include/pic16/malloc.h,
1239 * device/include/pic16/stdio.h,
1240 * device/include/pic16/stdlib.h,
1241 * device/include/pic16/string.h,
1242 * device/lib/pic16/libc/stdio/printf_tiny.c,
1243 * device/lib/pic16/libc/stdio/printf_small.c,
1244 * device/lib/pic16/libc/stdio/strmgpsim.c,
1245 * device/lib/pic16/libc/stdio/strmmssp.c,
1246 * device/lib/pic16/libc/stdio/strmusart.c,
1247 * device/lib/pic16/libc/stdio/vfprintf.c,
1248 * device/lib/pic16/libc/stdlib/ltoa.c,
1249 * device/lib/pic16/libc/stdlib/putchar.c,
1250 * device/lib/pic16/libc/stdlib/x_ftoa.c,
1251 * device/lib/pic16/libc/stdlib/memchrpgm.c,
1252 * device/lib/pic16/libc/stdlib/memchrram.c,
1253 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
1254 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
1255 * device/lib/pic16/libio/adc/adcbusy.c,
1256 * device/lib/pic16/libio/adc/adcread.c,
1257 * device/lib/pic16/libio/adc/adcsetch.c,
1258 * device/lib/pic16/libio/usart/ubaud.c,
1259 * device/lib/pic16/libio/usart/ubusy.c,
1260 * device/lib/pic16/libio/usart/udrdy.c,
1261 * device/lib/pic16/libio/usart/uopen.c,
1262 * device/lib/pic16/libio/usart/uputc.c,
1263 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
1264 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
1265 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
1266 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
1267 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
1268 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
1269 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
1270 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
1271 specific keywords to double underlined form,
1272 * device/lib/pic16/libc/Makefile.rules,
1273 * device/lib/pic16/libsdcc/Makefile.rules,
1274 * device/lib/pic16/libm/Makefile,
1275 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
1276 to compile with C standard set in Makefile.common
1277 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
1278 rand.c and crc.c in compilation process,
1279 * device/lib/pic16/libsdcc/int/divuint.c,
1280 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
1281 `c' from signed to unsigned,
1282 * device/lib/pic16/startup/crt0.c,
1283 * device/lib/pic16/startup/crt0i.c,
1284 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
1285 keywords to double underlined form, bug fixes in _do_cinit function
1286 which prevented the correct initialization of the .idata segment,
1287 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
1288 core to enter a infinite loop
1289 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
1291 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1293 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
1295 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1297 * device/include/Makefile.in: add support for hc08 subdirectory
1298 * device/include/hc08/: new subdirectory
1299 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
1300 Lucas Loizaga, thanks!
1301 * device/include/hc08/mc68hc908qy.h,
1302 * device/include/hc08/mc68hc908gp32.h,
1303 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
1304 their own directory. Changed internal macro names to use the compiler
1305 reserved namespace. Changed SDCC specific keywords to double
1307 * device/include/math.h,
1308 * device/include/malloc.h,
1309 * device/include/stdarg.h,
1310 * device/include/stdbool.h
1311 * device/include/string.h,
1312 * device/include/tinibios.h,
1313 * device/include/ds400rom.h,
1314 * device/include/8051.h,
1315 * device/include/8052.h,
1316 * device/include/80c51xa.h,
1317 * device/include/at89c55.h,
1318 * device/include/at89S8252.h,
1319 * device/include/at89x51.h,
1320 * device/include/at89x52.h,
1321 * device/include/ds80c390.h,
1322 * device/include/reg764.h,
1323 * device/include/regc515c.h,
1324 * device/include/sab80515.h,
1325 * device/include/mcs51/c8051f000.h,
1326 * device/include/mcs51/c8051f018.h,
1327 * device/include/mcs51/c8051f020.h,
1328 * device/include/mcs51/c8051f040.h,
1329 * device/include/mcs51/c8051f060.h,
1330 * device/include/mcs51/c8051f120.h,
1331 * device/include/mcs51/c8051f300.h,
1332 * device/include/mcs51/c8051f310.h,
1333 * device/include/mcs51/c8051f320.h,
1334 * device/include/mcs51/c8051f330.h,
1335 * device/include/mcs51/c8051f350.h,
1336 * device/include/z180.h: Changed SDCC specific keywords to double
1339 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
1341 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
1343 * (pic16_assignConfigWordValue): disable testing of configuration
1344 register value with config mask,
1345 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
1346 function with port->fun_prefix,
1347 * (genFunction): when generating a naked interrupt function never
1348 create an absolute segment placed in interrupt vector address, place
1349 the actual interrupt function at IVA instead, when an interrupt
1350 function is generated with unspecified interrupt then do not create
1351 the absolute section,
1352 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
1353 code for generating a call to generic pointer get/put function with
1354 a call to function pic16_callGenericPointer(),
1355 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
1356 the call to the generic pointer get/put functions with prefixing the
1357 function name with port->fun_prefix,
1358 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
1359 * src/pic16/main.c (_process_pragma): prefix function with
1361 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
1362 calling assembler, old 18Fxxxx macro is deprecated,
1363 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
1364 PC_ASMDIR in while condition,
1365 * (findInstruction): add PC_ASMDIR in while condition,
1366 * (buildCallTree): prefix main with port->fun_prefix,
1367 * (pic16_pCode2str): fixed bug that didn't emit the memory access
1368 identifier for variable with banked access in instructions BTFSS,
1369 BTFSC, BCF, BSF, BTG
1370 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
1371 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
1372 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
1373 perform optimization when enviroment variable NO_REG_OPT is set,
1374 * (insideLRBlock): NEW, return 1 if register is inside an
1375 INF_LOCALREGS block,
1376 * (RemoveRegFromLRBlock): remove a register that is completely
1377 eliminated by register optimization, but it is still left in local
1378 register store/restore in/from stack block,
1379 * (Remove2pcodes): after removing register, check to see if it
1380 should be removed from local register store/restore in/from stack
1382 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
1383 DUMMY_READ_VOLATILE,
1385 * device/include/pic16/adc.h: minor prototype modifications and
1387 * device/include/pic16/malloc.h: added GPL notice various
1389 * device/include/pic16/stdint.h: NEW, standard header for ints
1390 * device/include/pic16/delay.h: NEW, header for delay functions,
1391 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
1393 * device/include/pic16/signal.h: NEW, header providing helper macros
1394 for implementing signal handlers,
1395 * device/include/pic16/stdio.h: added prototypes for functions,
1396 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
1397 prototypes for stdin and stdout, added macro PUTCHAR to
1398 automatically implement putchar function prototype,
1399 * device/include/pic16/usart.h: modified and updated USART library,
1400 * device/lib/pic16/libio/adc/,
1401 * device/lib/pic16/libio/i2c: some modifications to improve library
1403 * device/lib/pic16/libc/stdio/: modifications for the new printf*
1404 family of functions,
1405 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
1406 family of functions and other sources,
1407 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
1408 of the PIC18Fxx[28] devices,
1409 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
1410 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
1411 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
1412 _do_cinit function, because the previous failed when local variables
1413 where not placed in the same memory bank,
1414 * device/lib/pic16/libsdcc/char/: various modifications to improve
1415 library performance,
1416 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
1417 information on the new functions of the c library and more...
1419 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1421 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
1423 2005-03-26 Raphael Neider <rneider AT web.de>
1425 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
1426 if condition == CARRY)
1427 * (genCmp): adapted to new genSkipc semantics
1428 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
1429 on rIfx (genCmp was broken)
1431 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1433 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
1434 * src/z80/main.c (_keywords[]),
1435 * src/SDCCglobal.h (struct options),
1437 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
1438 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
1439 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
1440 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
1441 always available in leading double underscore form. The C99 support is
1442 mostly missing, but it's a start.
1443 * support/regression/tests/bug-227710.c: fixed nonconforming use of
1444 reserved identifier "__data".
1446 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1448 * src/mcs51/peeph.def: fixed bug 1170013
1450 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1452 * device/include/mcs51reg.h: fixed bug 842007
1454 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1456 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
1459 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1461 * src/port.h (struct PORT),
1462 * src/avr/ralloc.c (avr_assignRegisters),
1464 * src/ds390/ralloc.c (ds390_assignRegisters),
1466 * src/hc08/ralloc.c (hc08_assignRegisters),
1468 * src/mcs51/ralloc.c (mcs51_assignRegisters),
1470 * src/pic/ralloc.c (pic14_assignRegisters),
1472 * src/pic16/ralloc.c (pic16_assignRegisters),
1474 * src/xa51/ralloc.c (xa51_assignRegisters),
1476 * src/z80/ralloc.c (z80_assignRegisters),
1478 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
1479 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
1481 * src/SDCCdflow.c (computeDataFlow),
1483 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
1485 * src/SDCCcflow.c (*),
1487 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
1488 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
1489 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
1490 immedDom() returning wrong block; probably fixes bug #1160833)
1492 2005-03-20 Borut Razem <borut.razem AT siol.net>
1494 * support/scripts/inc2h.pl: WIN32 port
1496 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
1498 * device/lib/makefile.in: added abs.c and labs.c
1500 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1502 * device/include/stdint.h: added
1503 * device/lib/abs.c: added
1504 * device/lib/labs.c: added
1505 * device/include/stdlib.h: added abs() and labs() prototypes
1506 * device/lib/libsdcc.lib: added abs and labs
1507 * device/include/float.h,
1508 * device/lib/_fsmul.c,
1509 * device/lib/printf_fast.c,
1510 * device/lib/printf_tiny.c: updated comments
1512 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1514 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
1517 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1519 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
1520 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
1522 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
1524 * device/lib/printf_large.c: removed inline assembly for portability and
1525 readability. Use printf_fast if speed or size are more important.
1526 * src/pic16/gen.c: removed conditions around use of DEBUGpc
1527 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
1529 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
1531 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
1532 prevent compiler warning
1534 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1536 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
1537 moved to level 0 and declared as static. Also they are explicit
1538 placed in access bank. This was necessery because some times they
1539 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
1540 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
1541 optimizations. Currently only compare to unsigned char is implemented,
1542 * src/pic16/gen.c: added fReturnIdx array,
1543 * (struct resolvedIfx) is moved to gen.h and made public,
1544 * (struct _G): added sregsAlloc and sregsAllocSet fields,
1545 * (aopForSym): added an optimization to directly store in stack of
1546 the operand of a SEND iCode,
1547 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
1548 but as registers instead (AOP_REG) using the fReturnIdx array,
1549 * (pic16_freeAsmop): remove the freed register from the
1550 _G.sregsAlloc field,
1551 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
1552 a compare of 'WREG',
1553 * (pic16_popGetTempRegCond): changed function prototype, now
1554 function takes also a bitVector argument v which holds the current
1555 set of registers that are allocated for stack access by aopForSym,
1556 registers allocated in aopForSym for accessing stack symbols are not
1557 any more part of the functions usedRegs field,
1558 * (genCall): some times aopOp is called for a stack variable to be
1559 send, aopForSym might perform the push, if this is true make sure
1560 that genCall doesn't push the variable twice by testing _G.resDirect,
1561 * (genFunction): changed testing for unspecified interrupt number
1562 from 256 to INTNO_UNSPEC,
1563 * modified selection scheme of frame pointer generation. Previously
1564 if function did use local registers a frame pointer was generated,
1565 now a frame pointer is generated only if function has arguments
1566 (that need PLUSW2 register access), or has stack arguments, or the
1567 compiler is not instructed to omit the frame pointer,
1568 * (genEndFunction): before restoring local registers that were saved
1569 in the function preamble, also restore the registers that *might*
1570 have been allocated for stack access,
1571 * (genRet): removed some old comments,
1572 * (genCmp, the active (RN's) version): added a call to the
1573 pic16_genCmp_special function to perform the compare with a more
1574 robust and optimized way,
1575 * (genInline): a feature has been added in inline code generation,
1576 which allows a wildcard variable substitution when writing inline
1577 assembly. Code is incomplete and experimental therefore undocumented,
1578 * (genCast): changed order of aopOp for result and right to allow
1579 aopForSym to directly load the result if possible,
1580 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
1581 perform an optimized compare on some selected special occasions,
1582 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
1583 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
1584 generate an IVT any more,
1585 * src/pic16/main.c (pic16_optionsTable): added command line option
1587 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
1588 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
1590 * src/pic16/NOTES: Raphael Neider added in list of active developers
1591 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
1592 jumptable_end to prevent bug #,
1593 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
1594 inCond and outCond fields,
1595 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
1596 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
1597 turn off register spilling,
1598 * (packRegsForOneUse): synced with other ports' versions although it
1599 is not used currently,
1600 * (pic16_packRegisters): added an optimization while reading
1601 structure bitfields, some registers may be saved (malloc code is
1602 decreased by 80 bytes)
1604 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
1606 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
1607 left is a bitfield, if yes, then don't optimize assignment. Perhaps
1608 this can be optimized more?
1610 2005-03-10 Raphael Neider <rneider AT web.de>
1612 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
1613 genNearPointerGet): (hopefully) fixed access to bitfields via
1614 pointers (p->bitN = x; and x = p->bitN; failed)
1616 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
1618 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
1620 2005-03-09 Raphael Neider <rneider AT web.de>
1622 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
1624 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
1626 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
1627 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
1628 (regTypeNum): set REG_BIT type if necessary
1629 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
1630 * support/regression/tests/critical.c: check bug 1144613
1632 2005-03-02 Raphael Neider <rneider AT web.de>
1634 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
1636 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1638 * src/avr/ralloc.c (serialRegAssign),
1639 * src/ds390/ralloc.c (serialRegAssign),
1640 * src/hc08/ralloc.c (serialRegAssign),
1641 * src/mcs51/ralloc.c (serialRegAssign),
1642 * src/pic/ralloc.c (serialRegAssign),
1643 * src/pic16/ralloc.c (serialRegAssign),
1644 * src/xa51/ralloc.c (serialRegAssign),
1645 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
1647 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1649 * src/SDCCast.c (decorateType): fixed bug 1124787
1651 2005-02-20 Hubert Sack <sack AT digiplan.de>
1652 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1654 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
1657 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1659 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
1660 to keep the correct label reference count when adding/removing references
1661 to labels. A peephole file using this is appended to patch #1144962.
1663 2005-02-14 Raphael Neider <rneider AT web.de>
1665 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
1666 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
1667 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
1668 retrievals of result operand's value on assignment
1670 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
1672 * device/include/pic16/string.h: modified prototype for memccpy()
1673 to memccpy(void *, void *, char, size_t)
1674 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
1675 check whether to omit frame pointer or not,
1676 * (genInline): convert all occurences of "\n" to LF in inline
1677 assembler blocks, this helps formatting the inline text,
1678 * (pic16_loadFSR0): modified prototype,
1679 * (genNearPointerGet, genNearPointerSet): reorganization of code,
1680 removed some 8051 legacy code,
1681 * (genPackBits): enabled handling bitfields exceeding one byte in size,
1682 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
1683 before allocating temporary registers in functions,
1685 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1687 * support/regression/tests/bitvars.c: corrected the "fix"
1689 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1691 * support/regression/tests/bitvars.c,
1692 * support/regression/tests/bitwise.c,
1693 * support/regression/tests/rotate.c: "fixed" problems on Alpha
1695 2005-02-10 Raphael Neider <rneider AT web.de>
1697 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
1698 different size for Alpha
1699 * src/pic16/gen.c (genCmpEq) : improved compare with 0
1701 2005-02-09 Raphael Neider <rneider AT web.de>
1703 * src/SDCC.lex(doPragma) : save and restore warning options as well
1704 (also added new stack plus clone- and copyAndFreeSDCCERRG())
1705 * have #pragma less_pedantic set the errorlevel to WARNING
1707 * (cloneOptimize) : fixed wrong malloc's size
1708 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
1709 facilitate correct handling of #pragma (save|restore)
1711 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1713 * src/mcs51/gen.c: removed non-standard C nameless struct/union
1715 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
1717 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
1719 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
1721 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
1723 2005-02-02 Raphael Neider <rneider AT web.de>
1725 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
1726 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
1727 * (pic16_storeForReturn): fixed to allow returning function pointers
1728 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
1729 * device/include/pic16/{stddef.h,stdbool.h}: added
1731 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
1733 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
1735 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
1737 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
1738 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
1739 appeared to be required
1741 2005-01-31 Borut Razem <borut.razem AT siol.net>
1743 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
1744 include/mcs51 and include/z80 directories to the package
1746 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1748 * src/hc08/gen.c (genFunction): fixed bug #1112752
1750 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1752 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
1754 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1756 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
1758 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
1760 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
1762 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
1764 * device/include/c8051fxxx.h: removed these 6 files
1765 * device/include/mcs51/c8051fxxx.h: added these 11 new files
1767 2005-01-26 Raphael Neider <rneider AT web.de>
1769 * src/pic16/gen.c (genAssign): fixed assignment from longs
1770 in codespace (were cut to three bytes)
1771 * (genDummyRead): implemented (except for CODESPACE...),
1773 * src/pic16/glue.c (emitStatistics): beautified
1774 * device/lib/pic16/libm/Makefile: added include path
1776 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1778 * src/z80/gen.c (aopPut): fixed bug #1103902
1780 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1782 * device/lib/expf.c: fixed bug #1095792
1784 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
1786 * device/lib/pic16/libm: added Math library sources
1788 2005-01-24 Raphael Neider <rneider AT web.de>
1790 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
1791 to enable upcast to pCodeOpReg2 (there is no type tag to
1792 differenciate the two and pic16_popGet2p cast into PCOR2)
1793 * src/pic16/main.c (_process_pragma): fixed another malloc bug
1794 (sizeof(sectNames) changed to sizeof(sectName))
1795 Both patches fix segfaults under MinGW.
1797 2005-01-23 Raphael Neider <rneider AT web.de>
1799 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
1800 Safe_[mc]?alloc()'ed variables
1801 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
1802 of (byte sized) temporaries (assign them to WREG for now)
1803 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
1804 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
1805 this might fix SIGSEGVs on MinGW...
1806 * src/SDCCopt.c (killDeadCode): restored original behaviour
1807 (volatile operands might get thrown away though)
1809 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
1811 * src/pic16/gen.c: fixed bug #1106975,
1812 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
1813 pointer update, INTCON is saved, global interrupts are disabled and
1814 restored after updateing TOS.
1815 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
1816 * added function attribute 'shadowregs' to take advantage of shadow
1818 * added function attribute 'wparam' as an alternative to the wparam
1820 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
1821 user declares a non-ISR function as 'shadowregs',
1822 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
1824 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
1826 * .version: bumped version number to 2.4.8
1827 * device/lib/pic16/pics.all: list of PIC18F devices supported by
1829 * device/lib/pic16/libio/i2c/: I2C module support library,
1830 * device/include/pic16/i2c.h: I2C support library header,
1831 * device/lib/pic16/libc/stdio/: standard IO support sources,
1832 * (printf_small.c): printf_small() source, supports float print,
1833 * (printf_tiny.c): printf_tiny() source, does not support floats,
1834 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
1835 enable global optimizations for entire library source, other
1836 Makefiles in the source tree are also modified to reflect this,
1837 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
1839 * doc/sdccman.lyx: updated to reflect new changes,
1840 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
1841 sym->onStack if-case,
1842 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
1843 sbit, idata, _idata, xdata, _xdata,
1844 * added pragma library, to link an external library, (see doc),
1845 * removed command line options, --pomit-config-words, --pomit-ivt,
1846 --pleave-reset-vector,
1847 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
1848 when calling assembler to reflect memory model used, also define
1849 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
1850 reflect stack model used,
1851 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
1852 on stack return NULL,
1854 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
1856 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
1857 of the operands is volatile. Fixes #1020220
1859 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
1861 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
1862 * (OptimizeRegUsage): make sure that there is really no other flow where
1863 the first pCode is used
1865 2005-01-22 Raphael Neider <rneider AT web.de>
1867 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
1868 to fix #1106967 (pCode->seq are not set up correctly)
1870 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1872 * src/SDCCglue.c (glue): make sure code area is declared before the
1873 static initialization area.
1875 2005-01-21 Raphael Neider <rneider AT web.de>
1877 * device/lib/Makefile.in: fixed test for pic16 install dir
1878 * device/lib/pic16/*/Makefile*: modified compile flags to enable
1880 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
1881 added --optimize-goto compiler switch and pragma wparam documentation
1882 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
1883 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
1884 and PRODH closing bug #1071770 (peephole optimizer)
1886 2005-01-19 Raphael Neider <rneider AT web.de>
1888 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
1889 cmdLine buffers (used when calling sdcpp...) are large enough
1890 (MAX_PATH=256 truncates arguments leading to system halts when
1892 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
1893 * (genUminus): rewritten to for efficiency
1894 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
1895 used uninitialized in some cases)
1896 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
1897 copy the third byte from the int -- now assumes 0x80 (data memory)
1898 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
1899 operands (genAddLit expects the iCode's operands to swapped as
1900 well), fixed leftover bytes (crashed for short left operands)
1901 * (pic16_genMinusDec): performance improvements, removed false
1903 * (pic16_genMinus): fixed to cope with differently sized operands
1904 * src/pic16/glue.c (pic16_glue): added new banksel optimization
1906 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
1907 * src/pic16/graph.[ch]: implementation of directed graphs, used by
1908 new banksel optimization
1909 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
1910 analysis for temporary registers (segfaults...)
1911 * src/pic16/peeph.def: added rule
1913 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
1915 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
1916 which converts a float number to its ASCII representation
1917 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
1918 functions to convert the fractional and integer part of a float to ASCII,
1919 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
1920 realloc.c): added _MALLOC_SPEC to explicit place variables in data
1922 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
1924 * device/include/pic16/adc.h: added GPL info,
1925 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
1926 a pCodeOp as tested operand,
1927 * (genNearPointerGet): optimized bit testing, does not use
1928 intermediate register for bit value, test directly instead with
1929 BTFSS, BTFSC, works only for single bits,
1930 * (genpic16Code): dump the name of the iCode in the asm,
1931 * src/pic16/ralloc.c (decodeOp): removed static declaration and
1932 renamed to pic16_decodeOp,
1933 * (serialRegAssign): do not allocate a temporary register for iCode
1934 sequences that test a single bit for 1/0
1936 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
1938 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
1939 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
1940 access stack and frame pointers. They are initially assigned to
1941 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
1942 accessing SFRs. Updated all occurences of modification of stack or
1943 frame pointer in gen.c and pcode.c,
1944 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
1945 assigning of a literal value to pointers,
1946 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
1947 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
1950 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
1952 * doc/sdccman.lyx: update documentation about stack pragma, added
1953 some info for stack memory models
1955 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1957 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
1959 2005-01-08 Raphael Neider <rneider AT web.de>
1961 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
1962 udata sections to fix bug #1097823
1964 2005-01-05 Raphael Neider <rneider AT web.de>
1966 * src/pic16/gen.c (genGenericShift): added handling of differently
1967 sized left operand and result
1969 2005-01-04 Raphael Neider <rneider AT web.de>
1971 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
1972 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
1973 to hold the condition bit)
1974 * added new version of genCmp (old code available via #define)
1975 * added new version of genShiftLeft/genShiftRight in a generic
1976 way, now supports shifting by negative values
1977 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
1978 shiftCount (expected by genGenericShift)
1979 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
1980 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
1982 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
1983 is an invalid literal too...)
1985 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
1987 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
1988 from Raphael Neider,
1989 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
1990 for 8-bit literals. This fixes some literal operands which are sign
1991 extended to 16-bits ints when instruction needs only 8-bits.
1993 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
1995 * device/lib/logf.c: added mcs51 assembly version
1996 * device/lib/expf.c: added mcs51 assembly version
1997 * device/lib/_logexpf.c: new shared asm code for expf and logf
1998 * device/include/math.h: add defines for assembly math library
1999 * device/lib/Makefile.in: build new _logexpf.c
2000 * device/lib/libfloat.lib: use new _logexpf.c
2002 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2005 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
2006 device types which have less than 0x7f registers.
2008 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
2010 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
2012 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2014 * device/lib/printf_fast.c: only build on supported arch.
2015 * device/lib/printf_tiny.c: only build on supported arch.
2016 * device/lib/printf_fast_f.c: only build if asm float lib
2017 * device/lib/_fsget1arg.c: only build if asm float lib
2018 * device/lib/_fsget2args.c: only build if asm float lib
2019 * device/lib/_fsnormalize.c: only build if asm float lib
2020 * device/lib/_fsreturnval.c: only build if asm float lib
2021 * device/lib/_fsrshift.c: only build if asm float lib
2022 * device/lib/_fsswapargs.c: only build if asm float lib
2023 * device/include/stdio.h: don't provide print_fast,
2024 print_fast_f, print_tiny prototypes if --xstack used
2026 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
2028 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
2029 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
2032 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
2034 * device/lib/printf_fast_f.c: same as printf_fast, but
2035 with floating point enabled
2036 * device/lib/printf_fast.c: minor tweaks
2037 * device/include/stdio.h: add printf_fast_f
2039 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2041 * src/SDCCmain.c: make --float-reent default for mcs51
2042 * device/lib/_fsadd.c: added mcs51 assembly version
2043 * device/lib/_fssub.c: added mcs51 assembly version
2044 * device/lib/_fsmul.c: added mcs51 assembly version
2045 * device/lib/_fsdiv.c: added mcs51 assembly version
2046 * device/lib/_fseq.c: added mcs51 assembly version
2047 * device/lib/_fsneq.c: added mcs51 assembly version
2048 * device/lib/_fsgt.c: added mcs51 assembly version
2049 * device/lib/_fslt.c: added mcs51 assembly version
2050 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
2051 * device/lib/Makefile.in: add _fscmp to build
2052 * device/lib/libfloat.lib: add _fscmp to build
2054 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
2056 * device/lib/_fs2slong.c: added mcs51 assembly version
2057 * device/lib/_fs2sint.c: added mcs51 assembly version
2058 * device/lib/_fs2schar.c: added mcs51 assembly version
2059 * device/lib/_fs2ulong.c: added mcs51 assembly version
2060 * device/lib/_fs2uint.c: added mcs51 assembly version
2061 * device/lib/_fs2uchar.c: added mcs51 assembly version
2062 * device/lib/_slong2fs.c: added mcs51 assembly version
2063 * device/lib/_sint2fs.c: added mcs51 assembly version
2064 * device/lib/_schar2fs.c: added mcs51 assembly version
2065 * device/lib/_ulong2fs.c: added mcs51 assembly version
2066 * device/lib/_uint2fs.c: added mcs51 assembly version
2067 * device/lib/_uchar2fs.c: added mcs51 assembly version
2068 * device/include/float.h: added #define to select asm vs c
2070 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
2072 * device/lib/printf_fast.c: improvements to float output
2073 * device/include/float.h: add defines for assembly float library
2074 * device/lib/_fsget1arg.c: receive 1 float arg
2075 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
2076 * device/lib/_fsnormalize.c: normalize a float
2077 * device/lib/_fsreturnval.c: return float, various helper routines
2078 * device/lib/_fsrshift.c: right shift a float's mantissa
2079 * device/lib/_fsswapargs.c: swap 2 floats
2080 * device/lib/Makefile.in: build these 6 new files for mcs51
2081 * device/lib/libfloat.lib: add these 6 files to the library
2083 2004-12-26 Borut Razem <borut.razem AT siol.net>
2085 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
2088 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
2090 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
2091 and fully reentrant and register bank neutral.
2092 * device/lib/printf_fast.c: added float (not enabled by default),
2093 added compact/slower integer (also not enabled by default),
2094 improved size/speed of fast integer code, other minor changes
2095 * device/include/stdio.h, device/lib/Makefile.in,
2096 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
2098 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
2100 * src/pic16/pcode.c: declaring variables other than at the start of a
2101 block is not supported in C by VC6.
2103 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
2105 * applied a previous patch from Raphael Neider that wasn't included
2106 in the previous commits, which fixes infinite loops within jumptable
2108 * made some fixes that previous patches introduced
2110 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
2112 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
2113 that fixes an issue with AOP_PCODE asmop's offset,
2114 * (pic16_popCopyReg): update instance field too,
2115 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
2116 function of pic port,
2117 * (genCmp, genAnd, genAssign),
2118 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
2120 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
2122 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
2123 variables initial values to idata section,
2124 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
2125 variables in some functions. This utilizes parmBytes field of iCode
2126 structure to hold the offset of the variable in stack. (might be
2127 able to use the stack field too?)
2128 * applied patch from Raphael Neider # ### , # ###
2129 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
2130 variable initial values in idata section,
2131 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
2132 for static variables with initial value
2133 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
2134 applied fix in while loop from Raphael Neider.
2136 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
2138 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
2139 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
2140 * src/ds390/ralloc.c (serialRegAssign): spill bits
2141 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
2142 * support/Util/SDCCerr.c,
2143 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
2144 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
2145 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
2147 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
2149 * device/include/sdcc-lib.h: inserted LGPL, added includes
2150 asm/ds390/features.h and asm/mcs51/features.h
2151 * device/include/asm/default/features.h,
2152 * device/include/asm/gbz80/features.h,
2153 * device/include/asm/z80/features.h: added empty _AUTOMEM
2155 * device/include/asm/ds390/features.h,
2156 * device/include/asm/mcs51/features.h: added files with defines for
2157 _AUTOMEM and _STATMEM indicating automatic and static storage class
2158 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
2159 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
2160 * src/SDCCicode.c (geniCodeCast),
2161 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
2162 * src/SDCCloop.c (loopInduction): removed unused variable lr
2163 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
2164 to convertToFcall to include char modulo (RFE 1065037), added check
2165 if left operand is unsigned and use abs of literal value
2166 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
2167 as it doesn't work after conversion from peephole.def to peephole.rul
2168 * src/mcs51/gen.c (toBoolean): added check for size,
2169 (genModOneByte): optimized code for signed char modulo a literal
2170 power of 2 (thanks to Hubert Sack),
2171 (genRRC): removed unnecessary "clr c",
2172 (genRLC): replaced "add a,acc" with cheaper "rlc a"
2173 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
2175 swapped rules 256.c and 256.d,
2176 extended 256.d by using new multiple checks (thanks Erik),
2177 added rules 256.e and 256.f,
2178 updated rule 261.a and 261.b to new generated code
2179 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
2181 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2183 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
2184 induction related bugs, including first part of bug #1074377
2186 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
2188 * applied patch from bug-report #1076292,
2189 * applied patches for genAnd and Goto-optimizations for Raphael
2191 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
2192 dump a less iCode information,
2193 * src/pic16/device.h (pic16_options_t): added field debgen,
2194 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
2195 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
2196 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
2198 * (various functions): added macros FENTRY and FENTRY2 to functions,
2199 to emit function prologue,
2200 * (various functions): fixed indentation,
2201 * (genNearPointerGet): fixed loading of FSR0,
2202 * (genPackBits): applied patch from Raphael Neider to fix updating
2203 of FSR0 and touching only the modified bits,
2204 * src/pic16/genarith.c (various functions): added macros FENTRY to
2205 emit function prologue in comments,
2206 * src/pic16/pcode.h: added functions debugf2, debugf3,
2207 * src/pic16/ralloc.c: partial fix for packForPush caused
2210 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2212 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
2213 <stsp AT users.sourceforge.net> with reversed byte order
2214 * support/regression/tests/rotate.c: added (ds390 skips some tests)
2216 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2218 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
2220 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
2221 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
2223 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
2225 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
2227 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2229 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
2231 (setFromConditionArgs): friendly operand parser for peephole rules,
2232 (operandBaseName, operandsNotRelated): new peephole condition
2233 "operandsNotRelated" -- similar to "operandsNotSame", but takes
2234 architecture specific register naming into account, handles n-way
2235 comparisons, and supports quoted literals
2236 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
2238 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2240 * src/mcs51/peeph.def: fixed bug #1076940
2242 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
2244 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
2246 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2248 Adding support for replacing ljmps with sjmps in jumptables
2249 generated for switch statements. For now you need to set the
2250 environment variable SDCC_SJMP_JUMPTABLE to enable this.
2251 Now 4 algorithms for mcs51 jumptable generation are used:
2252 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
2253 addresses loaded pc-relative for up to 112 cases and stack-pushing
2254 target addresses loaded with offset from dptr for up to 256 cases.
2256 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
2257 * src/mcs51/main.c: adapted constants for switch table generation
2258 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
2260 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
2262 * device/lib/printf_large.c (_print_format): fixed bug 1073386
2263 * support/regression/tests/bug1057979.c: added test for bug 1073386
2265 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
2267 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
2270 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
2272 * src/pic16/device.h,
2273 * src/pic16/genarith.c,
2276 * src/pic16/pcode.c: applied patches #1068154 and #1070213
2278 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
2280 Large cummulative patch for pic16 port.
2281 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
2282 to call when a stack overflow occurs,
2283 * (malloc.h): added CVS Id tag,
2284 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
2286 * added libc directory. The current version of LibC contains string
2287 functions, ctype functions and macros and some functions of the
2288 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
2289 be extensively tested in the future. Standard disclaimer here.
2290 Library is not automatically build yet. But one can build it by
2291 invoking 'make' inside the libc directory.
2292 * added ADC library under libio. Preliminary version yet.
2294 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
2295 * src/pic16/gen.c (aopForRemat): asmop size is filled by
2296 aopForRemat() now and not by pic16_aopOp(),
2297 * (pic16_popGetTempReg): removed warning messgae when allocating
2298 temporary registers, its a buggy feature and will be removed,
2299 * (pic16_popGet): set register instance field in AOP_CRY,
2300 * (pic16_outBitC): fixed for results in size greater than 1,
2301 * (genUminusFloat): fixed for pic16, ported code from mcs51,
2302 * (pic16_storeForReturn): optimized return of 0,
2303 * (genCmp): experimental code for new genCmp which uses PIC18's
2304 special compare&skip instructions. Initial tests fail some times
2305 with variables grater than 1 byte in size, so new code is disabled,
2306 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
2308 * (genCast): began a fix to optimize the casting of a bit to another
2309 bit, now assigning a bitfield to another bitfield will fail, sorry,
2310 * src/pic16/main.c: disabled the use of lr-support feature,
2311 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
2312 * added some function prototypes, added function _debugf prototype,
2313 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
2314 bits with offset (case PO_GPR_BIT),
2315 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
2317 * (isBankInstruction): modified to return 0 for no banking instruction,
2318 and 1 for banking instruction,
2319 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
2320 caused stop processing pCodes after a inline assembly block,
2321 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
2322 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
2323 registers when it shouldn't,
2324 * src/pic16/ralloc.c (allocReg): add preliminary support for
2325 supporting a limited set of temporary registers,
2327 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2329 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
2330 genDataPointerSet): ensure assignments always copy in MSB to LSB
2332 (loadRegFromAop): recognize CLRH optimization,
2333 (genFunction): optimize RECEIVE iCodes in reentrant functions
2335 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2337 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
2338 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
2340 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
2341 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
2342 contiguous with data
2344 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2346 * device/lib/_gptrget.c (_gptrget),
2347 * device/lib/_gptrgetc.c (_gptrgetc),
2348 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
2349 instead of sjmp to ret
2350 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
2351 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
2353 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
2355 * .version: bumped version to 2.4.7
2356 * device/lib/_gptrget.c (_gptrget): is now _naked
2357 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
2358 * device/lib/_gptrput.c (_gptrput): is now _naked
2359 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
2360 (createFunction): fixed xstack
2361 * src/SDCCglue.c (emitMaps): set allocation required for bit area
2362 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
2364 (geniCodeCritical): store original interrupt state in an iTemp bit
2365 var unless stack-auto
2366 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
2367 * src/SDCCmain.c (setIncludePath): added include/target to search path
2368 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
2369 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
2371 (processFuncArgs): put bit vars in bit area
2372 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
2373 unsaveRBank): fixed xstack,
2374 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
2375 (genFunction, genEndFunction): fixed xstack,
2376 (genAssign): optimization don't walk backwards through mem
2377 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
2378 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
2379 * support/regression/Makefile: also make library (for stack-auto) when
2380 making "all" and added "test-mcs51-xstack-auto"
2381 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
2382 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
2383 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
2384 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
2385 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
2386 make-library by MAKE_LIBRARY
2387 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
2388 regression tests for xstack
2389 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
2390 * support/regression/tests/critical.c: test for critical on mcs51
2392 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2394 * support/regression/ports/ucz80/spec.mk: use include and lib files from
2395 built version of sdcc instead of installed version
2397 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2399 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
2400 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
2402 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
2403 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
2404 WARNING: remove device/lib/build/z80/printf.o by hand when
2405 updating from previous build!
2406 * device/lib/z80/printf.c: updated comment
2407 * support/regression/tests/bug1057979.c: test all ports now
2408 * support/regression/tests/bug1065458.c: file added
2410 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2412 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
2413 *_start and *_end symbols for static functions
2415 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2417 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
2418 and search crt0.o in all library paths,
2419 (setIncludePath): proper handling of --nostdinc,
2420 (setLibPath): proper handling of --nostdlib
2421 * support/regression/Makefile,
2422 * support/regression/ports/ds390/spec.mk,
2423 * support/regression/ports/gbz80/spec.mk,
2424 * support/regression/ports/hc08/spec.mk,
2425 * support/regression/ports/mcs51/spec.mk,
2426 * support/regression/ports/mcs51-large/spec.mk,
2427 * support/regression/ports/mcs51-stack-auto/spec.mk,
2428 * support/regression/ports/z80/spec.mk: use include and lib files from
2429 built version of sdcc instead of installed version
2430 * doc/sdccman.lyx: fixed typo in --nostdinc
2432 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
2437 * src/pic/gen.c : added support to generate code for struct bit fields.
2439 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
2441 * as/xa51/xa_version.h,
2442 * device/include/errno.h,
2443 * device/include/regc515c.h,
2444 * device/lib/_itoa.c,
2445 * device/lib/_ltoa.c,
2446 * device/lib/ser_ir_cts_rts.c,
2447 * sim/ucsim/xa.src/glob.cc,
2448 * sim/ucsim/xa.src/inst_gen.cc,
2449 * sim/ucsim/xa.src/xa_bit.cc,
2450 * sim/ucsim/xa.src/xa_sfr.cc,
2451 * sim/ucsim/z80.src/inst_dd.cc,
2452 * sim/ucsim/z80.src/inst_fdcb.cc,
2453 * support/scripts/keil2sdcc.pl,
2454 * src/pic16/pic16.dsp,
2455 * src/pic16/pic16a.dsp: corrected cvs line endings
2456 * device/lib/printf_large.c: fixed bug 1057979
2457 * src/pic16/gen.c: fixed non-C standard code
2458 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
2459 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
2460 * support/regression/ports/mcs51/support.c: reload T1 asap
2461 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
2462 pdata use and clear idata startup behaviour
2463 * support/regression/tests/bug1057979.c: added
2465 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
2467 * device/examples/ds390/ow390/ad26.h,
2468 * device/examples/ds390/ow390/cnt1d.h,
2469 * device/examples/ds390/ow390/crcutil.c,
2470 * device/examples/ds390/ow390/ownet.h,
2471 * device/examples/ds390/ow390/owsesu.c,
2472 * device/examples/ds390/ow390/swt12.h,
2473 * device/examples/ds390/ow390/swtoper.c,
2474 * device/examples/ds390/ow390/temp10.h,
2475 * device/examples/ds390/ow390/thermodl.c,
2476 * device/examples/ds390/tinitalk/tinitalk.dsp,
2477 * device/examples/ds390/tinitalk/tinitalk.dsw,
2478 * device/examples/mcs51/clock/hw.h,
2479 * device/examples/mcs51/simple2/go.bat,
2480 * device/examples/serialcomm/windows/serial.h,
2481 * device/examples/xa51/dummy.c,
2482 * device/examples/xa51/hello.c,
2483 * device/include/80c51xa.h,
2484 * device/include/at89x051.h: corrected cvs line endings
2486 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
2488 * src/pic16/main.c (options): added command line --gstack, to trace
2489 stack over/under flows,
2490 * added pragma 'wparam' to allow passing first byte of function
2491 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
2492 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
2493 call to __gstack_test function and sets up the symbol as extern,
2494 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
2495 * popaop): added call to pic16_testStackOverflow,
2496 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
2498 * (genCall, genPcall): now all parameters are passed via stack
2499 except in functions that are pass to wparam pragma in which WREG is
2501 * (genPcall): REENTRANT flag is checked to see if variable prototype
2502 contains reentrant keyword, don't call a non-reentrant function, via
2503 a reentrant function pointer or vice versa, functions are never
2505 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
2507 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
2508 SIGSEGV when accessing a NULL register stucture,
2509 * (pic16_printGPointerType): modified to handle UPPER modifier for
2510 function initializers, changed prototype of function to simpler one,
2511 * (pic16_printIvalFuncPtr): check to see if function is already
2512 added in externs list,
2513 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
2514 optimized a move from W to SFR with a move to the same register
2516 * device/lib/pic16/debug: NEW directory, contains debug features
2517 which are enabled when linking with libdebug.lib, currently command
2518 line option --gstack enables stack pointer tracing for over/under
2519 flow, corresponding sources are in debug/gstack
2521 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
2523 * doc/sdccman.lyx: updated SDCC version,
2524 * (PIC16 port): update list of command line options,
2525 * src/pic16/device.h (structure pic16_options_t): added field gstack
2526 to enable stack overflow tracing on push/pops,
2527 * src/pic16/device.c (statistics structure): added statistics
2529 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
2530 pic16_dump_int_registers): increase statistics counters for each
2531 * variable which is encountered
2532 * (pic16_dump_usection): emit each .udata variable to its own udata
2534 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
2535 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
2536 parameters via stack, otherwise use old scheme,
2537 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
2538 assembler output file,
2539 * src/pic16/main.c: added command line options --gstack to enable
2540 push/pop tracing for stack overflow,
2541 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
2542 instructions): added size of each instruction,
2543 * (pic16_countInstruction): estimate size of instructions in
2544 the_pFile list, inline assembly blocks are not counted,
2545 * (pic16_FixRegisterBanking): trace previous register usage, when
2546 banksel optimizations is greater than 0, don't emit a redudant
2549 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
2551 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
2552 * src/pic16/ralloc.c : applied same fix for pic16.
2553 * src/pic/gen.c : tidied it up a little.
2555 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2557 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
2558 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
2560 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2562 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
2564 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2566 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
2567 non-reentrant function __modsint in the interrupt function (thus
2568 corrupting math operations during serial I/O)
2569 * device/lib/ser_ir.c: as above, changed buffersize
2570 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
2572 * doc/Makefile: added option -t for rsync
2574 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2576 * src/SDCCast.h (struct ast),
2577 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
2579 2004-10-20 Borut Razem <borut.razem AT siol.net>
2581 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
2584 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
2586 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
2588 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
2589 support functions to replace long sequences of MOVFF's from access
2590 bank registers to stack and vice versa,
2591 * src/pic16/device.h: added new field opt_flags, where optimization
2592 flags can be set to enable certain features,
2593 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
2594 * pBlock, (genFunction, genEndFunction): surroung loop for
2595 saving/loading used registers in stack with PC_INFO pCodes,
2596 INF_LREGS. Code in between can then be optimized by pCode optimizer
2597 to support function calls,
2598 * (genDataPointerSet): fixed bug which loaded float fields in
2599 structures with corrupt data,
2600 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
2601 in a standard way debug info on stderr. Feature used for developing
2603 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
2604 obsolete chunks of code,
2605 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
2606 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
2607 * pic16/src/pcode.c (pic16_newpCodeInfo,
2608 * (pic16_newpCodeOpLocalRegs),
2609 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
2611 * (pic16_pCodeConstString): printing of the initial value of a
2612 symbol as a comment is inhibited since parsing was already done by
2613 copyStr and output is corrupt,
2614 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
2616 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2618 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
2620 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2622 * as/mcs51/lkarea.c: removed old K&R style,
2623 (lnksect): changed check on boundary error,
2624 (lnksect2): changed check on boundary error,
2625 (lnksect2): extend XSTK to end of page if size = 1
2626 * as/mcs51/lkmain.c: removed old K&R style,
2627 (Areas51): create l_IRAM symbol
2628 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
2629 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
2630 model-mcs51-stack-auto, added model-mcs51-xstack-auto
2631 * device/lib/_mullong.c: added version to be compiled with xstack
2632 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
2633 * device/lib/mcs51/crtxclear.asm: clear pdata as well
2634 * device/lib/mcs51/crtxstack.asm: fixed comment
2635 * src/SDCCglue.c: maxInterrupts defaults to 0,
2636 (emitMaps): added pdata,
2637 (createInterruptVect): (re)moved default,
2638 (glue): added pdata,
2639 (glue): moved __start__xstack to XSTK with default size 1
2640 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
2641 and options.float_rent when options.stackAuto is set,
2642 (linkEdit): only write XDATA_NAME if provided on command line
2644 * src/SDCCmem.c: added pdata
2645 * src/port.h: added pdata_name to PORT
2646 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
2647 (saveRegisters, unsaveRegisters): removed usage of B,
2648 (genMinus): fixed accumulator clash,
2649 (genJumpTab): added comment, this needs another look
2650 * src/mcs51/gen.c: added check for "B in use" paranoia,
2651 added pushB() and popB()
2652 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
2661 * src/z80/main.c: (reset_regparms) made void parameter explicit and
2662 added PSEG (PAG,XDATA) or NULL to port specifier
2663 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
2664 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
2665 (_mcs51_genInitStartup): removed __start__xstack equ,
2666 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
2667 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
2668 * src/z80/gen.c (_rleAppend): fixed warnings
2669 * support/regression/tests/zeropad.c: added pdata test
2670 * .version: bumped to 2.4.6
2672 2004-10-17 Borut Razem <borut.razem AT siol.net>
2674 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
2675 as a part of nightly build
2677 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
2679 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
2680 WREG holds the first byte function parameters,
2681 * (aopForSym): take special case for symbols which are in FARSPACE
2682 but in CODESPACE too,
2683 * (assignResultValue): modified to take into account _G.useWreg,
2684 * (genCall): don't use wreg for parameter passing when function is
2685 declared as reentrant, too, added optimization INCF to stack
2686 pointer when stack parameter count is 1,
2687 * (genFunction, genEndFunction): refurnished and fixed to not using
2688 wreg for passing parameters when function has varargs or is
2689 reentrant, fixed bug with symbol name compare for generating
2690 functions in absolute address,
2691 * (pic16_storeForReturn): refurnished,
2692 * (genCmp): began writing a new version of the function, not ready
2693 yet, therefore it is disabled,
2694 * (genAssign): do not read code memory when assigning a function to
2696 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
2697 array of characters, not pointer,
2698 * (pic16initialComments): in debug mode emit an .ident directive for
2700 * (_process_pragma): emit a new warning type (internal to pic16)
2701 when setting stack to default length, emit a similar warning when
2702 placing a function at absolute address and address is not word aligned
2703 * (_pic16_parseOptions): added 'return TRUE' statement,
2704 * (_pic16_linkEdit): if compiling a source, then add the source's
2705 file object, first in the list of objects to link,
2707 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
2709 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
2710 * src/pic/main.c : removed VC warning.
2711 * src/pic/gen.c : changed comment.
2713 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
2715 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
2716 reference to a deprecated symbol _GPTRREG was causing failure to
2717 link. Thanks G. M. Gallant for the info.
2719 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
2721 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
2722 comments for Bugs item #954788.
2724 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
2726 * src/pic16/device.c (pic16_dump_gsection,
2727 * pic16_groupRegistersInSection): handle symbols declared to be in
2728 access bank differently,
2729 * src/pic16/gen.c (struct _G): added field resDirect,
2730 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
2731 send values read from stack directly to result and don't allocate
2733 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
2735 * (pic16_sameRegsOfs): NEW,
2736 * (freeAsmop): if _G.resDirect is set then do not mark registers as
2737 free because they were not allocated from temporary pool,
2738 * pic16_popRegFromString): workaround to fix a problem with
2739 allocating variables twice or never,
2740 * (genGenPointerGet): using PRODL instead of FSR0H,
2741 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
2743 * (genAssign): take advantage of the _G.resDirect flag,
2744 * (genCast): around line 11844, use mov2f instead of directly
2745 MOVFF'ing between operands to account for literal values,
2746 * src/pic16/genutils.c: some new debug functions for gpsim have been
2748 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
2749 float with integer part only,
2750 * src/pic16/main.c (_process_pragma): handle pragma udata access to
2751 place variables in access bank
2752 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
2753 updated sources to reflect recent changes in gen.c
2755 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
2757 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
2758 sources that searched for headers in installation path, now the
2759 device/include/pic16 is used,
2760 * src/pic16/glue.c (pic16glue),
2761 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
2762 .line directives if not in debug mode, this suppresses assembler's
2763 warnings for ignored directives
2765 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2767 * src/port.h: made reset_regparms prototype void parameter explicit.
2768 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
2769 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
2770 * doc/sdccman.lyx: documented warning disabling and how to use
2771 printf_large to make it print floats.
2772 * device/include/stdbool.h: NEW
2773 * device/lib/_atof.c,
2774 * device/lib/_divuint.c,
2775 * device/lib/_divulong.c,
2776 * device/lib/expf.c,
2777 * device/lib/printf_large.c,
2778 * device/lib/sincosf.c,
2779 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
2780 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
2781 a completely reentrant lib.
2783 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
2785 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
2786 * device/include/pic16/stdio.h: fixed bug with colon
2788 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
2790 * device/include/pic16/stdio.h,
2791 * device/include/pic16/stdlib.h,
2792 * device/include/pic16/math.h: NEW
2793 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
2794 declared as _naked to reduce overhead
2795 * device/lib/Makefile.in (target port-specific-objects-pic16):
2796 changed * to *.* so to ignore the CVS directory,
2797 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
2798 stacked variables back in stack,
2799 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
2802 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
2804 * .version: bumped version number to 2.4.5
2805 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
2806 * support/Util/SDCCerr.c (messages structure): added entry for
2809 Large cumulative patch for pic16 port and libraries.
2810 * device/include/pic16/sdcc-lib.h,
2811 * device/include/pic16/stdarg.h,
2812 * device/include/asm/pic16/features.h,
2813 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
2814 * device/include/pic16/float.h: changes reentrant keyword with
2815 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
2816 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
2817 updated target build-libraries to include objects from gptr,
2818 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
2819 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
2820 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
2821 all function headings,
2822 * src/SDCCmain.c: added global parameter userIncDirsSet,
2823 * (parseCmdLine): when option -I is encountered add directory to
2825 * src/version.awk: added space between control and long,
2826 * src/pic16/NOTES: added some notes for the port,
2827 * src/pic16/gen.c: added prototype for mov2fp function,
2828 * (fReturnpic16[]): properly named return value registers,
2829 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
2830 * (aopForSym): added code to handle symbols with onStack flag set,
2831 symbols onStack are allocated PTRSIZE bytes,
2832 * (aopFreeAsmop): handles special case where asmops are stack objects,
2833 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
2834 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
2835 added argument lock to trace flaws in allocating temporary registers
2836 when developing port,
2837 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
2838 * (pic16_popRegFromString): reenabled allocating a direct register
2840 * (assignResultValue): various beautifications,
2841 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
2842 referenced function argument,
2843 * (genIpush): reenabled to allow stacked arguments, handles only
2844 ic->parmPush iCodes,
2845 * (genCall, genPcall): major changes to allow for variable argument
2846 functions, fixed a bug with falsely restoring stack pointer after
2847 returning from call,
2848 * (genFunction): pending code for critical function,
2849 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
2850 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
2851 * (genNearPointerGet): fixed bug with indirect reading, was always
2853 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
2855 * (genAddrOf): rewrote code to take address of a stacked function parameter
2856 * (genCast): fixed casting to generic pointer type,
2857 * src/pic16/gen.h: added AOP_STA,
2858 * (struct asmop): added field stk,
2859 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
2860 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
2861 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
2862 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
2863 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
2864 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
2866 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
2868 * (pic16_port structure): generic pointer size is set to 3,
2869 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
2870 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
2872 * src/pic16/ralloc.c (allocReg): prevent allocating register when
2873 operand is an iTemp,
2875 2004-09-24 Martin Helmling <mh AT octo-soft.de>
2877 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
2878 * debugger/mcs51/simi.c: addapt new syntax of s51
2880 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
2882 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
2883 * src/pic16/pcode.c: commented out some calls to free() in order to
2886 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2889 * src/SDCCicode.c (isiCodeInFunctionCall),
2890 * src/avr/ralloc.c (selectSpil),
2891 * src/pic/ralloc.c (selectSpil),
2892 * src/pic16/ralloc.c (selectSpil),
2893 * src/ds390/ralloc.c (selectSpil),
2894 * src/hc08/ralloc.c (selectSpil),
2895 * src/xa51/ralloc.c (selectSpil),
2896 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
2897 stack in the middle of a function call sequence (fixes bug #1020268)
2898 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
2899 costs associated with the minimum switch case.
2901 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2903 * src/SDCC.lex: fixed bug #1030549
2905 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2907 * src/SDCCcse.h (struct cseDef),
2908 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
2909 over a function call if the CSE is derived from a symbol whose
2910 address has been taken (fixes bug #1029883)
2911 * support/regression/tests/bug-1029883: a new regression test for
2914 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2916 * src/hc08/gen.c (emitinline): fixed bug #1029778
2917 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
2918 to a cast object is no longer a syntax error ("fixes" bug #1030006,
2919 and starts toward RFE #905167)
2921 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
2923 * src/pic16/gen.c (mov2f): New function to move an operand to
2924 another without considering if it is a literal or a register,
2925 * (pic16_sameRegs): don't check if they are both AOP_REG,
2926 * (AccRsh): removed andmask=0 lines,
2927 * (genLeftShift): duplicated to be improved in future versions,
2928 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
2929 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
2930 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
2931 * (pic16initMnemonics): added initialization for POC_INFSNZW,
2932 * (insertBankSwitch): fixed inserting banksel directives algorithm
2933 for instructions that follow a skip instruction, this fixes a report
2934 for broken subtraction code generation,
2935 * src/pic16/ralloc.c (deassignLRs): do not free register if current
2936 iCode is a left op, just in case result and right share the same
2939 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2942 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
2944 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
2945 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
2946 on 2004-09-12; it was buggy
2948 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
2950 * src/SDCCsymt.h: removed RESULT_CHECK
2955 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
2957 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
2959 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
2960 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
2961 configuration values no more rejected by compiler, they are assigned
2962 to configuration registers with a warning message instead,
2963 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
2964 the for-loop so last conf register is emitted too,
2965 * (_pic16_initPaths): link library libsdcc.lib by default,
2966 * (_hasNativeMulFor): modified test for multiplication according to
2967 Raphael Neider's remarks. Integer multiplication is also done with
2969 * device/include/pic16/pic18fregs.h: corrected type error in while
2970 testing and including 18f6720 header file
2972 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
2974 * src/pic16/device.h (pic16_options): removed field use_crt,
2975 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
2976 until an optimization to handle single bits is added,
2977 * (pic16_loadFSR0): moved before genUnpackBits,
2978 * (genAnd): some white lines removed,
2979 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
2980 leave_reset flags in pic16_options when using crt modules,
2982 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
2984 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
2985 for bugs 898889 & 979599. Also used some safer print instructions.
2987 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
2989 * src/pic16/device.h (pic16_options_t): added field use_crt,
2991 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
2992 catch a probable future bug,
2993 * src/pic16/gen.c: aopIdx function commented out,
2994 * (genAssign): commented out old code which used aopIdx,
2995 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
2996 code, added if conditionals to take into account the --use-crt
2997 command line options,
2998 * src/pic16/main.c (pic16_optionsTable): added new command line
2999 options, --use-crt= and --no-crt,
3000 * (_pic16_linkEdit): now the proper crt object is added in the
3001 linker command line except than when --no-crt is specified,
3002 * src/pic16/pcode.c,
3003 * src/pic16/pcode.h: added some structures and functions for a new
3004 optimization scheme to compansate for instruction overhead between
3005 same iCodes, this scheme is currently under development and is not
3007 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
3009 * device/lib/pic16/startup/crt0i.c,
3010 * device/lib/pic16/startup/crt0iz.c: added global char variable
3011 __uflags to force the generation of an idata section
3013 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
3016 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
3017 * doc/sdccman.lyx: updated sdcc version to 2.4.4
3019 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3021 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
3022 Frieder) and clarified the default code optimization mode
3024 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3026 * src/SDCC.lex (doPragma, process_pragma),
3027 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
3028 "opt_code_size", and "opt_code_balanced"
3029 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
3030 regrouped options by category, added support for category headers
3031 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
3032 and "--opt-code-size"
3033 * doc/sdccman.lyx: documented these new options and pragmas
3034 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
3035 preference into account
3037 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3039 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
3040 geniCodePreDec): Fixed bug 904237 by generating a warning
3042 * src/SDCCerr.c: added warning W_SIZEOF_VOID
3044 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
3046 * src/pic/device.c : When no max ram set validate full memory range.
3048 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
3050 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3052 * device/lib/_gptrget.c,
3053 * device/lib/_gptrput.c: updated comment
3054 * device/lib/calloc.c,
3055 * device/lib/free.c,
3056 * device/lib/malloc.c,
3057 * device/lib/realloc.c: added LGPL, made them reentrant-safe
3058 * src/SDCCcse.c (cseBBlock),
3059 * src/SDCCicode.c (printOperand, geniCodeArray),
3060 * src/SDCCicode.h (struct operand): fixed bug 868103
3061 * support/regression/tests/bug-868103.c: added
3062 * src/SDCCast.c (searchLitOp),
3063 * src/SDCCcse.h (struct cseDef),
3064 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
3065 * src/SDCCicode.h (struct operand),
3066 * src/SDCCsymt.h (struct sym_link),
3067 * src/avr/gen.c (hasInc),
3068 * src/ds390/gen.c (hasInc),
3069 * src/hc08/gen.c (genPlusIncr, hasInc),
3070 * src/mcs51/gen.c (hasInc),
3071 * src/pic16/glue.c (pic16_printIvalChar),
3072 * src/pic16/ralloc.c (regWithIdx),
3073 * src/xa51/gen.c (hasInc) : removed warnings
3074 * src/SDCCast.c (createBlock): added comment ???
3075 * src/hc08/ralloc.c: updated comments
3077 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3079 * doc/sdccman.lyx: updated section on switch statements, added
3080 section about semaphore locking
3081 * doc/Makefile: added option -info for latex2html
3082 * device/lib/_gptrget.c,
3083 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
3085 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3089 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
3090 maxram is less than 0x100.
3092 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
3094 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
3096 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3107 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
3108 a jump table is the best form for a switch statement, including
3109 automatic insertion of missing cases to make the case range
3110 continuous. Developed in collaboration with Frieder Ferlemann.
3112 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3114 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
3115 accumulator result if it needs sign extension
3117 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3119 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
3121 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3123 * device/lib/gbz80/printf.c,
3124 * device/lib/z80/printf.c: removed define for NULL
3126 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
3128 * as/xa51/xa_link.c,
3129 * device/examples/ds390/ow390/ad26.c,
3130 * device/examples/ds390/ow390/cnt1d.c,
3131 * device/examples/ds390/ow390/counter.c,
3132 * device/examples/ds390/ow390/ds2480.h,
3133 * device/examples/ds390/ow390/ds2480ut.c,
3134 * device/examples/ds390/ow390/findtype.c,
3135 * device/examples/ds390/ow390/gethumd.c,
3136 * device/examples/ds390/ow390/owllu.c,
3137 * device/examples/ds390/ow390/ownetu.c,
3138 * device/examples/ds390/ow390/swt12.c,
3139 * device/examples/ds390/ow390/swtloop.c,
3140 * device/examples/ds390/ow390/temp.c,
3141 * device/examples/ds390/ow390/temp10.c,
3142 * device/examples/ds390/ow390/thermo21.c,
3143 * device/examples/ds390/ow390/tinilnk.c,
3144 * device/examples/ds390/ow390/tstfind.c,
3145 * device/examples/serialcomm/windows/serial.cpp,
3146 * device/examples/serialcomm/windows/test_serialcomm.cpp,
3147 * device/include/reg51.h: fixed line endings for cvs
3149 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3151 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
3152 packRegsForAccUse, packRegisters): new accumulator register
3154 * support/regression/ports/hc08/support.c (_putchar): suppress
3155 warning of unused variable
3156 * src/SDCCicode.c: added SWAP entry to codeTable
3158 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
3160 * device/lib/sprintf.c: forgot to add this file before previous commit
3162 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
3164 * src/pic16/gen.c (genPackBits): added operand right in function
3165 parameters, load result directly if p_type is POINTER (that is
3166 called by genNearPointerSet)
3167 * (genUnPackBits): added operand left in function parameters,
3168 * (genNearPointerGet, genNearPointerSet): prevent the loading of
3169 FSR0 if accessing bitfields,
3171 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
3173 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
3174 _print_format; updated printf, sprintf, vsprintf
3175 * device/include/asm/default/features.h: corrected comment/define
3176 * device/lib/Makefile.in: added sprintf.c
3177 * device/lib/libsdcc.lib: added sprintf module
3178 * device/lib/printf_large.c,
3179 * device/lib/vprintf.c,
3180 * device/lib/sprintf.c: totally refactored printf_large and vprintf
3182 * support/regression/Makefile: changed ALL_PORTS into a usefull default
3183 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
3184 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
3186 * support/regression/tests/zeropad.c: define idata as data for hc08
3188 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3190 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
3191 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
3192 labels are referenced at least once (even if a reference is not found)
3193 * src/hc08/gen.c (emitcode): set isComment flag for comments
3194 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
3195 loads), rules 6a..6b (optimize jumps to return)
3197 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3199 * device/lib/acosf.c (acosf),
3200 * device/lib/asinf.c (asinf),
3201 * device/lib/atanf.c (atanf),
3202 * device/lib/ceilf.c (ceilf),
3203 * device/lib/cosf.c (cosf),
3204 * device/lib/coshf.c (coshf),
3205 * device/lib/cotf.c (cotf),
3206 * device/lib/fabsf.c (fabsf),
3207 * device/lib/floorf.c (floorf),
3208 * device/lib/log10f.c (log10f),
3209 * device/lib/logf.c (logf),
3210 * device/lib/sinf.c (sinf),
3211 * device/lib/sinhf.c (sinhf),
3212 * device/lib/sqrtf.c (sqrtf),
3213 * device/lib/tanf.c (tanf),
3214 * device/lib/tanhf.c (tanhf),
3215 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
3216 replaced all instances of "reentrant" in the library functions
3217 defined in math.h with this macro.
3218 * support/regression/tests/float_trans.c: reenabled test for hc08
3220 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
3222 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
3225 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3227 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
3228 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
3229 multi-byte volatile operands are used
3230 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
3231 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
3232 initialization to area GSINIT0 so that it would always precede
3233 any static initializers in GSINIT
3234 * support/regression/tests/zeropad.c: fixed idata define for hc08
3235 * support/regression/tests/bug-927659.c,
3236 * support/regression/tests/float_trans.c: disabled tests for hc08
3237 pending missing library routines
3238 * .version: increased version number to 2.4.4 - hc08 port now passes
3242 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
3244 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
3245 * Makefile.common.in,
3247 * as/hc08/Makefile.in,
3248 * as/mcs51/Makefile.in,
3249 * as/z80/Makefile.in,
3250 * debugger/mcs51/Makefile.in,
3251 * device/include/Makefile.in,
3252 * device/lib/Makefile.in,
3255 * link/z80/Makefile.in,
3256 * packihx/Makefile.in,
3257 * sim/ucsim/main_in.mk,
3258 * sim/ucsim/avr.src/Makefile.in,
3259 * sim/ucsim/doc/Makefile.in,
3260 * sim/ucsim/gui.src/serio.src/Makefile.in,
3261 * sim/ucsim/hc08.src/Makefile.in,
3262 * sim/ucsim/s51.src/Makefile.in,
3263 * sim/ucsim/xa.src/Makefile.in,
3264 * sim/ucsim/z80.src/Makefile.in,
3266 * support/cpp2/Makefile.in,
3267 * support/librarian/Makefile,
3268 * support/makebin/Makefile: added DESTDIR to the install path proposed
3269 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
3270 * doc/sdccman.lyx: added DESTDIR documentation
3272 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
3274 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
3275 instruction for interrupt handlers, use fast returns when returning
3276 from high priority interrupts
3278 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3280 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
3282 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
3283 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
3284 bugs, ported much of Bernhard's code from mcs51
3285 * src/mcs51/gen.c (genSend),
3286 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
3287 than one when calling a reentrant function
3288 * device/lib/_mullong.c: defined an alternate struct layout for big
3291 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3293 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
3296 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3298 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
3299 are sane and complete before asking the port its prefered parameter
3300 passing method (fixes bug #1017633)
3301 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
3304 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3306 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
3307 problem in bitfields >= 8 bits.
3309 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3311 * src/SDCCsymt.c: undid changes that were not meant to be committed
3313 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3315 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
3317 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3319 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
3320 copied and wrong bit got inverted
3322 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3324 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
3325 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
3326 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
3327 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
3328 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
3329 assignments to bitfields at known addresses
3330 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
3331 reads from bitfields at known addresses
3332 * src/hc08/ralloc.c (packRegisters),
3333 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
3334 genhc08Code): optimize pointer get values used as conditionals
3335 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
3338 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3340 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
3341 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
3342 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
3345 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3347 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
3349 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3351 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
3354 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
3356 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
3358 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3360 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
3363 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
3365 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
3367 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3369 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
3370 cases use more compact code.
3372 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
3374 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
3376 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3378 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
3380 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3383 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
3384 parameter of changePointer() from symbol* to sym_link*
3385 * src/SDCCast.c (decorateType): call changePointer() for CAST op
3386 * src/SDCCsymt.c (compareType): void* type is castable to other
3387 pointers, but not necesarily an exact match.
3388 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
3389 is no longer blindly treated as an exact match.
3390 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
3392 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
3394 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
3396 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
3401 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
3403 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
3407 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
3409 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3411 * src/mcs51/gen.c (emitcode): fixed bug #992819
3413 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
3415 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
3416 there's no need to make it worse
3418 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3420 * src/mcs51/ralloc.c (deassignLR),
3421 * src/ds390/ralloc.c (deassignLR),
3422 * src/hc08/ralloc.c (deassignLR),
3423 * src/z80/ralloc.c (deassignLR),
3424 * src/pic/ralloc.c (deassignLR),
3425 * src/pic16/ralloc.c (deassignLR),
3426 * src/avr/ralloc.c (deassignLR),
3427 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
3428 rlivePoint): fixed another part of bug #971834
3430 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3432 * src/z80/main.c: enabled "critical" keyword
3433 * src/z80/mappings.i,
3434 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
3435 functions (fixes bug #979646)
3436 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
3438 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3440 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
3443 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
3445 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
3446 doesn't disable too much optimizations
3448 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3450 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
3452 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
3454 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
3456 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3458 * src/pic/gen.c tidied up tabs
3459 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
3460 * src/pic/main.c tidied up tabs
3461 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
3462 * src/pic/pcoderegs.c tidied up tabs
3463 * src/pic/ralloc.c tidied up tabs
3465 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
3467 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
3468 to S_FIXED for pic16 port and when symbol is not in level 0,
3469 allocate for S_REGISTER storage class and pic16 port, too,
3470 * src/pic16/device.h: prototype for checkSym,
3471 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
3472 * (pic16_assignConfigWordValue): test the value and the mask to
3473 validate that the value is suitable for the configuration word,
3474 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
3475 collect extern declared symbols, don't emit symbol twice, check
3476 first if symbol is in publics set first,
3477 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
3478 * added command line '--fstack' which enables an experimental
3479 feature for stack access, too buggy to be used yet...
3480 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
3481 * (pic16_allocDirReg): when register has storage class S_REGISTER
3482 allocate in pic16_dynAccessRegs,
3483 * device/include/pic16/pic18f????.h: modified configuration word
3484 naming convention, words started as CONFIG0H but should be CONFIG1H
3486 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3488 * device/include/mcs51reg.h: fixed bug 970993
3490 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
3492 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
3493 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
3494 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
3495 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
3496 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
3497 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
3498 error/warning numbers,
3499 added function setWarningDisabled()
3500 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
3501 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
3502 _memcmp.c _memmove.c calloc.c realloc.c free.c
3503 * support/regression/tests/malloc.c: added tests for new functionality
3504 * support/regression/tests/zeropad.c: added tests for truncated initializers
3505 and initialized char arrays starting with '\x0'
3506 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
3508 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
3510 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
3512 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3514 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
3515 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
3516 peephole 177.e. Thanks to anonymous
3518 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
3520 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
3521 function isn't used in the source but referenced as a
3522 variable initializer then declare it as extern in .asm file
3524 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
3526 * .version: increased version number to 2.4.3
3528 Adding version extension according to ChangeLog CVS revision
3529 * src/Makefile.in (target all): added dependency 'version.h'
3530 * (rule version.h): added rule to create version.h from ChangeLog,
3531 * (rule dep): added dependency version.h,
3532 * src/version.awk: AWK script to create version.h
3533 * src/SDCCdwarf2.c (dwWriteModule),
3534 * src/SDCCglue.c (initialComments),
3535 * src/SDCCmain.c (printVersionInfo): modified to write after
3536 version string the version extension number,
3537 * src/SDCCutil.c: included "version.h"
3538 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
3540 * src/SDCCutil.h: added prototype for getBuildNumber
3542 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
3543 includeDirsSet, too,
3544 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
3545 const char [] is found in function prototype...
3547 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
3548 moving to WREG with source is already in WREG,
3549 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
3550 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
3551 * (aopForSym): stack'ed symbols are partially supported, added
3552 if-clause to support symbols in FARSPACE,
3553 * (sameRegs): added test for AOP_ACC to see if registers are same,
3554 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
3555 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
3556 * (pic16_popRegFromString): will not allocate a new register if it
3557 doesn't find one by name, bug may have introduced...
3558 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
3559 * (genIpush): revived to use pic16 port's stack,
3560 * (genAddrOf): added incomplete case for stack'ed operand,
3561 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
3562 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
3563 can handle multibyte operands,
3564 * src/pic16/glue.c (pic16_printIval*): some debug info added,
3565 * (pic16initialComments): added message for MPLAB compatibility
3567 * src/pic16/main.h: prototype for pic16_mplab_comp,
3568 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
3569 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
3570 * (_pic16_linkEdit): NEW, handles link stage, transferred here
3571 because of increased complexity of procedure,
3572 * (_process_pragma): stack pragma changed to format 'stack pos len',
3573 emit symbol '_stack_end' to conform with gplink,
3574 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
3575 to search for register,
3576 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
3578 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
3579 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
3580 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
3581 case for PO_GPR_REGISTER,
3582 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
3583 dies, the new era is ahead !...
3584 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
3585 pic16_dynInternalRegs,
3586 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
3587 * (pic16_allocDirReg): minor optimizations and bug fixes,
3588 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
3590 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
3591 load stack and frame pointer with address of 'stack_end' symbol
3593 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
3595 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
3596 without source code but only variable initializers
3598 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
3600 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
3601 external are not declared as extern to reduce overhead while linking
3603 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
3605 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
3607 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
3609 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
3610 Yee Keat for the patch
3611 * src/SDCCast.c (decorateType): fixed bug #979599
3612 * src/ds390/gen.h: removed local fReturnSizeDS390
3613 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
3614 * src/ds390/gen.c (genAnd, genOr, genXor),
3615 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
3617 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
3619 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
3620 add relFilesSet to $3, manipulate $2 to handle linking of object
3621 files without source files in command line,
3622 * device/include/pic16 (all headers): added ID location macros,
3623 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
3624 entries for ID location bytes,
3625 * (pic16_assignIdByteValue): NEW,
3626 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
3627 added field dumpcalltree to pic16_options_t,
3628 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
3629 is used instead of pic16_Gstack_base_addr, check if (ifx) before
3630 emitting rFalseIfx label after check_carry label,
3631 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
3632 pic16_emitDIRegs), NEW
3633 * (pic16glue): dump .calltree file when option --calltree found,
3634 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
3635 * (_pic16_genAssemblerPreamble): emit ID locations after
3636 configuration registers,
3637 * (pic16_linkCmd): modifications of the link command,
3638 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
3639 * (pic16_pCodeInitRegisters): don't init stack registers,
3640 * (pic16_findPrevInstruction): fixed bug,
3641 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
3642 bug with immediate registers,
3643 * (buildCallTree): traces stack push and pop,
3644 * (pct2): dump also stack usage for each function,
3645 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
3646 * (pic16_allocDirReg): various modifications,
3647 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
3650 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
3652 * src/pic16/pcode.c: removed buggy double colon
3654 2004-07-01 Borut Razem <borut.razem AT siol.net>
3656 * support/scripts/sdcc.nsi: added include/pic16 to setup
3658 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
3660 * device/lib/Makefile.in: fixed bug in target objects-pic16,
3661 * device/lib/pic16/Makefile: prefixed with dash (-) command under
3663 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
3664 specific command line arguments. Also added sample lkr script
3665 for placing a variable at a specific memory bank.
3666 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
3667 at a specific memory bank,
3668 * (pic16_dump_isection): fixed bug which caused string literals to
3669 be omitted when dumping idata section,
3670 * (pic16_groupRegistersInSection): added code to handle registers
3671 in specific memory banks,
3672 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
3673 public, all references are renamed too,
3674 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
3676 * (pic16_storeForReturn): added case to handle when dest is WREG,
3677 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
3678 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
3679 pic16_rel_udata, check to see if that register is marked as being
3680 a member of a specific memory bank,
3681 * (pic16_printIvalCharPtr): added code to add string literals either
3682 to code or the idata sections,
3683 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
3684 also accept the 'udata' pragma,
3685 * src/pic16/main.h: new structure types sectName and sectSym
3686 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
3687 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
3688 * (pic16_findPrevInstruction): fixed, it returned nothing,
3689 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
3690 instruction combinations,
3691 * (pic16_FixRegisterBanking): heavily reorganised,
3692 * (pic16_AnalyzeBanking): if generating banksel directives is
3693 disabled, then don't call FixRegisterBanking at all,
3694 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
3696 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
3698 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3700 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
3701 Phuah Yee Keat <yk.phuah AT nestac.com>
3703 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3705 * src/pic16/glue.c (pic16createInterruptVect): function now emits
3706 correctly the IVT even if it is relocated to some other location
3708 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3710 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
3711 * device/include/pic16/pic18f2220.h: NEW,
3712 * device/lib/pic16/libdev/pic18f2220.c: NEW,
3713 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
3714 * src/pic16/device.c (struct Pics16): added info for 18f2220,
3715 * src/pic16/device.h (struct pic16_options): added ivt_loc and
3716 nodefaultlibs, ivt_loc is the location of the interrupt vector
3717 table, and nodefaultlibs signs that default libraries should not be
3718 linked in link stage,
3719 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
3720 according to --ivt-loc argument,
3721 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
3722 when pragma stack is found,
3724 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3726 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
3727 256 (range check), 257 (do while), 258.a-f (bit banging
3728 f.e. on 3-wire SPI bus)
3730 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3732 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
3733 variables used exclusively within a loop
3735 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
3737 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
3739 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3741 * src/SDCClrange.c (computeClash): fixed bug #971834
3743 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3745 * src/mcs51/gen.c (genCmp): fixed bug #975903
3746 * src/hc08/gen.c (operandsEqu),
3747 * src/ds390/gen.c (operandsEqu),
3748 * src/z80/gen.c (operandsEqu),
3749 * src/pic/gen.c (operandsEqu),
3750 * src/pic16/gen.c (operandsEqu),
3751 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
3752 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
3754 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3756 * src/SDCCcse.c (cseBBlock): fixed bug #966963
3758 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
3760 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
3761 default case in switch statement,
3762 * glue.c (pic16_initPointer): expr is initialised via decoarteType
3763 to eliminate problem with initialisation of pointers, but problem
3765 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
3766 * (emitStaticSegment): removed various lines emitting debug info,
3767 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
3768 added processor registers for utilizing EEPROM,
3769 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
3770 configurable and set 8
3772 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
3774 * .version: increased version number to 2.4.2,
3776 Cumulative patch for pic16 port
3777 * src/pic16/device.c: changed scheme to dump initial values for
3778 variables in idata segment, all print_idata* functions were removed,
3779 now the pic16_printIval* will be called,
3780 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
3781 * _pic16_printPointerType, pic16_printPointerType,
3782 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
3783 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
3784 NEW, similar to the respective functions in SDCCglue.c,
3785 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
3786 way, emitting hex bytes,
3787 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
3789 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3791 * src/avr/ralloc.c (serialRegAssign),
3792 * src/xa51/ralloc.c (serialRegAssign),
3793 * src/pic/ralloc.c (serialRegAssign),
3794 * src/pic16/ralloc.c (serialRegAssign),
3795 * src/hc08/ralloc.c (serialRegAssign),
3796 * src/z80/ralloc.c (serialRegAssign),
3797 * src/ds390/ralloc.c (serialRegAssign),
3798 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
3800 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3802 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
3803 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
3805 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
3807 Cumulative patch for pic16 port:
3808 * src/pic16/device.h (typedef PIC16_device) modified fields for
3809 defining microcontrollers,
3810 * src/pic16/device.c: added new info for all devices in Pics16 array,
3811 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
3812 to be optimised out by the pCode optimiser,
3813 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
3814 specially, bug reported by G.M. Gallant,
3815 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
3816 as force'd so that cannot be optimised out by pCode optimiser,
3817 * src/pic16/pcode.c,
3818 * src/pic16/pcodepeeph.c,
3819 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
3820 they are disabled by default, but can be enabled explicit with
3821 command argument --denable-peeps, for testing,
3822 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
3823 --pomit-ivt in COMPILE_FLAGS
3825 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
3827 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
3830 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
3832 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
3834 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3836 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
3837 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
3839 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
3841 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
3842 would only assign 0x300001 register.
3844 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
3846 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
3847 in COMPILE_FLAGS. Thanks to G. Gallant for report.
3849 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3851 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
3853 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
3854 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
3855 added peephole 254 (left shift), 255 (jump table)
3857 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
3859 * device/lib/Makefile.in: removed comment line with model-pic16,
3860 * (target port-specific-objects-pic16): the libraries and objects
3861 are copied to the build directory form the device/lib/pic16/bin
3864 Cumulative patch concerning pic16 port:
3865 * library directory has been re-organized,
3866 * added support for PIC18F1220,
3867 * added headers and library sources for chips 18f1220,18f6520,
3868 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
3870 * configuration registers setting has changed, now each supported
3871 device has a complete description of the registers it uses,
3872 * all initialisations are moved to idata sections, these section
3873 can be absolute or relocatable,
3874 * fixed initialisation of codespace variables,
3875 * fixed warning about PCLATU and gpsim,
3876 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
3877 * (genAssign): use table reads when assigning from variables in codespace,
3878 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
3879 char/int variables placed in codespace,
3880 * (pic16_emitConfigRegs): NEW, emits a list with configuration
3881 registers set in .asm file, no need for --pomit-config-words anymore,
3882 * (pic16glue): some 8051 legacy segments are commented out
3883 (to be removed completely),
3884 * added support for alternative assembler and linker with --asm=
3885 and --link= command line arguments,
3886 * peepholes are disabled automatically in the port, no need to
3887 specify on command line,
3888 * port supports natively char/int/long multiplication, but converts
3889 all divisions to support functions,
3890 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
3891 to the file set in variable $2,
3892 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
3893 strings in ASCII format and not in hex,
3894 * ralloc.c (serialRegAssign): added a triplet of conditional calls
3895 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
3896 allocate proper register if iCodes aren't temporary,
3898 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3900 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
3902 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
3904 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
3907 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3909 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
3910 computed address is reused
3911 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
3912 multi-byte bitfields
3914 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
3916 * src/z80/gen.c: (genArrayInit): must check for pointers too
3918 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
3920 * support/regression/tests/zeropad.c: never meant to commit the
3921 nestedstruct test: removed, added check for GCC version
3923 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
3925 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
3926 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
3927 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
3928 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
3929 bugs 928906 and 954082 half-empty initializers
3931 * src/SDCCsymt.c (getAllocSize): added for above fix
3932 * src/z80/gen.c (genArrayInit): fixed bug 741044
3933 * support/regression/tests/zeropad.c: added tests
3935 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
3937 * src/pic16/device.c (pic16_dump_section): corrected bug which
3938 caused some symbols of the libraries to be misplaced
3940 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
3943 * src/pic16/ralloc.h,
3944 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
3945 to fix conflict with pic port
3947 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
3949 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
3950 externs configuration variables,
3951 * src/pic16/ralloc.h,
3952 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
3953 prototype in header, commented out some debug messages
3955 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
3959 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
3960 for gpasm COFF object generation. Thanks to D. Hawkins for
3963 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3966 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
3967 Brock for spotting this)
3968 * src/ds390/gen.c (genEndFunction),
3969 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
3970 interrupt handler and critical. Disable push/pop optimizations when
3971 peephole optimizations disabled.
3973 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
3975 Updated pic16 library sources and headers.
3976 * device/lib/pic16/pic18f*/ ,
3977 * device/include/pic16/*.h: modified to handle structured SFR
3980 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
3982 * src/port.h (PORT structure): added hook initPaths, now each
3983 port can declare its own default search paths,
3984 which can been seen with the --print-search-dirs option,
3985 see pic16 port for example,
3986 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
3987 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
3988 * (doPrintSearchDirs): NEW, replaces in a central manner the
3989 printing of search dirs which was split in set*Paths functions,
3990 * (main): added call to port->initPaths and doPrintSearchDirs,
3995 * src/izt/tlcs900h.c,
3998 * src/pic16/main.c: modified port structures to reflect addition of
4001 * src/pic16/device.c (regCompare): registers are finally sorted by name,
4002 * (pic16_dump_section): for registers in same address reserve memory once,
4003 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
4005 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
4006 result is greater in size than right or left,
4007 * (pic16_genUMult8X8_8): there are some cases where the result can
4008 be 16 bits size, so handle these,
4009 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
4010 * (pic16_outBitC): modified to emit pcodes,
4011 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
4013 * (genDivOneByte): implemented algorithm to divide 8-bits,
4014 * (genCmp): uncommented goto, but issues still exist,
4015 * (genAnd): fixed a bug with variables >8bits,
4016 * (genPackBits): optimization added that uses BCF/BSF to change a
4018 * (genAssign): fixed bug when assigning floating point literals,
4019 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
4020 __sdcc_gsinit_startup label,
4021 * src/pic16/main.c (_pic16_init): removed search directory
4023 * (_pic16_initPaths): NEW, used to initialise search directories,
4024 * (_hasNativeMulFor): support functions for all except char/int
4025 multiplication, and char division,
4026 * (PIC16_port struct): modified entry for native mul support,
4027 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
4029 * (buildCallTree): call to register_usage is ifdef'ed out,
4031 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4033 * device/include/string.h: applied Stas Sergeev's patch to make this
4034 header file compatible with the preprocessor -Wundef option
4035 * src/SDCCmain.c (main): abort compilation if preprocessor reports
4036 failure (fixes bug #941458)
4038 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4040 * src/SDCCopt.c (killDeadCode): fixed bug #907733
4041 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
4042 that the variable, not the function, should be static
4043 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
4044 to be consistent with non-literal case
4046 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4048 * src/SDCCast.c (isConformingBody): fixed bug #949967
4049 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
4050 convilong): fixed bug #952086
4052 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4054 * src/SDCCmem.c (allocVariables): fixed bug #955321
4056 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4058 * src/hc08/main.c (_hc08_genAssemblerEnd),
4059 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
4060 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
4061 completely eliminated the use of a temporary file
4062 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
4063 when more than one file linked
4064 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
4066 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4068 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
4069 which fixes bug #543481
4070 * support/regression/tests/bug-751703.c: fixed comments left from a
4072 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
4073 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
4074 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
4076 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
4077 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
4078 are now changed to underscores in moduleName
4080 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4082 * as/mcs51/lkmem.c: better fix for bug #954173
4084 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4085 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4087 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
4088 * device/include/c8051f000.h,
4089 * device/include/c8051f120.h,
4090 * device/include/c8051f300.h,
4091 * device/include/c8051f310.h,
4092 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
4095 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4097 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
4098 and mailing lists, doc'ed --no-peep-comments, removed reference
4099 to knoppix (newest version has no LyX/LaTeX), other minor changes
4100 * src/SDCCglue.c (glue): save 2 bytes stack space with
4101 option --main-return. The ljmp could probably be avoided too
4103 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4105 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
4107 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4109 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
4110 * src/SDCCopt.c (isLocalWithoutDef),
4111 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
4112 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
4113 (credit to Maarten Brock for patch #949363, on which this is based)
4114 * support/regression/tests/bug-751703.c: some test cases of extern used
4115 within inner scopes.
4117 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4119 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
4121 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
4123 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
4124 dwWriteLabel): fix to create valid debugger symbols even when
4125 the module name has non-alphanumeric symbols in it
4126 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
4127 when a variable's allocation has been optimized away
4130 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4132 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
4134 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
4136 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
4138 * src/z80/gen.c (z80_emitDebuggerSymbol),
4140 * src/pic/gen.c (pic14_emitDebuggerSymbol),
4142 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
4144 * src/avr/gen.c (avr_emitDebuggerSymbol),
4146 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
4148 * src/SDCCdebug.c (emitDebuggerSymbol),
4150 * src/port.h: added a debugger struct to the port struct. Added a
4151 callback for defining debugger symbols
4153 * src/SDCCast.c (createLabel),
4154 * src/SDCC.y (labeled_statement): mark all compiler generated labels
4157 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
4158 iCode back to the ast for the function
4160 * src/hc08/ralloc.c (hc08_assignRegisters),
4161 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
4162 unneeded fields from the regs struct.
4163 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
4164 pushReg() & pullReg() functions instead of emitcode()
4166 * src/hc08/gen.c (genLabel, genhc08Code),
4167 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
4169 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
4172 * src/hc08/gen.c (genEndFunction, genhc08Code),
4174 * src/mcs51/gen.c (genEndFunction, gen51Code),
4176 * src/ds390/gen.c (genEndFunction, gen390Code),
4178 * src/z80/gen.c (genEndFunction, genZ80Code),
4181 * src/pic/gen.c (genEndFunction, genpic14Code),
4183 * src/pic16/gen.c (genEndFunction, genpic16Code),
4185 * src/avr/gen.c (genEndFunction, genAVRCode),
4187 * src/xa51/gen.c (genEndFunction, genXA51Code),
4189 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
4190 specific code to cdbFile.c and out of the backend code generators
4192 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
4193 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
4194 starting address is now 0
4198 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
4199 assembler directive for DWARF support
4200 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
4204 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
4206 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4208 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
4209 and inappropriate peephole optimization in jump tables
4211 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4214 * src/SDCCglue.c: sdccopt works for the hc08 port now
4216 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
4218 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
4220 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4222 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
4224 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4226 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
4230 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
4231 comments from the peephole optimizer replacement rules
4232 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
4234 * src/SDCCcse.c (updateSpillLocation),
4235 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
4237 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
4238 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
4239 objects far pointers
4241 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4243 * src/SDCCsymt.h: a missing part of my last change
4244 * src/pic/ralloc.c (regTypeNum),
4245 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
4247 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4250 * src/SDCCicode.c (aggrToPtrDclType),
4252 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
4253 ptrPseudoSymConvert),
4254 * src/pic/ralloc.c (regTypeNum),
4255 * src/pic16/ralloc.c (regTypeNum),
4256 * src/hc08/ralloc.c (regTypeNum),
4257 * src/ds390/ralloc.c (regTypeNum),
4258 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
4259 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
4261 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4263 * link/z80/lkmain.c (afile),
4264 * as/hc08/lkmain.c (afile),
4265 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
4266 prevent a pointer problem when a filename has no directory and
4267 no extension specified.
4269 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4271 * link/z80/lkmain.c (afile): allow periods in directory names
4272 * link/z80/lkmain.c (afile),
4273 * as/mcs51/lkmain.c (afile),
4274 * as/hc08/lkmain.c (afile): allow linker script file to have an
4275 extension other than ".lnk"
4276 * link/z80/lklex.c (getfid),
4277 * link/z80/lkmain.c (parse),
4278 * as/mcs51/lklex.c (getfid),
4279 * as/mcs51/lkmain.c (parse),
4280 * as/hc08/lklex.c (getfid),
4281 * as/hc08/lkmain.c (parse): Support comments in the linker script
4282 file on lines by themselves and after filenames
4284 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4286 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
4288 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4290 * src/z80/peeph-z80.def: removed some peephole rules that don't
4291 work with multibyte arithmetic (fixed bug #937126)
4292 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
4293 to registers and not global variables
4294 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
4295 geniCodePreInc, geniCodePostDec, geniCodePreDec,
4296 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
4297 checking for assignments not internally generated (fixed bug #931895)
4298 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
4299 structure member (fixed bug #930072)
4301 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4303 * src/SDCCmain.c (linkEdit),
4304 * src/hc08/main.c (_hc08_parseOptions),
4305 * as/hc08/Makefile.in,
4309 * as/hc08/lkrloc.c (relr, rele),
4310 * as/hc08/lkarea.c (lnkarea)
4311 * as/hc08/lkmain.c (afile, parse),
4312 * as/hc08/lkelf.c: support for ELF output
4313 * as/hc08/lks19.c (s19),
4314 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
4316 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4318 * as/mcs51/lkihx.c: Fixed bug #899105.
4320 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4322 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
4323 .dsp files from Unix to DOS.
4325 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4327 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
4328 function pointers; we have been compliant for several months now.
4329 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
4330 change that was accidently commented out
4331 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
4332 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
4335 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4337 * src/hc08/gen.c: output of all of the internal debugging information
4338 is now controlled by the D() macro; it is disabled by default
4340 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4342 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
4343 harder to keep the same registers during a CAST iCode
4344 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
4345 long via int can be done in a single cast, if the signedness is
4347 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
4348 putchar() in tinibios.c in ds390's library
4350 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
4352 * src/SDCCast.c (decorateType): fixed bug #898889,
4353 cast result of a literal complement too
4354 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
4355 fixed check for bitfields
4357 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
4359 * src/SDCCicode.c (geniCodeLogic): made it static,
4360 (geniCodeLogicAndOr): added in order to fix bug #905492,
4361 (ast2iCode): fixed bug #905492
4362 * support/regression/tests/bug-905492.c: added
4363 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
4364 (processParms): fixed bug #927659: don't copy parms, this will clear
4366 * support/regression/tests/bug-927659.c: added
4368 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
4370 * src/SDCCast.c (addCast): don't cast float to char
4371 * device/lib/libsdcc.lib: added _memmove
4373 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
4375 * device/lib/large/Makefile: fixed parallel execution by
4376 replacing `make` by `$(MAKE)`
4378 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4380 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
4381 offsets (fixes bug #923936)
4383 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
4385 * device/lib/small/Makefile: fixed parallel execution by
4386 replacing `make` by `$(MAKE)`
4388 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4390 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
4392 2004-03-23 Scott Dattalo <scott AT dattalo.com>
4394 * src/pic/gen.c (genCpl): multi-byte complements were not working.
4395 * src/regression/Makefile: Regression test was not running.
4397 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
4399 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
4400 complement if possible
4401 * src/SDCCval.c (valComplement),
4402 * src/SDCCicode.c (operandOperation): fixed complement of literal
4403 * support/regression/tests/onebyte.c (testComplement): added
4405 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
4407 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
4408 return an optimized tree; actually replace actParm with the new tree
4409 * src/SDCCast.h: added some parantheses to remove side effects
4410 * support/regression/tests/bug-920866.c
4412 2004-03-21 Scott Dattalo <scott AT dattalo.com>
4413 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
4414 Bit operands were not being handled properly in the pic14 port.
4415 (now src/regression/add.c passes again).
4417 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4419 * src/SDCC.y (labeled_statement): case and default no longer require
4420 a following statement (RFE #893037)
4422 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4424 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
4425 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
4426 disabled (fixes bug #916294)
4427 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
4428 "mov a,acc"; patch provided by Lenny Story
4429 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
4431 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4433 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
4435 * src/ds390/gen.c (genFunction, genEndFunction),
4436 * src/ds390/ralloc.c (ds390_assignRegisters),
4437 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
4438 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
4439 pushed if there are parameters passed on the stack. Also, a cleaner
4440 way to decide if r0/r1 should be pushed/popped. (Together they fix
4443 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4446 * device/lib/mcs51/crtpagesfr.asm,
4447 * device/lib/mcs51/crtxinit.asm,
4448 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
4449 to avoid confusion with Si Lab's SFRPAGE register.
4451 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4453 * src/SDCCglue.c (emitMaps): allow public sfr variables
4454 * src/SDCCglue.c (initialComments): include compiler build date
4455 with compiler version and put the timestamp of the generated
4456 assembly file on a serperate line to be less confusing.
4457 * src/port.h: added genInitStartup hook
4464 * src/z80/main.c: genInitStartup initialize as NULL (default to
4465 historical behaviour)
4466 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
4467 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
4468 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
4469 library instead of hard coding it into the compiler.
4470 * support/regression/ports/mcs51-stack-auto/spec.mk,
4471 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
4472 * device/lib/mcs51/Makefile,
4473 * device/lib/small/Makefile,
4474 * device/lib/large/Makefile,
4475 * device/lib/mcs51/crtpagesfr.asm,
4476 * device/lib/mcs51/crtstart.asm,
4477 * device/lib/mcs51/crtxclear.asm,
4478 * device/lib/mcs51/crtxinit.asm,
4479 * device/lib/mcs51/crtclear.asm,
4480 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
4481 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
4482 and into user configurable files.
4483 * device/lib/clean.mk: clean mcs51 directory too
4484 * support/regression/tests/longlit.c: added static to T1 declaration
4485 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
4486 accesses in the initialization code
4488 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4490 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
4491 OSCTRIMVAL as noted in bug #916008
4493 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4495 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
4496 in loops with multiple exits (reported as incorrect registers
4497 used by Martin Helmling in Sdcc-user list)
4499 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4501 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
4502 made ds390 register extensions look less like error messages
4504 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4506 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
4507 reported by Adam Wozniak in Sdcc-user list
4509 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
4511 * src/SDCCast.c (decorateType): fixed with bug and promotion in
4512 arithmetic optimizations, added debug output
4514 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
4516 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
4517 * sdcc.spec: updated and split sdcc into 3 rpms
4518 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
4519 needed for literals of LEFT_OP and '+'
4520 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
4521 introduced RESULT_TYPE_NOPROM
4522 (geniCodeMultiply): fixed logic for decision if mul is optimized to
4524 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
4525 limited promotion to int only for '*'
4526 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
4528 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
4530 * src/pic16/gen.c (genSkip),
4531 (genc16bit2lit), (gencjneshort): commented out
4532 (is_LitOp): new helper function, checks operand type
4533 (genCmpEq): rewritten
4535 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
4537 * support/regression/tests/bug-908454.c: added
4539 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
4541 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
4542 * src/SDCCicode.c (usualBinaryConversions): op needs int type
4543 (geniCodeCast): cosmetic, don't preserve bit storage class
4544 (geniCodeLeftShift): added promotion
4545 (geniCodeLogic): fixed regression
4546 * src/SDCCsymt.c (computeTypeOr): accept bits too
4547 (compareType): 2nd part of fix for bug #908454, needed for bitfields
4549 2004-03-07 Borut Razem <borut.razem AT siol.net>
4551 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
4553 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
4555 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
4556 version of pic16_genPackRegisters which does not check if ic is a
4558 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
4559 function cause string1.c regression test fails
4561 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
4563 * sim/ucsim/configure.in,
4564 * sim/ucsim/configure,
4565 * sim/ucsim/doc/Makefile.in: use docdir
4566 * src/SDCC.y: fixed sbit atrributes
4567 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
4568 * src/SDCCast.c (decorateType): |^& need special promotion handling
4570 * src/SDCCsymt.h: moved definition of RESULT_TYPE
4571 * src/SDCCsymt.h (computeType),
4572 * src/SDCCicode.c: computeType() needs op
4573 * src/SDCCsymt.c (checkTypeSanity),
4574 * doc/sddman.lyx: "plain" bitfields are unsigned
4575 * src/SDCCsymt.c (computeTypeOr): added
4576 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
4578 * src/SDCCval.c (val*): computeType() needs op
4579 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
4580 * support/regression/tests/onebyte.c: added tests for |^&
4582 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
4584 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
4585 for writing icode into asm output.
4587 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
4589 * src/pic16/device.c: added some debug lines enabled
4590 with macro DEBUG_CHECK,
4591 * src/pic16/genarith.c: more debug in genPlus,
4592 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
4593 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
4594 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
4595 * (aopForSym): onStack symbols are re-placed in data memspace,
4596 and onStack flag is cleared,
4597 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
4598 copy temporary pcodeop,
4599 * (genPcall): added warning for not updating PCLATU,
4600 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
4601 always true for pic16 port,
4602 * (genMultOneWord): NEW, supports integer multiplication,
4603 * (genMult): modified to call genMultOneWord,
4604 * (ifxForOp): added warning when return NULL,
4605 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
4606 flag is set before call to operandFromSymbol for implicit
4608 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
4609 options.intlong_rent are set by default,
4610 * (_hasNativeMulFor): modified to allow port generation of integer
4612 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
4613 set regtype to REG_SFR for all registers, restricting seting the
4614 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
4616 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4618 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
4619 more than 500 times in the regression tests
4621 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4623 * support/Util/SDCCerr.h,
4624 * support/Util/SDCCerr.c,
4625 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
4627 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
4628 for symbol conflicts.
4629 * support/valdiags/tests/enum.c,
4630 * support/valdiags/tests/tentdecl.c,
4631 * support/valdiags/tests/struct.c: expect possible error messages
4632 referring to original symbol definitions.
4633 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
4635 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
4637 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
4639 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
4641 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
4643 * src/pic16/ralloc.c (newReg): fixed bug #908929
4645 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4647 * src/ds390/gen.c: added missing #include "main.h"
4649 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
4651 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
4652 checking if symbol is already in set,
4653 * src/pic16/device.h: prototype for checkAddSym,
4654 * src/pic16/gen.c: (_G): added entry interruptvector,
4655 * (assignResultValue): removed some commented out lines,
4656 * (genFunction): check for ISR via sym->type, absolute section for
4657 interrupt code is created via a new pBlock, the goto instruction is
4658 placed now correctly at the interrupt vector position, changed all
4659 references from ivec to _G.interruptvector,
4660 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
4661 is the interrupt is a high priority one, same for return from ISR,
4662 * src/pic16/glue.c: changed all calls of addSetHead for publics and
4663 externs to calls of checkAddSym,
4664 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
4665 pic16_pcode_verbose flag is set,
4666 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
4667 * src/pic16/pcoderegs.c: message about how many registers are saved
4668 will only be emitted if pic16_pcode_verbose flag is set,
4670 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4672 * src/ds390/ralloc.h,
4673 * src/ds390/ralloc.c (ds390_regWithIdx),
4674 * src/ds390/gen.c (emitcode),
4676 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
4677 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4678 ds390operandCompare, getRegsRead, getRegsWritten,
4679 initializeAsmLineNode): customized instruction size calculation for
4680 ds390, started basis for some register optimizations
4681 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
4682 corresponding assembly output
4683 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
4684 missing push/pop of r0/r1. Optimized push/pops
4686 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4688 * src/mcs51/main.c (instructionSize): fixed ACALL size
4689 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
4691 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
4693 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
4694 the sorting of rlist with NULL elements
4695 * (print_idataType, print_idata): NEW to create idata sections
4696 * src/pic16/device.h: idataSymSet new variable
4697 * src/pic16/gen.c (genFunction): fixed some bugs in string
4698 comparing, improved the absolute section creation for ISRs,
4699 added FSR0L/FSR0H in registers that are saved in an ISR,
4700 * (genInline): fixed the processing of inline snippets,
4701 now they undergo no process by the peephole optimizer
4702 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
4703 are placed in idataSymSet,
4704 * (pic16emitStaticSeg): extern symbols are added in externs,
4705 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
4706 switching when aboslute variables are placed in access bank memory
4707 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
4708 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
4709 commented out with #if,
4710 * (pic16_packRegisters): reintroduce the check for CAST because some
4711 symbols are not correctly handled,
4712 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
4713 pCodeInstruction instead of pCode,
4714 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
4715 pCodeAsmDir definition,
4716 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
4717 directive, then the argument directive is emitted without the leading
4718 tab, hack for inline labels which must be in the first column,
4719 * (compareLabel,pic16_findNextInstruction),
4720 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
4721 * (insertBankSwitch): modified for the new pCodeAsmDir,
4723 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4724 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
4726 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
4728 * (pushSide): commented out with #if,
4729 * (assignResultValue): fixed some typos in saving
4731 * (genPcall): FIXED and sync'ed with genCall,
4732 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
4733 * (genNearPointerGet): fixed to handle some more cases,
4734 implementation scheme via table reads,
4735 * (genConstPointerGet): modified to access code memory correct,
4736 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
4737 and improved to handle some cases
4738 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
4739 instead of "RETLW" for init data
4740 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
4741 not IN_DIRSPACE, work around to reduce bank switching when aboslute
4742 variables are placed in access bank memory (<0x80 and >=0xf80),
4743 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
4744 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
4745 TBLWT_POSTDEC,TBLWT_PREINC
4746 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
4747 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
4749 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
4750 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
4751 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
4752 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
4754 2004-02-29 Borut Razem <borut.razem AT siol.net>
4756 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
4757 support/Util/findme.h, support/Util/system.h: enhance binary relative
4758 search for lib and include by using findProgramPath()
4760 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4763 * src/SDCCpeeph.c (pcDistance),
4765 * src/mcs51/ralloc.h,
4766 * src/mcs51/ralloc.c (mcs51_regWithIdx),
4768 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
4769 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4770 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
4771 size calculation port specific, started basis for some register
4773 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
4774 missing push/pop of r0/r1. Optimized push/pops
4775 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
4776 * device/lib/_modsint.c (_modsint),
4777 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
4778 and stack version so regression tests pass
4780 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
4782 * src/Makefile.in (dep): include SLIBOBJS in dependency check
4783 * src/SDCCast.c (decorateType): catch another small optimization
4785 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
4786 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
4787 modified to finally use computeType() all over SDCC,
4788 see Feature Request #877103
4789 * src/SDCCval.h: cosmetic
4790 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
4791 valCompare(); regression tested in muldiv.c
4792 * support/regression/tests/muldiv.c (testMod): mod sign follows
4795 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
4797 * src/SDCCast.c (decorateType): fixed bug #902362
4798 * doc/INSTALL.txt: fixed install instructions for win32
4800 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
4802 * device/include/Makefile.in (install): fixed by replacing spaces
4805 * doc/INSTALL.txt: updated for release
4806 * doc/sdccman.lyx: added warning for --xstack being buggy
4808 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
4810 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
4811 to eliminate build warnings.
4812 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
4814 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
4815 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4817 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
4818 removed -penable-stack, added comment for stack pragma, added
4819 warning for not initializing the stack/frame registers, removed
4820 comment at interrupts section
4822 Stack is made permanent, there is no ability to disable stack usage.
4823 * src/pic16/device.h,
4824 * src/pic16/device.c: removed all references to USE_STACK macro,
4825 * src/pic16/device.c (pic16_dump_section): when no elements in
4826 rlist, free rlist before return,
4827 * (pic16_dump_int_registers): NEW, internal registers are a new set
4828 of general purpose registers reused by each function,
4829 * (checkAddReg): returns 1 if registers is added to set,
4830 * (pic16_groupRegistersInSection): when a registers is of type
4831 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
4832 * src/pic16/device.h: memRange and Assigned Memory are deleted,
4833 SRCASECMP macro is moved here from device.c
4834 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
4835 PO_PCLATU, PO_PRODL, PO_PRODH,
4836 * (pic16_pCodeOpType, genMinus,
4837 changed compares to "a" register, with AOP_ACC,
4838 * (pic16_genPlus): fixed some bugs and indented properly,
4839 * (pic16_addSign): changed size to size+offset in the MOVWF
4841 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
4842 multiply 8-bit operand by literal, result is 8-bit,
4843 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
4844 multiply 2 8-bit operand, result is 8-bit,
4845 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
4847 * src/pic16/gen.c: changed accUse to contain WREG only,
4848 * (pic16_emitcomment): renamed to pic16_emitpcomment,
4849 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
4850 true, do not use immediate addressing any more unless sym is a
4851 pointer in codespace,
4852 * (aopForRemat): do not use immediate addressing when symbol not in
4853 codespace and when symbol's address is requested,
4854 * (aopOp): for-loop in if(sym->accUse) is modified for the new
4856 * (aopGet): added case for AOP_ACC and don't return "accumulator
4857 bug" but WREG instead,
4858 * (popGetTempReg): pushes contents of temporary register in stack,
4859 * (popReleaseTempReg): pops contents of temporary register from
4860 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
4861 * (pic16_popGet): separated case AOP_ACC to return register WREG
4862 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
4863 or PO_IMMEDIATE and initializes their instance/offset appropriately,
4864 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
4865 the use of immediate pointers to certain cases only.
4867 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
4868 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
4869 * (assignResultValue, genCall, genRet): modified to use the new
4870 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
4871 genPcall is still broken,
4872 * (genFunction): added code to create 'A' type pBlocks when
4873 interrupt functions are generated, code not extensively tested yet,
4874 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
4875 * (genEndFunction): modified so ISRs pop stored registers from stack,
4876 * (genMultOneByte): cleanup,
4877 * (AccRsh): added flag andmask, to and result with appropriate mask,
4878 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
4879 * (genDataPointerGet): fixed and reenabled its use,
4880 * (genNearDataPointerGet): bugs fixed,
4881 * (genDataPointerSet): bugs fixed,
4882 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
4883 pic16_DumpSymbol, pic16_DumpOp,
4884 * src/pic16/genutils.h: function prototypes for the above functions,
4885 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
4887 * (pic16emitRegularMap): many many many improvements, but needs a
4889 * src/pic16/main.c: enable_stack in pic16_options is removed,
4890 * (_pic16_parseOptions): removed command line options -penable-stack,
4891 * (_process_pragma): emit stack symbol only when stack pragma is
4893 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
4894 redirected to FSR0L/FSR0H pair,
4895 * (pic16_get_op, pic16_get_op2): modifications and improvements,
4896 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
4897 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
4899 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
4900 * (dumpPicOptype): NEW,
4901 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
4902 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
4903 with movff instruction,
4904 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
4905 added pic16_int_regs, some packRegsFor* functions are commented out,
4906 because produce errors,
4907 * src/pic16/NOTES: minor modifications
4909 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4911 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
4912 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
4914 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
4915 * as/mcs51/lkaomf51.c: fixed bug #895763
4917 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
4919 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
4921 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4923 * doc/sdccman.lyx: added details about the HC08 storage classes and
4924 interrupts, fixed the register usage info for z80 & gbz80
4926 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
4928 * doc/sdccman.lyx: added more pic16 port documentation
4929 * device/include/pic16/: added header pic18fregs.h
4931 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
4933 * doc/sdccman.lyx: added Vangelis' contribution
4935 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4937 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
4938 extend to the next CALL or PCALL, not just to the next CALL.
4940 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
4942 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
4944 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4946 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
4947 bug #895752 and a better fix for bug #716790
4949 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4951 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
4953 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4955 * doc/sdccman.lyx: minor changes, minor changed
4957 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
4959 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
4960 which can't handle SDCC_NEWONEBYTEOPS,
4961 (geniCodeMultiply): removed conversion from mult to shift for pic14
4964 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4967 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
4968 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
4969 thus fixing bug #895406
4971 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
4973 * device/lib/_modsint.c,
4974 * device/lib/_modslong.c: sign follows divisor only
4975 * src/hc08/gen.c (genMultOneByte): if result size is 1,
4976 signs or signedness can be ignored
4977 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
4978 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
4979 added optimization for IFX,
4980 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
4982 reenabled optimization for IFX, which was removed on 2004-01-11
4983 * src/SDCCast.h: added return type IFX
4984 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
4985 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
4986 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
4987 SDCC_OLDONEBYTEOPS selects the old behaviour
4988 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
4989 changed again and commented promotion rule
4990 * src/SDCCval.c (valDiv): promotion no longer necessary
4991 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
4992 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
4994 * support/regression/tests/onebyte.c: added
4996 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
4998 * gen.c (genInline): reverted to old code for assemnling inline
4999 code because of bug reported James Chadd
5001 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
5003 * ralloc.h: missing declarations from previous patch,
5004 seems that patch for ralloc.h was never applied, fixed
5006 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5007 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5011 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
5012 indirect addressing. Marked FSR0 as deprecated
5013 * gen.c (pointerCode): commented out, not needed now
5014 (pic16_popGet2p): new MOVFF helper function
5016 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
5017 (shiftRLong): removed duplicate debugging info
5019 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5021 * src/ds390/gen.c (genNearPointerGet),
5022 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
5023 optimization with bits, but not bitfields.
5024 * src/ds390/ralloc.c (packRegisters),
5025 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
5027 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
5029 * src/SDCCcse.c (algebraicOpts): copy operands before modification
5031 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5034 * src/SDCCicode.c (operandFromSymbol),
5035 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
5036 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
5037 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
5038 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
5039 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
5040 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
5042 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
5043 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
5044 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
5045 * src/SDCCsymt.c (newSymbol),
5046 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5049 * src/SDCCval.c (newiList): fixed bug #885705
5051 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5053 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
5054 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
5056 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5058 * device/include/c8051f120.h,
5059 * device/include/c8051f300.h,
5060 * device/include/c8051f310.h: added/updated header files for Silicon
5061 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5062 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
5063 in new section Submitting patches
5065 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5067 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
5068 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5069 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5071 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
5072 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5073 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5075 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
5076 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5077 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5079 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
5080 genFarPointerGet, genCodePointerGet, genGenPointerGet,
5081 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
5082 genGenPointerSet): fixed bug #892400
5083 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
5084 to eliminate build warnings.
5085 * src/SDCCast.c (processParms),
5086 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
5088 * support/valdiag/valdiag.py: added GCC to the list of defines active
5089 when compiling with gcc
5091 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5093 * support/Util/SDCCerr.h,
5094 * support/Util/SDCCerr.c,
5095 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
5096 with an incomplete type (fixed bug #883734)
5097 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
5099 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5101 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
5103 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5105 * src/SDCCast.c (decorateType),
5106 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
5107 function pointer implementation
5108 * support/regression/tests/funptrs.c: added tests to verify both forms
5109 of function pointers work correctly. Added tests to verify parameters
5110 are passed in the correct order.
5112 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
5114 * device.c (regCompare): registers are sorted by ascending
5115 address and increasing size,
5116 * main.c (_pic16_finaliseOptions): removed the declaration
5117 of compiler macro MCU. Now a macro of the format pic18fxxxx
5118 will be defined from the command line
5120 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5121 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
5123 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
5124 PCOP_RLCF was overwritten!
5125 * gen.c (genSkip): commented out calls to pic16_emitcode,
5126 * (genCmpEQ): fixed "long" compares, only high word did get compared,
5128 * (genRRC): added debugging info,
5129 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
5130 overwritten while shifting,
5131 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
5132 overwritten while shifting,
5135 * (shiftLLeftOrResult),
5136 * (shiftRLeftOrResult),
5138 * (shiftLLong): Implemented with pic16_emitpcode
5139 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
5140 * (genLeftShift): Fixed bug, operand for shift by variable always
5141 was "and"ed with 0x0f,
5142 * (genLeftShiftLiteral),
5144 * (genRightShiftLiteral): added debugging info,
5145 * (genrshFour): added comment,
5146 * (genRightShift): determined signedness from operand "left"
5149 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5151 * src/SDCCicode.c (geniCodeParms),
5152 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
5153 function pointers, fixed function pointer bugs #861242 and #861896
5155 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5157 * device/include/c8051f000.h,
5158 * device/include/c8051f120.h,
5159 * device/include/c8051f300.h: added header files for Silicon
5160 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
5162 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
5164 * src/SDCCast.c (processParams): added new type flow and restructured
5165 (gatherAutoInit): added new type flow
5166 (addCast): cosmetic changes
5167 (getLeftResultType): added new type flow for array indices, patch
5168 provided by Stas, see FR #877103
5169 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
5170 array index patch by Stas
5171 * src/SDCCast.h: added prototype getResultTypeFromType()
5173 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
5174 * src/pic/glue.c (pic14emitStaticSeg),
5175 * src/pic16/glue.c (pic16emitStaticSeg),
5176 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
5177 for initialization of symbols
5178 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
5179 * support/Util/SDCCerr.h:
5180 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
5181 * .version: bumped version number to 2.3.8
5182 * device/include/Makefile.in (install),
5183 * doc/Makefile (install): changed to 'rm `find ...`' construct to
5186 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
5188 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
5189 Slade Rich fixed an optimization bug
5190 * src/pic/pcodepeep.c,
5191 * src/pic/pcoderegs.c
5192 * doc/Makefile (install): added test for directory
5194 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5196 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
5197 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
5198 * src/pic/ralloc.c (getRegPtr, getRegGpr),
5199 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
5200 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
5201 * as/mcs51/asexpr.c (term),
5202 * as/hc08/asexpr.c (term): fixed bug #887146
5204 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5206 * src/z80/gen.c (genMult): handle single byte result product
5207 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
5208 DUMMY_READ_VOLATILE (fixed bug #886367)
5210 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5212 * support/regression/tests/libmullong.c: fixed logic, on little endian
5213 hosts we ended without a mullong_wrapper()
5215 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5217 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
5218 virus/worm forged address usage.
5220 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5222 Fixed promotion, it should be done on AST level:
5223 * src/SDCCast.c (addCast): added promotion to int
5224 (decorateType): updated call to upCast()
5225 * src/SDCCicode.c (geniCodeLeftShift): removed call to
5226 usualUnaryConversions()
5228 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
5230 * support/regression/tests/literalop.c (mulWrapper): Added a
5231 wrapper to remove integer overflow warnings.
5233 * support/regression/tests/float_trans.c: Made work on host.
5235 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
5238 * support/regression/generate-cases.py (main): Changed from inline
5241 * doc/Makefile (install): Changed to depth first to get rid of
5242 missing directory install warning.
5244 * as/Makefile (install-doc): Made work on Mac.
5246 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
5248 * src/SDCCast.c: added an additional type flow in decorateType() of
5249 opposite direction, see feature request #860006; it's enabled at runtime
5250 by setting the environment variable SDCC_NEWTYPEFLOW
5251 * src/SDCCast.h: changed prototype of decorateType()
5252 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
5253 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
5254 'char' to 'int' can be omitted, if both operands are 'unsigned char';
5255 see feature request #877103
5256 * src/SDCCval.c: updated call of decorateType()
5257 (valBitwise): fixed bug #882876
5258 (valMinus): added promotion
5259 (valLogicAndOr): result is unsigned
5260 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
5261 * src/SDCCsymt.c (computeType),
5262 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
5263 must not cause an unsigned operation
5264 * src/pic/glue (pic14emitRegularMap),
5265 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
5267 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
5269 * src/pic/pcode.c (PCodeID): commented out left over debug code
5271 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5273 * support/valdiag/tests/overflow.c: added shift tests
5281 * src/pic/pcodepeep.c,
5282 * src/pic/pcoderegs.c,
5284 * src/pic/ralloc.h: applied patch from Slade Rich;
5285 added support for multiple code pages and multiple RAM banks on the
5286 PIC 14 port. The ASM files now no longer simply assume all the
5287 code / RAM are in the same page / bank. This means the linker can
5288 safely allocate code/RAM of separate ASM files to different pages/banks.
5289 * doc/sdccman.lyx: added Slade's tips
5290 * src/mcs51/peeph.def: fixed bug #880768
5292 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5294 * src/hc08/ralloc.c (rematStr): fixed bug #879282
5295 * src/SDCCast.c (decorateType): fixed bug #880197
5297 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
5299 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
5302 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
5303 strtof is not part of C89 and isn't included with Mac OS X.
5305 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5307 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
5308 shiftL2Left2Result): fixed bug #879326
5309 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
5310 (genMultOneByte): fixed bug in signed vs unsigned multiplication
5311 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
5312 address fetch for clr instruction
5313 * device/lib/hc08/_mulint.c: created optimized assembly version
5314 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
5316 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
5318 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
5319 proposed in FR #877103
5321 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5323 * src/SDCCval.c (cheapestVal): added missing checks
5324 * src/SDCCicode.c (usualBinaryConversions): fixed condition
5325 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
5327 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
5329 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
5332 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
5334 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
5335 loaded with the linker search paths (-L arguments) and the libraries
5336 to be linked with the current source (-l arguments). Changes
5337 currently will affect only the pic16 port.
5338 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
5339 include path the port specific paths and port specific libraries,
5340 * gplink command now contains the $3 argument,
5341 * src/pic16/device.h,
5342 * src/pic16/device.c,: structure PIC_device is made public and
5343 renamed to PIC16_device, the same for variable Pics which is renamed
5344 to Pics16. Updated all references to them.
5345 * src/pic16/glue.c (pic16glue): corrected bug with code
5346 initialization which bypassed the variable initializations block.
5348 * device/lib/pic16/Makefile.rules: removed --penable-stack from
5349 COMPILE_FLAGS and added the --nostdinc option
5351 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5353 * device/include/mc68hc908jb8.h: Register defs for another member
5354 of the hc08 family. Contributed by Bjorn Bringert - thanks!
5356 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
5358 Documenting changes from previous commits.
5359 * configure.in (version 1.56),
5360 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
5361 when generating output files to configure the pic16 library,
5362 but now I've commented it out, since gputils aren't installed in the
5363 SF compile farm, so library won't compile
5365 * device/lib/Makefile.in (version 1.56): initially I've added in
5366 target 'all' the prerequestive 'model-pic16' so it compiled the
5367 pic16 library, but now I've commented it out for the same reasons
5369 * added targets 'model-pic16' and 'objects-pic16' to compile the
5371 * added target 'port-specific-objects-pic16' to handle the
5372 generated libraries and copy them into the build/ directory
5373 * added target 'clean-intermediate-pic16' to clean intermediate
5374 files into pic16 directory
5375 * in target 'installdirs' added line to create directory pic16 in
5376 the installation path
5378 * device/include/Makefile.in (version 1.11): in target 'install'
5379 added lines to copy all header files to installation path,
5380 * in target 'installdirs' added line create directory for pic16
5381 headers in the installation path
5383 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
5385 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
5388 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
5391 * device/lib/configure.in,
5392 * device/lib/configure: fixed for autoconf 2.57
5394 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5396 * src/z80/main.c (_parseOptions): fixed the portmode= command line
5397 option so that it actually works. Made it specific to the z80, since
5398 the gbz80 doesn't have these kinds of I/O ports.
5400 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5402 * device/include/z180.h,
5403 * device/lib/_memcpy.c,
5404 * device/lib/_memmove.c,
5405 * device/lib/_mulint.c,
5406 * device/lib/ser_ir.c,
5407 * device/lib/ser_ir_cts_rts.c,
5408 * device/lib/_strcmp.c,
5409 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
5410 * src/z80/main.c (_process_pragma): add support for pragmas bank and
5411 portmode; added deprecation warning for bank= and protmode= forms.
5412 Also, guard against buffer overflow.
5413 * src/z80/gen.c (aopGet): generate better code for sfr banked read
5415 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5417 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
5418 changed interrupt vector table generation to only emit declared vectors.
5419 * device/include/Makefile.in: added missing backslash
5420 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
5422 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
5424 Mainly changes to support compilation of the device libraries
5425 * src/pic16/device.c: stack is allocated via symbol and not
5426 via literal number. The symbol is placed in the corresponding
5427 position of the data ram
5428 * (pic16_dump_section): relocatable and absolute uninitialized
5429 data are now emitted in sorted order to reduce section naming,
5430 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
5431 weren't marked as being in the access bank,
5433 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
5435 Added portion of GNU PIC Library under the directory
5436 device/include/pic16 and device/lib/pic16. These files
5437 contain the declarations of SFRs for the PIC18Fxx2 devices.
5438 The directory is initialized via configure from toplevel.
5440 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
5442 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
5443 the spilllocations to be compared correctly
5445 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5447 * src/SDCCast.c (decorateType): fixed bug introduced today
5449 2004-01-12 Borut Razem <borut.razem AT siol.net>
5451 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
5452 doc/sdccman.lyx: upper case pragmas are deprecated
5454 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5456 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
5457 in simpler and even better code
5459 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
5461 * src/SDCCicode.c (operandOperation): fixed bug #874819
5462 * src/SDCCast.c (decorateType): fixed
5463 char foo (unsigned long ul) { return ul > 0; }
5465 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5467 * doc/sdccman.lyx: Moved and added some sections, small changes
5468 all over. Telling LaTeX to be less strict with word spacing
5469 to better keep the right margin. Changed some notes about
5470 maintainance of the ports in section 3.2.1 - is it OK like this?
5472 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
5474 SDCC source changes:
5475 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
5476 convilong): modified to inform the pic16 port that builtin functions
5479 PIC16 PORT specific changes:
5480 * src/pic16/device.c pic16_dump_equates() added,
5481 processor registers declared internally by the port are emitted in
5482 the translation as equates,
5483 * src/pic16/gen.c: inline code is passed unprocessed to the
5485 * (pic16_popGetLit2): fnuction modified to take second operand as
5486 pCodeOp pointer and not as literal,
5487 * (popRegFromIdx): prefixed with pic16_,
5488 * (pic16_popCombine2): modified to receive already allocated pCode
5490 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
5491 * (genFunction): initializes local stack frame and pushes on stack
5492 all the registers used by this function,
5493 * (genEndFunction): restores all registers from stack and restores
5495 * src/pic16/glue.c (pic16emitRegularMap): various changes and
5497 * (pic16glue): changed the program startup sequence,
5498 * added new dbName code 'A' for functions placed in absolute section
5499 * src/pic16/main.c: added function attribute _naked,
5500 * added pragma 'code' to place a fnuction at an absolute address,
5501 * added command line arguments --debug-ralloc and --pcode-verbose,
5502 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
5503 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
5504 * (pic16_newpCodeOpLit2): modified to take the second operand as
5506 * (pic16_printpBlock): modified to emit each function in a separate
5508 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
5509 UPPER for immediate operands,
5510 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
5512 * src/pic16/peeph.def: all peepholes with movff are commented out,
5513 because there is a problem in the pcode peep optimizer,
5514 * src/pic16/ralloc.c: the register allocator can now reuse local
5515 function symbols for another function. This saves register usage.
5516 * src/pic16/ralloc.h: added flag isLocal in structure regs,
5518 Added file src/pic16/NOTES with information about program writing on
5519 the current port version.
5521 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5523 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
5524 and peephole 252 (array access)
5526 2004-01-09 Borut Razem <borut.razem AT siol.net>
5528 * src/SDCCmain.c : fixed #872250: -l command line defined library
5529 files are scanned before standard library files
5531 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5533 * src/SDCCast.c (decorateType): fixed bug #874046
5535 2004-01-09 Borut Razem <borut.razem AT siol.net>
5537 * support/scripts/sdcc.nsi: remove previous installation
5539 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5541 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
5542 bytes for last interrupt vector (mcs51)
5543 * sdcc.spec: fixed typo
5545 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5547 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
5548 gen51Code): more efficient parameter receive for --model-large
5551 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5554 * src/z80/main.c: added missed needLinkerScript flags (more than
5555 one port structure defined in these file)
5556 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
5559 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
5561 * src/SDCCmain.c: removed various references to DEFAULT_PORT
5562 * src/port.h: added flag needLinkerScript in port->linker
5563 structure to inform whether to create a .lnk file or not,
5571 * src/z80/main.c: changed appropriately to configure
5572 needLinkerScript flag
5574 * src/pic16/gen.c (genAddrOf): fixed bug #863624
5575 * src/pic/glue.c: added variable udata_section_name to
5576 override default uninitialized data segment definition for
5577 devices only with SHAREBANK memory (reported from Erik Epetrich)
5578 * (pic14emitOverlay): modified to emit a commented overlay segment
5579 directive when no overlay data exist
5580 * (picglue): modified to emit uninitialized data segment
5581 according to udata_section_name
5582 * src/pic/main.c (_pic14_parseOptions): added command line
5583 options --udata-section-name=[name] to override default
5584 udata definition name
5585 * modified _linkCmd and _asmCmd to include compiler passed
5586 arguments via -W option
5587 * src/pic16/main.c: added $l in _asmCmd, changed extension for
5588 object file from '.rel' to '.o' in port->linker structure,
5589 changed size of fptr from 2 to 3 in port structure
5591 2004-01-07 Borut Razem <borut.razem AT siol.net>
5593 * support/scripts/sdcc.nsi: update PATH
5594 * support/scripts/sdcc.ico: craeted
5596 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
5598 * device/include/Makefile.in: fix install
5599 * doc/Makefile: fix install
5601 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5603 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
5605 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
5606 how the function variable allocation summary is displayed; also
5607 include information about variables allocated to the overlay
5610 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5612 * as/mcs51/lkmain.c: Help about -Y option
5613 * as/mcs51/lkarea.c: Fixed gcc warnings
5615 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5617 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
5619 * support/valdiag/tests/overflow.c: added
5620 * src/SDCCast.c (decorateType),
5621 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
5622 LEFT_OP (left shift)
5624 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5626 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
5627 (default behaviour).
5629 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5631 A python script to validate compiler diagnostic messages. It can be
5632 used to verify that sdcc complains about bad c source code and
5633 gives a good location of the error.
5634 * support/valdiag/Makefile,
5635 * support/valdiag/valdiag.py,
5636 * support/valdiag/tests/*
5638 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5640 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
5641 * src/SDCCsymt.c (newEnumType),
5643 * support/Util/SDCCerr.c,
5644 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
5646 * support/regression/tests/enum.c: added test for enum values that
5647 require at least 2 bytes of storage.
5649 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5651 * src/common.h: added ifndef/define/endif macros
5652 around the header file.
5653 Bug reported from Jesus Calvino-Fraga
5655 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5657 * sdcc.spec: updated
5658 * device/include/Makefile.in: don't install CVS directories
5659 * device/lib/Makefile.in: added removal of CVS directories after install
5660 * doc/Makefile: fixed install, added local_icons
5661 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
5662 * src/mcs51/gen.c (genRightShift): fixed bug #870788
5663 * src/ds390/gen.c (genRightShift): fixed bug #870788
5664 * src/SDCCast.c (decorateType): fixed bug #870781
5666 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5668 PIC16 port related changes:
5669 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
5670 added variable stackPos,
5672 * gen.c: genCall, assignResultValue: added support for
5673 pushing/retrieving function parameters to/from stack,
5674 genFunction,genEndFunction: setup stack frame for the
5676 genAddrOf: will be changed according to bug 863624
5678 * added files genutils.c and genutils.h which contain gen*
5679 debugged and optimised functions extracted from gen.c
5681 * glue.c: added variable 'externs' which holds extern symbols,
5682 pic16emitRegularMap: is modified to properly handle relocatable
5683 symbols under the new scheme,
5684 pic16createInterruptVect: is modified
5685 pic16printPublics: is modified to emit 'global' assembler directives,
5686 added pic16_printExterns to print extern symbols,
5687 pic16glue: initializes stack/frame pointer in the beginning of
5688 the assembly output. Temporary hack, will be corrected later,
5689 because gplink yet does not support stack and SDCC does not
5690 yet support a type of crt0.o object to create the final binary.
5692 * Removed many lines that contain 8051 legacy code.
5693 * The code is finally placed under a 'code' directive.
5694 * Added port specific options.
5696 * _process_pragma: simplified since now we do not need *special*
5697 include file to define SFR registers. But a separate header
5698 will be needed. This will be developed later.
5699 * _pic16_parseOptions: added, parses port specific options:
5700 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
5701 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
5702 --preplace-udata-with=
5704 * _pic16_setDefaultOptions: modified to initialize section names,
5705 but hack is temporarly out of order since it needs improvement.
5706 * _pic16_genAssemblerPreamble: configuration words are emitted by
5707 their address instead of their name. This part is incomplete and
5708 supports only the 18Fxx2 devices. Other devices will emit an error
5709 during assembly since they do not contain the same set of config
5711 * _pic16_genIVT: is modified,
5713 * pcode.c: added definitions for some hardware registers that are needed
5715 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
5716 All PCI entries are updated. Now LFSR is supported.
5717 * Removed pic16_pciTRIS is mentioned by mdubuc in source
5718 * added pic16_newpCodeOpLit2 to support instructions with
5719 two literal arguments
5720 * pic16_pCode2str: corrected code that emits assembler instructions
5721 with two literal operands and those that have an access bit modifier
5722 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
5723 this fixes a bug which caused some labels to be lost, when an
5724 assembler directive was added, i.e. banksel,
5725 * pic16_FixRegisterBanking: improved logic that causes the insertion
5727 * InlineFunction: functions that are called once, are not any more
5728 inlined. This can be a port option in the future,
5730 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
5732 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
5733 hold the corresponding uninitialized symbols,
5734 * pic16_allocProcessorRegister: registers have explicit marked the
5736 * pic16_allocInternalRegister: registers are explicit marked as
5738 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
5739 processing list, so bit registers were lost,
5742 * ralloc.h: added field 'accessBank' and original symbol operand
5743 in register definition,
5744 * removed the field isMapped from register definition,
5746 ** Several functions have been removed from various sources:
5747 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
5748 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
5749 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
5750 pic16_assignRelocatableRegisters
5752 ** others have been introduced:
5753 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
5754 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
5756 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
5758 * support/scripts/inc2h.pl: changed definition of BIT_AT
5759 to emit 'sbit at' instead of 'bit at'. This was a request.
5761 PIC16 port related preliminary changes:
5762 * gen.c: prefixed function popRegFromString with
5763 pic16_ and all references to it corrected
5764 * pcode.c: all pic16_pc_* hardware registers prefixed
5765 with underscore (_),
5766 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
5767 * ralloc.c: newReg(): when register is REG_SFR then
5768 set address to rIdx,
5769 pic16_allocProcessorRegister(): marks register wasUsed=0
5770 pic16_writeUsedRegs(): added a call to assign processor
5771 registers via pic16_assignFixedRegisters
5773 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5775 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
5776 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
5777 variables in unused register banks. Also the SSEG is placed
5778 wherever there is enough space for it, and IDATA can be anywhere
5779 in internal RAM. For now compile using -Wl-Y[stack_size].
5780 The mem file is different for this option as well, since it
5781 makes no sense of talking about DSEG lenght.
5783 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
5785 * src/SDCClrange.c: fixed bug 869095 that caused segfault
5786 in certain cases, e.g. when ROM assignment, patch provided
5787 from Albert den Haan.
5789 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
5791 Many signedness and type propagation fixes:
5792 * src/SDCCicode.c: made geniCodeCast() static
5793 replaced SPEC_ by IS_ (cosmetic)
5794 (operandOperation): fixed div and mod operation
5795 (usualBinaryConversions): added support for promotion of char
5796 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
5797 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
5798 (geniCodeAdd): an array index will stay unsigned, even if promoted
5800 (geniCodeArray): ditto
5801 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
5802 * src/SDCCsymt.c (computeType): added more support for char;
5803 promotion of char is selectable by promoteCharToInt, fixed signedness
5805 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5806 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5807 * src/SDCCval (val*): replaced signedness calculation by
5809 rearranged if-branches (cosmetic)
5810 (valShift): added warning W_SHIFT_CHANGED
5811 (valCompare): fixed problem with different types
5812 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
5813 * support/regression/tests/literalop.c: added many cases
5814 * support/regression/tests/ast_constant_folding.c: changed finally to
5816 * .version: new year, new version: 2.3.7
5817 * src/SDCCmain.c (main): applied patch #866468
5818 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
5819 provided by Scott Bronson
5820 * doc/sdccman.lyx: updated documentation for sdcdb
5821 updated and added chapter tips
5823 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5825 * src/SDCCsymt.h: missing from yesterday's commits
5827 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5829 * src/SDCC.y (struct_or_union_specifier),
5830 * support/Util/SDCCerr.c,
5831 * support/Util/SDCCerr.h: verify that struct & union tags are used
5834 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5836 * src/SDCCglobl.h: missing from yesterday's commits
5838 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5840 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
5841 sft_attributes, struct_declaration, parameter_declaration,
5842 type_name, start_block, declaration_list),
5843 * src/SDCC.lex (check_type): support redefinition of typedef names
5845 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5847 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
5848 aligned xdata arrays. Erik helped me with the if clause.
5850 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5852 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
5855 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5858 * src/SDCCast.c (newAst_),
5860 * src/SDCCicode.c (ast2iCode, newiCode),
5862 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
5863 expr, statement, expression_statement, selection_statement,
5864 iteration_statement, expr_opt, jump_statement): foundation for tracking
5866 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
5869 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5871 * support/Util/SDCCerr.c,
5873 * src/SDCCast.c (createCase, createDefault, decorateType),
5874 * src/SDCClabel.c (labelUnreach),
5875 * src/SDCC.y (labeled_statement, jump_statement): More improvements
5877 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
5878 (with thanks to Stas Sergeev)
5879 * device/include/time.h,
5880 * device/lib/time.c (CheckTime): suppress unreachable code warning
5882 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5884 * src/SDCCast.c (createIvalCharPtr),
5885 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
5887 * support/regression/tests/nullstring.c: tests for these two bugs
5889 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5891 * support/Util/SDCCerr.h,
5892 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
5893 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
5894 about storage class and 'at' used inside struct or union
5895 * src/SDCCBBlock.c (iCodeFromeBBlock),
5896 * src/SDCCcse.c (ifxOptimize),
5897 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
5898 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
5899 printIval, emitStaticSeg, emitOverlay),
5900 * src/SDCClabel.c (deleteIfx),
5901 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
5902 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
5903 gatherAutoInit, processParms),
5904 * support/Util/SDCCerr.h,
5905 * support/Util/SDCCerr.c (werrorfl): Support for better error location
5906 reporting for post-parse errors.
5908 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5910 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
5911 implicit casts via union; they don't work on big endian systems
5912 (possible fix for bug #861138)
5914 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5916 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
5917 * src/mcs51/main.c: fixed the fix for bug #737001
5919 2003-12-15 Borut Razem <borut.razem AT siol.net>
5921 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
5923 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5925 * support/makebin/makebin.c: put output in binary mode
5927 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5929 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
5930 xdata and data memory on startup. Set the environment variable
5931 SDCC_NOGENRAMCLEAR to disable this.
5932 * src/mcs51/peephole.def,
5933 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
5934 (allows non-interrupt and interrupt code to safely compete for a resource
5935 without the non-interrupt code having to disable interrupts)
5937 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5939 * src/SDCCicode.c (geniCodeAdd),
5940 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
5941 with valFromType if type might be a pointer and host is big endian).
5942 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
5943 types, not just integer types.
5944 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
5945 multiply defined with mismatching "at" address.
5947 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5949 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
5950 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
5951 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
5952 with embedded nulls (fixed bug #753752)
5954 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5956 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
5957 Apparently this did not see much testing (endless loop)
5959 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5961 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
5963 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5965 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
5966 gracefully handle NULL memmap pointers
5968 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5970 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
5971 instead of deleting the iCode when an operand is volatile
5972 * src/z80/gen.c (genDummyRead),
5973 * src/mcs51/gen.c (genDummyRead),
5974 * src/ds390/gen.c (genDummyRead),
5975 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
5977 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
5978 * src/SDCC.y: fixed bug #850420
5980 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5982 Applied z80 i/o port patch from Peter Townson and fixed some operators
5983 to better handle operands in A register.
5984 * device/include/z180.h
5990 * src/z80/peeph-z80.def
5994 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5996 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
5998 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6000 * device/lib/hc08/_mullong.c: Removed extra #endif
6002 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6004 * sim/ucsim/hc08.src/inst.cc,
6005 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
6007 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
6008 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
6009 * device/include/stdarg.h: fixed varargs for hc08
6010 * device/lib/Makefile.in,
6011 * device/lib/hc08/Makefile,
6012 * device/lib/hc08/_mulint.c,
6013 * device/lib/hc08/_mullong.c: fixed some endian problems
6015 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6017 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
6018 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
6019 * device/lib/_gptrget.c,
6020 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
6022 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6024 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
6025 * src/SDCCast.c (astErrors): fixed bug #846007
6026 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
6028 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6030 * src/SDCCast.c (decorateType): disabled a transformation I added in
6031 revision 1.188 (access to fields of a structure at an absolute address);
6032 it breaks with bitfields, extern declarations, and gcse analysis.
6033 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
6034 could be assigned through a pointer, so don't complain.
6035 * src/SDCCast.c (astErrors),
6037 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
6039 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
6041 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
6042 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
6043 output of __config directives, since gpasm now supports them
6044 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
6045 pre-processor macro, i.e. -DMCU=p18f452
6046 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
6047 and modified to handle 'cast' icode similarly to '=' icode
6048 * src/pic16/device.h (typedef struct PIC_device): added field
6049 'extMIface' to indicate that chip has external memory interface
6050 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
6051 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
6054 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6056 * src/SDCC.y (pointer): fixed bug #846006
6057 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
6058 * src/SDCCast.c (decorateType): fixed bug #846009
6059 * src/ds390/peeph.def,
6060 * src/ds390/gen.c (genAnd, genOr),
6061 * src/mcs51/peeph.def,
6062 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
6064 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6066 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
6073 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
6077 * src/SDCCbitv.c: added function to free a bitvector
6079 * src/SDCClrange.c: added function to recompute the liveranges
6081 * src/ds390/ralloc.c,
6082 * src/hc08/ralloc.c,
6083 * src/mcs51/ralloc.c,
6085 * src/pic16/ralloc.c,
6086 * src/xa51/ralloc.c,
6087 * src/z80/ralloc.c: recompute the liveranges after register packing
6089 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
6091 * src/SDCCloop.c (newInduction): fixed bug #845630
6093 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6095 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
6096 inadvertantly left behind from my 2003-11-12 change
6098 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6100 Updated headers I neglected to commit yesterday.
6104 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6106 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
6107 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
6108 * src/SDCCopt.c (eBBlockFromiCode),
6109 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
6110 the creation of the key hash table from the sequencing so it can be used
6111 earlier (for some GCSE bug fixes still pending)
6113 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6115 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
6116 * support/regression/tests/addsub.c: testing genPlus shortcut
6118 2003-11-15 Borut Razem <borut.razem AT siol.net>
6120 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
6122 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6124 * src/SDCCcse.c (cseBBlock): fixed bug #527779
6125 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
6126 ordering is immaterial.
6127 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
6129 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6131 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
6132 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
6133 (SIGSEV) of bug #840381
6134 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
6135 unlink new file before rename if new and old filenames are the same)
6137 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6139 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
6140 uninitialized variables) for the mcs51. Set environment variable
6141 SDCC_GENRAMCLEAR to test.
6142 xdata initialization slightly shorter
6144 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6147 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
6148 #838241 & 780691 (basicly the same bug)
6149 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
6150 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
6152 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
6154 * src/SDCCmain.c (linkEdit): "fix" #834252
6156 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6158 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
6160 * src/SDCC.y: fixed bug #819403
6162 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6164 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
6165 the reentrant attribute.
6166 * src/hc08/gen.c (genPackBits): added missing stack readjustment
6167 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
6169 * src/SDCCast.c (decorateType): fixed bug with storage class not being
6170 updated during pointer dereference; f.e. ~(((char *)1)*) was being
6171 erroneously reduced to a literal.
6172 * src/hc08/ralloc.c (packRegisters, rematStr),
6173 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
6176 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6178 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
6179 * doc/sdccman.lyx: changed from 'article' to 'book'
6180 * doc/Makefile: readded test_suite_spec and cdbfileformat
6182 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
6184 * device/include/stdlib.h: include malloc.h to comply with ANSI
6185 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
6187 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6189 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
6190 * doc/clean.mk: also remove *.out files
6191 * doc/sdccman.lyx: some additions, larger top/bottom margins
6193 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6195 * src/SDCC.y: fixed bug #837365
6196 * support/regression/tests/bitopcse.c
6197 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
6198 a symbol (might be valop instead)
6199 * device/lib/Makefile.in: added errno.c to HC08SOURCES
6200 * device/lib/clean.mk: added hc08 to the cleaning list
6202 2003-11-04 Borut Razem <borut.razem AT siol.net>
6204 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
6206 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
6207 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
6208 malloc is declared in standard stdlib.h
6210 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6212 * device/lib/hc08/Makefile: need to clean .rel not .o files
6213 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
6215 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6225 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
6226 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
6227 tests (which uses the port's oclsExpense function)
6233 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
6235 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6237 * src/SDCCcse.c (ifxOptimize),
6238 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
6239 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
6240 deleting the IFX iCode.
6241 * src/hc08/ralloc.c: reduced unneeded slocs
6242 * src/hc08/gen.c: fixed bug in asmopToBoolean
6244 2003-11-04 Borut Razem <borut.razem AT siol.net>
6246 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
6247 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
6248 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
6249 transferred to configure
6251 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
6253 Use headers defined in the C[++] standards:
6254 * sim/ucsim/gui.src/serio.src/fileio.cc
6255 * sim/ucsim/gui.src/serio.src/frontend.cc
6256 * sim/ucsim/gui.src/serio.src/main.cc
6257 * sim/ucsim/gui.src/serio.src/posix_signal.cc
6258 * support/Util/NewAlloc.c
6264 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6266 * Added MSVC projects for hc08 assembler and linker:
6267 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
6268 /as/hc08/link_hc08.dsp
6270 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
6272 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
6274 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
6276 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
6278 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6280 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
6282 2003-10-31 Borut Razem <borut.razem AT siol.net>
6284 * support/cpp2/cpplib.h,
6285 support/cpp2/cpplib.c,
6286 support/cpp2/cpplex.c,
6287 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
6288 to switch _asm block preprocessing on / off. Default is
6289 #pragma preproc_asm +
6291 2003-10-31 Borut Razem <borut.razem AT siol.net>
6293 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
6294 when outputting comment blocks (when executed with -C option) and
6295 _asm (SDCPP specific) blocks
6297 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6299 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
6301 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
6303 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
6305 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
6307 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
6308 * src/SDCCast.c (decorateType): fixed bug #832664
6310 2003-10-31 Borut Razem <borut.razem AT siol.net>
6312 * support\cpp2\cpplex.c: fixed for SDCPP:
6313 comments(when executed with -C option) and _asm blocks
6314 were included even if they where in skipped #if block.
6315 Applied solution from GCC cpp 3.3.2
6317 2003-10-31 Borut Razem <borut.razem AT siol.net>
6319 * src/SDCC.lex: sdcc now understands both formats:
6320 '# <line_number> <file_name>' and
6321 '#line <line_number> <file_name>'
6322 * support/cpp2/cppmain.c: sdcpp now generates the standard
6323 '# <line_number> <file_name>' instead of former
6324 '#line <line_number> <file_name>'
6326 2003-10-30 Borut Razem <borut.razem AT siol.net>
6328 * support/cpp2/cpphash.h,
6329 * support/cpp2/cpplib.h
6330 * support/cpp2/cpplex.c,
6331 * support/cpp2/cppmain.c,
6332 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
6334 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6336 Fixed a number of problems revealed by bug #827883.
6337 * src/SDCCloop.c (loopInvariants): Spill location of the
6338 result operand should be recomputed if extracted from
6339 a loop. Also, don't extract assignments of an iTemp
6341 * src/SDCCast.c (isConformingBody): loop reversal should
6342 not occur if the control variable is involved with a
6343 relational operator.
6345 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6347 * .version: bumped to 2.3.6 to reflect the big improvements
6348 made by Erik and Klaus. Thanks!
6350 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
6352 Replaced the livrange code.
6353 * src/SDCClrange.c: added new LR code
6355 * src/SDCCBBlock.h: removed remainig parts from old LR code
6356 * src/ds390/ralloc.c,
6357 * src/ds390/gen.c: minor fixes to make it work with new code
6359 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6364 * src/hc08/ralloc.c: Fix various warnings related to the hc08
6365 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
6366 (tweaked fix for bug #818696)
6368 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6370 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
6372 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6375 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
6376 * src/mcs51/gen.c (gencjneshort),
6377 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
6378 more efficient (per Scott Bronson's suggestion)
6380 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6382 Extended the semantics of the critical keyword to include
6383 individual statements. See RFE #827755 and #799831
6388 * support/Util/SDCCerr.c
6389 * support/Util/SDCCerr.h
6394 2003-10-19 Borut Razem <borut.razem AT siol.net>
6396 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
6398 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6400 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
6402 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
6403 and predecrement operand is displayed
6405 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
6407 * src/SDCCval.c (valMinus): fixed bug #826041
6409 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6411 Some hc08 related updates that I missed earlier
6412 * sim/ucsim/stypes.h
6413 * support/regression/ports/hc08/spec.mk
6415 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6417 New target "hc08" for the Motorola 68hc08 family of micros
6425 * sim/ucsim/hc08.src/*
6426 * sim/ucsim/configure.in
6427 * src/ucsim/configure
6428 * sim/ucsim/packages_in.mk
6431 * device/include/mc68hc908qy.h
6433 * device/lib/Makefile.in
6434 * support/regression/ports/hc08/*
6435 * support/regression/Makefile
6437 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6439 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
6441 * src/ds390/gen.c (genCast): fixed bug #821957
6443 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
6445 * device/lib/logf.c: "fixed" overlay bug
6446 * support/regression/ports/host/spec.mk: added m library
6447 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
6448 * support/regression/tests/float_trans: added (for Eric)
6450 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
6452 * src/mcs51/gen.c (genCpl): fixed bug
6453 http://sf.net/mailarchive/message.php?msg_id=6263915
6455 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
6457 * src/SDCCast.c (decorateType): added extended constant folding
6458 * src/SDCCsymt.c (computeType): cleanup
6459 * src/SDCCval.c (valShift): minor optimization
6460 * support/regression/tests/ast_constant_folding.c: added
6462 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6464 * src/SDCCmain.c: removed some unintended changes
6466 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6468 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
6469 * src/z80/gen.c: fixed part of bug #817589
6470 * src/SDCCsymt.c (checkFunction): fixed bug #817895
6472 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
6474 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
6485 * src/ds390/ralloc.c
6487 * src/mcs51/ralloc.c
6489 * src/pic16/ralloc.c
6492 * src/z80/gen.c: removed unused label "release:"
6494 2003-10-06 Borut Razem <borut.razem AT siol.net>
6496 * src/SDCC.lex: removed definition of unused variables
6497 save_optimize and save_options
6499 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
6501 * clean.mk: removed '=' in "-maxdepth=1"
6502 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
6503 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
6505 2003-10-06 Borut Razem <borut.razem AT siol.net>
6507 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
6508 my_unput() replaced by unput()
6510 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
6512 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
6513 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
6514 type-punned pointer will break strict-aliasing rules"
6515 Old LR behaviour is again default; Klaus' LR can be choosen by
6516 defining the environment variable LRKLAUS
6520 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
6521 * clean.mk: fixed removal of files in bin/CVS/
6522 * device/lib/clean.mk: fixed removal of directories small and large
6523 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
6525 * src/SDCCval.c: removed superflous test for pedantic
6527 2003-10-05 Borut Razem <borut.razem AT siol.net>
6529 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
6530 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
6531 message "unmatched #pragma SAVE and #pragma RESTORE"
6533 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6535 * doc/sdccman.lyx: various additions and updates (interrupts, inline
6536 assembly, critical functions, atomic, nojtbound)
6538 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
6540 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
6546 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6549 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6551 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6553 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6554 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
6555 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
6557 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6559 * src/z80/gen.c (genRet): fixed bug #524753
6560 * src/z80/gen.c (genCast): fixed internal error on cast from
6562 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
6563 fix for bug #477835 to the z80
6564 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
6565 for tracking iCodes in the peephole optimizer for z80
6567 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6569 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
6570 the other part of bug #814548
6571 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
6573 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
6575 * src/SDCCcse.c: fixed part of bug #814548
6577 2003-09-28 Borut Razem <borut.razem AT siol.net>
6579 * src/asm.c: rewrite of printILine() to use temporary file instead
6581 * src/xa51/main.c: commented out declaration of int rewinds
6583 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6585 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
6587 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6589 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
6590 * src/asm.c (printILine): Fixed bug #811015
6592 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6594 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
6597 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6599 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
6600 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
6601 to correctly handle general case of AOP_PAIRPTR
6602 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
6604 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6606 * src/mcs51/ralloc.c (fillGaps),
6607 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
6608 register positioning bug)
6610 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
6612 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
6614 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6616 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
6617 genCodePointerGet, genGenPointerGet, genFarPointerSet,
6618 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
6619 (ralloc doesn't intentionally do this now, but perhaps later)
6620 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
6621 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
6622 register positioning bugs (Fixed bug #762602 and #795325)
6623 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
6625 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
6626 lines that --i-code-in-asm generates
6628 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6630 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
6631 trying to fclose a FILE* that was already closed.
6633 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6635 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
6636 of const struct should be treated as if const themselves)
6638 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
6640 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
6642 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6644 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
6645 Unix (/n) and DOS (/r/n) line terminations.
6647 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6649 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
6652 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6654 * src/mcs51/gen.c (genFunction, genEndFunction),
6655 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
6656 and restore of EA so that stack offsets to parameters are
6657 correct when using both critical and reentrant/stack-auto.
6658 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
6659 size (can be triggered in error if sloc is shared between
6660 different sized objects)
6661 * device/include/float.h: fixed macros to explicitly use
6662 unsigned long where needed
6664 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
6666 Feature req. 799831: added code to allow nesting of critical functions
6667 * src/mcs51/gen.c (genFunction, genEndFunction)
6668 * src/ds390/gen.c (genFunction, genEndFunction)
6670 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6672 * src/SDCCsymt.c (sclsFromPtr),
6674 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
6675 support for standard C idiom of memory mapped variables; for
6676 example, *((xdata int*)0x1234) = 1 is now internally equivalent
6677 to xdata int at 0x1234 tempvar = 1.
6678 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
6679 provided by Akiya ISHIDA
6681 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
6683 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
6684 * src/SDCCval.c (constVal): added reduction from int to char
6685 * src/SDCCval.c (valMult, valDiv): fixed sign handling
6686 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
6687 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
6689 * support/regression/tests/shifts.c: fixed
6691 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6693 * src/z80/gen.c (genXor): Fixed bug #805445
6695 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6697 Fixed bug #621531 (const & volatile confusion in the type chain).
6698 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
6699 refer to the const or volatile state of the pointer itself.
6711 * src/pic16/ralloc.c
6712 * support/regression/tests/const.c
6714 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6716 When checking for duplicated modules, use absolute paths
6717 instead of relative paths. Files changed:
6722 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6724 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
6726 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6728 * device/include/string.h: added size_t typedef, changed
6729 prototypes to use size_t, eliminated separate reentrant and
6730 non-reentrant declarations, added _memmove declaration
6731 * device/lib/_memcpy.c: changed to use size_t instead of int,
6732 changed /4 to >>2 to avoid division library call
6733 * device/lib/_memcmp.c,
6734 * device/lib/_memset.c,
6735 * device/lib/_strncat.c,
6736 * device/lib/_strncpy.c,
6737 * device/lib/_strncmp.c: changed to use size_t instead of int
6738 * device/lib/_memmove.c: new file (fixed bug #772294)
6739 * device/lib/Makefile.in: added _memmove.c
6740 * device/lib/z80/asm_strings.s: fixed bug #772290
6741 * support/regression/tests/bitfields.c: attempt to fix host assertion
6742 failure on amd64-unknown-linux2.2
6744 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6746 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
6747 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
6748 * as/z80/asmain.c (main): fixed bug #801766
6750 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
6752 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
6755 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6757 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
6758 reported in bug #800609
6760 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
6762 * Top header beautifications in src/pic16 directory:
6763 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
6764 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
6765 pcoderegs.h, ralloc.c, ralloc.h
6766 * main.c: added top header and GPL license notice
6767 * pcode.c: fixed the if-conditional warning
6769 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
6771 * device/lib/_mullong.c: replaced int by short for gcc
6773 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6775 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
6776 and JUMPTABLE iCodes properly now (worked by accident before)
6777 * src/mcs51/gen.c (leftRightUseAcc),
6778 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
6779 iCode properly now. Use getSize instead of nRegs since a & b
6780 aren't part of the nRegs tally.
6782 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
6784 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
6785 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
6786 before instructions that use the _STATUS register
6788 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
6790 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
6791 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
6792 fetching of the pointer
6793 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
6794 copied from genNearPointerSet()
6795 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
6796 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
6797 If they pop r0/r1 they must be called in the opposite order than aopOp().
6798 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
6799 (resp. --stack-auto), prepared for --xstack
6801 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6803 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
6805 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
6807 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
6808 these ports have their own __sdcc_external_start()
6810 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
6812 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
6813 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
6814 type for bits was changed. It resulted in bit variables becoming
6815 global, which is not permitted in PIC 14 assembly output.
6817 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6819 * doc/sdccman.lyx: various additions and updates. Rearranged sections
6821 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6823 Z80 and MCS51 linkers complaint if a public symbol is defined
6824 in more than one library module:
6828 * as/mcs51/Makefile.in
6830 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6832 A few small changes that speed up the peephole optimizer.
6836 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6838 Try to make the peephole optimizer smarter by maintaining
6839 an association between the assembly source code and the
6840 iCodes that originated them. Put this information to use
6841 with a new peephole rule condition "notVolatile" so that
6842 the rules can be aggressive yet still safe.
6847 * src/mcs51/peeph.def
6849 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6853 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
6854 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
6855 if the left or right operand symbols have the accuse flag set.
6857 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6859 Changed the type of the result of the ! (NOT) operator to char;
6860 previously it returned the same type as the source. This allows
6861 us to eliminate all the genFloatNot functions (all of its target
6862 implementations were very buggy) since !float can use the same
6865 * src/SDCCicode.c (ast2iCode): ! returns char
6866 * src/mcs51/gen.c (genNot, genNotFloat),
6867 * src/ds390/gen.c (genNot, genNotFloat),
6868 * src/z80/gen.c (genNot, genNotFloat),
6869 * src/pic/gen.c (genNot, genNotFloat),
6870 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
6872 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
6874 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
6875 1. Interrupt would not compile properly. Ensure PCLATH register is saved
6876 during interrupts. Ensure WSAVE is located at a shared bank address.
6877 2. Fixed page selection in some places
6878 3. Fixed BTFSS/C to where necessary use registers directly and not simply
6879 the registers name strings.
6880 4. Fixed "signed / unsigned compare" compiler warnings.
6881 5. The PIC port manages its own allocation of the general purpose
6882 registers, but makes no attempt to reuse them. As a result when
6883 compiling it soon runs out of general purpose registers. Some
6884 additional code was added to the files pcode.c and device.c to walk
6885 through the function call tree and rename the registers so that they
6895 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
6896 genPlus() & genMinus() when the result is the same as left or right
6898 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6900 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
6902 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6904 Made bitfield a distinct type from bit so that bitfields
6905 convert as per ANSI C and bits retain their traditional
6906 boolean style behaviour. Implemented bitfield support in
6914 * src/ds390/gen.c: bit v bitfield split
6915 * src/z80/gen.c: New support for bitfields
6916 * support/regression/tests/bitfields.c: reenabled z80,
6919 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6921 Rules 246.x, 247.x relate to bitfields, the others speed up
6922 access to xdata mapped I/O devices.
6924 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
6926 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6928 Cleaned up genPackBits and genUnpackBits and added two helper
6929 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
6930 for literal assignments in genPackBits (thanks to Frieder for
6936 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6938 Fixed bug #748310 (pointer to function type mishandled when the
6939 function name is omitted). Also fixed a SIGSEGV when a function
6940 attribute (reentrant, etc) is used on a non-function or on a
6941 function but misplaced before the parameter list.
6943 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
6945 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
6946 * support/Util/SDCCerr.h,
6947 * support/Util/SDCCerr.c: Added func attr misuse error msg
6949 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
6951 Fixed bug #787649 by anonymous
6952 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
6953 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
6955 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6957 Fixed numerous bitfield problems.
6959 * src/SDCC.y: More bitfield related error checking
6961 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
6962 * support/Util/SDCCerr.h,
6963 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
6964 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
6965 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
6966 * support/regression/tests/bitfields.c: tests added
6968 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6970 Made the constant following the "interrupt" keyword optional. If
6971 omitted, the function will not automatically be given an entry
6972 in the interrupt vector table (similar to #pragma NOIV, but
6973 less syntacticly kludgy). The interrupt number is also now
6974 range checked. Also fixed a bug in the high order bit example
6981 * support/Util/SDCCerr.c
6982 * support/Util/SDCCerr.h
6985 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
6987 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
6988 * src/SDCCicode.c (operandOperation): rewritten some ops
6989 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
6990 * src/SDCCsymt.c (computeType): literals are handled the same way as any
6992 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
6993 be re-activated by defining REDUCE_LITERALS)
6994 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
6995 unsigned, but are signed by default
6996 * src/SDCCval.c (constVal): rearranged
6997 * src/SDCCval.c (valMod): preliminary fix
6998 * src/SDCCval.c (valCastLiteral): use TYPE_* types
6999 * support/regression/literalop.c: added, work in progress
7001 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7003 Generate warnings for useless declarations like "char data;"
7004 that don't do what new users expect.
7007 * support/Util/SDCCerr.h
7008 * support/Util/SDCCerr.c
7010 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
7012 * src/SDCCval.c (valMult): fix overflow detection of negative int
7014 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7016 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
7018 Changes to support big endian targets:
7031 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
7033 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
7034 * device/lib/time.c: fixed warning "integer overflow in expression"
7036 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
7038 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
7039 * src/SDCCval.c (constVal): changed default to signed; hex and octal
7040 constants are unsigned; added recognition of "u" flag for unsigned
7041 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
7042 * src/SDCCval.c (valDiv, valMod): fixed signdness
7043 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
7044 signedness of modulo, left and right shift
7045 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
7046 * support/Util/SDCCerr.h: added warning W_INT_OVL
7047 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
7048 * src/SDCCast.c (ast_print): improved output of constants
7050 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7052 Fixed some warnings when building with MSVC:
7065 * support\cpp2\cpplib.c
7069 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
7071 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
7073 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7075 * support\librarian\clean.mk: Do not remove Makefile.
7076 * support\librarian\Makefile: added.
7078 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7080 Added librarian to MSVC build:
7083 * support\librarian\librarian.dsp
7085 'configure' not needed for librarian, removed:
7086 * support\librarian\configure
7087 * support\librarian\configure.in
7088 * support\librarian\config_in.h
7089 * support\librarian\Makefile.in
7091 Hopefully these ones built the librarian and the rest of sdcc properly:
7093 * Makefile.common.in
7095 Messed up 'configure', so revert to previous version:
7099 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
7101 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
7102 there, while the mantissa of a double is "only" 53 bits wide.
7104 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7106 Adding sdcclib to the build. MSVC project coming soon.
7107 Files added/changed:
7109 * support\librarian\clean.mk
7110 * support\librarian\configure
7111 * support\librarian\configure.in
7112 * support\librarian\config_in.h
7113 * support\librarian\Makefile.bcc
7114 * support\librarian\Makefile.in
7115 * support\librarian\sdcclib.c
7118 * Makefile.common.in
7122 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7124 Linker now complaints if linked modules have conflicting options, for
7125 example, one compiled using --model-large and another one compiled with
7126 --model-small. The following files were modified:
7148 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7150 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
7151 as/mcs51/lklibr.c: Generate a warning when a library is not found.
7153 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
7155 * src/z80/mappings.i: fix _mul[us][int,long] entries
7157 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7159 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
7161 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
7163 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
7164 * support/regression/tests/bitopcse.c: added
7172 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7174 added support for new library format to z80, gbz80 linkers:
7180 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
7182 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
7183 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
7185 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
7187 added DUMMY_READ_VOLATILE:
7196 * src/SDCCcse.c (algebraicOpts): many improvements
7197 * src/SDCCcse.h: removed algebraicOpts()
7198 * src/SDCCicode.c (picDummyRead): added
7200 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7202 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
7203 "Insufficient space in data memory".
7205 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7207 * src/mcs51/gen.c: fixed bug #771358
7208 * src/z80/gen.c: fixed bug #759087
7210 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
7212 * src/pic16/glue.c: minor cleanup by Vangelis
7214 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7216 * device/include/regc515c.h: fixed #758477
7217 * device/lib/_gptrget.c: saving some cycles in generic pointer get
7218 * device/lib/_gptrput.c: saved a few bytes
7219 * my tab spacing is 8, yours too?)
7220 * device/lib/_ser.c: process RX bytes earlier than TX bytes
7221 * device/lib/serial.c: process RX bytes earlier than TX bytes
7222 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
7224 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7226 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
7228 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7230 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
7232 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
7234 * device/lib/Makefile.in: bad fix, reverted to 1.43
7236 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
7238 * device/lib/Makefile.in: added missing z80 object files
7240 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
7242 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
7243 pic16 progress by Vangelis:
7258 * pic16/pcodepeep.c:
7261 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7263 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
7265 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7267 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
7268 added gbz80 build to MSVC project.
7269 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
7270 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
7271 from 8051 stuff and setup so it links using a .lnk file.
7273 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7275 * support/librarian/sdcclib.c: sdcc librarian.
7276 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
7279 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7281 * as/mcs51/lkmain.c: properly handle extensions in function afile.
7283 2003-07-02 Borut Razem <borut.razem AT siol.net>
7285 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
7286 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
7287 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
7288 src/xa51/main.c, src/z80/main.c:
7289 virtualization of glue() function: each port has it's own glue function,
7290 which is accessed by do_glue function pointer in PORT.general structure
7292 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
7294 * DS800C400 fun, improved ROM interface and tinibios.
7296 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
7298 * More support for DS80C400. Now includes beginning of interface to ROM.
7300 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
7302 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
7304 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7306 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
7308 2003-06-19 Borut Razem <borut.razem AT siol.net>
7310 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
7312 2003-06-19 Borut Razem <borut.razem AT siol.net>
7314 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
7315 fixed Z80 port - crt0.o: cannot open.
7317 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
7319 * support/Util/MySystem.c (merge_command): revert bad fix
7321 2003-06-18 Borut Razem <borut.razem AT siol.net>
7323 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
7325 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7327 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
7328 option --use-stdout sends errors to stdout instead of stderr.
7330 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
7332 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
7334 2003-06-15 Borut Razem <borut.razem AT siol.net>
7336 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
7337 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
7338 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
7339 fixed width array of pointers replaced with sets;
7340 multiple include and lib paths ared transferred to preprocessor and linker
7341 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
7342 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
7343 fixed width array of pointers
7344 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
7345 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
7346 fixupPath(), getPathDifference()
7347 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
7348 fixed width array of pointers
7350 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
7352 * src/pic16/ralloc.c: fix warnings
7353 * src/pic16/pcode.c: fix warning
7355 2003-06-10 Scott Dattalo <scott AT dattalo.com>
7357 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
7358 know all the details, but essentially this set of changes enable
7359 the pic16 port to generate movff instructions and generate assembler
7364 * src/pic16/pcode.c:
7365 * src/pic16/device.c:
7367 * src/pic16/pcode.h:
7368 * src/pic16/pcoderegs.c:
7369 * src/pic16/ralloc.c:
7370 * src/pic16/ralloc.h:
7372 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7374 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
7375 added option --vc, so sdcc errors and warnings are compatible with
7376 Microsoft Visual Studio.
7378 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7380 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
7381 device/lib/libfloat.lib: added atof function.
7383 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
7385 * doc/sdccman.lyx: updated to Lyx 1.3
7386 * doc/cdbfileformat.lyx: updated to Lyx 1.3
7387 * doc/test_suite_spec.lyx: updated to Lyx 1.3
7388 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
7390 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
7392 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
7394 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7396 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
7397 additions to the "related tools/documentation" section
7399 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
7401 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
7403 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
7405 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
7406 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
7408 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
7410 * doc/sdccman.lyx: fix double dash and other minor things
7411 * doc/Makefile: fix double dash
7413 2003-05-28 Karl Bongers(patches from Martin Helmling)
7414 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
7415 condition and ignore commands.
7417 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7419 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
7420 is in parts still quite out of date, I did changes as far as I felt makes sense
7421 for a non-native english speaker.
7422 Please feel free to add to the manual or to correct my changes.
7423 * doc/Makefile: undid touching the date of intermediate tex files.
7425 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7427 * doc/sdccman.lyx: Manual has an index now
7429 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
7431 Finalize muluint/mulsint and mululong/mulslong merging:
7432 * device/lib/_mulint.c
7433 * device/lib/_mullong.c
7434 * device/lib/gbz80/mul.s
7435 * device/lib/gbz80/stubs.s
7436 * device/lib/z80/mul.s
7437 * device/lib/z80/stubs.s
7438 * src/SDCCsymt.c (initCSupport)
7440 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7442 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
7443 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
7444 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
7445 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
7448 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7450 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
7451 the regression tests I'm not brave enough to enable 245.b, 245.c
7452 * doc/sdccman.lyx: added latex preamble for hyperref package.
7453 Using pdflatex this will give you a hyperlinked pdf file with
7454 bookmarks. (prepend '%' before /usepackage if this breaks something)
7456 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7458 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
7460 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
7462 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
7464 2003-05-21 <johan AT balder>
7466 * src/SDCCglue.c (printIval): fixed bug #739934
7468 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
7470 Applied patch from bug 737905 (renamed yylineo to mylineno):
7477 * src/pic16/pcode.c: Cleaned warnings
7478 * src/pic16/pcodeflow.c: Cleaned warnings
7479 * src/pic16/pcoderegs.c: Cleaned warnings
7481 2003-05-19 Scott Dattalo <scott AT dattalo.com>
7483 * src/pic16/pcode.c: Cleaned warnings
7484 * src/pic16/pcodepeep.c: Cleaned warnings
7485 * src/pic16/ralloc.c: Cleaned warnings
7487 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
7489 * doc/sdccman.lyx: fixed bug 739745
7490 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
7492 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
7494 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
7495 it can be defined with CFLAGS when running configure
7496 * src/SDCCmain.c: fixed compiling + linking with object files
7498 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
7500 * configure.in: configure for pic16 port,
7501 added --disable-pic16-port
7502 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
7503 * src/SDCCmain.c: linkOptions is changed to set *,
7504 added if/endif conditional macros to remove options help
7505 messages from optionsTable when a port is not configured, added
7506 support for the PIc16 port in the ports table, when executing
7507 the compiler with no port specified on command line, a default
7508 port is selected with the new macro DEFAULT_PORT which is
7509 defined in port.h, in setDefaultOptions() linkOptions is removed
7510 from initialization assignment, since now it is a set,
7511 parseCmdLine uses setParseWithComma for linkOptions, in
7512 linkEdit() linkOptions are accessed with new function indexSet()
7513 which returns the i'th item of a set variable. See SDCCset.c, in
7514 linkEdit() when calling buildCmdLine(), added linkOptions as
7515 last argument. Now users can pass arguments to gplink via the
7516 -Wl option, main() uses pic16glue() to glue up pic16 programs
7517 * src/SDCCpeeph.c: various changes to support pic16
7518 * src/SDCCset.c: added function void *indexSet(set *, int) to
7519 return the i'th item of the set
7520 * src/SDCCset.h: added function prototype for indexSet()
7521 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
7522 * src/clean.mk: added pic16 in CLEANALLPORTS variable
7523 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
7524 added macro DEFAULT_PORT
7525 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
7526 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
7528 * src/pic16/glue.c: commented out some error producing lines
7529 * src/pic16/main.c: __config directives are commented out to stop
7530 gpasm complaining and test the linkage with gplink, _linkCmd and
7531 _asmCmd changed to be more gplink and gpasm friendly
7532 * src/pic16/peeph.def: peep rule 3 is commented out, since it
7533 produced an error when parsed, peep rule 12 is added to utilize
7534 movff, but it is commented out since the pCode does not support
7535 yet a command with 2 address arguments
7537 2003-05-18 <johan AT balder>
7539 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7540 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7541 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
7543 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
7544 Added feature to script commands from file.
7546 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
7548 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
7549 * src/SDCCutil.c: include ctype.h for win32
7551 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
7553 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
7555 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
7557 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
7558 Fixed so you can set breakpoints prior to run, run does not stop
7559 on entry now. Add tbreak. Other enhancements and fixes for use
7562 2003-05-12 Borut Razem <borut.razem AT siol.net>
7564 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
7566 2003-05-11 Borut Razem <borut.razem AT siol.net>
7568 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
7569 the path of bin directory, so that PATH is the only env. variable, which has to be set
7570 in case of standard installation.
7571 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
7572 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
7573 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
7575 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
7577 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
7578 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
7579 temp files are in the port dir; clean the gen/test directory when
7580 generating new test.c
7581 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
7582 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
7583 * support/regression/tests/zeropad.c: added
7585 2003-05-09 <johan AT balder>
7587 * src/SDCCglue.c: fixed bug #597940
7589 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
7591 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7592 cache sfr, optimize next,step, fix off by one sourceline,
7593 support ddd list function.
7594 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
7596 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
7598 * support/regression/HTMLgen.py: added compare_s2f()
7599 * support/regression/Makefile: redo 1.27
7600 * support/regression/generate-cases.py: redo 1.5
7602 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
7604 * support/regression/tests/float.c: workaround 33 bit hex constant
7605 * support/regression/tests/simplefloat.c: fix division for host
7607 2003-04-29 Scott Dattalo <scott AT dattalo.com>
7609 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
7610 that tame's the PIC's over-aggressive optimizer.
7612 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7614 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
7617 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
7619 Initial support for DS80C400. "Hello world" runs on TINIm400
7622 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
7624 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7625 * Some notes on ddd usage added in debugger/README
7626 Martin Helmling adding more features and fixes for ddd GUI debugger.
7627 Code added for nexti, stepi, up, down, and other adjustments.
7629 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
7631 * src/pic/pCodepeep.c non-wildcard asmops are now handled
7632 * src/pic/peeph.def Added two rules to optimize carry manipulation
7633 * src/pic/* removed debug printfs
7635 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
7637 * debugger/mcs51/cmd.c: added header newalloc.h
7639 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
7641 * as/Makefile: new EXEEXT
7642 * as/z80/Makefile: remove trailing slash of BUILDIR
7643 * as/z80/clean.mk: new EXEEXT
7644 * Makefile.common.in: add to CFLAGS (and others), don't replace it
7645 * support/cpp2/Makefile.in: new EXEEXT
7646 * src/pic/glue.c (pic14emitRegularMap): fixed warning
7648 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
7650 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
7651 EXEEXT was introduced to fix all related problems with targets
7652 "clean", "install" and "uninstall"; a couple of further flaws
7653 especially with "clean" have been fixed too
7654 * as/mcs51/Makefile.in
7659 * debugger/mcs51/Makefile.in
7660 * debugger/mcs51/clean.mk
7662 * link/z80/Makefile.in
7665 * packihx/Makefile.in
7667 * sim/ucsim/Makefile
7668 * sim/ucsim/clean.mk
7669 * sim/ucsim/avr.src/Makefile.in
7670 * sim/ucsim/avr.src/clean.mk
7671 * sim/ucsim/s51.src/Makefile.in
7672 * sim/ucsim/s51.src/clean.mk
7673 * sim/ucsim/xa.src/Makefile.in
7674 * sim/ucsim/xa.src/clean.mk
7675 * sim/ucsim/z80.src/Makefile.in
7676 * sim/ucsim/z80.src/clean.mk
7677 * sim/ucsim/main_in.mk
7678 * sim/ucsim/packages_in.mk
7679 * sim/ucsim/gui.src/Makefile.in
7680 * sim/ucsim/gui.src/serio.src/Makefile.in
7681 * sim/ucsim/gui.src/serio.src/clean.mk
7684 * support/cpp2/Makefile.in
7685 * support/cpp2/clean.mk
7686 * support/makebin/Makefile
7687 * support/makebin/clean.mk
7688 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
7689 * doc/sdccman.lyx: --program-suffix no longer needed
7691 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
7693 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
7694 Martin Helmling added support for ddd GUI debugger.
7695 Code added to display assembly, set variables, and other commands
7696 to interface to ddd.
7698 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
7700 * as/Makefile: fix target clean
7701 * as/clean.mk: fix target clean
7702 * as/z80/clean.mk: fix target clean
7704 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
7706 * Makefile.common.in: added AT EXEEXT AT
7707 * configure.in: removed all mingw32 stuff
7708 * configure: rebuilt from configure.in
7709 * doc/sdccman.lyx: updated section "installation"
7710 * support/scripts/sdcc_mingw32: adapted to configure
7711 * support/scripts/sdcc_cygwin_mingw32: added
7713 2003-04-22 Scott Dattalo <scott AT dattalo.com>
7715 * src/pic Added object file support for the PIC port
7716 * src/pic Applied patch from Craig Franklin (this started the object file support)
7717 * src/regression Updated the PIC regression tests for object files
7719 2003-04-20 Borut Razem <borut.razem AT siol.net>
7721 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
7722 lklex.c: In function `getfid':
7723 lklex.c:203: warning: array subscript has type `char'
7724 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
7725 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
7726 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
7727 stack handling macros
7729 2003-04-19 Borut Razem <borut.razem AT siol.net>
7731 * "handling space characters in file path" task:
7732 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
7733 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
7734 * support/Util/MySystem.h: make it self-sufficient
7735 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
7736 src/z80/main.c, sdcc/as/mcs51/lklex.c:
7737 handling space characters in file path
7738 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
7739 (it will be used by assemblers, which have their own includes, e.g. gpasm)
7740 * support/Util/MySystem.c: handling space characters in executable's path
7742 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
7744 * as/z80/Makefile: fix permanent rebuild of z80
7745 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
7746 * support/regression/tests/bitfields.c: added Johan's bitfields.c
7748 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
7750 * src/SDCCopt.c: add special case optimization to replace modulo by
7751 a power of two with a bitwise AND.
7753 2003-04-18 <johan AT balder>
7755 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
7757 2003-04-17 <johan AT balder>
7759 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
7760 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
7762 2003-04-13 Borut Razem <borut.razem AT siol.net>
7764 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
7765 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
7766 fixed mingw problem in adl_NORMALIZE_PATH
7768 2003-04-12 Borut Razem <borut.razem AT siol.net>
7770 * fixed "#pragma SAVE/RESTORE can not be nested":
7771 * src/SDCC.lex: reworked pragma handling functions
7772 * sdcc/src/SDCCglobl.h: reworked stack handling macros
7773 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
7775 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
7777 * src/SDCCutil.c (pathEquivalent): defined but not used
7778 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
7779 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
7780 * configure: rebuilt from configure.in
7781 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7782 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7783 * device/include/Makefile.in: replace sdcc_datadir
7784 * device/lib/Makefile.in: replace sdcc_datadir
7785 * Makefile.common.in: add LDFLAGS from configure
7786 * packihx/Makefile.in: use LDFLAGS
7787 * src/Makefile.in: use LDFLAGS
7788 * support/cpp2/Makefile.in: add LDFLAGS from configure
7789 * support/makebin/Makefile: use LDFLAGS
7790 * .version: bumped version number to 2.3.5
7792 2003-04-12 Borut Razem <borut.razem AT siol.net>
7794 * completed "different paths" task:
7795 * src/SDCCmacro.c: fixed bug in handling quotes
7796 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
7797 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
7799 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
7801 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
7803 2003-04-11 kevin Vigor <kevin AT vigor.nu>
7805 * ds390/gen.c ds390/peeph.def: fix bug 706781
7807 2003-04-11 Borut Razem <borut.razem AT siol.net>
7809 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
7811 2003-04-10 Scott Dattalo <scott AT dattalo.com>
7813 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
7814 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
7815 set - this bit used to not be set...).
7816 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
7817 bad code in PIC Port
7818 * src/regression/and2.c added to test bug 609268
7819 * src/regression/Makefile added and2.c to regression test
7822 2003-04-08 <johan AT CP255758-A>
7824 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
7825 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
7826 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
7828 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
7830 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
7832 * support/cpp2/Makefile.in: fix bug #487815
7833 * configure: rebuilt from configure.in
7834 * Makefile.common.in: docdir changed, new path suffixes
7835 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
7836 * sdcc_vc_in.h: reflect changes from sdccconf.h
7837 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
7838 * src/SDCCutil.h: remove BINDIR hack
7839 * doc/sdccman.lyx: update new path hierarchy
7841 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
7843 * src/SDCCpeeph.c: added okToRemoveSLOC test
7845 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
7847 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
7849 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
7851 * src/SDCCpeeph.c: added labelIsReturnOnly test
7852 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
7854 2003-04-05 <johan AT balder>
7856 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
7857 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
7858 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
7859 * src/SDCCast.c: fixed a warning
7860 * src/SDCCast.h: fixed a warning
7861 * src/SDCCicode.c (operandFromAst): fixed a warning
7863 2003-04-04 <johan AT balder>
7865 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
7866 * src/SDCCast.c (decorateType): fixed bug #715076
7867 * src/SDCC.y: fixed bug #702907
7869 2003-04-03 <johan AT balder>
7871 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
7872 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
7873 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
7874 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
7875 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
7877 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
7879 * _decdptr.c: fix return values
7880 * _gptrget.c: fix return values
7881 * _gptrgetc.c: fix return values
7882 * _gptrput.c: fix return values
7883 * _mulint.c: fix return values
7884 * as/z80/Makefile: fix 'make -j' problem
7886 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
7888 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
7889 * configure.in: big cleanup, updated to autoconf 2.5x
7890 * configure: rebuilt from configure.in
7891 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
7892 * sdcc_vc_in.h: reflect changes from sdccconf.h
7893 * doc/Makefile: fixed a flaw in "make install"
7895 2003-04-02 <johan AT balder>
7897 * src/ds390/gen.c (genCmp): no comments
7898 * src/mcs51/gen.c (genCmp): no comments
7899 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
7900 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
7902 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
7904 * support/regression/generate-cases.py: place generated file in given sub directory
7905 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
7906 * support/regression/Makefile: improvements for 'make -j';
7907 side effect: it's simpler and faster now
7909 2003-03-31 Borut Razem <borut.razem AT siol.net>
7911 * src/z80/main.c: link-{port} and as-{port} defined without path
7912 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
7914 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
7916 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
7918 2003-03-30 Borut Razem <borut.razem AT siol.net>
7920 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
7921 changed type of list parameter to set
7922 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
7923 * src/port.h: changed type of do_assemble() parameter to set
7924 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
7925 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
7926 definition of "cppoutfilename" macro with NULL value in preProcess()
7927 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
7928 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
7929 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
7930 replaced with set *binPathSet
7931 * shash_add() deallocates the item, if allready exsists, before adding the new one
7932 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
7934 2003-03-30 Scott Dattalo <scott AT dattalo.com>
7936 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
7937 a nested for loop bug in the PIC port
7938 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
7941 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
7943 * support/Util/dbuf.h: remove C++ stuff to make it portable
7945 2003-03-28 Borut Razem <borut.razem AT siol.net>
7947 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
7948 literal strings in stringLiteral()
7949 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
7950 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
7953 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
7955 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
7957 2003-03-26 <johan AT balder>
7959 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
7960 * src/ds390/gen.c (saveRegisters): catched symbol abuse
7961 * src/SDCCast.c (decorateType): fixed " -v < 3"
7963 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7965 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
7966 Added Lenny Story's debug infrastructure changes:
7967 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
7968 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
7969 * src/cdbFile.c: added
7970 * src/SDCCdebug.c: added
7971 * src/SDCCdebug.h: added
7972 * src/SDCCast.c (createFunction)
7973 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
7974 * src/SDCCmain.c (parseCmdLine, main)
7975 * src/SDCCmem.c (redoStackOffsets)
7976 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
7979 * src/avr/gen.c (genAVRCode)
7980 * src/ds390/gen.c (gen390Code)
7981 * src/mcs51/gen.c (gen51Code)
7982 * src/pic/gen.c (genpic14Code)
7983 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
7984 * src/xa51/gen.c (genXA51Code)
7985 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
7987 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7989 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
7990 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
7992 2003-03-22 <johan AT balder>
7994 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
7996 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
7998 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
7999 * doc/cdbfileformat.lyx: added, written by Lenny Story
8000 * doc/Makefile: added cdbfileformat.lyx
8001 * doc/clean.mk: added cdbfileformat.lyx
8003 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
8005 * src/mcs51/peeph.def: fix bug #705773
8007 2003-03-20 <johan AT balder>
8009 An sfr/sbit can have an "at #" AND an initializer
8010 * src/SDCCsymt.c (checkSClass):
8011 * src/SDCCmem.c (allocGlobal):
8012 * src/SDCCmem.c (allocLocal):
8013 * src/SDCCast.c (createBlock):
8015 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
8017 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
8019 2003-03-16 <johan AT balder>
8021 Undid the hackup of const and volatile, the problem is much bigger
8023 * src/SDCCast.c:1.171
8024 * src/SDCCglue.c:1.138
8025 * src/SDCCicode.c:1.146
8026 * src/SDCCsymt.c:1.150
8027 * src/SDCCval.c:1.65
8029 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
8031 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
8032 * src/ds390/gen.c (genAddrOf): fixed bug #704087
8034 2003-03-13 <johan AT balder>
8036 Hackup const and volatile modifiers in type chains a bit:
8038 * src/SDCCast.c:1.169
8039 * src/SDCCglue.c:1.136
8040 * src/SDCCicode.c:1.143
8041 * src/SDCCsymt.c1.146
8042 * src/SDCCsymt.h1.59
8043 * src/SDCCval.c:1.63
8045 2003-03-12 <johan AT balder>
8047 * src/SDCCBBlock.h: more LRH debugging junk
8048 * src/SDCCcflow.h: more LRH debugging junk
8049 * src/SDCCloop.c: more LRH debugging junk
8050 * src/SDCC.y (struct_declaration): fixed bug #697590
8051 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
8052 * src/ds390/gen.c (aopForRemat): fixed bug #700031
8053 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
8055 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8056 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
8057 test function names must now match exactly).
8058 * src/SDCCcse.c: added special case in findCheaperOp to allow
8059 extending a short integer. Makes less awful code for bug 700121 test case.
8061 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8063 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
8064 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
8066 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8068 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
8069 actually called (operandsNotEqual() was called for all
8070 operandsNotEqualX tests).
8072 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
8074 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
8075 with shorter literals. Fixes bug 700121.
8077 2003-03-11 <johan AT balder>
8079 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
8081 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
8083 * src/SDCCloop.c (mergeRegions): an evil beast is dead
8084 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
8086 2003-03-10 Borut Razem <borut.razem AT siol.net>
8088 * src/SDCCmain.c: pipe preprocessor's output
8089 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8090 * sdcc_vc_in.h: define pclose as _pclose for WIN32
8091 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8092 which closes all pipes in pipeSet set
8093 * src/SDCCset.c: free deleted item in function deleteSetItem()
8094 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8095 moved from z80 to src subproject
8096 * .version: increased version number to 2.3.4
8098 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
8100 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
8101 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
8102 * support/regression/ports/xa51/spec.mk: fix typo
8104 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
8106 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
8108 2003-03-09 Borut Razem <borut.razem AT siol.net>
8110 * src/SDCCmain.c: pipe preprocessor's output
8111 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
8112 * sdcc_vc_in.h: define pclose as _pclose for WIN32
8113 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
8114 which closes all pipes in pipeSet set
8115 * src/SDCCset.c: free deleted item in function deleteSetItem()
8116 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
8117 moved from z80 to src subproject
8119 2003-03-09 Borut Razem <borut.razem AT siol.net>
8121 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
8122 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
8123 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
8124 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
8125 * src/SDCCglobl.h: unification of WIN32 native definitions
8127 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8129 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
8131 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
8133 * src/configure.in: check for endianess (even while cross-compiling)
8134 * src/configure: check for endianess (even while cross-compiling)
8135 * src/configure_in.h: check for endianess (even while cross-compiling)
8136 * src/avr/gen.c: remove old endianess stuff
8137 * src/mcs51/gen.c: remove old endianess stuff
8138 * src/ds390/gen.c: remove old endianess stuff
8139 * src/pic/gen.c: remove old endianess stuff
8140 * src/pic/genarith.c: remove old endianess stuff
8141 * src/pic/glue.c: fix endianess check
8142 * src/pic16/gen.c: remove old endianess stuff
8143 * src/pic16/genarith.c: remove old endianess stuff
8144 * src/pic16/glue.c: fix endianess check
8145 * src/xa51/gen.c: remove old endianess stuff
8146 * src/z80/gen.c: fix endianess check
8147 * src/SDCCglue.c: fix endianess check
8148 * src/ds390/peeph.def: fix bug 700036
8150 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
8152 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
8153 * src/configure: find appropriate data-types on host for SDCC's int and long
8154 * src/configure.in: find appropriate data-types on host for SDCC's int and long
8155 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
8156 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
8158 2003-03-07 <johan AT balder>
8161 some minor cleanups before the big shot
8162 OP_DEFS and OP_USES now use Kevin's protection
8163 new option --nolabelopt
8174 * src/ds390/ralloc.c:
8175 * src/mcs51/ralloc.c:
8177 * src/xa51/ralloc.c:
8180 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
8182 * src/pic/pcode.c (get_op): fix 64 bit warnings
8183 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
8184 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
8185 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
8186 * support/regression/tests/malloc.c: fix 64 bit warnings
8188 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
8190 * src/mcs51/gen.c (genMinus): fixed bug 696436
8192 2003-03-02 Borut Razem <borut.razem AT siol.net>
8194 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
8196 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
8198 * configure.in: test for mkstemp
8199 * sdccconf_in.h: add HAVE_MKSTEMP
8201 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
8203 * device/include/ctype.h: removed warning while using --stack-auto
8204 * device/include/malloc.h: removed warning while using --stack-auto
8205 * device/include/string.h: removed warning while using --stack-auto
8207 2003-02-23 Borut Razem <borut.razem AT siol.net>
8209 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
8210 because NDEBUG is defined (see man assert)
8211 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
8213 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8215 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
8216 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
8218 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8220 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
8221 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
8223 2003-02-18 <johan AT balder>
8225 * as/mcs51/asmain.c (asmbl): module can start with a digit
8226 * as/z80/asmain.c (asmbl): module can start with a digit
8228 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
8230 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
8231 * src/asm.c: fix pipe() for Mingw32
8233 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
8235 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
8236 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
8237 make -V work again; --c1mode reads now from stdin
8238 * doc/sdccman.lyx: added --c1mode
8239 * support/Util/SDCCerr.c: new messages for c1 mode
8240 * support/Util/SDCCerr.h: new messages for c1 mode
8241 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
8243 2003-02-15 <johan AT balder>
8245 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
8247 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
8249 * doc/sdccman.lyx: Environment variables, -o and other minor things
8251 2003-02-14 <johan AT balder>
8253 * src/xa51/main.c: before anyone really tries to use it :)
8255 * Install doc's in share/sdcc/doc
8256 * removed some obsolete files
8257 * Do a proper make distclean and uninstall
8258 M Makefile.common.in
8261 M device/include/Makefile.in
8262 M device/lib/Makefile.in
8265 M sim/ucsim/doc/Makefile.in
8268 R src/xa51/peeph.rul
8269 M support/cpp2/Makefile.in
8270 M support/makebin/Makefile
8273 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
8275 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
8277 2003-02-10 Borut Razem <borut.razem AT siol.net>
8279 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
8280 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
8281 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
8282 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
8283 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
8284 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
8285 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
8286 src/z80/Makefile.bcc: Borland Makefile cleanup
8287 * as/z80/Makefile.bcc: Added Borland Makefile
8288 * support/cpp2/borland.h: Removed
8290 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
8292 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
8293 * src/SDCC.lex: new pragma NOIV
8294 * src/SDCCglobl.h: new pragma NOIV
8295 * src/SDCCmem.c: new pragma NOIV
8297 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
8299 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
8301 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
8303 * src/SDCCmain.c: signal handling is switched off by --debug
8304 * doc/Makefile: small fix for install; use clean.mk again
8305 * doc/clean.mk: clean *.pdf and *.html too
8307 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
8309 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
8310 * device/lib/printfl.c: fix a ds390 bug by making it portable
8311 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
8312 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
8313 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
8314 * debugger/mcs51/cmd.c: converted multi-line string literals
8315 * sim/ucsim/globals.cc: converted multi-line string literals
8316 * src/SDCCmain.c: introduced signal handler to remove temp files
8317 * doc/Makefile: small tweaks, implement clean
8318 * doc: removed generated files
8320 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8322 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
8323 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
8324 Address Record is not correctly generated for DS390."
8326 2003-02-02 Borut Razem <borut.razem AT siol.net>
8328 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
8329 * as/mcs51/asm.h: fixed compilation with Borland C
8330 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
8331 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
8332 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
8333 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
8334 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
8335 src/z80/Makefile.bcc: delete $(LIB) only if exist
8336 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
8338 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
8340 * device/include/malloc.h: introduced NULL
8341 * device/include/string.h: introduced NULL
8342 * device/include/stdlib.h: introduced NULL
8343 * device/lib/_memcpy.c: removed NULL
8344 * device/lib/_strcat.c: removed NULL
8345 * device/lib/_strchr.c: removed NULL
8346 * device/lib/_strcmp.c: removed NULL
8347 * device/lib/_strcpy.c: removed NULL
8348 * device/lib/_strcspn.c: removed NULL
8349 * device/lib/_strlen.c: removed NULL
8350 * device/lib/_strncat.c: removed NULL
8351 * device/lib/_strncmp.c: removed NULL
8352 * device/lib/_strncpy.c: removed NULL
8353 * device/lib/_strpbrk.c: removed NULL
8354 * device/lib/_strrchr.c: removed NULL
8355 * device/lib/_strspn.c: removed NULL
8356 * device/lib/_strstr.c: removed NULL
8357 * device/lib/_strtok.c: removed NULL
8358 * device/lib/malloc.c: removed NULL, include own header
8360 2003-02-02 <johan AT balder>
8362 * 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
8363 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
8364 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
8365 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
8366 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
8367 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
8369 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8371 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
8374 2003-02-01 <johan AT balder>
8376 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
8378 2003-01-31 <johan AT CP255758-A>
8380 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
8382 2003-01-30 <johan AT balder>
8384 * src/SDCCBBlock.c: automatic bug detection
8385 * src/SDCCicode.c: automatic bug detection
8387 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8389 * src/SDCCglobl.h: now --xram-size 0 works
8390 * src/SDCCmain.c: now --xram-size 0 works
8392 2003-01-29 <johan AT balder>
8394 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
8396 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8398 * as/mcs51/aslink.h: Added options --xram-size and --code-size
8399 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
8400 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
8401 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
8402 * src/SDCCglobl.h: Added options --xram-size and --code-size
8403 * src/SDCCmain.c: Added options --xram-size and --code-size
8405 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
8407 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
8408 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
8410 2003-01-27 <johan AT balder>
8412 * src/SDCC.y: fixed bug #613764
8414 2003-01-26 <johan AT balder>
8416 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
8417 * src/SDCCsymt.h: fixed bug #673374
8418 * src/SDCCglue.c: fixed bug #661910
8419 * src/SDCCast.c: fixed bug #458099 and 673374
8421 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
8423 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
8424 * as/mcs51/strcmpi.h: added
8425 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
8426 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
8427 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
8428 * as/mcs51/assym.c: strcmpi -> as_strcmpi
8429 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
8430 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
8431 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
8432 * as/mcs51/Makefile.aslink: new module strcmpi
8433 * as/mcs51/Makefile.asx8051: new module strcmpi
8434 * as/mcs51/Makefil.bcc: new module strcmpi
8435 * as/mcs51/Makefile.in: new module strcmpi
8436 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
8438 2003-01-26 <johan AT balder>
8440 * src/SDCCglue.c: reverted back to 1.124
8441 * src/SDCCast.c: reverted back to 1.156
8442 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
8444 2003-01-25 <johan AT balder>
8446 * src/SDCCglue.c: A better fix for bug #661910
8447 * src/SDCCast.c: A better fix for bug #661910
8448 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
8450 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
8452 * src/Makefile.in: remove spawn.o
8453 * src/SDCCmain.c: remove spawn.h
8454 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
8455 * src/spawn.c: removed
8456 * src/spawn.h: removed
8457 * support/regression/ports/ds390/spec.mk: link with -r
8459 2003-01-24 <johan AT CP255758-A>
8461 * src/ds390/gen.c (aopOp): fixed bug #667458
8462 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
8463 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
8464 (createIvalCharPtr): an ival doesn't always have a storage class anymore
8466 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
8468 * src/mcs51/peeph.def: better assembler identation by Frieder
8469 * src/mcs51/gen.c: better assembler identation by Frieder
8471 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
8473 * as/z80/string.h: removed for gcc 3.2
8474 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
8475 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
8477 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
8479 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
8480 * src/SDCCpeeph.c (replaceRule): fix bug #663503
8481 * support/regression/Makefile: separate temp files for ports
8482 * support/regression/generate-cases.py: separate temp files for ports
8483 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8484 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8486 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
8488 * moved tinitalk to device/examples/ds390
8490 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
8492 * as/mcs51/lkmem.c: rflag is for DS390
8493 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
8494 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
8495 (linkEdit): move mem- and map-files the same way as ihx-files
8496 * src/z80/main.c (_setDefaultOptions): removed --generic
8497 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
8498 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
8499 * src/pic/glue.c (picglue): --c1mode works again
8500 * src/pic16/glue.c (pic16glue): --c1mode works again
8501 * src/asm.c (printCLine): fix #660034
8503 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
8505 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
8506 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
8507 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
8508 * as/mcs51/lkmem (summary): better fix for sp problem
8509 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
8510 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
8511 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
8512 remove --stack-after-data
8514 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8516 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
8517 * src/SDCCutil.c (join): ugly bug: missing '\0'
8518 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
8520 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
8522 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
8524 * src/pic/main.c (_asmCmd): gpasm supports -o
8525 * src/z80/main.c: more general macros
8526 * device/lib/Makefile.in: remove intermediate files
8528 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
8530 * .version: Bumped version number to 2.3.3
8531 * src/SDCCBBlock.c: new option -o
8532 * src/SDCCglobl.h: new option -o
8533 * src/SDCCglue.c: new option -o
8534 * src/SDCCmain.c: new option -o
8535 * src/asm.c: new option -o
8536 * src/ds390/main.c: new option -o
8537 * src/pic/glue.c: new option -o
8538 * src/pic/pcode.c: new option -o
8539 * src/pic/ralloc.c: new option -o
8540 * src/pic16/glue.c: new option -o
8541 * src/pic16/pcode.c: new option -o
8542 * src/pic16/ralloc.c: new option -o
8543 * src/z80/main.c: new option -o
8544 * device/lib/Makefile.in: use -o
8545 * support/regression/ports/ds390/spec.mk: use -o
8546 * support/regression/ports/gbz80/spec.mk: use -o
8547 * support/regression/ports/mcs51/spec.mk: use -o
8548 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
8549 * support/regression/ports/z80/spec.mk: use -o
8550 * support/regression/ports/ucz80/spec.mk: use -o
8551 * support/regression/ports/xa51/spec.mk: use -o
8552 * support/regression/fwk/lib/timeout.c: fix usage string
8554 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
8555 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
8557 2003-01-07 <johan AT balder>
8559 * src/SDCCast.c (decorateType): fixed bug #600035
8561 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
8562 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
8563 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
8564 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
8565 * src/pic/pcode.c: outcommented unused variable to remove warnings
8566 * src/pic/ralloc.c: outcommented unused variable to remove warnings
8568 2003-01-06 <karl AT turbobit.com>
8569 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
8572 2003-01-06 <johan AT balder>
8574 * src/SDCCicode.c: fixed array add
8576 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
8577 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
8578 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
8580 2003-01-04 <johan AT balder>
8582 * src/SDCCval.c (getNelements): fixed the initialized array of structures
8584 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8585 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
8587 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
8588 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
8589 * support/regression/tests/bug-524697.c: fit mem usage into 8032
8591 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
8592 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
8594 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
8595 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
8597 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
8598 * src/mcs51/main.c: removed {bindir}{sep} from aslink
8600 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8602 * in \sdcc\as\mcs51\ changed these files in order to create an
8603 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
8604 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
8605 following files to include the previous two files: aslink.dsp,
8606 Makefile.aslink, Makefile.bcc, and Makefile.in.
8608 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
8609 .adb instead of .cdb
8611 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8613 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
8614 value from option --iram-size.
8616 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8618 * \sdcc\as\mcs51\lklist.c: added boundary check before using
8621 2002-09-18 <wiml AT hhhh.org>
8623 * SDCClrange.h: exposed setFromRange() and setToRange()
8624 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
8625 packRegsForAccUse() (bug 542397)
8626 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
8627 multiple times and emitting the fetch operations more than once
8628 added aopGetUsesAcc() function to allow binary operators to
8629 fetch their operands in the correct order; made genMinus() emit
8630 compact code for X = LITERAL - Y
8632 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8633 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
8634 sprintf() in line 1267.
8636 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8637 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
8640 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8641 Changes to aslink (All the changes are marked with 'JCF'):
8643 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
8646 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
8647 area BSEG. Also moves, if possible, the DATA area down into the internal
8648 ram so more space is available.
8650 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
8653 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
8654 not bytes. Function summary() which creates a memory usage summary
8655 file with extension .mem. Reports of overlaping stack and small stack
8656 size. If the space for the stack is less than 16 bytes aslink trows a
8659 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
8660 the 8051. Option 'y' for memory summary output file.
8662 Changes to sdcc (All the changes are marked with 'JCF'):
8664 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
8666 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
8667 overlaying area for it (uses RegBankUsed[4]).
8669 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
8670 bank zero as used by default. By default aslink locates the stack
8671 (equivalent to --stack-after-data). Pass option 'y' to aslink for
8672 the creation of the .mem file. Delegates the allocation of data area
8673 to aslink (it is not longer 0x30 by default). If --stack-loc passes
8674 the begining of the stack area to aslink.
8676 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
8677 glue() in SDCCglue.c creates an area for it.
8679 2002-09-03 Borut Razem <borut.razem AT siol.net>
8680 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
8681 sdcc/src/pic/glue.c:
8682 introduced atexit() handler for teporay files removal in case of
8683 errors, assertions, ...
8685 2002-08-29 Borut Razem <borut.razem AT siol.net>
8686 * sdcc/support/cpp2/auto-host_vc_in.h:
8687 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
8688 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
8689 Maybe there is a similar problem with BORLANDC? It should be checked!
8691 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
8692 corrected improper use of assert: the assignment to clr variable was done inside the assert.
8693 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
8694 was not executed, and the compiler (cl) launched a warning:
8695 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
8697 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
8698 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
8700 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
8701 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
8703 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8704 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
8705 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
8706 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8707 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
8708 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
8709 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
8710 - added Release configuration in VS projects
8711 - review of compiler an linker options
8712 - VC .exe files are generated in bin_vc directory, not to interfere
8713 with binaries generated from other projects (cygwin, mingw, bcc ...)
8715 * sdcc/src/yacc.dsp: added
8717 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
8718 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
8719 and insert the version number definitions from .version
8721 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
8723 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
8724 added - genarate auto-host.h using auto-host_vc_in.h as template
8727 removed from CVS, generated automatically
8729 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
8730 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
8732 2002-08-11 Borut Razem <borut.razem AT siol.net>
8733 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
8735 2002-08-10 Borut Razem <borut.razem AT siol.net>
8736 * src/SDCCmain.c (main):
8737 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
8738 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
8739 The consequence was that some temporary files were not removed.
8742 unification of code in functions tempfilename() and tempfile():
8743 function tempnam() is defined in Visual Studio 6.0 and .NET
8745 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
8747 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8748 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
8749 - removed compiler command line option /WX: Treats all warnings as errors
8750 - update a list of source files, included into the project
8752 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8753 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
8754 changed project type to Generic Project so that can be correcly converted to VS.NET project
8756 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
8758 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
8760 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
8762 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
8763 added return 0 statements after assert() to make compiler happy
8765 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
8766 added newline in the def file to keep MSC compiler satisfied
8768 * sdcc/src/z80/gen.c:
8769 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
8770 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
8771 - solved MSC error in function aopDump()
8773 * sdcc_vc.h: define PREFIX as "\\sdcc"
8775 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
8776 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
8778 2002-06-22 Scott Dattalo <scott AT dattalo.com>
8779 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
8780 - Rewrote the register banking algorithm.
8781 - Added pCode live-range analysis to registers (for now, only non-used and
8782 singly-used registers optimized away)
8784 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
8786 * 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.
8788 2002-05-10 Scott Dattalo <scott AT dattalo.com>
8789 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
8791 2002-04-22 Michael Hope <michaelh AT vroom>
8793 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
8795 * configure.in (DD_COPT): Added include support required for gbdk.
8797 * .version: Bumped version number just to increase it.
8799 * src/SDCCmain.c: Added -nostdinc to the default options.
8801 2002-04-15 Michael Hope <michaelh AT vroom>
8803 * device/lib/z80/printf.c (sprintf): Added.
8805 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
8807 * src/z80/peeph.def: Added transpose redundent load rule.
8809 * src/z80/main.c: Added force callee saves for jaune.
8811 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
8813 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
8815 2002-03-28 Johan Knol <johan AT balder>
8817 * src/SDCCval.c: fixed bug #532436
8819 2002-03-14 Scott Dattalo <scott AT dattalo.com>
8821 Added "char *Processor" field to the port structure.
8824 Added -p option. Allows port dependent processor to be specified.
8827 Initialized the new field char *Processor field to NULL in all ports
8830 Compiler generated registers for interrupt context saving
8831 were not getting allocated.
8833 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
8836 Fixed left shift. Will promote the left side of a left shift
8837 if a) left shifting more than size of operand or b) when assigned
8838 to something size > size of left side
8840 2002-03-14 Scott Dattalo <scott AT dattalo.com>
8842 tons of changes. Register allocation has been
8843 rewritten. Added customization for the various PICs. Flow
8844 analysis is restructured. ...
8850 Added. device.c is a PIC port hack to accomodate variations
8853 2002-03-13 Michael Hope <michaelh AT vroom>
8855 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
8857 2002-03-04 johanknol <johanknol AT manik>
8859 * /src/SDCCval.c: fixed
8861 const unsigned char arr[][2] = { { 0, 1 } };
8862 t18.c:1: error: Initializer element is not constant
8864 2002-03-04 bela <bela AT manik>
8866 * /device/include/mcs51reg.h:
8867 ds89c420 register definition update
8869 2002-03-03 <johan AT FRIJA>
8871 * support/Util/SDCCerr.c: did something, but don't no why anymore
8873 * support/regression/tests/bug-524691.c: made it a little less shy
8875 * src/SDCCast.c (decorateType): fixed bug #524697
8877 * src/SDCCast.c: made some lineno improvements
8879 * src/SDCCval.c (getNelements): changed warning to error
8881 * src/SDCCglue.c (printIvalArray): changed warning to error
8883 * src/SDCCicode.c: fixed a warning for mingw
8885 * src/SDCCast.c (decorateType): fixed the << promotion for ops
8887 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
8889 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
8891 * src/ds390/peeph.def:
8892 Added some more peephole rules
8894 * src/ds390/gen.c: Various fixes & enhancements
8896 * src/SDCClrange.c, src/SDCClrange.h:
8897 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
8899 * src/ds390/ralloc.c:
8900 various fixes & enhancements (ds390) specific
8902 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
8903 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
8906 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
8908 2002-03-02 <johan AT FRIJA>
8910 * src/SDCCast.c (decorateType): fixed bug #524708
8912 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
8914 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
8916 2002-03-01 Michael Hope <michaelh AT vroom>
8918 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
8920 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
8922 2002-03-01 <johan AT FRIJA>
8924 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
8926 * src/SDCCast.c (decorateType): fixed bug #524209
8928 * src/SDCCval.c (valNot): fixed bug #524195
8930 2002-02-26 <johan AT balder>
8932 * src/xa51/gen.c: fixed a warning
8934 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
8936 * src/SDCCast.c (decorateType): fixed bug #522534
8938 2002-02-23 <johan AT balder>
8940 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
8942 2002-02-22 <johan AT balder>
8944 * src/SDCCast.c: fixed bug #514865
8946 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
8948 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
8950 * sdcc/src/SDCCloop.c:
8951 Previous fix was not good. basic blocks that have "break" or "return" are
8952 not really partof a loop , but live ranges used in these blocks should
8953 be live thru the entire loop, so set partOfLoop but don't add them to
8956 2002-02-21 <johan AT FRIJA>
8958 * src/SDCCcse.c: fixed bug #514308
8960 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
8963 Fixed BUG #519583. If a conditional block ended in a return/break
8964 statement inside a loop, it was not being considered part of the loop.
8966 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
8968 2002-02-10 Karl Bongers <karl AT turbobit.com>
8971 Fixed up SDCDB debugger somewhat. Updated debugger/README
8972 with lots of comments and notes.
8974 * device/examples/test2.c:
8975 Fix bug, "red" variable not being initialized(compiler complained).
8977 * device/examples/Makefile, examples/test3.c:
8978 Add Makefile in device/examples folder, compiles test3.c
8979 for use as a multiple module SDCDB test case.
8981 * sim/ucsim/cmd.src/cmdset.cc:
8982 Took out debug printfs in ucsim "next" command.
8985 Karl and Johan start ucsim XA support. Most dissassembly working,
8986 about 75% emulation done(plenty of work remaining).
8988 * sim/ucsim/z80.src:
8989 Add Z80 support to ucsim, add test-ucz80 regression test,
8990 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
8991 Notice z80 compiler fails on examples/test3.c/crc code.
8993 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
8995 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
8996 Added support for --parms-in-bank1
8998 * src/ds390/peeph.def:
8999 added a few more peephole optimzations
9002 1) added __builtin_inp & __builtin_outp used to read in data of given length
9003 from a memory mapped port
9004 2) added __builtin_memcmp
9005 3) added __builtin_swapw swap bytes of a short
9007 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
9008 1) handle multiple send & receives from register bank1
9009 2) ralloc can now allocate DPTR1 to some liveRanges
9011 * src/SDCCsymt.c, src/SDCCsymt.h:
9012 changes to handle multiple sends & receives
9015 added some pointer arithmetic optimization
9018 added some pointer arithmetic optimizations but not stable yet so not
9019 called from anywhere (will get this working shortly)
9021 * src/SDCCopt.c: fixed for multiple sends & receives
9024 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
9025 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
9026 set preprocessor defines (depending on options)
9028 * src/SDCCicode.c, src/SDCCicode.h:
9029 changes made to handle multiple sends & receives
9032 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
9034 * src/SDCCcse.c, src/SDCCcse.h:
9035 added function findbackward def (to be used in upcoming optimization)
9037 * src/SDCCcflow.c, src/SDCCcflow.h:
9038 added function returnAtEnd - to determine if a basic block terminates with
9041 * src/SDCCast.c, src/SDCCast.h:
9042 added option parms-in-bank1
9044 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
9045 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
9046 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
9047 adjusted for --parms-in-bank1 option
9049 * device/include/string.h:
9050 donot redefine "reentrant" keyword
9052 * device/include/ds80c390.h: Added some more SFRs
9054 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
9056 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
9058 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
9060 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
9062 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
9064 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
9066 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
9068 * Added --xram-movc option
9070 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
9072 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
9074 2002-01-11 Johan Knol
9076 * Added math lib of Jesus Calvino-Fraga
9078 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
9080 * src/SDCCmain.c (processFile): fix processing of ../../src.c
9081 * support/regression/Makefile: new target test-mcs51-stack-auto
9082 * support/regression/ports/mcs51-stack-auto/spec.mk: added
9084 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
9086 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
9088 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
9090 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
9092 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
9094 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
9096 * src/SDCCglue.h: add definition for printIvalChar()
9098 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
9100 * src/SDCCast.c: fix #498138 by Johan
9102 * src/SDCCglue.c: fix #498138 by Johan
9104 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
9106 * support/regression/Makefile: fix clean
9108 * support/regression/ports/ds390/support.c: fix transmission of last character
9110 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
9112 * /sdcc/src/ds390/gen.c:
9113 a) improved computing address of stack variable
9114 b) took out some #if 0 code
9115 c) improved parmBytes adjustment
9116 d) improved genPlusIncr & genMinusIncr
9117 e) genCmp could generate bad code (when left assigned to DPTR)
9118 f) Fixed bug in hasInc
9120 * /sdcc/src/ds390/ralloc.c:
9121 a) packRegsForSupport could mess up live information (Fixed)
9122 b) packRegsDPTRuse could be incorrect for left & right shift
9124 * /sdcc/src/mcs51/ralloc.c:
9125 packRegsForSupport could mess up the live information (Fixed)
9127 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
9129 * /sdcc/src/SDCCast.c:
9130 can reverse a loop even if function call is present as long
9131 as the loop control variable is local & is not passed as parameter
9133 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
9135 * /sdcc/ChangeLog: *** empty log message ***
9137 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
9138 More builtin function additions for TININative
9140 * /sdcc/src/ds390/ralloc.c:
9141 Had broken the regression testsuite
9143 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
9145 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
9146 Added funcattr hasStackParms will be set for reentrant functions when there
9147 are paramteres on the stack, this helps in minimizing frame pointer generation
9148 typeFromStr can handle function pointers now
9150 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
9151 *** empty log message ***
9153 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
9155 * /src/ds390/gen.c, /src/ds390/main.c:
9156 More builtin function additions for TININative
9158 * /src/ds390/ralloc.c:
9159 Had broken the regression testsuite
9161 * /src/SDCCast.c: Fixed a bug in dumptree
9163 * /src/SDCCsymt.c, /src/SDCCsymt.h:
9164 Added funcattr hasStackParms will be set for reentrant functions when there
9165 are paramteres on the stack, this helps in minimizing frame pointer generation
9166 typeFromStr can handle function pointers now
9168 * /doc/builtins.txt, /doc/TININative.txt:
9169 *** empty log message ***
9172 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
9174 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
9175 ALPHA version for -mTININative
9177 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
9178 updated to reflect changes in the port structure
9181 added function do_assemble (similar to do_link) if non-null this function
9182 will be called to do assembly (-mTININative) requires a multi command
9184 added function genAssemblerEnd will be called to generate assembler Epilogue
9187 added _JavaNative to debug info printing
9189 * /src/SDCCmain.c: added option --tini-libid
9190 added port->do_assemble function (-mTININative) has a multi command assemble
9192 * /src/SDCCglue.c: Disabled "constExpr" check
9193 added port->genAssemblerEnd function
9195 * /src/SDCCglobl.h: Added option --tini-libid value
9198 tookout optimizeCompare from the header (has no external references)
9200 * /src/SDCCast.c: made one more function "static"
9202 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
9204 * src/z80/mappings.i: Added z80asm support.
9206 * src/z80/main.c: Added z80asm support on --asm=z80asm
9208 * src/z80/gen.c: Fixed asm portability issues.
9210 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
9212 * src/SDCCglue.c (printExterns): Added global/extern split.
9214 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
9216 * support/regression/Makefile: added test for mcs51 model large
9218 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
9220 * support/regression/ports/gbz80/spec.mk: added -mgbz80
9222 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
9224 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
9226 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
9228 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
9230 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
9232 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
9234 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
9236 * support/regression/tests/simplefloat.c: Port to mcs51.
9238 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
9239 * support/regression/tests/bug-485362.c: Added.
9241 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
9243 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
9245 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
9247 * src/z80/gen.c (aopDump): Added a dump function.
9249 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
9250 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
9252 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
9254 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
9256 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
9258 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
9260 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
9262 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
9264 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
9266 * support/regression/ports/ds390/support.c: Use tinibios.
9268 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
9270 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
9272 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
9273 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
9275 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
9277 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
9279 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
9281 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
9283 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
9284 (packRegsForIYUse): Created and optimised.
9286 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
9288 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
9289 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
9291 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
9293 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
9295 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
9297 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
9299 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
9301 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
9303 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
9305 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
9307 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
9309 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
9311 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
9313 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
9314 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
9315 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
9317 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
9319 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
9320 (genNotFloat): Added.
9321 (genUminusFloat): Added.
9323 * device/lib/z80/Makefile: Added floating pt stubs.
9325 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
9327 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
9329 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
9331 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
9333 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
9335 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
9337 * sdcc/support/regression/Makefile: Add port ds390.
9339 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
9341 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
9343 * sdcc/support/regression/ports/ds390/spec.mk: Added.
9345 * sdcc/support/regression/ports/ds390/support.c: Added.
9347 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
9349 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
9351 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
9353 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
9355 * device/include/malloc.h: Added z80 and gbz80 support.
9357 * device/lib/gbz80/heap.s: Added.
9359 * device/lib/z80/heap.s: Added.
9361 * device/lib/malloc.c: Added z80 and gbz80 support.
9363 * support/regression/tests/malloc.c (testMalloc): Added.
9365 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
9367 * support/regression/tests/bug-478094.c: Added.
9369 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
9371 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
9373 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
9375 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
9377 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
9379 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
9381 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
9383 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
9385 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
9387 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
9389 * support/regression/tests/bug-477927.c: Added.
9391 * src/z80/peeph.def: Added minor rules.
9393 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
9395 * src/z80/peeph.def: Added jump optimisation modification.
9397 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
9399 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
9401 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
9403 * support/regression/tests/funptrs.c: Added.
9405 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
9407 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
9409 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
9411 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
9413 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
9415 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
9416 (movLeft2ResultLong): Created.
9418 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
9419 (joinPushes): Added. Joins two char pushes into a word push.
9421 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
9423 * support/cpp2/Makefile.in (install): Added creation of dest dir.
9425 * support/makebin/Makefile (install): Added creation of dest dir.
9427 2001-10-24 Karl Bongers <karl AT turbobit.com>
9429 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
9431 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
9433 * src/z80/ralloc.c: Turned off faulty pack for one use.
9435 * src/z80/peeph-gbz80.def: Removed redundent restart options.
9437 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
9439 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
9441 * support/regression/Makefile: Improved clean
9443 * support/regression/ports/gbz80/spec.mk: Added clean
9445 * support/regression/ports/host/spec.mk: Added clean
9447 * support/regression/ports/z80/spec.mk: Added clean
9449 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
9451 * support/regression/ports/mcs51/timeout.c: little improvements
9453 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
9455 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
9457 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
9459 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
9461 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
9463 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
9465 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
9467 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
9468 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
9470 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
9472 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
9474 * src/mcs51/main.c (_linkCmd): Added bin path to command.
9476 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
9478 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
9480 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
9482 * support/regression/tests/longor.c: Added.
9484 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
9486 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
9488 * as/mcs51/aslink.h: define PATH_MAX
9490 * as/mcs51/asm.h: define PATH_MAX
9492 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
9494 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
9496 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
9498 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
9500 * src/SDCCglobl.h: define PATH_MAX
9502 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
9504 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
9506 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
9508 * src/z80/gen.c (gencjneshort): Fixed
9510 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
9512 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
9514 * support/regression/tests/bug-469671.c: Added.
9516 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
9518 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
9520 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
9522 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
9524 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
9526 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
9528 * src/device/lib/_mulint.c : removed hint: nooverlay bug
9530 * src/device/lib/_mullong.c : removed hint: nooverlay bug
9532 * src/device/lib/_divuint.c : removed hint: nooverlay bug
9534 * src/device/lib/_divulong.c: removed hint: nooverlay bug
9536 * src/device/lib/_moduint.c : removed hint: nooverlay bug
9538 * src/device/lib/_modulong.c: removed hint: nooverlay bug
9540 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
9542 * 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.
9544 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
9546 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
9548 2001-10-07 <johan AT FRIJA>
9550 * device/lib/gets.c (gets): fixed the return value.
9552 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
9553 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
9555 * 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.
9557 * 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.
9559 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
9561 * src/pic/gen.c: Removed Safe_strdup.
9563 * configure.in: Added option to enable libgc support.
9565 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
9566 (bitVectUnion): Optimised.
9567 (bitVectIntersect): Optimised.
9568 (bitVectBitsInCommon): Optimised.
9569 (bitVectCplAnd): Optimised.
9571 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
9573 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9575 * src/SDCCmain.c: distinguish between assembler debug and plain options
9577 * src/avr/main.c: remove standard assembler options
9579 * src/ds390/main.c: remove standard assembler options
9581 * src/mcs51/main.c: remove standard assembler options
9583 * src/port.h: removed "PENDING" comment
9585 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9587 * src/device/lib/_mulint.c : new, with assember functions
9589 * src/device/lib/_mullong.c : new, with assember functions
9591 * src/device/lib/_divuint.c : with assember functions
9593 * src/device/lib/_divsint.c : with assember functions
9595 * src/device/lib/_divulong.c: with assember functions
9597 * src/device/lib/_divslong.c: with assember functions
9599 * src/device/lib/_moduint.c : with assember functions
9601 * src/device/lib/_modsint.c : with assember functions
9603 * src/device/lib/_modulong.c: with assember functions
9605 * src/device/lib/_modslong.c: with assember functions
9607 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
9609 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
9611 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
9612 replaced _mululong.c and _mulslong.c by _mullong.c
9614 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9616 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
9618 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9620 * src/SDCCglue.c: test, if win32api is available for MINGW
9622 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9624 * src/SDCCsymt.c: no more _modifier in printTypeChain()
9625 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
9626 * support/regression/ports/gbz80/spec.mk: removed GENERIC
9627 * support/regression/ports/host/spec.mk: removed GENERIC
9628 * support/regression/ports/mcs51/spec.mk: removed GENERIC
9629 * support/regression/ports/z80/spec.mk: removed GENERIC
9631 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
9633 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
9635 * support/regression/tests/bug-467035.c: Created.
9637 2001-10-01 <johan AT FRIJA>
9639 * src/SDCC.y: fixed bug #466586 part 1
9641 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
9643 * SDCCicode.c: z80 has no generic pointers
9644 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
9646 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
9648 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
9650 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
9652 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
9654 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
9656 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
9658 * configure.in: Fixed up so that ucsim is only configured once.
9660 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
9662 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
9663 (getPathDifference): As above.
9665 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
9667 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
9669 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
9670 * .version: Updated to 2.3.1
9672 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
9673 Added copyright header.
9675 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
9676 (assemble): Added support for macro based assembler commands.
9677 (linkEdit): Added support for macro based linker commands.
9678 (preProcess): Changed the pre-processor to use macros.
9679 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
9680 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
9682 * device/lib/z80/crt0.s: Added module name for debugging.
9684 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
9686 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9688 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
9690 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
9692 * src/Makefile.in: Added SDCCmacro and SDCCutil
9694 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
9696 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9698 2001-09-16 <johan AT FRIJA>
9700 * 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.
9702 2001-09-15 <johan AT FRIJA>
9704 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
9705 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
9707 2001-09-11 <johan AT FRIJA>
9709 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
9711 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
9713 * support/regression/tests/bug-460444.c: Added test case.
9715 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
9716 (genCast): Added justification for all of the asserts.
9718 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
9720 * support/regression/support.c: _xdata replaced by xdata
9722 * support/regression/spec.mk: removed _generic
9724 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
9726 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
9728 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
9729 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
9731 * src/z80/peeph.def: Added a rule to optimise shift then compare.
9733 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
9735 * support/regression/tests/bug-460010.c: Added test case.
9737 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
9739 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
9741 * support/regression/Makefile: inter-port-clean adjusted for mcs51
9743 * support/regression/testfwk.c: removed workaround for bug #436344
9745 * support/regression/tests/bp.c: use less memory with mcs51
9747 * support/regression/tests/bug-441448.c: use less memory
9749 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
9751 * support/regression/collate-results.py: typo
9753 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
9755 * support/regression/tests/fetchoverlap.c: Added new test case.
9757 * support/regression/tests/bp.c: Added new test case.
9759 * support/regression/tests/bug-448984.c: Added new test case.
9761 * support/regression/tests/pow2shifts.c: Added new test case.
9763 * src/z80/gen.c: Turned off the noise it normally generates for the release.
9764 (genlshTwo): Fixed right shift for count > 8.
9766 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
9768 2001-09-08 <johan AT FRIJA>
9770 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
9772 2001-09-07 <johan AT FRIJA>
9774 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
9776 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
9778 2001-09-06 <johan AT FRIJA>
9780 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
9781 * bernhard noted me at this: "() equals to (void)" (1.38)
9783 2001-09-05 <johan AT FRIJA>
9785 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
9787 2001-09-04 <johan AT FRIJA>
9789 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
9792 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
9794 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
9796 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
9798 * link/z80/aslink.h: Fixed path for PATH_MAX
9800 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
9802 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
9804 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
9806 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
9808 * 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.
9810 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
9812 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
9813 (genCmp): Fixed up genCmp for the GB with longs.
9815 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
9817 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
9819 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
9821 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
9823 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
9825 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
9827 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
9829 * 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.
9831 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
9833 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
9835 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
9837 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
9839 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9841 * sim/ucsim/configure: little improvement of Cygwin-detection
9842 * sim/ucsim/configure.in: little improvement of Cygwin-detection
9843 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
9844 * support/regression/tests/bug-221100.c: small changes for mcs51
9845 * support/regression/tests/bug-221168.c: small changes for mcs51
9846 * support/regression/tests/bug-227710.c: small changes for mcs51
9847 * support/regression/tests/staticinit.c: small changes for mcs51
9848 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
9849 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
9850 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601