1 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3 * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4 * as/z80/Makefile.in: added strcmpi.c
5 * as/z80/z80adr.c: added upper case registers and lower case conditionals
6 * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
8 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
10 * device/lib/gbz80/asm_strings.s,
11 * device/lib/gbz80/crt0_rle.s,
12 * device/lib/gbz80/div.s,
13 * device/lib/gbz80/mul.s,
14 * device/lib/gbz80/shift.s,
15 * device/lib/z80/asm_strings.s,
16 * device/lib/z80/crt0_rle.s,
17 * device/lib/z80/div.s,
18 * device/lib/z80/mul.s,
19 * device/lib/z80/shift.s: changed to all lower case menmonics except the
20 flags which are all upper case
22 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
24 * as/z80/asm.h: made CASE_SENSITIVE 1
25 * link/z80/aslink.h: made CASE_SENSITIVE 1
26 * src/z80/gen.c (throughout): made all conditionals upper case
27 * support/regression/tests/bug1503067.c: new
29 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
31 * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
32 (shiftIntoPair): added case 2 for PAIR_IY,
33 (setupToPreserveCarry): replaced parameters with iCode and check if
34 PAIR_DE is in use to fix bug 1399290,
35 (genPlus, genMinus): updated call to setupToPreserveCarry
36 * support/regression/tests/bug1399290.c: new
38 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
40 * device/lib/Makefile.in (Z80SOURCES): enabled float support
41 * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
42 * src/ds390/gen.c (shiftRLong),
43 * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
44 * src/mcs51/gen.c (sameReg): changed to sameByte,
46 (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
47 shiftRLong): fixed bug 1533966
48 * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
49 genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
50 * support/regression/Makefile.in: disabled z80, enabled ucz80
51 * support/regression/tests/float_trans.c: enabled test for z80 and host
52 * support/regression/tests/shifts2.c: new, for testing bug 1533966
54 2006-08-01 Borut Razem <borut.razem AT siol.net>
56 * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
57 comparison is always false due to limited range of data type
58 on PPC64 machine (openpower-linux1) where "char = unsigned char"
60 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
62 * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
63 * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
64 * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
65 * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
67 2006-07-31 Borut Razem <borut.razem AT siol.net>
69 * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
70 sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
71 sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
72 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
73 sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
74 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
75 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
76 sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
77 enable ucsim mingw compilation. Serial port is disabled,
78 since it uses termios.h API, which is not available on native
81 2006-07-31 Borut Razem <borut.razem AT siol.net>
83 * Small Device C Compiler 2.6.0 released
84 * support/scripts/sdcc.nsi: added FULL_DOC option
85 * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
87 2006-07-28 Borut Razem <borut.razem AT siol.net>
89 * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
90 * doc/INSTALL.txt: updated
92 2006-07-27 Borut Razem <borut.razem AT siol.net>
94 * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
95 device/lib/pic/libdev/Makefile.in: fixed bug
96 [ 1438354 ] pic libsdcc: distclean doesn't work
97 * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
98 device/lib/pic16/libio/Makefile.in: fixed bug
99 [ 1438344 ] pic16 lib: clean doesn't work properly
100 * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
102 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
104 * device/lib/pic/libsdcc/fsdiv.c,
105 * device/lib/pic/libsdcc/fsmul.c,
106 * device/lib/pic16/libsdcc/float/fsdiv.c,
107 * device/lib/pic16/libsdcc/float/fsmul.c,
108 * device/lib/_fsdiv.c,
109 * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
110 * support/regression/tests/bug1520966.c: added
111 * doc/knownbugs.html: removed [ 1520966 ] from the list
113 2006-07-25 Borut Razem <borut.razem AT siol.net>
115 * configure.in, configure, sdccconf_in.h: fixed bug
116 [ 1519095 ] regression test onebyte.c fails on ppc64 host
117 * doc/knownbugs.html: removed [ 1519095 ] from the list
119 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
121 * doc/knownbugs.html: added, contains list of known bugs at release
122 * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
124 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
126 * device/include/mcs51/compiler.h: added SFRX for xdata based special
127 function registers and corrected defaults with additional warning
128 * device/lib/malloc.c: cosmetic changes
129 * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
130 * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
131 (fillGaps): and used it
133 2006-07-20 Raphael Neider <rneider AT web.de>
135 * src/pic/device.c (addMemRange,assignRegister): suppress verbose
136 output unless SDCCPICDEBUG is set
137 * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
138 output if SILENT is set
140 2006-07-11 Borut Razem <borut.razem AT siol.net>
142 * doc/README.txt: updated
144 2006-07-10 Borut Razem <borut.razem AT siol.net>
146 * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
147 device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
148 in WIN32 installation
149 * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
152 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
154 * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
155 * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
157 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
159 * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
161 2006-07-06 Borut Razem <borut.razem AT siol.net>
163 * support/regression/tests/bitfields.c:
164 fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
165 * support/regression/tests/constantRange.c:
166 fixed bug [ 1518317 ] regression test constantRange fails on alpha host
168 2006-07-04 Borut Razem <borut.razem AT siol.net>
170 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
172 src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
173 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
174 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
175 reverted changes from 2006-07-03
176 * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
177 * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
178 added CPPFLAGS, used by the host port
180 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
182 * support/regression/valdiag/tests/switch.c,
183 * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
184 * support/regression/tests/libmullong.c: fixed for host
185 * support/regression/ports/host/spec.mk: disable all warnings for host,
186 SDCC runs with --less-pedantic too
188 2006-07-03 Borut Razem <borut.razem AT siol.net>
190 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
192 * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
193 * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
194 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
195 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
197 * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
198 sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
199 sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
200 sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
202 2006-07-02 Raphael Neider <rneider AT web.de>
204 * src/pic16/devices.inc,
205 * device/include/pic16/pic18fregs.h,
206 * device/include/pic16/pic18f4550.h,
207 * device/lib/pic16/pics.all,
208 * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
210 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
212 * as/hc08/lkaomf51.c (OutputName),
213 * as/mcs51/lkaomf51.c (OutputName),
214 * as/z80/asmain.c (asmbl),
215 * src/ds390/main.c (asmLineNodeFromLineNode),
216 * src/hc08/ralloc.c (hc08_assignRegisters),
217 * src/mcs51/main.c (asmLineNodeFromLineNode),
218 * src/xa51/ralloc.c (checkRegMask),
219 * src/xa51/gen.c (emitcode),
220 * src/z80/gen.c (_emit2),
221 * src/SDCCast.c (searchLitOp),
223 * support/packihx/packihx.c,
224 * support/Util/MySystem.c (split_command): fix gcc 4 warnings
225 * src/ds390/gen.c (aopPutUsesAcc),
226 * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
227 * support/regression/tests/libmullong.c (mullong_wrapper),
228 * src/SDCCsymt.c (powof2),
230 * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
231 * src/SDCCsymt.h: added TYPE_TARGET_*
232 * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
233 * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
234 SDCCast because 1) header problems 2) this is the right place
235 * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
236 * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
239 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
241 * src/SDCCicode.h: removed buggy semicolon in unused macro
242 * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
243 search for previous definiton of auto symbols too,
244 (findPrevUse): fixed logic of emitWarnings
246 2006-06-26 Raphael Neider <rneider AT web.de>
248 * src/pic16/gen.c (genFunction, genEndFunction): also preserve
249 PCLATH and PCLATU on interrupts, potentially fixes #1505141
251 2006-06-25 Raphael Neider <rneider AT web.de>
253 * device/lib/pic/libm: NEW, added math library functions
254 * device/lib/pic/libsdcc: NEW; added float support functions
255 * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
256 * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
257 NEW, added math related headers
258 * device/include/asm/pic/features.h: NEW
259 * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
260 (popGet): allow larger offsets for AOP_PCODE,
261 (genDataPointerSet): handle literals explicitly, more debug output,
262 (genAssign): fixed for float using aopLiteral ;-)
263 * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
264 GOTO initialisation routine
265 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
266 flag on registers, fixes #1469043 (local variables do not work)
267 * src/pic/main.c (_pic14_do_link),
268 * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
271 2006-06-25 Borut Razem <borut.razem AT siol.net>
273 * device/lib/pic16/libc/stdio/sprintf.c: return the number of
274 characters printed (not including the trailing '\0' used to end
275 output to strings). Problem detected in regression test bug-927659.c.
276 NOTE: printf() family functions should return int instead
278 * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
279 specifier are printed as themselves
280 * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
281 support flags, width and precision specifiers
283 2006-06-24 Borut Razem <borut.razem AT siol.net>
285 * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
286 to the list of sdcc tagrets not supporting bit type
287 * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
288 testfor pic16 due to bug:
289 [ 1511794 ] pic16: regression test bug-895992.c fails
291 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
293 * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
294 * src/SDCCglue.c (initPointer), fixed bug 1496419
295 * support/regression/tests/bug1496419.c: new, added
297 2006-06-22 Borut Razem <borut.razem AT siol.net>
299 * support/regression/ports/pic16/support.c: use gpsim usart module from
300 libgpsim_modules library
302 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
304 * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
307 2006-06-19 Raphael Neider <rneider AT web.de>
309 * src/pic/glue.h,src/pic16/glue.h: added prototypes
310 * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
311 pic1x_emitSymbolIfNew): NEW, check for a string in a set,
312 (pic14printExterns,pic14printPublics,pic16printPublics,
313 pic16_printExterns): use new functions to emit symbols
314 (picglue,pic16glue): emit publics before emitting externs
315 * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
316 locally defined functions to avoid bug #1443651
317 * support/regression/tests/bug-716242.c: removed pic16 workaround
318 * support/regression/ports/pic16/spec.mk: ignore errors during build
320 2006-06-19 Raphael Neider <rneider AT web.de>
322 * src/pic/glue.h: added pic14aopLiteral prototype
323 * src/pic/glue.c (pic14aopLiteral): return unsigned int
324 * src/pic/gen.c: removed stdint.h dependency
325 (aopGet): use Safe_strdup()
326 (bitpatternFromVal): removed, replaced use with pic14aopLiteral
327 (genDataPointerSet): use pic14aopLiteral()
328 * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
329 for pic16; thanks to Bernhard and Maarten
331 2006-06-18 Borut Razem <borut.razem AT siol.net>
333 * support/regression/tests/structflexarray.c: flexible array members
334 not supported by gcc < 3
335 * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
337 * src/pic/gen.c: don't include [p]strdin.h on solaris
338 * support/Util/pstdint.h: addad svn attributes
339 * support/regression/tests/constantRange.c,
340 support/regression/tests/rotate.c: include inttypes.h instead
341 stdint.h on solaris, addad svn attributes
343 2006-06-18 Raphael Neider <rneider AT web.de>
345 * src/SDCCsymt.c (initCSupport): change return type of divschar to
347 * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
348 (pic16_genMinusBits): simplified sign-extension
349 (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
350 pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
351 adjusted to correctly handle mixed-signed operands, disabled
352 now unused multiplciation routines
353 * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
354 (assignResultValue): added argument denoting the size of the result
355 as returned by the function (fixes upcasts in assigning from
356 function calls: char foo(); int i = foo();)
357 (genCall,genPcall,genGenPointerGet,genReceive): pass size of
358 function result to assignResultValue
359 (genMult): disabled inlined multiplication code
360 (genDiv): augmented to also handle the modulus operator, fixed to
361 handle mixed-signed operands correctly
362 (genMod): simply call genDiv, disabled unused code
363 (genAssign): fixed missing (sign-)extension on result
364 * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
365 valid char operands, allow signed operands for native code, added
366 division and modulo operator handling
367 * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
369 As a consequence, onebyte.c (if split into two files) and muldiv.c
370 pass regression tests.
372 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
374 * doc/Makefile.in: two runs of makeindex seem needed to get
375 correct page references in the index of sdccman.pdf
376 * doc/sdccman.lyx: mentioned cmon51, added links, small changes
378 2006-06-17 Borut Razem <borut.razem AT siol.net>
380 * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
382 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
384 * doc/sdccman.lyx: updated, added (porting source code, debugging),
385 mentioned ec2drv and paulmon
387 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
389 * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
390 consecutive abs areas
391 (find_empty_space, allocate_space): added map to handle codemap or
393 (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
394 absolute idata and xdata
395 * as/mcs51/lkmem.c (summary2): updated legend
397 2006-06-16 Raphael Neider <rneider AT web.de>
399 * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
401 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
403 * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
405 * src/SDCClrange.c (findPrevUse): fixed bug 1294475
407 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
409 * src/port.h (struct PORT): added field gp_tags, to hold the tag
410 value of generic pointers,
420 src/z80/main.c: PORT structure, added elements for gp_tags field,
421 * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
422 fields in the PORT structure of each port,
423 * src/SDCCast.c (decorateType): allow processing of generic pointers
424 for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
427 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
435 * src/pic/pcoderegs.c,
438 * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
441 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
443 * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
445 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
447 * src/SDCCast.c (backPatchLabels): fixed bug #1504636
449 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
451 * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
454 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
456 * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
457 to a char variable. Fixed bug #1504211
458 * device/include/pic16/adc.h,
459 device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
460 and fixed bug #1364390
462 2006-06-10 Borut Razem <borut.razem AT siol.net>
464 * CVSROOT: removed the CVS left-over
466 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
468 * as/hc08/asmain.c (asexit),
469 * as/hc08/lkmain.c (lkexit),
470 * as/mcs51/asmain.c (asexit),
471 * as/mcs51/lkmain.c (lkexit),
472 * src/SDCCglue.c (DEFSETFUNC),
473 * src/SDCCmain.c (linkEdit, assemble),
474 * support/librarian/sdcclib.c (AddRel),
475 replaced unlink() by standard C remove()
476 * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
477 * src/SDCCast.c (replaceAstWithTemporary, createRMW,
478 gatherImplicitVariables): new, added to fix bug 608752,
479 (createFunction): added gatherImplicitVariables()
480 * src/SDCCast.h: added createRMW prototype
481 * src/SDCCsymt.h (struct symbol): added infertype
482 * support/regression/tests/bug608752.c: new, added
484 2006-06-10 Raphael Neider <rneider AT web.de>
486 * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
487 multibyte dummy reads (fixes #1503234)
489 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
491 * device/include/mcs51/compiler.h: new, added header file to enable
492 creating common sfr definition header files for different compilers
494 2006-06-05 Raphael Neider <rneider AT web.de>
496 * src/pic16/{pcode.h,genarith.c}:
497 introduced pCodeOp combining any two pCodeOps (previously only
498 two register operands could be combined), removed pcop2 from
499 pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
500 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
501 * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
502 rewritten to use new PO_TWO_OPS
503 * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
504 * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
505 (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
506 (pic16_newpCodeOp2): NEW, create combined pCodeOp,
507 (pic16_get_op): embraced return arg to allow #define return(x),
508 added new case for combined opcodes
509 (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
510 (pic16_pCode2str,pic16_getRegFrompCodeOp,
511 pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
513 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
515 * src/SDCCval.c (checkConstantRange): added
516 * src/SDCCval.h: added checkConstantRange
517 * support/Util/SDCCerr.c,
518 * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
519 W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
520 * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
521 * src/SDCCast.c (decorateType): added checkConstantRange,
522 added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
523 can be emitted with the correct always true/false warning,
524 added optimization for double '!';
525 result of decorateType() must be assigned back to the tree, because
526 decorateType() can change the tree
527 * src/SDCCicode.c (geniCodeLogic),
528 (geniCodeAssign): replaced new checkConstantRange, added warnings,
529 (checkConstantRange): removed, it was only a fragment which never
531 * src/SDCCsymt.c (computeType): fixed promotion for
532 "-1 < (unsigned bit) b"
533 * src/pic/ralloc.c (packRegsForAssign),
534 * src/pic16/ralloc.c (packRegsForAssign),
535 * src/hc08/ralloc.c (packRegsForAssign),
536 * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
538 * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
539 * support/regression/tests/constantRange.c: added
540 * support/valdiag/tests/constantRange.c: added
541 * support/valdiag/valdiag.py: added -DPORT_HOST=1
543 2006-06-02 Borut Razem <borut.razem AT siol.net>
545 * support/regression/ports/pic16/support.c: increase stack size
547 * support/regression/Makefile.in: sort tests by name so that the
548 resutlts can be compared on different machines / platforms
550 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
552 * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
553 * src/ds390/gen.c (emitLabel): new, added,
554 (genDjnz): fixed stack overflow bug,
555 (throughout): cosmetic changes to sync with mcs51/gen.c,
556 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
557 * src/mcs51/gen.c (genEndFunction): small optimization,
558 (throughout): cosmetic changes to sync with ds390/gen.c
560 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
562 * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
563 (_print_format): fixed printing pointers
564 * src/mcs51/gen.c (emitLabel, movb): new, added,
565 (genAssign): small optimization,
566 (genDjnz): fixed stack overflow bug,
567 (throughout): replaced sprintf with SNPRINTF,
568 replaced mcs51_regWithIdx with REG_WITH_INDEX,
569 replaced emitcode("mov", "b,...") with MOVB(...),
570 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
571 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
572 * src/mcs51/peeph.def: added rules 140 and 264
573 * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
574 so they may get optimized into registers
576 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
578 * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
579 immediately when encountered,
580 (printUsage): always use stderr even on windows
582 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
584 * src/SDCCast.c (isLoopCountable): fixed bug #1478316
585 (processParms): fixed bug #1247551
586 * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
587 parseCmdLine, main): print '--version' to stdout,
588 print 'help' to stdout if --help is given,
589 print 'help' to stderr and exit with EXIT_FAILURE if no or bad
590 arguments are given; fixed --help
592 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
594 * src/SDCCcse.c (findPointerSet): fixed bug #1493710
595 * support/regression/tests/bug-1493710.c: added
597 2006-05-27 Borut Razem <borut.razem AT siol.net>
599 * support/regression/fwk/lib/testfwk.c: define array in _printn() as
601 * support/regression/ports/pic16/support.c: increase stack size
602 from default 64 bytes to 128 bytes
603 * support/regression/tests/staticinit.c,
604 support/regression/tests/float.c: regression tests fully enabled
605 for pic16 port by putting the initialized data arrays into the code
607 * support/regression/ports/pic16/spec.mk: don't link default libraries.
608 This was changed by mistake in the previous version.
610 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
612 * src/pic16/gen.c (genFunction, genEndFunction): some
613 beautifications, fixed bug with falsely restoring FSR2 in large
614 stack model, thanks to Beau E. Cox for reporting the bug
616 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
618 * debugger/mcs51/break.c,
619 * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
620 use %p to print pointers, made address variables unsigned
621 * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
622 * debugger/mcs51/symtab.c (parseSymbol): must return something
623 * src/mcs51/gen.c (aopForSym): small optimization,
624 moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
625 (freeAsmop): added missing break,
626 (aopPut): removed parameter bvolatile, determine it inside the function,
627 (saveRegisters, unsaveRegisters): small optimization,
628 (genIpush): removed pointless check,
629 (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
630 replaced sprintf with SNPRINTF,
631 replaced strcpy with strncpyz,
632 updated aopPut calls,
633 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
634 * src/mcs51/ralloc.h: added declarations mcs51_ptrRegReq and mcs51_nRegs
636 2006-05-24 Borut Razem <borut.razem AT siol.net>
638 * support/regression/tests/bug-221100.c: fixed xdata problem caused by
639 modification of test for the pic16 port, put the array to the code
640 memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
642 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
644 * src/pic/gen.c: MSC 6 does not have <stdint.h>. Use pstdint.h instead.
645 * support/Util/pstdint.h: added
647 2006-05-22 Borut Razem <borut.razem AT siol.net>
649 * src/regression/Makefile: removed bool2.c test, added -q linker option
650 * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
651 src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
652 src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
653 src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
654 src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
655 src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
656 src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
657 src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
658 define SUPPORT_BIT_TYPES 0, removed unused bit variables
660 2006-05-22 Raphael Neider <rneider AT web.de>
662 * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
663 bug #1492360 (problematic due to generic pointers, see code)
665 2006-05-22 Borut Razem <borut.razem AT siol.net>
667 * support/regression/ports/pic16/specs.mk: removed stack size linker
669 * support/regression/tests/array.c,
670 support/regression/tests/bitopcse.c,
671 support/regression/tests/bug-908454.c,
672 support/regression/tests/malloc.c: modified for pic16 regression test
673 * support/regression/tests/bitfields.c:
674 pic16 - excluded bitfileds of size > 8
675 * support/regression/tests/bp.c: pic16 - reduced data size
676 * support/regression/tests/bug-221100.c: pic16 - reduced data size
677 * support/regression/tests/bug-460010.c:
678 pic16 - used the absolute address the fits in memory
679 * support/regression/tests/bug-716242.c:
680 bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
681 * support/regression/tests/float.c:
682 pic16 - excluded - data size too big
683 * support/regression/tests/onebyte.c:
684 pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
685 * support/regression/tests/shifts.c:
686 pic16 - function names probably have to differ in first X characters
688 * support/regression/tests/staticinit.c:
689 pic16 - excluded some tests due error: no target memory available for
692 2006-05-22 Borut Razem <borut.razem AT siol.net>
694 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
695 second try. Thanks Stas Sergeev once more.
697 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
699 * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
700 (genLeftShift, genRightShift): fixed bug 1491627
701 * src/hc08/peeph.def (rules 7, 8.x): added
702 * support/regression/tests/shifts.c (ShiftLeftByParam,
703 ShiftRightByParam, testShiftByParam): added to test variable shifting
705 2006-05-20 Raphael Neider <rneider AT web.de>
707 * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
708 * src/pic16/ralloc.c (newReg): use correct name in hashtable,
709 (allocReg): add only new registers to dynAllocRegs,
710 (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
711 #1489055, #1445850, and probably #1483693
713 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
715 * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
716 bug in for-loop that didn't emit the last of CONFIG and ID registers
718 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
720 * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
722 * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
723 1489016, 1434401 and 1490124
724 * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
725 1489016, 1434401 and 1490124
727 2006-05-17 Borut Razem <borut.razem AT siol.net>
729 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
732 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
734 * device/include/mcs51/P89c51RD2.h,
735 * device/include/mcs51/P89LPC901.h,
736 * device/include/mcs51/P89LPC922.h,
737 * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
739 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
741 * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
742 to fix missing stack pragma in compiled binary object file,
744 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
746 * support/packihx/configure.in,
747 * support/packihx/configure: removed warning, autoconf >= 2.5x can
748 determine sizeof basic types even while cross compiling
750 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
752 * src/avr/gen.c (aopop),
753 * src/ds390/gen.c (aopOp),
754 * src/hc08/gen.c (aopOp),
755 * src/mcs51/gen.c (aopop),
756 * src/pic16/gen.c (pic16_aopOp),
757 * src/pic/gen.c (aopOp),
758 * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
759 if size of operand is smaller than spill location
761 2006-05-12 Borut Razem <borut.razem AT siol.net>
763 * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
764 have to have CR/LF line endings even if they are checked out on *nix
765 or on WIN32 in cygwin binmode
767 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
769 * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
770 * device/include/ds80c390.h: added sfr16 definitions
774 * src/ds390/ralloc.c,
775 * src/ds390/ralloc.h: changes all over the place to sync with mcs51
776 fixing several bugs and adding sfr16/sfr32, reentrant bit params,
777 bit returning functions
778 * support/regression/tests/sfr16.c: enabled test on ds390
780 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
782 * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
783 * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
785 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
787 * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
788 * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
789 (cl_address_space constructor): removed expensive initialization,
790 (cl_address_space::get_cell): extended for late initialization,
791 (cl_address_space::*): use late initialization,
792 (cl_address_decoder::activate): removed expensive initialization,
793 This reduced regression test running time by 25%
795 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
803 * support/packihx/Makefile.in,
804 * support/packihx/clean.mk,
805 * support/packihx/Makefile.bcc,
806 * support/packihx/PackIhx.dsp: moved packihx to support/packihx
808 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
810 * src/SDCCval.c (valNot): fix for regression test failure
811 of not.c on big endian hosts
813 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
815 * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
817 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
819 * device/lib/mcs51/Makefile.in: changed string comparison operator
820 to = for POSIX compliance; == is bash extension
822 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
824 * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
827 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
829 * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
830 allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
831 * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
832 * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
835 2006-05-05 Borut Razem <borut.razem AT siol.net>
837 * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
840 2006-05-02 Borut Razem <borut.razem AT siol.net>
842 * doc/Makefile.in: removed *.ind dependency since there is no rule to
843 create *.ind, which made make to fail if invoked with -j 2
845 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
847 * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
848 Hubert Sack for patch 1479782
850 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
852 * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
854 2006-05-01 Raphael Neider <rneider AT web.de>
856 * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
857 (create_pic): store only prefix-free device name,
858 (init_pic): check for device names with "16" prefix,
860 * src/pic/device.h (struct PIC_device),
861 * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
863 * device/include/pic/pic12f{635,675,629,683}.h,
864 * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
865 * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
866 * device/include/pic/pic16f505.h,
867 * device/lib/pic/libdev/pic16f505.c: removed
868 * device/include/pic/pic14devices.txt: added support for pic12f
869 devices, removed unsupported non 16-bit devices
870 [above changes provided by patch from Zik Saleeba]
871 * src/pic/*, src/pic16/*, device/include/pic16/*,
872 device/lib/pic/**, device/lib/pic16/**: obfuscated email address
874 2006-05-01 Borut Razem <borut.razem AT siol.net>
876 * configure.in, configure, doc/Makefile.in:
877 sync with nightly build makefile - latex, dvipdf and dvips
880 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
882 * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
883 in the library source
885 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
887 * support/regression/ports/hc08/spec.mk: fixed bug 1478892
889 2006-04-28 Raphael Neider <rneider AT web.de>
891 * src/pic16/pcode.c (pic16_newpCodeOpLit12),
892 * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
893 (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
894 * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
896 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
898 * device/lib/pic/libdev/Makefile.in,
899 * device/lib/hc08/Makefile.in,
900 * device/lib/gbz80/Makefile.in,
901 * device/lib/z80/Makefile.in,
902 * device/lib/ds390/Makefile.in,
903 * device/lib/ds400/Makefile.in: added srcdir to include search path,
904 thanks to Borut for the bug report
906 * configure: always create doc/Makefile independent from --enable-doc
907 * Makefile.in: always install from directory doc independent from
909 * device/lib/pic/Makefile.in: added libdev again, it was erroneously
911 * device/lib/pic/libdev/Makefile.in: fixed VPATH build
912 * doc/Makefile.in: install *.txt if present
913 * device/include/Makefile.in (install): added installation of pic/*.inc
914 and pic/*.txt files again, they were erroneously removed
916 2006-04-28 Raphael Neider <rneider AT web.de>
918 * src/pic/{gen.c,main.h,pcode.c},
919 * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
920 concerning signedness with casts
922 2006-04-28 Raphael Neider <rneider AT web.de>
924 * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
925 definition of an interrupt handler,
926 * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
927 interrupt handler stuff from picglue() to separate routine,
928 (picglue): enabled definition of intr handlers in files w/o main()
930 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
932 * support/librarian/sdcclib.c: moved include <limits.h> up to enable
933 compilation with MSVC 2005 Express Edition (VC8)
935 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
937 * device/lib/Makefile: fixed build of gbz80 lib
939 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
941 * support/regression/tests/bug-460010.c,
942 * support/regression/tests/bug-524691.c,
943 * support/regression/tests/bug-716242.c: removed conditional defines
944 that are already in testfwk.h
946 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
948 * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
949 (AccAXRsh1): added, shift right by 1,
950 (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
952 * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
954 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
956 * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
957 remove cast to same type
958 * src/SDCCast.c (decorateType): fix for RFE 1475742,
959 optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
961 * link/z80/Makefile: removed, they have moved to
964 * configure.in: replaced duplicate message about ucsim by missing sdcpp
965 * install-sh: fix bug #1204398 by setting umask 0022
966 * device/lib/Makefile: separate build of z80 and gbz80 lib
968 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
970 Enabled VPATH feature: changed nearly all Makefiles (149 files).
971 See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
973 One basic decision: e.g. src/clean.mk includes further files. In order
974 to make this work there are two solutions:
975 - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
976 run configure on them. This way they can use
977 'include $(srcdir)/port-clean.mk'
978 - always include clean.mk by the Makefile at the same level. To avoid
979 that `make clean` tries to include and build Makefile.dep the
980 MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
981 implemented, because now even `make uninstall` doesn't create
982 Makefile.in. clean.mk could be eliminated by pasting it in
985 * debugger/mcs51/Makefile.in: build own objects from library sources
986 (SLIB, SDCC) in current directory
988 * configure, configure.in: renamed --disable-device-lib-build in
989 --disable-device-lib; added --enable-doc, the required tools are
990 searched by configure; added result message; the toolchain for the
991 belonging ports are now only built, if the port is enabled.
993 * support/regression/*: all output is written in directory gen, because
994 the fwk and ports directories don't livet in the build tree using vpath
996 * doc/sdccman.lyx: renamed --disable-device-lib-build to
997 --disable-device-lib, added --enable-doc, added section VPATH
999 * sim/ucsim/configure.in,
1000 * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
1001 z80 are enabled by default
1003 2006-04-24 Raphael Neider <rneider AT web.de>
1005 * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
1006 to config word, "pic14_"-prefixed some extern functions
1007 (pic14_emitConfigWord): emit __config directive(s) if assignment to
1008 config word has been found
1009 * src/pic/device.h: added prototypes
1010 * src/pic/pcode.c: added "pic14_"-prefix where needed
1011 * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
1013 * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
1015 (pic14emitRegularMap): ignore config words,
1016 (pic14createInterruptVect): moved generating __config directives away
1017 (picglue): have __config directives emitted
1019 2006-04-24 Borut Razem <borut.razem AT siol.net>
1021 * doc/Makefile: sync with nightly build makefile
1023 2006-04-24 Raphael Neider <rneider AT web.de>
1025 * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
1026 registers that have not been assigned proper liveranges,
1027 fixes #1469504 and #1474602,
1028 (pCodeRegOptimizeRegUsage): fixed typo in comment
1030 2006-04-24 Borut Razem <borut.razem AT siol.net>
1032 * device/examples/main8051.c: deleted - it was removed from CVS
1033 24.mar.2000 and after that modified 18.feb.2001, so it reappered
1034 after the transition to Subversion
1035 * src/SDCCalloc.h: deleted - it was removed from CVS
1036 3.feb.2001 and after that modified 18.feb.2001, so it reappered
1037 after the transition to Subversion
1038 * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
1039 sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
1040 sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
1041 sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
1043 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
1045 * as/asx8051.dsp: added mcs51/strcmpi.h
1046 * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
1047 * as/hc08/aslink.h: updated lnksect prototype
1049 * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
1051 * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
1052 (newdot): handle A_ABS
1054 * as/mcs51/asout.c (outarea): output address
1055 * as/hc08/lkaomf51.c,
1056 * as/mcs51/lkaomf51.c: disabled unused array UsageType
1058 * as/mcs51/i51pst.c,
1059 * as/z80/z80pst.c: "ABS" is not A_OVR
1060 * as/hc08/lkarea.c (newarea): read a_addr,
1061 (lnkarea): added codemap array, sort absolute areas to the front,
1062 combine all GSINITx/GSFINAL,
1063 (find_empty_space, allocate_space): new functions,
1064 (lnksect): return next address, handle absolute sections
1065 * as/mcs51/lkarea.c (newarea): read a_addr,
1066 lnksect2 prototype changed,
1067 (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
1068 (find_empty_space, allocate_space): new, factored out of lnksect2,
1069 (lnksect2): return next address, handle absolute sections
1071 * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
1072 * as/hc08/lklibr.c (addfile, fndsym),
1073 * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
1074 index out of range and detect both '\' and '/'
1075 * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
1076 * device/include/stdbool.h: removed SDCC_ds390 from check to pass
1077 regression tests (ds390 cannot return bool yet)
1078 * doc/sdccman.lyx: changed version number, document changed --no-peep,
1079 document critical interrupts on z80, document changed SDCC define
1080 * src/asm.c (_asxxxx_mapping): fixed .org directive,
1081 (_a390_mapping): added .org directive
1082 * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
1083 (genMultOneByte): fixed warnings
1084 * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
1086 * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
1087 * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
1088 (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
1089 * src/pic16/gen.h: changed prototype for pic16_popGetLabel
1090 * src/pic16/main.c: removed newReg prototype
1091 * src/pic16/pcode.c,
1092 * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
1094 * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
1096 * src/pic16/ralloc.c
1097 * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
1099 * src/pic/pcode.c (allocInternalRegister): changed parameter optype
1100 from short to PIC_OPTYPE
1101 * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
1102 * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
1103 optype from short to PIC_OPTYPE
1104 * src/port.h: made int_size unsigned to fix warnings
1105 * src/SDCC.y: fixed warning on MSVC
1106 * src/SDCCicode.c (getArraySizePtr): return unsigned int
1107 * src/SDCCopt.c (convertToFcall): fixed warnings
1108 * src/SDCCsymt.h: removed double prototype for genSymName
1109 * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
1110 offset int to fix warnings
1112 2006-04-22 Borut Razem <borut.razem AT siol.net>
1114 * doc/sdccman.lyx, */Makefile, */Makefile.in:
1115 references to CVS replaced with Subversion
1117 2006-04-21 Borut Razem <borut.razem AT siol.net>
1119 * doc/sdccman.lyx, */Makefile, */Makefile.in:
1120 references to CVS replaced with Subversion
1122 2006-04-19 Borut Razem <borut.razem AT siol.net>
1124 * src/version.awk: adapted for svn
1125 * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
1126 sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
1127 sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
1128 /binutils-avr/etc/*.vi, *.jin: removed all properties
1129 support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
1131 2006-04-19 Borut Razem <borut.razem AT siol.net>
1133 * CVS to Subversion migration completed
1135 2006-04-18 Borut Razem <borut.razem AT siol.net>
1137 * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
1138 ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
1140 2006-04-17 Borut Razem <borut.razem AT siol.net>
1142 * device/include/Makefile.in: added pic/*.inc to the installation
1144 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
1146 * support/regression/collate-results.py: fixed output in case of
1148 * support/regression/generate-cases.py: fixed splitting of pathnames
1150 * as/hc08/lklibr.c (addfile),
1151 * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
1153 2006-04-11 Raphael Neider <rneider AT web.de>
1155 * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
1156 * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
1157 * src/pic16/pcode.c (assignValnums): fixed #1460578
1159 2006-04-11 Raphael Neider <rneider AT web.de>
1161 * device/lib/pic/libdev/*.c,
1162 * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
1163 fixes #1468739, enables compilation in --std-c99 mode
1164 * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
1166 2006-04-11 Raphael Neider <rneider AT web.de>
1168 * src/pic/device.c (find_device): removed debug output
1169 (list_valid_pics): enabled verbose listing of supported devices
1170 * device/include/stdbool.h: define bool as char for pic14/16 as well
1172 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1174 * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
1176 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1178 * .version: bumped version to 2.5.6
1179 * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
1181 2006-04-06 Raphael Neider <rneider AT web.de>
1183 * .version: bumped version to 2.5.6 (pic14 ABI changed)
1184 * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
1185 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
1186 pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
1187 pic14_constructAbsMap
1188 (pic14printPublics): declare absolute global symbols as global
1189 (pic14createInterruptVect),
1190 * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
1191 (newReg): assume new registers unused, use correct name in
1192 hashtable (reg->name instead of name), more debugLog output
1193 * src/pic/device.h (PIC_device): added fields for verbose output
1194 * src/pic/device.c: moved device definition to pic14devices.txt,
1195 added routines for runtime parsing of pic14devices.txt,
1196 added support for second config word
1197 * src/pic/main.c (_process_pragma): removed #pragma maxram,
1198 (_pic14_keywords): no longer accept "bit" and "sbit" keywords
1199 (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
1200 (_pic14_parseOptions): moved pCodeInitRegisters here
1201 (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
1202 * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
1203 (pCodeInitRegisters): rewrapped comments, perpared new approach to
1204 handling the pseudo stack
1205 * device/lib/Makefile.in: ignore failures in objects-pic16,
1206 * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
1207 * device/lib/pic/NEWS: document new dependency on picXXX.lib
1208 * device/lib/pic/Makefile.subdir,
1209 * device/lib/pic16/Makefile.subdir: improved clean rules
1210 * device/lib/pic/libdev/: NEW, pic14 device libraries
1211 * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
1212 * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
1213 * device/include/Makefile.in: create subdir and install pic14 headers
1214 * device/include/pic/p16f_common.inc: removed unused declarations
1215 * device/include/pic/pic16*.h: added header files for 100+ 14 bit
1216 PICs from inc2h.pl v1.6,
1217 replaced BIT_AT macros with struct declarations
1218 * device/include/pic/pic14devices.txt: definition of supported devices,
1219 all above improvements contributed by Zik Saleeba, thanks
1220 * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
1221 * support/scripts/sdcc.nsi: also install pic14 device libraries and
1224 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1226 * device/include/mcs51/c8051f410.h: added interrupt numbers,
1227 * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
1228 thanks to Charles Olds
1230 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1232 * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
1234 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1236 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
1237 * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
1238 * support/regression/bug1464657.c: added, new test
1240 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1242 * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
1245 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1247 * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
1248 --no-peep and --peep-file <file> are used don't use default rules but
1251 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1253 * src/mcs51/gen.c (genCall): fixed bug 1457608
1255 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1257 * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
1258 changes seem to cause (trigger?) problems with the build system.
1260 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
1262 * src/SDCCpeeph.c (operandsLiteral): new, added,
1263 (callFuncByName): inserted operandsLiteral
1264 * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
1266 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1268 * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
1269 * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
1271 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1273 * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
1274 implemented patch 1120823 Thanks to Willy De la Court (normal
1275 interrupts need an interrupt number now if they are made critical),
1276 and enabled nesting of critical functions though not for gbz80
1277 (genCritical, genEndCritical): added functions
1278 (genZ80Code): added cases for CRITICAL and ENDCRITICAL
1279 * src/z80/mappings.i: added "ei" to all mappings
1281 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1283 * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
1284 submitted by the Debian SDCC maintainer Aurelien Jarno:
1285 "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
1286 archive with gcc 4.1 on mips and wrote the patch"
1288 2006-03-16 Raphael Neider <rneider AT web.de>
1290 * src/pic16/genarith.c (genAddLit): simplified and fixed case where
1291 the left operand is shorter than the result (c* = lit-c* + int),
1293 * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
1296 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1298 * src/.version: increased version number to 2.5.5
1299 * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
1300 linking is done manually in pic16 port's _linkEdit,
1301 * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
1302 PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
1303 * src/pic16/gen.c (aopForSym): when direct register name is WREG then
1304 allocate asmop as AOP_ACC,
1305 (aopForRemat): added parameter 'bool result' in function declaration,
1306 (pic16_aopGet): return AOP_ACC when accessing WREG,
1307 (pic16_popGetTempReg): minor modification,
1308 (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
1309 'pic16_allocWithIdx',
1310 (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
1311 calling function in absolute addresses,
1312 (genAssign): take into account AOP_ACC asmop,
1313 * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
1314 * src/pic16/pcoderegs.c: some debug functions and lines added,
1315 * src/pic16/ralloc.c (decodeRegType): added but commented out,
1316 * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
1318 * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
1319 call to allocReg, not by manually allocating a new one,
1320 (pic16_assignRegisters): now before going through the register
1321 allocating functions mark all registers as free. This eliminates some
1322 side effects resulting from peephole parser done earlier in the backbone
1324 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
1326 * src/SDCCicode.c (geniCodeLogic),
1327 * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
1329 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1331 * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
1332 (genSend): bugfix, do not allocate and free twice,
1333 (shiftRLong): handle partially overlapping aops
1334 * support/regression/tests/bitopcse.c: fixed warning redefined idata
1336 2006-03-08 Borut Razem <borut.razem AT siol.net>
1338 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
1341 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1343 * support/regression/tests/bug1409955.c: new, added
1344 * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
1345 * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
1346 (aopForSym, aopOp): increment asmop.allocated if reused,
1347 (freeAsmop): decrement asmop.allocated and check for zero instead of
1349 (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
1350 (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
1351 genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
1352 genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
1353 genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
1354 genSignedRightShift, genRightShift, genDataPointerGet,
1355 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1356 genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
1357 in reverse order from allocation,
1358 (genPlus, genCmpEq): free asmop's in reverse order from allocation and
1359 added swappedLR to keep track
1360 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
1361 pdata & code for GCC, z80, gbz80 & hc08
1362 * support/regression/tests/zeropad.c: moved defines to testfwk.h
1364 2006-03-08 Raphael Neider <rneider AT web.de>
1366 * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
1368 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
1370 * device/include/mcs51/c8051f410.h: new SiLabs mcu
1371 * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
1372 * support/regression/tests/array.c: added parenthesis, made arrays unsigned
1374 2006-03-06 Borut Razem <borut.razem AT siol.net>
1376 * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
1377 made the linker quiet
1379 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1381 * src/pic16/gen.c (genPcall): fixed bug #1443644
1382 * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
1383 which dumps before the function entry point a data byte which represents
1384 the number of the local variables used by the specified function, added
1385 'xinst' for initial support for Extended Instruction Support,
1386 * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
1387 (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
1388 port->fun_prefix anymore (may change later),
1389 (genFunction, genEndFunction): do not store/restore local registers for
1390 _main (this should take care the --main-return command line option in
1392 (genOr): removed some legacy pic-port instructions,
1393 * src/pic16/genarith.c (genAddLit): re-enabled old code because
1394 performing operations with SFR's causes data to be written more than
1395 once to each SFR. Perhaps SFRs should be handled in special cases...
1396 * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
1398 * src/pic16/main.c (_process_pragma): stack bound checking did not take
1399 into account for stack starting position,
1400 (struct OPTIONS pic16_optionsTable): added command line argument
1401 --extended or -y for Extended Instruction Support,
1402 * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
1403 (deassignLRs): *** perhaps the most important change, old 'for' code
1404 (commented out for reference), didn't account for some registers which
1405 were left marked 'not free' after a pointer operation. The change
1406 reduces register usage a lot in some cases
1408 2006-03-04 Borut Razem <borut.razem AT siol.net>
1410 * support/regression/ports/hc08/spec.mk: remove *.asm in traget
1412 * support/regression/tests/bug-524697.c: decreased array size for
1413 mcs51 to fit into the internal RAM
1414 * support/regression/Makefile.in: a little bit more verbose
1416 2006-03-03 Borut Razem <borut.razem AT siol.net>
1418 * support/regression/fwk/lib/testfwk.c,
1419 support/regression/fwk/include/testfwk.h: introduced function
1420 _prints(), nonrecursive _printn(), call _initEmu() from main()
1421 * support/regression/ports/gbz80/support.asm,
1422 support/regression/ports/ucz80/support.asm,
1423 support/regression/ports/z80/support.asm,
1424 support/regression/ports/ds390/support.c,
1425 support/regression/ports/hc08/support.c,
1426 support/regression/ports/host/support.c,
1427 support/regression/ports/mcs51/support.c,
1428 support/regression/ports/xa51/support.c: added empty _initEmu()
1430 * support/regression/ports/pic16/gpsim.cmd,
1431 support/regression/ports/pic16/spec.mk,
1432 support/regression/ports/pic16/support.c,
1433 support/regression/Makefile.in: added pic16 regression test
1435 2006-03-01 Raphael Neider <rneider AT web.de>
1437 * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
1438 genConstPointerGet): use safe way of generating MOVFF to cover
1439 literals as well as registers, fixes bug #1440527
1440 * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
1442 (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
1443 more correctly, fixes bug #1232186
1444 (pic16_printIval): use pic16_printIvalUnion() for initialized unions
1445 * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
1446 gplink guess the correct processor in more cases, applied patch
1447 from Till Riedel attached to and fixing bug #1436552
1449 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1451 * support/regression/tests/array.c: added, contains check for #1434401
1452 * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
1454 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1456 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
1457 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
1458 * device/include/mcs51/c8051f326.h,
1459 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
1460 * device/include/mcs51/c8051f000.h,
1461 * device/include/mcs51/c8051f018.h,
1462 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
1463 PCON_IDLE,PCON_STOP and added sfr16 definitions
1465 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1467 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
1468 genGetWord): fixed bug 1409955
1470 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1472 * device/include/hc08/mc68hc908gp32.h,
1473 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
1475 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1477 * src/SDCCast.c (constExprValue): return NULL if not a value
1478 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
1479 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
1480 * support/regression/tests/bitfields.c: enabled signed bitfield for all
1482 2006-02-13 Borut Razem <borut.razem AT siol.net>
1484 * src/regression/ptrarg.c: added, fails due to bug #1430967
1485 * src/regression/Makefile: ptrarg.c added, ...
1487 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1489 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
1490 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
1492 2006-02-11 Borut Razem <borut.razem AT siol.net>
1494 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
1495 print "Processor: xxx" message to stdout only if --verbose
1497 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1499 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
1500 * support/regression/tests/bug1426356.c: added
1501 * support/regression/tests/bitfields.c: removed 2 tests
1503 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1505 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
1506 * device/include/mcs51/c8051f330.h,
1507 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
1508 PCON_IDLE,PCON_STOP and added sfr16 definitions
1509 * device/lib/_divsint.c,
1510 * device/lib/_divuint.c,
1511 * device/lib/_divulong.c,
1512 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
1513 register bank bug for small stackauto
1515 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1517 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
1519 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
1521 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
1522 * all.dsp: corrected several bin paths
1523 * device/include/mcs51/c8051f120.h,
1524 * device/include/mcs51/c8051f300.h,
1525 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
1526 to PCON_IDLE,PCON_STOP
1527 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
1528 * device/lib/printf_large.c (output_float): fixed bug 1388703
1529 * support/regression/tests/bug1057979.c: added test for bug 1388703
1531 2006-02-08 Raphael Neider <rneider AT web.de>
1533 * src/pic/pcode.c (pciTRIS): fixed typo,
1534 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
1535 (LinkFlow): fixed handling of flows that end in a call,
1536 (ReuseReg): perform safety check earlier
1537 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
1538 to work with flows at the beginning of a pBlock,
1539 fixes #1426557 (Symbol not previously defined),
1540 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
1542 (RemoveUnusedRegisters): update register usage info
1543 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
1544 created, reuse existing ones instead
1545 * src/pic/gen.c (genPcall): fixed #1424719
1547 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
1549 * link/z80/lkmain.c,
1551 * link/z80/lkdata.c,
1552 * link/z80/aslink.h: fixed build on current cygwin:
1553 replaced getline() by lk_getline()
1555 2006-02-01 Borut Razem <borut.razem AT siol.net>
1557 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
1558 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
1559 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
1560 src/regression/bool1.c, src/regression/bool2.c,
1561 src/regression/bool3.c, src/regression/call1.c,
1562 src/regression/compare.c, src/regression/compare10.c,
1563 src/regression/compare2.c, src/regression/compare3.c,
1564 src/regression/compare4.c, src/regression/compare5.c,
1565 src/regression/compare6.c, src/regression/compare7.c,
1566 src/regression/compare8.c, src/regression/compare9.c,
1567 src/regression/configword.c, src/regression/for.c,
1568 src/regression/inline.c, src/regression/mult1.c,
1569 src/regression/nestfor.c, src/regression/or1.c,
1570 src/regression/pointer1.c, src/regression/ptrfunc.c,
1571 src/regression/rotate1.c, src/regression/rotate2.c,
1572 src/regression/rotate3.c, src/regression/rotate4.c,
1573 src/regression/rotate5.c, src/regression/rotate6.c,
1574 src/regression/rotate7.c, src/regression/string1.c,
1575 src/regression/struct1.c, src/regression/sub.c,
1576 src/regression/sub2.c, src/regression/switch1.c,
1577 src/regression/while.c, src/regression/xor.c,
1578 src/regression/create_stc, src/regression/simulate,
1579 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
1581 * src/regression/gpsim_assert.h: added
1583 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
1585 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
1586 ((void (code *) (void)) 0) ();
1595 * as/mcs51/aslink.h,
1597 * as/mcs51/asmain.c,
1598 * as/mcs51/lkdata.c,
1600 * as/mcs51/lkmain.c,
1603 * as/z80/asmain.c: fixed build on current cygwin:
1604 replaced getline() by as_getline()
1606 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1608 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
1609 declarator in the symbol chain
1611 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
1612 parameter list for function pointers
1613 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
1614 * support/regression/tests/bug-716242.c: added
1616 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1618 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
1620 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
1622 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1624 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
1625 inifinitely recurseable, added static
1626 * support/regression/tests/bug-1408066.c: added
1628 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
1631 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
1632 renamed, added possibility to create "postLoopLbl"-labels
1633 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
1634 newiTempLoopHeaderLabel
1635 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
1636 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
1637 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
1638 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
1639 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
1640 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
1641 (basicInduction): fixed bug #136564, made static,
1642 (loopInduction): changed parameter of basicInduction, made static,
1643 (addPostLoopBlock): added
1644 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
1645 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
1647 * support/regression/tests/bug-136564.c: added
1648 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
1649 --std-sdcc99 to LIBSDCCFLAGS
1651 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
1653 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
1655 * support/regression/tests/bug-1406131.c: added
1657 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
1659 * src/SDCCast.c (decorateType): fix promotion of unary minus
1660 * src/SDCCsymt.c (computeType): beautified
1661 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
1662 (valUnaryPM, valComplement): fix sign and promotion,
1663 (valNot): ANSI: result type is int (SDCC: unsigned char)
1664 * support/regression/tests/uminus.c: speedup by removing superflous
1666 * support/regression/tests/onebyte.c: added promotion and signedness
1667 tests for unary minus
1668 * support/regressions/tests/bug-477927.c: disable warning about
1669 uninitialized variables
1670 * support/regression/tests/not.c: added
1672 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
1674 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
1675 * src/mcs51/gen.c (gen51Code): show final register usage after
1676 fillGaps in asm with --i-code-in-asm
1677 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
1678 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
1679 incUsed, rliveClear, adjustIChain): made static,
1680 (setFromRange): excluded because it's unused,
1681 (findPrevUseSym, markWholeLoop): added,
1682 (findPrevUse): rewritten; fixes bug 895992; now a complete search
1683 through all branches of predecessors enables sdcc to emit the warning
1684 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
1685 (rlivePoint): made static, added parameter emitWarnings which is only
1686 true during the first run out of two,
1687 (findRecursiveSucc, findRecursivePred): removed,
1688 (computeLiveRanges): made static, added parameter emitWarnings,
1689 (dumpIcRlive): added for debugging only
1690 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
1691 removed prototype of setFromRange()
1692 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
1693 in call of computeLiveRanges()
1694 * support/regression/tests/bug-895992.c: added
1695 * support/regression/tests/bug-971834.c: added
1696 * support/valdiag/tests/bug-895992.c: added
1697 * support/valdiag/tests/bug-971834.c: added
1699 2005-12-18 Raphael Neider <rneider AT web.de>
1701 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
1702 (genUnpackBits): improved code for direct operands,
1703 (genPackBits): improved code for literal assignment to bitfields
1704 and for direct destination operands (no FSR indirection),
1705 prevented redundant AND, fixes #1362800,
1706 (AccLsh): added parameter to disable masking of the result
1707 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
1708 skip instructions with side-effects (like incfsz),
1709 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
1710 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
1711 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
1714 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
1716 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
1717 volatile variables as spill location
1719 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
1721 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
1723 * support/regression/tests/bug-1376320.c: added
1725 2005-12-08 Raphael Neider <rneider AT web.de>
1727 * src/pic/device.c: renamed is_shared to pic14_is_shared
1728 * src/pic/gen.c (genIfx): re-enabled handling of sbits
1729 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
1730 (is_valid_identifier): added for above workaround
1732 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
1734 * device/lib/Makefile.in: fixed to enable port-specific-objects
1735 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
1736 char, thanks Hubert Sack
1737 * doc/sdccman.lyx: documented --xstack-loc,
1738 elaborated a bit more on interrupts and pitfalls,
1739 removed "setjmp/longjmp unsupported",
1740 documented some unsupported C99 features
1741 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
1742 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
1743 if, thanks Hubert Sack
1744 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
1745 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
1747 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
1748 regression tests can report resource usage (rfe 700441)
1749 * support/regression/collate-results.py: report resource usage
1750 * support/regression/ports/ds390/spec.mk,
1751 * support/regression/ports/hc08/spec.mk,
1752 * support/regression/ports/mcs51/spec.mk,
1753 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
1754 * support/regression/ports/ds390/uCsim.cmd,
1755 * support/regression/ports/hc08/uCsim.cmd,
1756 * support/regression/ports/mcs51/uCsim.cmd,
1757 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
1758 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
1759 library, use the default one
1760 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
1761 building the library
1763 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1765 * config.dsp: added dependency on .version and configure_vc.awk
1766 * device/include/setjmp.h: updated for --stack-auto and --xstack
1767 * device/include/mcs51/at89c51snd1c.h: corrected line endings
1768 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
1769 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
1770 * device/lib/libsdcc.lib: added _setjmp
1771 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
1772 (decorateType): fixed bug 1372851,
1773 (optimizeGetHbit): fixed warning
1774 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
1775 array initialisation
1776 * support/regression/tests/bug1057979.c: added test for bug 1358192
1777 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
1779 2005-12-03 Borut Razem <borut.razem AT siol.net>
1781 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
1782 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
1784 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1786 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
1787 createIval): implement symbol independant "flexible array member",
1788 (createIvalCharPtr): implemented flexible array initialisation with a
1790 * src/SDCCsymt.c (copyStruct): removed,
1791 (getSize): fixed misleading comment,
1792 (getAllocSize): removed, the additional allocation size is now in
1793 sym->flexArrayLength,
1794 (checkStructFlexArray): new, syntax checks for flexible array members,
1795 (compStructSize): added syntax checks for "flexible array members"
1796 (copyStruct): removed,
1797 (copyLinkChain): removed inefficient fix for bug 770487
1798 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
1799 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
1800 symbol->flexArrayLength
1802 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
1803 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
1804 * support/regression/tests/structflexarray.c: added
1805 * support/valdiag/tests/structflexiblearray.c: added
1807 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1809 * src/SDCCast.c (decorateType): fixed bug 1368489
1810 * support/Util/SDCCerr.c,
1811 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
1813 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1815 * device/include/mcs51/at89c51snd1c.h: added file submitted by
1816 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
1818 2005-11-27 Borut Razem <borut.razem AT siol.net>
1820 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
1821 support/cpp2/mkdeps.h: added command line option
1822 -obj-ext=<extension> to SDCPP to define object file externion, used
1823 for generation of make dependencies (-M)
1824 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
1826 2005-11-26 Borut Razem <borut.razem AT siol.net>
1828 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
1829 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
1830 added pic and pic16 libraries
1832 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1834 * device/include/float.h: Corrected typo in prototype of __fsgt
1836 2005-11-25 Borut Razem <borut.razem AT siol.net>
1838 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
1839 added creation of model-mcs51-stack-auto libraries
1841 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
1843 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
1845 * src/SDCCast.c (createIvalArray): removed obsolete comment
1847 2005-11-24 Borut Razem <borut.razem AT siol.net>
1849 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
1850 added missing device/lib/mcs51/crt*.asm sources
1852 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
1854 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
1856 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
1858 * device/lib/_fs2schar.c,
1859 * device/lib/_fs2sint.c,
1860 * device/lib/_fs2slong.c: optimized inline asm
1862 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1864 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1865 Better handling of floats between -1.0 and 0.0.
1867 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1869 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
1870 (the missing "if"s prohibited removal of redundant labels)
1872 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1874 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1875 Properly convert floats between -1.0 and 0.0 to long, int, and char
1876 types (max integer value of negative floats tends to zero).
1877 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1878 Removed changes made so to work properly with floats between
1879 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
1882 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1884 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
1885 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
1886 (genCast) cosmetic change
1887 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
1888 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
1890 * support/regression/tests/bitfields (testSignedBitfields): added
1892 2005-11-18 Borut Razem <borut.razem AT siol.net>
1894 * sdcc/device/lib/Makefile.in: remove all unnecessary files
1895 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
1896 introduced SILENT option to make building of pic16 libraries less
1898 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1900 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1901 Now they work properly with floats between -1.0 and 0.0
1902 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
1904 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1906 * src/SDCCicode.c (printOperand): added missing else
1908 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1910 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
1911 reformatted for better readability
1912 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
1915 2005-11-17 Borut Razem <borut.razem AT siol.net>
1917 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
1918 introduced SILENT option to make building of pic16 libraries less
1919 verbose - used for nightly snapshot build
1920 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
1921 available on Win32 platforms.
1922 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
1923 medium, large, pic and pic16
1925 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1927 * device/lib/printf_large.c: Temporary patch for bug 1358192:
1928 printf("%f"...) sets fraction to zero.
1930 2005-11-16 Raphael Neider <rneider AT web.de>
1932 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
1934 * src/pic/gen.c (genIfx): implemented for CARRY bit
1935 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
1936 to generic pointers, fixes #1357332,
1937 (pic16_movLit2f): NEW,
1938 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
1940 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1942 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1944 2005-11-11 Raphael Neider <rneider AT web.de>
1946 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1947 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1948 compute pointer's type from operand,
1949 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1950 improved single bit reads, fixes bug #1353379
1952 2005-11-09 Borut Razem <borut.razem AT siol.net>
1954 * support/scripts/sdcc.nsi: added lib/pic to the package
1956 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1958 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1960 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1962 * support/regression/tests/bug1348008.c: added
1963 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1964 * support/regression/tests/bug1337835.c: updated comment
1966 2005-11-06 Borut Razem <borut.razem AT siol.net>
1968 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1969 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1970 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1971 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1972 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1973 dynamic construction of cl_error_class and derivates - 2.nd try
1975 2005-11-05 Borut Razem <borut.razem AT siol.net>
1977 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1978 bug, which caused Bus Errors on sparc solaris
1980 2005-11-04 Borut Razem <borut.razem AT siol.net>
1982 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1983 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1984 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1985 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1986 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
1987 and derivates to resolve the initialization problem on OSX
1989 2005-11-02 Borut Razem <borut.razem AT siol.net>
1991 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1992 corrected typo - #include <winsock2.h>
1994 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
1996 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
1997 (_asxxxx_mapping): added org directive for future enhancements
1999 2005-11-01 Borut Razem <borut.razem AT siol.net>
2001 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2002 enabled sockets on WIN32
2003 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
2005 2005-10-31 Borut Razem <borut.razem AT siol.net>
2007 * support/regression/generate-cases.py: escape backslashes in {testcase}:
2008 WIN32 backslash path delimiters should be escaped when used in C strings
2009 * support/regression/tests/bitfields.c: exclude failing assertions for
2010 __CYGWIN32__ and __MINGW32__ hosts
2012 2005-10-30 Borut Razem <borut.razem AT siol.net>
2014 * src/SDCCutil.c: corrected double comparison typo
2016 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
2018 * device/lib/medium/Makefile: added for new memory model medium
2019 * device/include/asm/mcs51/features.h: updated for medium/pdata
2020 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
2021 added Multiply & Accumulate sbit's and MAC0_PAGE define
2022 * device/include/mcs51/c8051f300.h: added sfr16 definitions
2023 * device/include/mcs51/c8051f310.h: added sfr16 definitions
2024 * device/lib/_mullong.c: update for medium model
2025 * device/lib/incl.mk: added medium model
2026 * doc/sdccman.lyx: documented medium model
2027 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
2028 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
2029 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
2030 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
2031 (allocParms): set SCLS and OCLS to pdata for medium model
2032 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
2034 (powof2): return <0 if not power of 2
2035 * src/avr/gen.c (genBitWise): use updated powof2
2036 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
2037 (shiftR2Left2Result): small optimization in setup, save acc when storing,
2038 (shiftLLeftOrResult): use B if necessary
2039 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
2040 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
2041 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
2042 * support/regression/Makefile.in: added test-mcs51-medium
2043 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
2045 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
2047 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
2049 * device/lib/time.c (mktime): fixed bug 1334315
2051 2005-10-28 Raphael Neider <rneider AT web.de>
2053 * device/include/pic/p16f_common.inc: added common declarations
2054 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
2056 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2058 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
2059 (aopPutUsesAcc): added to predict accumulator use,
2060 (assignResultValue): save acc if necessary,
2061 (genMinusDec): store result if indirectly addressed,
2062 (genDivOneByte): save acc if necessary,
2063 (movLeft2Result): bugfix if left already in acc,
2064 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
2065 attention to accumulator use (esp. pdata),
2066 (genReceive): receive pdata correctly
2067 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
2068 * src/SDCCicode.h: added isOperandInPagedSpace prototype
2070 2005-10-27 Raphael Neider <rneider AT web.de>
2072 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
2074 2005-10-27 Raphael Neider <rneider AT web.de>
2076 * .version: changed version to 2.5.4
2077 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
2078 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
2079 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
2080 arithmetics support routines
2081 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
2082 * device/lib/Makefile.in: also create installdir for pic
2084 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
2086 * src/pic/device.c (dump_sfr): rewritten to delegate register
2087 placement to the linker (use `extern sym' rather than sym EQU addr),
2088 (validAddress): fixed to check last specified address
2089 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
2090 (popGetLit): truncate literal value to 8 bit,
2091 (popGet): moved assert to more appropriate place
2092 (popGetExternal): create pCode operand from and mark the according
2093 symbol as being `extern'
2094 (popGetAddr): added sanity check on immediate's offset, provide
2095 GPOINTER tag on demand
2096 (aopPut): fixed for immediates,
2097 (mov2w_op): move operand's address or contents to WREG (depending on
2098 operand type), safer variant of mov2w,
2099 (movwf,call_libraryfunc): NEW, handy abbreviations,
2100 (get_argument_pcop,get_return_val_pcop,pass_argument,
2101 get_returnvalue): interface for accessing function parameters and
2103 (assignResultValuei,genRet): use new parameter/return value interface
2104 (pic14_getDataSize): back to old version handling generic pointers,
2105 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
2106 provided implementation and/or fixed old one,
2107 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
2108 calls, removed legacy 8051 reference code
2109 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
2110 (loadSignToC): NEW, move the operands sign bit to CARRY,
2111 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
2112 genRightShiftSigned, accepts negative shift counts,
2113 (setup_fsr): load FSR and adjust IRP (indirect memory access),
2114 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
2115 generic pointers, __data pointers and __code pointers,
2116 (genUnpackBits,genPackBits): rewritten to work with generic pointers
2117 and signed bitfields, limit bitfields to 8 bit,
2118 (genDataPointerGet): fixed number of bytes read,
2119 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
2120 (genPointerGet,genPointerSet): fixed handling of __code pointers,
2121 pointers to constant data are no longer assumed to point to __code
2122 space, removed invalid pointer types,
2123 (bitpatternFromVal): retrieve the PICs representation of an integer
2125 (genDataPointerSet): fixed assigning to po_immediate operands,
2126 (genGenPointerSet): implemented as library call,
2127 (genIfx): fixed incorrect condition,
2128 (genAddrOf): limit generic pointers' addresses to 2 bytes,
2129 provide GPOINTER tag according to destination's storage class,
2130 (genCast): added code to handle casting to generic pointers, added
2131 sign-/zero extension of the result
2132 (aop_isLitLike,op_isLitLike): fixed handling of immediates
2133 * src/pic/gen.h: added macros to access IRP bit in STATUS register
2134 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
2136 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
2137 address/register resides in the shared banks
2138 (emitSymbolToFile): improved to handle global and `pinned' symbols,
2139 put all variables into separate sections (have the linker arrange
2141 (picglue): put init code and interrupt handlers in separate sections
2142 * src/pic/main.c: added port specific options table, modified to PORT
2143 structure to make GPOINTERs 3 byte, added pic14_options
2144 (_pic14_do_link): private linking routine (update paths to libraries,
2145 add libsdcc.lib by default)
2146 * src/pic/main.h: declare pic14_options
2147 * src/pic/pcode.c: fixed instructions i/o relations,
2148 (RegCond): reverted to correct version,
2149 (newpCodeOpLit): truncate literals to 8 bit,
2150 (genericPrint): added debug output,
2151 (getRegFromInstruction): fixed for various operand types, simplified
2152 (BuildFlow): fixed broken handling of isntructions with labels
2153 (LinkFlow): start at last instruction in flow (skip trailing comments),
2154 pass the flow on to the next instruction after CALL
2155 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
2156 (insertPCodeInstruction): fixed inserting after a skip instruction,
2157 (DoBankSelect): fixed for labeled instructions
2158 (OptimizepBlock): honor --nopeep switch
2159 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
2160 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
2161 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
2162 (pCodeOptime2pCodes): allow disabling this optimization via
2163 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
2164 but is still buggy), started implementation of a dataflow based
2165 pCode optimization (CSE + dead code elimination)
2166 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
2167 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
2168 names are independant of the stack location and therefore portable across
2171 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2173 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
2174 (selectSpil): fixed bug 1337835 by not spilling bit variables
2175 * support/regression/tests/bug1337835.c: added test for this bug
2176 * src/mcs51/peeph.def: restart after rule 3.c,
2177 addded rules 263.x to optimize loading constants
2179 2005-10-26 Raphael Neider <rneider AT web.de>
2181 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
2182 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
2183 (genAssign): emit warning when casting literals to generic pointer
2184 type, also applies when taking the address of a fixed variable,
2185 (genCast): improved casting to generic pointers
2186 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
2187 extern variables, added verbose error message
2188 * device/include/pic16/{string.h,errno.h}: added #pragma library c
2190 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
2192 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
2193 carry must be complemented too
2194 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
2195 could be emitted by genMinus
2196 * src/SDCCval.c (constVal): fixed bug 1305065
2198 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
2200 * src/SDCCast.c (addCast): added promotion for bit variables
2201 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
2202 promotion casts + optimisation
2203 (optimizeGetWord): fix warning 'i' might be used uninitialized
2204 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
2205 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
2207 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
2209 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
2210 all chars are promoted to int; promotion should be handled in SDCCast.c
2212 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2214 * device/lib/_strcmp.c: Fixed bug 1326457
2216 2005-10-11 Raphael Neider <rneider AT web.de>
2218 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
2219 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
2221 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2223 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
2224 * support/regression/tests/sfr16.c: added test for the sfr32 bug
2226 2005-10-04 Raphael Neider <rneider AT web.de>
2228 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
2229 device/lib/pic16/pics.all: added pic18f1320
2230 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
2232 2005-09-30 Raphael Neider <rneider AT web.de>
2234 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
2235 * src/pic16/devices.inc: NEW, provides device descriptions
2236 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
2238 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2240 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
2243 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
2245 * doc/sdccman.lyx: updated Highest Order Bit documentation,
2246 documented Any Order Bit, Higher Order Byte and Higher Order Word
2247 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
2248 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
2249 (optimizeGetAbit): new, to get any bit, not only the high bit,
2250 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
2251 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
2252 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
2253 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
2254 RIGHT_OP: also try GETBYTE, GETWORD optimization,
2255 GETABIT, GETBYTE, GETWORD: decorate them,
2256 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
2257 (ast_print): added GETABIT, GETBYTE, GETWORD
2258 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
2259 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
2260 (geniCodeBinary): new generic binary icode,
2261 (ast2iCode): added GETABIT, GETBYTE, GETWORD
2262 * src/port.h: updated comment for PORT.hasExtBitOp
2263 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
2264 (genGetByte): new, to get a single byte,
2265 (genGetWord): new, to get a word from a long,
2266 (gen51Code): added GETABIT, GETBYTE, GETWORD
2267 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
2269 2005-09-23 Raphael Neider <rneider AT web.de>
2271 * configure.in, configure: have device/lib/pic configured
2272 * device/lib/Makefile.in: added model-pic14
2273 * device/lib/clean.mk: added pic/ to clean rule
2274 * device/lib/pic: added rudimentary pic14 library providing support
2275 functions for multiplication/division/generic pointer access
2276 * src/SDCCopt.c (convilong): mark support functions as extern
2277 for pic14 port as well
2278 * src/pic/gen.c (genMult): added assertions,
2279 (genpic14Code): emit warning on unhandled iCodes
2280 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
2281 * src/pic/pcode.c (pCodeOpCopy),
2282 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
2283 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
2284 SFR_REGISTER}), made safe for future extensions
2285 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
2286 instructions even if preceeded by SKIP instructions (also remove
2287 them); removed unused code
2288 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
2289 prevents leaving parts of the structure uninitialized after copying
2291 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
2293 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
2295 * support/regression/tests/addsub.c: added test for the bug
2297 2005-09-21 Raphael Neider <rneider AT web.de>
2299 * device/include/pic16/pic18f1220.h,
2300 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
2301 * device/lib/pic16/Makefile.rules: added missing opening paren
2302 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
2303 are provided in genutils.c,
2304 (genUminusFloat,genUminus,genCmpEq): added asserts on different
2305 operand/result sizes,
2306 (genCmp): assert on NULL pointers first, then check deref'ed values
2307 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
2310 2005-09-18 Raphael Neider <rneider AT web.de>
2312 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
2313 as these are now unused,
2314 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
2315 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
2316 local, avoids uninitialized pointer dereference on r->name
2317 * src/pic16/ralloc.c (newReg): fixed indentation
2319 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
2321 * src/SDCCval.c (constVal): fixed bug 730366
2322 * support/Util/SDCCerr.c,
2323 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
2325 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2327 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
2329 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
2331 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
2333 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2335 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
2336 (hex2dec): made hex_digit unsigned char, removed ascii dependance
2337 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
2338 (hex2dec): made hex_digit unsigned char, removed ascii dependance
2339 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
2340 * packihx/packihx.c (hexDigit): made c unsigned char
2341 * as/mcs51/lklibr.c (fndsym),
2342 * link/z80/lkgb.c (gb),
2343 * link/z80/lklibr.c (fndsym),
2344 * link/z80/lkrloc.c (relr),
2345 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
2346 * src/SDCC.lex (checkCurrFile, process_pragma),
2347 * src/SDCCglue.c (spacesToUnderscores),
2348 * src/SDCCmain.c (setParseWithComma, processFile),
2349 * src/asm.c (tvsprintf, printCLine),
2350 * src/avr/gen.c (emitcode, aopPut),
2351 * src/ds390/gen.c (emitcode),
2352 * src/hc08/gen.c (emitcode, emitinline),
2353 * src/mcs51/gen.c (emitcode, genInline),
2354 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2356 * src/pic/ralloc.c (debugLog),
2357 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2359 * src/pic16/ralloc.c (debugLog),
2360 * src/z80/main.c (_process_pragma):
2361 made all ctype.h function calls safe
2362 * src/SDCCopt.c: include math.h for fabs
2363 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
2364 and used them throughout the code to make ctype.h function calls safe
2365 * src/ds390/main.c (asmLineNodeFromLineNode),
2366 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
2367 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
2369 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
2370 (newpCodeAsmDir): made ctype.h function calls safe
2371 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
2372 pic16_emitcode): made lbp unsigned char*
2373 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
2374 (pic16_newpCodeAsmDir): made ctype.h function calls safe
2375 * src/xa51/gen.c (emitcode),
2376 * src/z80/gen.c (_emit2): made lbp unsigned char*
2377 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
2380 2005-09-05 Raphael Neider <rneider AT web.de>
2382 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
2383 access bank splitpoint
2385 2005-09-05 Raphael Neider <rneider AT web.de>
2387 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
2389 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
2391 * .version: changed to version 2.5.3
2392 * doc/sdccman.lyx: changed version to 2.5.3,
2393 documented --codeseg and --constseg and pragma codeseg and constseg,
2394 documented bit parameters (reentrant) and bit returning
2395 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
2396 currFunc->recvSize, but is this ok for all ports?
2397 (ast2iCode): result of ~ on unsigned char must be cast to int for
2399 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
2400 function pointers in bit space
2401 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
2402 (processFuncArgs): call port.reg_parm() with reentrancy info
2410 * src/z80/main.c: port.reg_parm prototype extended with
2411 "bool reentrant" parameter
2412 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
2413 options.stackAuto for allocating bit register parameters
2414 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
2415 (genSend): set BitBankUsed if it is,
2416 (selectRegBank): factored out of genCall for use in genPcall,
2417 (genCall): removed redundant dtype assignmen, use selectRegBank,
2418 (genPcall): handle returning in Carry properly, save in F0 if needed,
2419 (genReceive): handle bit register parameters
2420 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
2421 (mcs51_assignRegisters): enable bit registers for all reentrant
2422 functions and don't set BitBankUsed unconditionally
2423 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
2424 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
2425 * support/regression/tests/funptrs.c: added tests for BOOL and for return
2427 2005-08-27 Borut Razem <borut.razem AT siol.net>
2429 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
2430 ppc-osx (Darwin) does not support -u option. It seems that it is
2431 supported only on Linux - GNU cp
2433 2005-08-25 Borut Razem <borut.razem AT siol.net>
2435 * sim/ucsim/gui.src/serio.src/Makefile.in,
2436 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2437 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2438 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
2439 install and strip, since the strip at /usr/ccs/bin should be used
2442 2005-08-24 Borut Razem <borut.razem AT siol.net>
2444 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
2446 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
2448 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
2451 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
2453 * as/mcs51/aslink.h: completed lkrloc.c prototypes
2454 * as/mcs51/lkmain.c (link_main): fixed warning
2455 * device/include/stdbool.h: ds390 has no advanced bit support yet
2456 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
2457 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
2458 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
2459 and updated their macros
2460 * src/SDCCval.c (constVal): updated comment for renamed b_long
2462 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
2464 * as/mcs51/asdata.c: changed ctype['['] to BINOP
2465 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
2466 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
2467 (oprio): set priority for '['
2468 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
2470 * as/mcs51/asm.h: added defines R_BIT and S_BIT
2471 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
2472 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
2473 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
2474 added overlayable BIT_BANK area
2475 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
2476 (summary2): explain 'T' in legenda
2477 * as/mcs51/lkrloc.c: replaced old K&R style,
2478 (relr): added R_BIT processing,
2479 (errmsg): added "Bit-addressable relocation error",
2480 (adb_bit): added for converting from byte- to bit-addressable space,
2481 (adb_24_bit): added for converting from byte- to bit-addressable space
2482 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
2483 used in reentrant functions now even as return value
2484 * device/lib/_gptrput.c (_gptrput): removed obsolete code
2485 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
2486 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
2487 * src/SDCCglobl.h: added indicator BitBankUsed
2488 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
2489 the bit registers b0-b7
2490 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
2491 (geniCodeCast): fixed bug 1263853,
2492 (geniCodeLogicAndOr): put result in bool or char,
2493 (geniCodeReceive): added parameter func for accessing the return type,
2494 (geniCodeFunctionBody): pass func to geniCodeReceive
2495 * src/SDCCmain.c: added indicator BitBankUsed
2496 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
2497 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
2498 (checkSClass): don't put automatic bool/bit on stack,
2499 (checkFunction): removed check on function cannot return bit
2500 * src/SDCCsymt.h: added newBoolLink prototype
2501 * src/mcs51/gen.c (rb1regs): added bit registers,
2502 (movc): created for assigning to carry,
2503 (pushReg, popReg): created for pushing registers,
2504 (sameRegs): check both AOP_REG and AOP_CRY types,
2505 (aopOp): handle bit registers,
2506 (aopPut): optimization no self-assign,
2507 (saveRegisters): push reg->base (bits) only once for bit registers,
2509 (unsaveRegisters): pop reg->base only once and use popReg,
2510 (assignResultValue): added parameter func and return in carry for bits,
2511 (genIpush): optimization no reload in A if not changed,
2512 (genSend): bit parameters in reentrant functions are passed in bit
2513 registers by first assigning to bits in B, then save registers and
2515 (genCall): handle returning in Carry properly, save it in F0 if needed,
2516 (genPcall): updated assignResultValue call, this is not safe yet for bit
2517 returning function !!!
2518 (genFunction): don't generate equ's for bit registers and use pushReg,
2519 (genEndFunction): take care of bit returning functions and use popReg,
2520 (genRet): return bit in Carry,
2521 (genIfx): optimize bit registers and other directly addressable bits,
2522 (genReceive): updated assignResultValue call
2523 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
2524 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
2525 registers when using stack-auto
2526 * src/mcs51/ralloc.c (_G): added allBitregs,
2527 (regs8051): added the bit registers,
2528 (createStackSpil): use macro IS_BIT,
2529 (getRegBit): added to allocate a bit register, else spill,
2530 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
2531 (updateRegUsage): factored out to ease stepping while debugging,
2532 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
2533 also allocate bit registers,
2534 (fillGaps): handle bit registers,
2535 (findAllBitregs): added to create bit vector with all bit registers,
2536 (mcs51_allBitregs): returns this bit vector,
2537 (mcs51_assignRegisters): when using stack-auto use bit registers for
2538 passing parameters and creating local variables
2539 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
2541 2005-08-22 Borut Razem <borut.razem AT siol.net>
2543 * device/lib/Makefile.in: replaced find option -or with -o
2544 to make it run on solaris
2546 2005-08-22 Raphael Neider <rneider AT web.de>
2548 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
2549 fixes #1265442 (crash on Solaris)
2551 2005-08-20 Borut Razem <borut.razem AT siol.net>
2553 * configure, configure.in: added tests for libsocket and libnsl libraries,
2554 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
2555 from support/regression/Makefile.in
2556 * support/regression/Makefile.in: added
2557 * device/lib/pic16/Makefile.common.in: force make to use bash shell
2558 * sim/ucsim/libtool: regenerated on sparc-solaris
2559 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2560 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
2561 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
2562 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
2563 sparc-solaris, which doesn't use GNU ld linker
2564 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
2565 * as/Makefile: find on sparc-solaris does not support -maxdepth option
2567 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
2569 * src/mcs51/peeph.def: updated comments
2571 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2573 * device/lib/_gptrget.c,
2574 * device/lib/_gptrput.c: slightly shorter
2575 * doc/sdccman.lyx: incremented version
2576 * src/mcs51/peeph.def: moved peephole comments to the line of first
2577 change to better keep line correlation, reanimated 186.e
2578 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
2580 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2582 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
2583 David Saxton with quotes around file name.
2585 2005-08-15 Borut Razem <borut.razem AT siol.net>
2587 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
2588 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
2589 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
2590 make tests run on x86_64 platform
2592 2005-08-13 Raphael Neider <rneider AT web.de>
2594 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
2595 as it might be executed DURING a build (parallel make is wonderful)
2597 2005-08-13 Raphael Neider <rneider AT web.de>
2599 * device/lib/Makefile.in (port-specific-objects-pic16):
2600 revert to cp $(PORT)/bin/*.* $(PORTDIR)
2601 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
2603 * device/lib/pic16/Makefile.rules: build subdirs before creating
2604 the library, removed builddir rule, create $(builddir) early in
2605 recurse rule, use empty recurse rule for leaf directories
2606 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
2607 mkdir errors (race condition), removed duplicate suffix "hex"
2609 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
2610 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
2611 prevents mkdir -p from aborting on Alpha
2613 2005-08-12 Raphael Neider <rneider AT web.de>
2615 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
2616 db-statements in order to allow for arrays of pointers in code
2617 sections to be placed without interspersed 0-padding, fixes
2619 * (emitStatistics): fixed division by zero for pic18f1220
2620 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
2621 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
2622 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
2623 * (pic16_pCodeConstString): keep track of already emitted string
2624 literals to prevent "duplicate definitions of symbol _str_NR"
2625 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
2627 * device/lib/Makefile.in: ignore failing PIC16 library builds
2628 * device/lib/pic16/Makefile: do not build if gputils are missing
2629 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
2631 2005-08-10 Raphael Neider <rneider AT web.de>
2633 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
2636 2005-08-10 Raphael Neider <rneider AT web.de>
2638 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
2639 Rokas' patch to add the new fixed point type "__fixed16x16"
2640 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
2641 functions for __fixed16x16 arithmetics
2642 * device/lib/pic16: reimplemented the build system to support
2643 a separate build directory, better handling of libio (create
2644 the library in a separate subdir for each architecture) and
2645 easier configuration (centralized in Makefile.common)
2647 2005-08-07 Raphael Neider <rneider AT web.de>
2649 * src/pic16/gen.c (genrshTwo): fixed sign extension
2650 * src/pic16/device.c: added pic18f2320, 4220 and 4320
2651 * device/include/pic16/pic18f2220.h: changed some bit definitions,
2653 * device/include/pic16/pic18f4220.h: NEW, header for
2654 pic18f4220 and pic18f4320
2655 * device/include/pic16/pic18fregs.h: added new devices,
2656 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
2657 * device/include/pic16/signal.h: resolved name clashes
2658 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
2659 to also allow testing for interrupt enable bits, added
2660 comments on how to use the macros
2661 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
2662 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
2663 register definitions for the devices
2664 * device/lib/pic16/pics.all: added new devices
2665 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
2667 * device/lib/pic16/libc/stdlib/memfree: do not count
2668 the block header as free memory
2669 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
2670 simplified and added missing end-of-blocklist-marker
2671 (reported by Peter Onion, fixes #1252814)
2672 * (_mergeHeapBlock): fixed loop condition
2673 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
2674 len==0, restructured code
2675 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
2676 up a bit, reduced bitfield accesses, prevent endless loops
2677 in case of heap corruption
2678 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
2679 "unreferenced arguments/must return a value" warnings
2680 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
2681 replaced BAUDREG with SPBRG
2682 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
2683 device/lib/pic16/debug/gstack/gstack.c: replaced
2684 _naked, _asm, _endasm with __naked, __asm, __endasm
2686 2005-08-05 Raphael Neider <rneider AT web.de>
2688 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
2689 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
2691 2005-08-05 Borut Razem <borut.razem AT siol.net>
2693 * device/lib/Makefile.in: added missing ';'
2694 * configure: removed ^M characters
2696 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2698 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
2699 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
2702 2005-08-04 Borut Razem <borut.razem AT siol.net>
2704 * configure.in: pic16 libraries build 2nd try - enable running
2705 configure in device/lib/pic16
2706 * configure: regenerated from configure.in
2707 * device/lib/Makefile.in: create $(PORT)/bin directory
2709 2005-08-03 Raphael Neider <rneider AT web.de>
2711 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
2712 to get/set values via pointers
2713 * (genUnpackBits,genPackBits): changed detection of
2714 ptr->bitfield vs. sym.bitfield, fixed access via generic
2715 pointers, removed dead (wrong) code for multibyte bitfields
2716 * (genNearPointerGet, genGenPointerGet): removed useless code,
2717 fixed bitfield detection, fixes #1250594
2718 * (genNearPointerSet): removed useless code
2719 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
2720 and introduced macro pic16_emitpcode that conditionally emits
2721 the origin of the following pCode (useful for debugging SDCC)
2722 * src/pic16/pcode.c: changed (and disabled) some debug outputs
2723 * (createDefmap): fixed handling of LFSR for --optimize-df
2725 2005-08-02 Borut Razem <borut.razem AT siol.net>
2727 * device/lib/Makefile.in: pic16 libraries build enabled since
2728 gputils-0.13.2 are now localy installed at sourceforge's compile farm
2730 2005-08-02 Raphael Neider <rneider AT web.de>
2732 * src/pic16/gen.c (genPackBits): removed deprecated warning
2733 * (genGenPointerSet): fixed bitfield detection
2735 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2737 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
2739 2005-07-31 Raphael Neider <rneider AT web.de>
2741 * device/lib/pic16/libdev/pic18f458.c,
2742 device/include/pic16/pic18f458.h: added missing T0CONbits
2744 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2746 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
2748 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
2750 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
2752 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2754 * device/include/mcs51/at89c51ed2.h: added.
2756 2005-07-23 Raphael Neider <rneider AT web.de>
2758 * src/pic/gen.h: added emitpcode macro for debugging
2759 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
2760 and replace by macro adding debug information on demand
2761 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
2762 * (gencjne): tried to fix; replaced with correct (slower) code
2763 * (gen{Unp,P}ackBits): fixed single bit access
2764 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
2765 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
2766 previous instruction
2767 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
2768 register has to be handled with care (forbidding movement
2769 of assignments/uses, removing assignments completely, ...)
2770 * (pCodeOptime2pCodes): make use of regIsSpecial
2771 * added lots of debugging output (commented out)
2772 * src/pic/rallloc.c (deassignLRs): prevent operand registers
2773 from being reused as result UNLESS it is known to work
2775 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2777 * support/Util/dbuf.h: include <stddef.h> for size_t
2778 * .version: changed to version 2.5.2
2780 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2782 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
2784 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2786 * src/hc08/gen.c (genMinus): fixed bug #1241835,
2787 (genModOneByte): removed needless psha/pula
2789 2005-07-22 Raphael Neider <rneider AT web.de>
2791 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
2792 have PIC14 handled like PIC16, fixes broken pic14 linker calls
2793 * src/pic/gen.c (resolveIfx): do not "invent" labels
2794 * (genSkipc): changed to positive logic
2795 * (genSkipCond): removed as no longer needed
2796 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
2798 * (genLeftShift): check operands are in different registers
2799 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
2800 INCF does not update CARRY...
2801 * src/pic/main.c: fixed _linkCmd
2802 * src/pic/pcode.c (unlinkpCode): added inactive code
2803 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
2804 alive (do not assign result and operand overlapping registers)
2806 2005-07-22 Raphael Neider <rneider AT web.de>
2808 * src/pic/device.c (dump_sfr): replaced register declaration with
2809 call to emitSymbolToFile() to avoid duplicate symbols
2810 * (assignRelocatableRegisters): do not declare external symbols
2811 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
2812 right (take size of type, not etype)
2813 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
2814 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
2815 * (packRegsForAccUse): disabled assignment of WREG as
2816 the result reg to prevent occurence of just fixed #1235003,
2818 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
2819 symbols (avoids duplicate symbols in .asm file)
2820 * (pic14emitRegularMap): use emitSymbolToFile()
2821 * src/pic/gen.c (aopOp): fixed spillLocation handling
2822 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
2823 * (genDataPointerSet): removed unneccessary variables/output
2825 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
2827 * as/mcs51/lkarea.c: enlarged codemap for banked memory
2828 * device/lib/mcs51/crtbank.asm: added # to 0x0F
2830 2005-07-21 Raphael Neider <rneider AT web.de>
2832 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
2833 architecture cannot handle them efficiently, fixes bug #1235003
2834 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
2835 check for empty sets before using them (fixes bug #1232190)
2837 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
2839 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
2840 (lnksect2): generate warnings for memory overlap
2841 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
2842 constseg to set the name of these segments so you can instruct the linker
2843 to place them in banks
2844 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
2845 * src/SDCCglobl.h: added MODEL_HUGE to enum,
2846 added code_seg and const_seg to options
2847 * src/SDCCglue.c (emitMaps): use options.const_seg,
2848 (createInterruptVect): put interrupt vectors in segment HOME,
2849 (glue): put HOME before static segment and put the main glue in HOME,
2850 (glue): use options.code_seg
2851 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
2852 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
2853 these segments so you can instruct the linker to place them in banks
2854 (linkEdit): use code_loc for HOME segment which should be the first
2855 segment in code memory now
2856 * src/SDCCmem.c: fixed more stuff like bug 1238386
2857 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
2858 (changePointer): don't change function pointers to code pointers for
2860 (compareType): added exceptional check for banked function pointers
2861 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
2862 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
2863 after static in code memory
2864 * src/mcs51/gen.c: added aopLiteralLong prototype,
2865 (aopForSym): use getSize for functions,
2866 (genCall): generate banked calls over one trampoline __sdcc_banked_call
2867 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
2868 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
2870 (genPcall): use call for literal function pointers and generate banked
2871 calls over the one trampoline so there's only one place for the user to
2872 modify according to his/hers hardware,
2873 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
2874 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
2875 * src/mcs51/main.c: added keyword banked,
2876 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
2877 * support/Util/SDCCerr.c,
2878 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
2879 needed for passing the bank and address to the trampoline
2880 * device/lib/mcs51/crtbank.asm: added for bankswitching
2881 * device/lib/mcs51/Makefile: added crtbank
2883 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2885 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
2886 for fields at offset 0 of a struct or union as reported
2887 on 2005-07-07 in the developer mailing list.
2889 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2891 * src/SDCCmem.c: fixed bug 1238386
2893 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2895 * src/mcs51/peeph.def: added labelrefcounting for peepholes
2896 (patch #1144962), added peephole 300, enabled 259.x
2897 * doc/sdccman.lyx: removed screenshot and provided link instead
2899 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2901 * doc/sdccman.lyx: added section about debugging with ddd
2902 * doc/figures/ddd_example.eps: screenshot of debugging session
2904 2005-07-04 Raphael Neider <rneider AT web.de>
2906 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
2907 like CODE pointers, fixes #1115683
2908 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
2909 call, fixes bugs #1232211, #1228110,
2910 fixed wrong casts to pCodeFlow from pCodeInstructions
2912 2005-07-04 Raphael Neider <rneider AT web.de>
2914 * src/pic/gen.c (popGet): changed assert to allow for
2916 * (popGetAddr): changed signature to provide
2917 an additional index, patched all call sites
2918 * (genCmpEq): handle literal-like operands correctly
2919 * (genAddrOf): added sanity checks on __code/__data pointers
2920 * (genAssign): added handling of symbols from __code section
2921 * (gencjne): do not generate code for comparisons whose result
2922 is neither stored nor used, fixes bug #1171114
2923 * (AccLsh, AccRsh): operate on operand instead of WREG
2924 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
2925 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
2927 * rewrote complete shift-by-literal logic, commented unused
2929 * (genConstPointerGet): get multiple bytes (if result size > 1),
2930 fixed handling of non-immediate addresses
2931 * (genPointerGet): handle CODE pointers like CONST pointers
2932 * (genpic14Code): insert C-SRC lines as Cource-pCodes
2933 * ({aop,op}_isLitLike): NEW, single place to decide whether an
2934 operand is to be treated as a literal or not
2935 * (mov2w,genPcall,genCmpEq),
2936 src/pic/genarith.c: use aop_isLitLike() to decide between
2937 literal/register contents
2938 * (addSign): added missing offset
2939 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2940 only emit comment in debug-mode,
2941 use {aop,op}_isLitLike throughout the file
2942 * src/pic/glue.c: fix initializers for pointers (work in progress)
2943 * src/pic/pcode.c (get_op): honor index on _const symbols
2944 * ({reset,dump}pCodeStatistics): NEW, estimate code size
2945 * (dumppBlock): added pCode size estimation
2946 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2947 check for IS_SYMOP before OP_SYMBOL'ing
2948 * fixed indentation, compacted switch-statements
2949 * (allocReg): find free register and allocate it instead of
2950 allocating new registers all the time
2951 * (deassignLRs): prevent POINTER_GET's from being assigned the same
2952 registers as its operands (necessary only for multibyte GETs)
2954 2005-07-01 Raphael Neider <rneider AT web.de>
2956 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2957 debugging .asm-output macros FENTRY + FEXIT
2958 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2960 * (emitpComment): NEW, printf to pCode
2961 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2963 * (popGetAddr): NEW, variant of popGet to access an immediates
2964 high(er) bytes instead of the n'th byte of memory they reference,
2965 replaced popGet with popGetAddr where neccessary
2966 * (genDataPointerGet): reactivated and fixed implementation
2967 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2969 * (genDataPointerSet): fixed multibyte assignments
2970 * (genpic14Code): fixed --i-code-in-asm handling
2971 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2972 * (genPlus): fixed index-out-of-bounds error
2973 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2974 * src/pic/ralloc.c: added debugging output macro FENTRY2
2975 * (spillThis): fixed indentation, enbraced for-body for clarity
2976 * (rematStr): commented out as now unused
2977 * (regTypeNum): commented out special spill case (overwrites
2979 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2981 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
2983 * doc/sdccman.lyx: documented sfr16/sfr32,
2984 added example for using storage class with function pointers
2985 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
2987 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
2989 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
2990 * device/lib/_itoa.c,
2991 * device/lib/_ltoa.c: optimized codesize
2992 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
2993 but don't know how to suppress the double warning.
2994 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
2995 * support/Util/SDCCerr.c,
2996 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
2998 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
3000 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
3001 fixed old K&R prototypes
3002 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
3003 * device/lib/_gptrget.c,
3004 * device/lib/_gptrgetc.c,
3005 * device/lib/_gptrput.c: changed versions for new memory indicator values,
3006 also new versions for small generic pointers and banked generic pointers
3007 * src/port.h: added const_name
3008 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
3009 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
3010 * src/SDCCcse.c (findPrevIc): check all associative operators
3011 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
3012 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
3013 * src/SDCCmem.c: updated comments,
3014 set far-space to 0 for pdata, results in optimized code
3015 * src/SDCCmem.h: added macro CONST_NAME
3016 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
3017 moving the info into the highest bits, see also gptrget/gptrput
3018 * src/src.dsp: added sdcc.ico to project files
3019 * src/avr/gen.c (genCast): fixed bug 0x%d
3020 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
3021 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
3022 relation between ptr_type and DCL_TYPE,
3023 (genCast): fixed bug 0x%d
3024 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
3025 (CODE)" for const_name
3026 * src/hc08/gen.c (genCast): fixed bug 0x%d
3027 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
3028 (hc08_port): added "CONST (CODE)" for const_name
3029 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
3030 (aopForRemat, adjustArithmeticResult): disconnected direct relation
3031 between ptr_type and DCL_TYPE,
3032 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
3033 operand* and took AOP() inside function so sfr-ness can be checked,
3034 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
3036 (genFunction, genEndFunction): optimized stack setup,
3037 (genMinus): optimized for literals with ending zeroes (in bytes),
3038 (genCast): fixed bug 0x%d
3039 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
3040 (mcs51_port): added "CONST (CODE)" for const_name
3041 * src/mcs51/peeph.def: made rule 226 more generic
3042 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
3043 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
3044 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
3045 * src/z80/main.c (z80_port): added NULL for const_name,
3046 (gbz80_port): added NULL for const_name
3047 * support/regression/tests/bug663539.c,
3048 * support/regression/tests/sfr16.c: new tests
3050 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3052 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
3054 2005-06-24 Raphael Neider <rneider AT web.de>
3056 * device/lib/pic16/libdev/pic18f[68][567]20.c:
3058 * device/include/pic16/signal.h: added USBIF
3061 2005-06-24 Raphael Neider <rneider AT web.de>
3063 * device/lib/pic16/libdev/pic18f2455.c,
3064 device/include/pic16/pic18f2455.h: NEW
3065 * device/include/pic16/pic18fregs.h,
3066 device/lib/pic16/pics.all,
3067 src/pic16/device.c: added 18f2455
3068 * device/lib/pic16/libdev/pic18f[68][567]20.c,
3069 device/include/pic16/{pic18f[68][567].h,usart.h}:
3070 replaced MULTIPLE_USARTS define with more relaible
3071 compatibility sfrs (for USART access)
3073 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
3075 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
3076 and the output asm file line is printed on two lines.
3078 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3080 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
3081 BGT, BLE, BHI, and BLS instructions
3082 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
3084 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
3085 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
3087 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
3089 2005-06-15 Raphael Neider <rneider AT web.de>
3091 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
3092 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
3093 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
3094 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
3095 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
3097 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3099 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
3100 Marcel Telka in bug #1215704
3102 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
3104 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
3105 located in shared memory bank.
3107 2005-05-31 Raphael Neider <rneider AT web.de>
3109 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
3110 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
3111 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
3113 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
3115 * device/lib/_strncpy.c: fixed the fix
3117 2005-05-26 Raphael Neider <rneider AT web.de>
3119 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
3120 initializers with \0, bug #1208187
3121 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
3122 intializers with \0, bug #1208187
3124 2005-05-26 Raphael Neider <rneider AT web.de>
3126 * src/pic16/glue.c (pic16_printIvalChar): fixed string
3127 initializers with \0, bug #1208187
3128 * src/pic16/main.c (_process_pragma): added sanity checks
3129 for stack position and size, emit warnings when appropriate
3131 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3133 * device/lib/_strncpy.c: fixed not filling with \0
3135 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3137 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
3139 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
3140 compound_statement),
3142 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
3144 2005-05-24 Raphael Neider <rneider AT web.de>
3146 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
3148 2005-05-24 Raphael Neider <rneider AT web.de>
3150 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
3151 TRISE definitions, closes bug #1162453
3153 2005-05-22 Raphael Neider <rneider AT web.de>
3155 * src/pic16/main.c (_process_pragma): check for missing
3156 arguments to pragmas code and udata
3157 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
3158 consistency fixes to match other headers (thanks to Jim Paris)
3159 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
3161 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3163 * src/SDCCicode.c (isOperandEqual): fixed missing ;
3165 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
3167 * support/regression/tests/bug1198642.c: new test
3168 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
3169 * src/SDCCcse.c (findPrevIc): added comment, please have a look
3170 * support/scripts/resource.h,
3171 * support/scripts/resource.rc,
3172 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
3173 * support/scripts/sdcc.ico: added 32x32 icon
3175 2005-05-18 Raphael Neider <rneider AT web.de>
3177 * device/lib/pic16/libdev/pic18f*.c,
3178 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
3179 keywords to "__sfr" and "__at (X)"
3180 * device/include/pic16/pic18fregs.h: added pic18f4520
3181 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
3182 #1203088 (MPLAB compatibility)
3184 2005-05-17 Raphael Neider <rneider AT web.de>
3186 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
3187 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
3188 * device/lib/pic16/pics.all: added new devices
3189 * src/pic16/device.c: added support for pic18f4520
3191 2005-05-16 Raphael Neider <rneider AT web.de>
3192 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
3193 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
3194 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
3195 convenience function for bit access
3197 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3199 * device/lib/printf_large.c: fixed bug 1193299
3200 * support/regression/tests/bug1057979.c: added test %3.3s
3202 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3204 * device/include/mcs51/8051.h,
3205 * device/include/mcs51/8052.h: made parseable with lint
3206 * device/include/mcs51/lint.h: added include file for (sp)lint
3207 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
3208 * doc/cdbfileformat.lyx,
3209 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
3211 2005-05-14 Raphael Neider <rneider AT web.de>
3213 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
3214 * device/lib/pic16/libc/stdlib/itoa.c (new)
3215 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
3216 * device/lib/pic16/libio/Makefile: exclude subdir according to
3217 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
3218 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
3219 * src/pic16/gen.c (genFunction): prevent annoying warning
3220 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
3222 * support/cpp2/cppmain.c (cpp_output_string): new
3223 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
3226 2005-05-13 Borut Razem <borut.razem AT siol.net>
3228 * src/SDCCmain.c (linkEdit): fixed bug 1195202
3230 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3232 * .version: changed to version 2.5.1; back to bleeding edge development
3234 2005-05-11 Borut Razem <borut.razem AT siol.net>
3236 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
3237 generate PDF version 1.3 documents
3239 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3241 * .version: changed to version 2.5.0
3243 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3245 * doc/sdccman.lyx: updated weblinks, index and smaller updates
3247 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3249 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
3250 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
3251 well as many smaller updates.
3252 * .version: changed to version 2.5.0-pre1
3254 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3256 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
3258 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3260 * support/regression/tests/bug1185672.c: added
3261 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
3263 * src/mcs51/gen.c (genCall): added comments, made it look safer
3264 * src/mcs51/gen.c (genEndFunction): simplified
3266 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3268 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
3270 2005-04-14 Borut Razem <borut.razem AT siol.net>
3272 * fixed bug 1045046 - SIGSEGV with really simple code?:
3273 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
3274 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
3276 2005-04-14 Borut Razem <borut.razem AT siol.net>
3278 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
3279 src/pic16/device.h: temporarily disabled experimental #inline pragma
3282 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
3284 * device/include/z80/stdio.h,
3285 * device/include/z80/string.h: removed these highly incomplete files so
3286 SDCC can use the default ones in device/include/
3288 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3290 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
3292 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
3295 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3297 * device/include/malloc.h: removed redundant __reentrant prototypes
3298 * device/lib/_mullong.c: added working xstack variant in asm (C version
3299 doesn't pass regression tests)
3300 * device/lib/bpx.c: used __data and made bpx char for mcs51
3301 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
3302 (createFunction): fixed bug with xstackPtr
3303 * src/SDCCcse.c: corrected comments
3304 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
3305 (killDeadCode, eBBlockFromiCode): removed unused code
3306 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
3308 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
3309 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
3310 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
3311 (genModOneByte): fixed warning in MSVC
3312 * src/mcs51/main.c (): added comments
3313 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
3315 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3317 * src/SDCCmain.c (linkEdit): oops, changed one line too many
3319 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
3321 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
3323 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
3325 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
3326 characters arrays of larger size than the declared one.
3328 2005-04-10 Borut Razem <borut.razem AT siol.net>
3330 * src/pic/gen.c (genInline),
3331 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
3332 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
3333 (findNextInstruction), (findPrevInstruction),
3334 (findInstructionUsingLabel),
3335 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
3336 * src/pic/pcode.c (findLabel): added missing '\n'
3337 * src/src.dsp: added SDCCdwarf2.c to the project
3339 2005-04-09 Borut Razem <borut.razem AT siol.net>
3341 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
3343 2005-04-08 Raphael Neider <rneider AT web.de>
3345 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
3346 into the chain after a given one) and mergeDefmapSymbols (combine
3347 defmap entries for each symbol per pcode)
3348 * (createDefmap): have defmap entries merged in the end
3349 * (defmapReplaceSymRef): split defmap entries covering two accesses to
3350 a symbol before replacing one access type's symbol, merge symbols in
3351 the end (replacement symbol might already have an entry)
3352 * (assignValnums): keep reference to written WREG intact
3354 2005-04-08 Raphael Neider <rneider AT web.de>
3356 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
3359 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
3361 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
3364 2005-04-07 Raphael Neider <rneider AT web.de>
3366 * device/include/pic16/usart.h: added compatibility defines for
3367 devices with more than one USART
3368 * device/include/pic16/pic18f[68][567]20.h: activated above defines
3370 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3372 * device/lib/Makefile.in: updated for port specific include
3374 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3376 * support/regression/ports/mcs51/spec.mk: added mcs51 include
3378 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3380 * device/include/8051.h,
3381 * device/include/8052.h,
3382 * device/include/at89S8252.h,
3383 * device/include/at89c55.h,
3384 * device/include/at89x051.h,
3385 * device/include/at89x51.h,
3386 * device/include/at89x52.h,
3387 * device/include/mcs51reg.h,
3388 * device/include/reg51.h,
3389 * device/include/reg764.h,
3390 * device/include/regc515c.h,
3391 * device/include/sab80515.h: (re)moved these 12 files
3392 * device/include/mcs51/8051.h,
3393 * device/include/mcs51/8052.h,
3394 * device/include/mcs51/at89S8252.h,
3395 * device/include/mcs51/at89c55.h,
3396 * device/include/mcs51/at89x051.h,
3397 * device/include/mcs51/at89x51.h,
3398 * device/include/mcs51/at89x52.h,
3399 * device/include/mcs51/mcs51reg.h,
3400 * device/include/mcs51/reg51.h,
3401 * device/include/mcs51/reg764.h,
3402 * device/include/mcs51/regc515c.h,
3403 * device/include/mcs51/sab80515.h: and added them here
3405 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3407 * device/include/stdarg.h: changed SDCC specific keywords to double
3409 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
3411 * device/include/hc08/mc68hc908gp32.h,
3412 * device/include/hc08/mc68hc908jb8.h,
3413 * device/include/hc08/mc68hc908jkjl.h,
3414 * device/include/hc08/mc68hc908qy.h: fixed comments
3415 * device/include/mcs51/README: updated
3416 * device/include/mcs51/c8051f120.h: added PINRSF
3417 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
3418 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
3419 amidst code. Also inline is not supported.
3421 2005-04-06 Raphael Neider <rneider AT web.de>
3423 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
3424 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
3425 callers stack/frame pointers
3427 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3429 * device/include/pic16/usart.h: added, missing in previous commit,
3430 * device/include/pic16/adc.h: fixed typo,
3431 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
3433 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
3435 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
3436 uninitialized because a bug appears with gplink
3437 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
3438 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
3439 complains for unrecognised option
3441 2005-04-05 Raphael Neider <rneider AT web.de>
3443 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
3444 structs as well (using memcpy)
3445 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
3446 on ISRs (GOTO has no label)
3447 * src/pic16/device.h: added OF_OPTIMIZE_DF
3448 * src/pic16/main.c: added compiler switch --optimize-df to enable the
3449 new data flow analysis/optimization
3450 * src/pic16/pcode.c: added (prototypes for and implementation of)
3451 dataflow analysis functions, fixed pCodeInstructions' inCond and
3452 outCond values, made RCALL a branch instruction
3453 * (pic16_unlinkpCode): keep C line if possible
3454 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
3455 C line moved if possible
3456 * (pic16_getRegFrompCodeOp): NEW, improved version of...
3457 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
3458 to use new pic16_getRegFrompCodeOp (works for more SFRs)
3459 * (pic16_BuildFlow): fixed skip instructions with label (did not start
3461 * (pic16_getJumptabpCode): NEW, needed in...
3462 * (LinkFlow): fixed handling of jumptables, calls and conditional
3464 * (pic16_InsertCommentAfter): NEW
3465 * (pic16_pCodeReplace): made verbose and flow preserving
3466 * (AnalyzeFlow): added call to data flow analysis
3467 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
3468 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
3469 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
3471 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3473 * src/SDCCast.c (decorateType): fixed bug #1105626
3475 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
3477 * device/include/asm/pic16/features.h,
3478 * pic18f*.h headers,
3479 * device/include/pic16/adc.h,
3480 * device/include/pic16/delay.h,
3481 * device/include/pic16/i2c.h,
3482 * device/include/pic16/malloc.h,
3483 * device/include/pic16/stdio.h,
3484 * device/include/pic16/stdlib.h,
3485 * device/include/pic16/string.h,
3486 * device/lib/pic16/libc/stdio/printf_tiny.c,
3487 * device/lib/pic16/libc/stdio/printf_small.c,
3488 * device/lib/pic16/libc/stdio/strmgpsim.c,
3489 * device/lib/pic16/libc/stdio/strmmssp.c,
3490 * device/lib/pic16/libc/stdio/strmusart.c,
3491 * device/lib/pic16/libc/stdio/vfprintf.c,
3492 * device/lib/pic16/libc/stdlib/ltoa.c,
3493 * device/lib/pic16/libc/stdlib/putchar.c,
3494 * device/lib/pic16/libc/stdlib/x_ftoa.c,
3495 * device/lib/pic16/libc/stdlib/memchrpgm.c,
3496 * device/lib/pic16/libc/stdlib/memchrram.c,
3497 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
3498 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
3499 * device/lib/pic16/libio/adc/adcbusy.c,
3500 * device/lib/pic16/libio/adc/adcread.c,
3501 * device/lib/pic16/libio/adc/adcsetch.c,
3502 * device/lib/pic16/libio/usart/ubaud.c,
3503 * device/lib/pic16/libio/usart/ubusy.c,
3504 * device/lib/pic16/libio/usart/udrdy.c,
3505 * device/lib/pic16/libio/usart/uopen.c,
3506 * device/lib/pic16/libio/usart/uputc.c,
3507 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
3508 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
3509 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
3510 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
3511 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
3512 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
3513 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
3514 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
3515 specific keywords to double underlined form,
3516 * device/lib/pic16/libc/Makefile.rules,
3517 * device/lib/pic16/libsdcc/Makefile.rules,
3518 * device/lib/pic16/libm/Makefile,
3519 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
3520 to compile with C standard set in Makefile.common
3521 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
3522 rand.c and crc.c in compilation process,
3523 * device/lib/pic16/libsdcc/int/divuint.c,
3524 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
3525 `c' from signed to unsigned,
3526 * device/lib/pic16/startup/crt0.c,
3527 * device/lib/pic16/startup/crt0i.c,
3528 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
3529 keywords to double underlined form, bug fixes in _do_cinit function
3530 which prevented the correct initialization of the .idata segment,
3531 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
3532 core to enter a infinite loop
3533 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
3535 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3537 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
3539 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3541 * device/include/Makefile.in: add support for hc08 subdirectory
3542 * device/include/hc08/: new subdirectory
3543 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
3544 Lucas Loizaga, thanks!
3545 * device/include/hc08/mc68hc908qy.h,
3546 * device/include/hc08/mc68hc908gp32.h,
3547 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
3548 their own directory. Changed internal macro names to use the compiler
3549 reserved namespace. Changed SDCC specific keywords to double
3551 * device/include/math.h,
3552 * device/include/malloc.h,
3553 * device/include/stdarg.h,
3554 * device/include/stdbool.h
3555 * device/include/string.h,
3556 * device/include/tinibios.h,
3557 * device/include/ds400rom.h,
3558 * device/include/8051.h,
3559 * device/include/8052.h,
3560 * device/include/80c51xa.h,
3561 * device/include/at89c55.h,
3562 * device/include/at89S8252.h,
3563 * device/include/at89x51.h,
3564 * device/include/at89x52.h,
3565 * device/include/ds80c390.h,
3566 * device/include/reg764.h,
3567 * device/include/regc515c.h,
3568 * device/include/sab80515.h,
3569 * device/include/mcs51/c8051f000.h,
3570 * device/include/mcs51/c8051f018.h,
3571 * device/include/mcs51/c8051f020.h,
3572 * device/include/mcs51/c8051f040.h,
3573 * device/include/mcs51/c8051f060.h,
3574 * device/include/mcs51/c8051f120.h,
3575 * device/include/mcs51/c8051f300.h,
3576 * device/include/mcs51/c8051f310.h,
3577 * device/include/mcs51/c8051f320.h,
3578 * device/include/mcs51/c8051f330.h,
3579 * device/include/mcs51/c8051f350.h,
3580 * device/include/z180.h: Changed SDCC specific keywords to double
3583 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
3585 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
3587 * (pic16_assignConfigWordValue): disable testing of configuration
3588 register value with config mask,
3589 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
3590 function with port->fun_prefix,
3591 * (genFunction): when generating a naked interrupt function never
3592 create an absolute segment placed in interrupt vector address, place
3593 the actual interrupt function at IVA instead, when an interrupt
3594 function is generated with unspecified interrupt then do not create
3595 the absolute section,
3596 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
3597 code for generating a call to generic pointer get/put function with
3598 a call to function pic16_callGenericPointer(),
3599 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
3600 the call to the generic pointer get/put functions with prefixing the
3601 function name with port->fun_prefix,
3602 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
3603 * src/pic16/main.c (_process_pragma): prefix function with
3605 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
3606 calling assembler, old 18Fxxxx macro is deprecated,
3607 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
3608 PC_ASMDIR in while condition,
3609 * (findInstruction): add PC_ASMDIR in while condition,
3610 * (buildCallTree): prefix main with port->fun_prefix,
3611 * (pic16_pCode2str): fixed bug that didn't emit the memory access
3612 identifier for variable with banked access in instructions BTFSS,
3613 BTFSC, BCF, BSF, BTG
3614 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
3615 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
3616 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
3617 perform optimization when enviroment variable NO_REG_OPT is set,
3618 * (insideLRBlock): NEW, return 1 if register is inside an
3619 INF_LOCALREGS block,
3620 * (RemoveRegFromLRBlock): remove a register that is completely
3621 eliminated by register optimization, but it is still left in local
3622 register store/restore in/from stack block,
3623 * (Remove2pcodes): after removing register, check to see if it
3624 should be removed from local register store/restore in/from stack
3626 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
3627 DUMMY_READ_VOLATILE,
3629 * device/include/pic16/adc.h: minor prototype modifications and
3631 * device/include/pic16/malloc.h: added GPL notice various
3633 * device/include/pic16/stdint.h: NEW, standard header for ints
3634 * device/include/pic16/delay.h: NEW, header for delay functions,
3635 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
3637 * device/include/pic16/signal.h: NEW, header providing helper macros
3638 for implementing signal handlers,
3639 * device/include/pic16/stdio.h: added prototypes for functions,
3640 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
3641 prototypes for stdin and stdout, added macro PUTCHAR to
3642 automatically implement putchar function prototype,
3643 * device/include/pic16/usart.h: modified and updated USART library,
3644 * device/lib/pic16/libio/adc/,
3645 * device/lib/pic16/libio/i2c: some modifications to improve library
3647 * device/lib/pic16/libc/stdio/: modifications for the new printf*
3648 family of functions,
3649 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
3650 family of functions and other sources,
3651 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
3652 of the PIC18Fxx[28] devices,
3653 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
3654 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
3655 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
3656 _do_cinit function, because the previous failed when local variables
3657 where not placed in the same memory bank,
3658 * device/lib/pic16/libsdcc/char/: various modifications to improve
3659 library performance,
3660 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
3661 information on the new functions of the c library and more...
3663 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3665 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
3667 2005-03-26 Raphael Neider <rneider AT web.de>
3669 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
3670 if condition == CARRY)
3671 * (genCmp): adapted to new genSkipc semantics
3672 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
3673 on rIfx (genCmp was broken)
3675 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3677 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
3678 * src/z80/main.c (_keywords[]),
3679 * src/SDCCglobal.h (struct options),
3681 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
3682 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
3683 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
3684 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
3685 always available in leading double underscore form. The C99 support is
3686 mostly missing, but it's a start.
3687 * support/regression/tests/bug-227710.c: fixed nonconforming use of
3688 reserved identifier "__data".
3690 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3692 * src/mcs51/peeph.def: fixed bug 1170013
3694 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
3696 * device/include/mcs51reg.h: fixed bug 842007
3698 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3700 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
3703 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3705 * src/port.h (struct PORT),
3706 * src/avr/ralloc.c (avr_assignRegisters),
3708 * src/ds390/ralloc.c (ds390_assignRegisters),
3710 * src/hc08/ralloc.c (hc08_assignRegisters),
3712 * src/mcs51/ralloc.c (mcs51_assignRegisters),
3714 * src/pic/ralloc.c (pic14_assignRegisters),
3716 * src/pic16/ralloc.c (pic16_assignRegisters),
3718 * src/xa51/ralloc.c (xa51_assignRegisters),
3720 * src/z80/ralloc.c (z80_assignRegisters),
3722 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
3723 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
3725 * src/SDCCdflow.c (computeDataFlow),
3727 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
3729 * src/SDCCcflow.c (*),
3731 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
3732 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
3733 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
3734 immedDom() returning wrong block; probably fixes bug #1160833)
3736 2005-03-20 Borut Razem <borut.razem AT siol.net>
3738 * support/scripts/inc2h.pl: WIN32 port
3740 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
3742 * device/lib/makefile.in: added abs.c and labs.c
3744 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3746 * device/include/stdint.h: added
3747 * device/lib/abs.c: added
3748 * device/lib/labs.c: added
3749 * device/include/stdlib.h: added abs() and labs() prototypes
3750 * device/lib/libsdcc.lib: added abs and labs
3751 * device/include/float.h,
3752 * device/lib/_fsmul.c,
3753 * device/lib/printf_fast.c,
3754 * device/lib/printf_tiny.c: updated comments
3756 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3758 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
3761 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3763 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
3764 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
3766 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
3768 * device/lib/printf_large.c: removed inline assembly for portability and
3769 readability. Use printf_fast if speed or size are more important.
3770 * src/pic16/gen.c: removed conditions around use of DEBUGpc
3771 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
3773 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
3775 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
3776 prevent compiler warning
3778 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3780 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
3781 moved to level 0 and declared as static. Also they are explicit
3782 placed in access bank. This was necessery because some times they
3783 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
3784 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
3785 optimizations. Currently only compare to unsigned char is implemented,
3786 * src/pic16/gen.c: added fReturnIdx array,
3787 * (struct resolvedIfx) is moved to gen.h and made public,
3788 * (struct _G): added sregsAlloc and sregsAllocSet fields,
3789 * (aopForSym): added an optimization to directly store in stack of
3790 the operand of a SEND iCode,
3791 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
3792 but as registers instead (AOP_REG) using the fReturnIdx array,
3793 * (pic16_freeAsmop): remove the freed register from the
3794 _G.sregsAlloc field,
3795 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
3796 a compare of 'WREG',
3797 * (pic16_popGetTempRegCond): changed function prototype, now
3798 function takes also a bitVector argument v which holds the current
3799 set of registers that are allocated for stack access by aopForSym,
3800 registers allocated in aopForSym for accessing stack symbols are not
3801 any more part of the functions usedRegs field,
3802 * (genCall): some times aopOp is called for a stack variable to be
3803 send, aopForSym might perform the push, if this is true make sure
3804 that genCall doesn't push the variable twice by testing _G.resDirect,
3805 * (genFunction): changed testing for unspecified interrupt number
3806 from 256 to INTNO_UNSPEC,
3807 * modified selection scheme of frame pointer generation. Previously
3808 if function did use local registers a frame pointer was generated,
3809 now a frame pointer is generated only if function has arguments
3810 (that need PLUSW2 register access), or has stack arguments, or the
3811 compiler is not instructed to omit the frame pointer,
3812 * (genEndFunction): before restoring local registers that were saved
3813 in the function preamble, also restore the registers that *might*
3814 have been allocated for stack access,
3815 * (genRet): removed some old comments,
3816 * (genCmp, the active (RN's) version): added a call to the
3817 pic16_genCmp_special function to perform the compare with a more
3818 robust and optimized way,
3819 * (genInline): a feature has been added in inline code generation,
3820 which allows a wildcard variable substitution when writing inline
3821 assembly. Code is incomplete and experimental therefore undocumented,
3822 * (genCast): changed order of aopOp for result and right to allow
3823 aopForSym to directly load the result if possible,
3824 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
3825 perform an optimized compare on some selected special occasions,
3826 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
3827 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
3828 generate an IVT any more,
3829 * src/pic16/main.c (pic16_optionsTable): added command line option
3831 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
3832 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
3834 * src/pic16/NOTES: Raphael Neider added in list of active developers
3835 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
3836 jumptable_end to prevent bug #,
3837 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
3838 inCond and outCond fields,
3839 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
3840 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
3841 turn off register spilling,
3842 * (packRegsForOneUse): synced with other ports' versions although it
3843 is not used currently,
3844 * (pic16_packRegisters): added an optimization while reading
3845 structure bitfields, some registers may be saved (malloc code is
3846 decreased by 80 bytes)
3848 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
3850 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
3851 left is a bitfield, if yes, then don't optimize assignment. Perhaps
3852 this can be optimized more?
3854 2005-03-10 Raphael Neider <rneider AT web.de>
3856 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
3857 genNearPointerGet): (hopefully) fixed access to bitfields via
3858 pointers (p->bitN = x; and x = p->bitN; failed)
3860 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
3862 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
3864 2005-03-09 Raphael Neider <rneider AT web.de>
3866 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
3868 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
3870 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
3871 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
3872 (regTypeNum): set REG_BIT type if necessary
3873 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
3874 * support/regression/tests/critical.c: check bug 1144613
3876 2005-03-02 Raphael Neider <rneider AT web.de>
3878 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
3880 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3882 * src/avr/ralloc.c (serialRegAssign),
3883 * src/ds390/ralloc.c (serialRegAssign),
3884 * src/hc08/ralloc.c (serialRegAssign),
3885 * src/mcs51/ralloc.c (serialRegAssign),
3886 * src/pic/ralloc.c (serialRegAssign),
3887 * src/pic16/ralloc.c (serialRegAssign),
3888 * src/xa51/ralloc.c (serialRegAssign),
3889 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
3891 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
3893 * src/SDCCast.c (decorateType): fixed bug 1124787
3895 2005-02-20 Hubert Sack <sack AT digiplan.de>
3896 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3898 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
3901 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3903 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
3904 to keep the correct label reference count when adding/removing references
3905 to labels. A peephole file using this is appended to patch #1144962.
3907 2005-02-14 Raphael Neider <rneider AT web.de>
3909 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
3910 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
3911 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
3912 retrievals of result operand's value on assignment
3914 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
3916 * device/include/pic16/string.h: modified prototype for memccpy()
3917 to memccpy(void *, void *, char, size_t)
3918 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
3919 check whether to omit frame pointer or not,
3920 * (genInline): convert all occurences of "\n" to LF in inline
3921 assembler blocks, this helps formatting the inline text,
3922 * (pic16_loadFSR0): modified prototype,
3923 * (genNearPointerGet, genNearPointerSet): reorganization of code,
3924 removed some 8051 legacy code,
3925 * (genPackBits): enabled handling bitfields exceeding one byte in size,
3926 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
3927 before allocating temporary registers in functions,
3929 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3931 * support/regression/tests/bitvars.c: corrected the "fix"
3933 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3935 * support/regression/tests/bitvars.c,
3936 * support/regression/tests/bitwise.c,
3937 * support/regression/tests/rotate.c: "fixed" problems on Alpha
3939 2005-02-10 Raphael Neider <rneider AT web.de>
3941 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3942 different size for Alpha
3943 * src/pic16/gen.c (genCmpEq) : improved compare with 0
3945 2005-02-09 Raphael Neider <rneider AT web.de>
3947 * src/SDCC.lex(doPragma) : save and restore warning options as well
3948 (also added new stack plus clone- and copyAndFreeSDCCERRG())
3949 * have #pragma less_pedantic set the errorlevel to WARNING
3951 * (cloneOptimize) : fixed wrong malloc's size
3952 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3953 facilitate correct handling of #pragma (save|restore)
3955 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3957 * src/mcs51/gen.c: removed non-standard C nameless struct/union
3959 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3961 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3963 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3965 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3967 2005-02-02 Raphael Neider <rneider AT web.de>
3969 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3970 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3971 * (pic16_storeForReturn): fixed to allow returning function pointers
3972 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3973 * device/include/pic16/{stddef.h,stdbool.h}: added
3975 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3977 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3979 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3981 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
3982 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
3983 appeared to be required
3985 2005-01-31 Borut Razem <borut.razem AT siol.net>
3987 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
3988 include/mcs51 and include/z80 directories to the package
3990 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3992 * src/hc08/gen.c (genFunction): fixed bug #1112752
3994 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3996 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
3998 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4000 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
4002 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
4004 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
4006 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
4008 * device/include/c8051fxxx.h: removed these 6 files
4009 * device/include/mcs51/c8051fxxx.h: added these 11 new files
4011 2005-01-26 Raphael Neider <rneider AT web.de>
4013 * src/pic16/gen.c (genAssign): fixed assignment from longs
4014 in codespace (were cut to three bytes)
4015 * (genDummyRead): implemented (except for CODESPACE...),
4017 * src/pic16/glue.c (emitStatistics): beautified
4018 * device/lib/pic16/libm/Makefile: added include path
4020 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4022 * src/z80/gen.c (aopPut): fixed bug #1103902
4024 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4026 * device/lib/expf.c: fixed bug #1095792
4028 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
4030 * device/lib/pic16/libm: added Math library sources
4032 2005-01-24 Raphael Neider <rneider AT web.de>
4034 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
4035 to enable upcast to pCodeOpReg2 (there is no type tag to
4036 differenciate the two and pic16_popGet2p cast into PCOR2)
4037 * src/pic16/main.c (_process_pragma): fixed another malloc bug
4038 (sizeof(sectNames) changed to sizeof(sectName))
4039 Both patches fix segfaults under MinGW.
4041 2005-01-23 Raphael Neider <rneider AT web.de>
4043 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
4044 Safe_[mc]?alloc()'ed variables
4045 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
4046 of (byte sized) temporaries (assign them to WREG for now)
4047 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
4048 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
4049 this might fix SIGSEGVs on MinGW...
4050 * src/SDCCopt.c (killDeadCode): restored original behaviour
4051 (volatile operands might get thrown away though)
4053 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
4055 * src/pic16/gen.c: fixed bug #1106975,
4056 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
4057 pointer update, INTCON is saved, global interrupts are disabled and
4058 restored after updateing TOS.
4059 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
4060 * added function attribute 'shadowregs' to take advantage of shadow
4062 * added function attribute 'wparam' as an alternative to the wparam
4064 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
4065 user declares a non-ISR function as 'shadowregs',
4066 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
4068 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
4070 * .version: bumped version number to 2.4.8
4071 * device/lib/pic16/pics.all: list of PIC18F devices supported by
4073 * device/lib/pic16/libio/i2c/: I2C module support library,
4074 * device/include/pic16/i2c.h: I2C support library header,
4075 * device/lib/pic16/libc/stdio/: standard IO support sources,
4076 * (printf_small.c): printf_small() source, supports float print,
4077 * (printf_tiny.c): printf_tiny() source, does not support floats,
4078 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
4079 enable global optimizations for entire library source, other
4080 Makefiles in the source tree are also modified to reflect this,
4081 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
4083 * doc/sdccman.lyx: updated to reflect new changes,
4084 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
4085 sym->onStack if-case,
4086 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
4087 sbit, idata, _idata, xdata, _xdata,
4088 * added pragma library, to link an external library, (see doc),
4089 * removed command line options, --pomit-config-words, --pomit-ivt,
4090 --pleave-reset-vector,
4091 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
4092 when calling assembler to reflect memory model used, also define
4093 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
4094 reflect stack model used,
4095 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
4096 on stack return NULL,
4098 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4100 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
4101 of the operands is volatile. Fixes #1020220
4103 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4105 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
4106 * (OptimizeRegUsage): make sure that there is really no other flow where
4107 the first pCode is used
4109 2005-01-22 Raphael Neider <rneider AT web.de>
4111 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
4112 to fix #1106967 (pCode->seq are not set up correctly)
4114 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4116 * src/SDCCglue.c (glue): make sure code area is declared before the
4117 static initialization area.
4119 2005-01-21 Raphael Neider <rneider AT web.de>
4121 * device/lib/Makefile.in: fixed test for pic16 install dir
4122 * device/lib/pic16/*/Makefile*: modified compile flags to enable
4124 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
4125 added --optimize-goto compiler switch and pragma wparam documentation
4126 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
4127 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
4128 and PRODH closing bug #1071770 (peephole optimizer)
4130 2005-01-19 Raphael Neider <rneider AT web.de>
4132 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
4133 cmdLine buffers (used when calling sdcpp...) are large enough
4134 (MAX_PATH=256 truncates arguments leading to system halts when
4136 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
4137 * (genUminus): rewritten to for efficiency
4138 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
4139 used uninitialized in some cases)
4140 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
4141 copy the third byte from the int -- now assumes 0x80 (data memory)
4142 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
4143 operands (genAddLit expects the iCode's operands to swapped as
4144 well), fixed leftover bytes (crashed for short left operands)
4145 * (pic16_genMinusDec): performance improvements, removed false
4147 * (pic16_genMinus): fixed to cope with differently sized operands
4148 * src/pic16/glue.c (pic16_glue): added new banksel optimization
4150 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
4151 * src/pic16/graph.[ch]: implementation of directed graphs, used by
4152 new banksel optimization
4153 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
4154 analysis for temporary registers (segfaults...)
4155 * src/pic16/peeph.def: added rule
4157 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
4159 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
4160 which converts a float number to its ASCII representation
4161 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
4162 functions to convert the fractional and integer part of a float to ASCII,
4163 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
4164 realloc.c): added _MALLOC_SPEC to explicit place variables in data
4166 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
4168 * device/include/pic16/adc.h: added GPL info,
4169 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
4170 a pCodeOp as tested operand,
4171 * (genNearPointerGet): optimized bit testing, does not use
4172 intermediate register for bit value, test directly instead with
4173 BTFSS, BTFSC, works only for single bits,
4174 * (genpic16Code): dump the name of the iCode in the asm,
4175 * src/pic16/ralloc.c (decodeOp): removed static declaration and
4176 renamed to pic16_decodeOp,
4177 * (serialRegAssign): do not allocate a temporary register for iCode
4178 sequences that test a single bit for 1/0
4180 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
4182 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
4183 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
4184 access stack and frame pointers. They are initially assigned to
4185 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
4186 accessing SFRs. Updated all occurences of modification of stack or
4187 frame pointer in gen.c and pcode.c,
4188 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
4189 assigning of a literal value to pointers,
4190 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
4191 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
4194 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
4196 * doc/sdccman.lyx: update documentation about stack pragma, added
4197 some info for stack memory models
4199 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4201 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
4203 2005-01-08 Raphael Neider <rneider AT web.de>
4205 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
4206 udata sections to fix bug #1097823
4208 2005-01-05 Raphael Neider <rneider AT web.de>
4210 * src/pic16/gen.c (genGenericShift): added handling of differently
4211 sized left operand and result
4213 2005-01-04 Raphael Neider <rneider AT web.de>
4215 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
4216 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
4217 to hold the condition bit)
4218 * added new version of genCmp (old code available via #define)
4219 * added new version of genShiftLeft/genShiftRight in a generic
4220 way, now supports shifting by negative values
4221 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
4222 shiftCount (expected by genGenericShift)
4223 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
4224 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
4226 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
4227 is an invalid literal too...)
4229 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
4231 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
4232 from Raphael Neider,
4233 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
4234 for 8-bit literals. This fixes some literal operands which are sign
4235 extended to 16-bits ints when instruction needs only 8-bits.
4237 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
4239 * device/lib/logf.c: added mcs51 assembly version
4240 * device/lib/expf.c: added mcs51 assembly version
4241 * device/lib/_logexpf.c: new shared asm code for expf and logf
4242 * device/include/math.h: add defines for assembly math library
4243 * device/lib/Makefile.in: build new _logexpf.c
4244 * device/lib/libfloat.lib: use new _logexpf.c
4246 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4249 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
4250 device types which have less than 0x7f registers.
4252 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4254 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
4256 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4258 * device/lib/printf_fast.c: only build on supported arch.
4259 * device/lib/printf_tiny.c: only build on supported arch.
4260 * device/lib/printf_fast_f.c: only build if asm float lib
4261 * device/lib/_fsget1arg.c: only build if asm float lib
4262 * device/lib/_fsget2args.c: only build if asm float lib
4263 * device/lib/_fsnormalize.c: only build if asm float lib
4264 * device/lib/_fsreturnval.c: only build if asm float lib
4265 * device/lib/_fsrshift.c: only build if asm float lib
4266 * device/lib/_fsswapargs.c: only build if asm float lib
4267 * device/include/stdio.h: don't provide print_fast,
4268 print_fast_f, print_tiny prototypes if --xstack used
4270 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
4272 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
4273 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
4276 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4278 * device/lib/printf_fast_f.c: same as printf_fast, but
4279 with floating point enabled
4280 * device/lib/printf_fast.c: minor tweaks
4281 * device/include/stdio.h: add printf_fast_f
4283 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4285 * src/SDCCmain.c: make --float-reent default for mcs51
4286 * device/lib/_fsadd.c: added mcs51 assembly version
4287 * device/lib/_fssub.c: added mcs51 assembly version
4288 * device/lib/_fsmul.c: added mcs51 assembly version
4289 * device/lib/_fsdiv.c: added mcs51 assembly version
4290 * device/lib/_fseq.c: added mcs51 assembly version
4291 * device/lib/_fsneq.c: added mcs51 assembly version
4292 * device/lib/_fsgt.c: added mcs51 assembly version
4293 * device/lib/_fslt.c: added mcs51 assembly version
4294 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
4295 * device/lib/Makefile.in: add _fscmp to build
4296 * device/lib/libfloat.lib: add _fscmp to build
4298 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4300 * device/lib/_fs2slong.c: added mcs51 assembly version
4301 * device/lib/_fs2sint.c: added mcs51 assembly version
4302 * device/lib/_fs2schar.c: added mcs51 assembly version
4303 * device/lib/_fs2ulong.c: added mcs51 assembly version
4304 * device/lib/_fs2uint.c: added mcs51 assembly version
4305 * device/lib/_fs2uchar.c: added mcs51 assembly version
4306 * device/lib/_slong2fs.c: added mcs51 assembly version
4307 * device/lib/_sint2fs.c: added mcs51 assembly version
4308 * device/lib/_schar2fs.c: added mcs51 assembly version
4309 * device/lib/_ulong2fs.c: added mcs51 assembly version
4310 * device/lib/_uint2fs.c: added mcs51 assembly version
4311 * device/lib/_uchar2fs.c: added mcs51 assembly version
4312 * device/include/float.h: added #define to select asm vs c
4314 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
4316 * device/lib/printf_fast.c: improvements to float output
4317 * device/include/float.h: add defines for assembly float library
4318 * device/lib/_fsget1arg.c: receive 1 float arg
4319 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
4320 * device/lib/_fsnormalize.c: normalize a float
4321 * device/lib/_fsreturnval.c: return float, various helper routines
4322 * device/lib/_fsrshift.c: right shift a float's mantissa
4323 * device/lib/_fsswapargs.c: swap 2 floats
4324 * device/lib/Makefile.in: build these 6 new files for mcs51
4325 * device/lib/libfloat.lib: add these 6 files to the library
4327 2004-12-26 Borut Razem <borut.razem AT siol.net>
4329 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
4332 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
4334 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
4335 and fully reentrant and register bank neutral.
4336 * device/lib/printf_fast.c: added float (not enabled by default),
4337 added compact/slower integer (also not enabled by default),
4338 improved size/speed of fast integer code, other minor changes
4339 * device/include/stdio.h, device/lib/Makefile.in,
4340 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
4342 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
4344 * src/pic16/pcode.c: declaring variables other than at the start of a
4345 block is not supported in C by VC6.
4347 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
4349 * applied a previous patch from Raphael Neider that wasn't included
4350 in the previous commits, which fixes infinite loops within jumptable
4352 * made some fixes that previous patches introduced
4354 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
4356 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
4357 that fixes an issue with AOP_PCODE asmop's offset,
4358 * (pic16_popCopyReg): update instance field too,
4359 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
4360 function of pic port,
4361 * (genCmp, genAnd, genAssign),
4362 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
4364 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
4366 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
4367 variables initial values to idata section,
4368 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
4369 variables in some functions. This utilizes parmBytes field of iCode
4370 structure to hold the offset of the variable in stack. (might be
4371 able to use the stack field too?)
4372 * applied patch from Raphael Neider # ### , # ###
4373 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
4374 variable initial values in idata section,
4375 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
4376 for static variables with initial value
4377 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
4378 applied fix in while loop from Raphael Neider.
4380 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
4382 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
4383 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
4384 * src/ds390/ralloc.c (serialRegAssign): spill bits
4385 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
4386 * support/Util/SDCCerr.c,
4387 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
4388 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
4389 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
4391 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
4393 * device/include/sdcc-lib.h: inserted LGPL, added includes
4394 asm/ds390/features.h and asm/mcs51/features.h
4395 * device/include/asm/default/features.h,
4396 * device/include/asm/gbz80/features.h,
4397 * device/include/asm/z80/features.h: added empty _AUTOMEM
4399 * device/include/asm/ds390/features.h,
4400 * device/include/asm/mcs51/features.h: added files with defines for
4401 _AUTOMEM and _STATMEM indicating automatic and static storage class
4402 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
4403 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
4404 * src/SDCCicode.c (geniCodeCast),
4405 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
4406 * src/SDCCloop.c (loopInduction): removed unused variable lr
4407 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
4408 to convertToFcall to include char modulo (RFE 1065037), added check
4409 if left operand is unsigned and use abs of literal value
4410 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
4411 as it doesn't work after conversion from peephole.def to peephole.rul
4412 * src/mcs51/gen.c (toBoolean): added check for size,
4413 (genModOneByte): optimized code for signed char modulo a literal
4414 power of 2 (thanks to Hubert Sack),
4415 (genRRC): removed unnecessary "clr c",
4416 (genRLC): replaced "add a,acc" with cheaper "rlc a"
4417 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
4419 swapped rules 256.c and 256.d,
4420 extended 256.d by using new multiple checks (thanks Erik),
4421 added rules 256.e and 256.f,
4422 updated rule 261.a and 261.b to new generated code
4423 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
4425 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4427 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
4428 induction related bugs, including first part of bug #1074377
4430 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
4432 * applied patch from bug-report #1076292,
4433 * applied patches for genAnd and Goto-optimizations for Raphael
4435 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
4436 dump a less iCode information,
4437 * src/pic16/device.h (pic16_options_t): added field debgen,
4438 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
4439 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
4440 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
4442 * (various functions): added macros FENTRY and FENTRY2 to functions,
4443 to emit function prologue,
4444 * (various functions): fixed indentation,
4445 * (genNearPointerGet): fixed loading of FSR0,
4446 * (genPackBits): applied patch from Raphael Neider to fix updating
4447 of FSR0 and touching only the modified bits,
4448 * src/pic16/genarith.c (various functions): added macros FENTRY to
4449 emit function prologue in comments,
4450 * src/pic16/pcode.h: added functions debugf2, debugf3,
4451 * src/pic16/ralloc.c: partial fix for packForPush caused
4454 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4456 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
4457 <stsp AT users.sourceforge.net> with reversed byte order
4458 * support/regression/tests/rotate.c: added (ds390 skips some tests)
4460 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4462 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
4464 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
4465 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
4467 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4469 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
4471 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4473 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
4475 (setFromConditionArgs): friendly operand parser for peephole rules,
4476 (operandBaseName, operandsNotRelated): new peephole condition
4477 "operandsNotRelated" -- similar to "operandsNotSame", but takes
4478 architecture specific register naming into account, handles n-way
4479 comparisons, and supports quoted literals
4480 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
4482 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4484 * src/mcs51/peeph.def: fixed bug #1076940
4486 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4488 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
4490 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4492 Adding support for replacing ljmps with sjmps in jumptables
4493 generated for switch statements. For now you need to set the
4494 environment variable SDCC_SJMP_JUMPTABLE to enable this.
4495 Now 4 algorithms for mcs51 jumptable generation are used:
4496 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
4497 addresses loaded pc-relative for up to 112 cases and stack-pushing
4498 target addresses loaded with offset from dptr for up to 256 cases.
4500 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
4501 * src/mcs51/main.c: adapted constants for switch table generation
4502 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
4504 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
4506 * device/lib/printf_large.c (_print_format): fixed bug 1073386
4507 * support/regression/tests/bug1057979.c: added test for bug 1073386
4509 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4511 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
4514 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4516 * src/pic16/device.h,
4517 * src/pic16/genarith.c,
4520 * src/pic16/pcode.c: applied patches #1068154 and #1070213
4522 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
4524 Large cummulative patch for pic16 port.
4525 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
4526 to call when a stack overflow occurs,
4527 * (malloc.h): added CVS Id tag,
4528 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
4530 * added libc directory. The current version of LibC contains string
4531 functions, ctype functions and macros and some functions of the
4532 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
4533 be extensively tested in the future. Standard disclaimer here.
4534 Library is not automatically build yet. But one can build it by
4535 invoking 'make' inside the libc directory.
4536 * added ADC library under libio. Preliminary version yet.
4538 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
4539 * src/pic16/gen.c (aopForRemat): asmop size is filled by
4540 aopForRemat() now and not by pic16_aopOp(),
4541 * (pic16_popGetTempReg): removed warning messgae when allocating
4542 temporary registers, its a buggy feature and will be removed,
4543 * (pic16_popGet): set register instance field in AOP_CRY,
4544 * (pic16_outBitC): fixed for results in size greater than 1,
4545 * (genUminusFloat): fixed for pic16, ported code from mcs51,
4546 * (pic16_storeForReturn): optimized return of 0,
4547 * (genCmp): experimental code for new genCmp which uses PIC18's
4548 special compare&skip instructions. Initial tests fail some times
4549 with variables grater than 1 byte in size, so new code is disabled,
4550 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
4552 * (genCast): began a fix to optimize the casting of a bit to another
4553 bit, now assigning a bitfield to another bitfield will fail, sorry,
4554 * src/pic16/main.c: disabled the use of lr-support feature,
4555 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
4556 * added some function prototypes, added function _debugf prototype,
4557 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
4558 bits with offset (case PO_GPR_BIT),
4559 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
4561 * (isBankInstruction): modified to return 0 for no banking instruction,
4562 and 1 for banking instruction,
4563 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
4564 caused stop processing pCodes after a inline assembly block,
4565 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
4566 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
4567 registers when it shouldn't,
4568 * src/pic16/ralloc.c (allocReg): add preliminary support for
4569 supporting a limited set of temporary registers,
4571 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4573 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
4574 genDataPointerSet): ensure assignments always copy in MSB to LSB
4576 (loadRegFromAop): recognize CLRH optimization,
4577 (genFunction): optimize RECEIVE iCodes in reentrant functions
4579 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4581 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
4582 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
4584 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
4585 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
4586 contiguous with data
4588 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4590 * device/lib/_gptrget.c (_gptrget),
4591 * device/lib/_gptrgetc.c (_gptrgetc),
4592 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
4593 instead of sjmp to ret
4594 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
4595 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
4597 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4599 * .version: bumped version to 2.4.7
4600 * device/lib/_gptrget.c (_gptrget): is now _naked
4601 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
4602 * device/lib/_gptrput.c (_gptrput): is now _naked
4603 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
4604 (createFunction): fixed xstack
4605 * src/SDCCglue.c (emitMaps): set allocation required for bit area
4606 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
4608 (geniCodeCritical): store original interrupt state in an iTemp bit
4609 var unless stack-auto
4610 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
4611 * src/SDCCmain.c (setIncludePath): added include/target to search path
4612 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
4613 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
4615 (processFuncArgs): put bit vars in bit area
4616 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
4617 unsaveRBank): fixed xstack,
4618 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
4619 (genFunction, genEndFunction): fixed xstack,
4620 (genAssign): optimization don't walk backwards through mem
4621 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
4622 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
4623 * support/regression/Makefile: also make library (for stack-auto) when
4624 making "all" and added "test-mcs51-xstack-auto"
4625 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
4626 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
4627 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
4628 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
4629 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
4630 make-library by MAKE_LIBRARY
4631 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
4632 regression tests for xstack
4633 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
4634 * support/regression/tests/critical.c: test for critical on mcs51
4636 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4638 * support/regression/ports/ucz80/spec.mk: use include and lib files from
4639 built version of sdcc instead of installed version
4641 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4643 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
4644 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
4646 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
4647 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
4648 WARNING: remove device/lib/build/z80/printf.o by hand when
4649 updating from previous build!
4650 * device/lib/z80/printf.c: updated comment
4651 * support/regression/tests/bug1057979.c: test all ports now
4652 * support/regression/tests/bug1065458.c: file added
4654 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4656 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
4657 *_start and *_end symbols for static functions
4659 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
4661 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
4662 and search crt0.o in all library paths,
4663 (setIncludePath): proper handling of --nostdinc,
4664 (setLibPath): proper handling of --nostdlib
4665 * support/regression/Makefile,
4666 * support/regression/ports/ds390/spec.mk,
4667 * support/regression/ports/gbz80/spec.mk,
4668 * support/regression/ports/hc08/spec.mk,
4669 * support/regression/ports/mcs51/spec.mk,
4670 * support/regression/ports/mcs51-large/spec.mk,
4671 * support/regression/ports/mcs51-stack-auto/spec.mk,
4672 * support/regression/ports/z80/spec.mk: use include and lib files from
4673 built version of sdcc instead of installed version
4674 * doc/sdccman.lyx: fixed typo in --nostdinc
4676 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
4681 * src/pic/gen.c : added support to generate code for struct bit fields.
4683 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4685 * as/xa51/xa_version.h,
4686 * device/include/errno.h,
4687 * device/include/regc515c.h,
4688 * device/lib/_itoa.c,
4689 * device/lib/_ltoa.c,
4690 * device/lib/ser_ir_cts_rts.c,
4691 * sim/ucsim/xa.src/glob.cc,
4692 * sim/ucsim/xa.src/inst_gen.cc,
4693 * sim/ucsim/xa.src/xa_bit.cc,
4694 * sim/ucsim/xa.src/xa_sfr.cc,
4695 * sim/ucsim/z80.src/inst_dd.cc,
4696 * sim/ucsim/z80.src/inst_fdcb.cc,
4697 * support/scripts/keil2sdcc.pl,
4698 * src/pic16/pic16.dsp,
4699 * src/pic16/pic16a.dsp: corrected cvs line endings
4700 * device/lib/printf_large.c: fixed bug 1057979
4701 * src/pic16/gen.c: fixed non-C standard code
4702 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
4703 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
4704 * support/regression/ports/mcs51/support.c: reload T1 asap
4705 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
4706 pdata use and clear idata startup behaviour
4707 * support/regression/tests/bug1057979.c: added
4709 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
4711 * device/examples/ds390/ow390/ad26.h,
4712 * device/examples/ds390/ow390/cnt1d.h,
4713 * device/examples/ds390/ow390/crcutil.c,
4714 * device/examples/ds390/ow390/ownet.h,
4715 * device/examples/ds390/ow390/owsesu.c,
4716 * device/examples/ds390/ow390/swt12.h,
4717 * device/examples/ds390/ow390/swtoper.c,
4718 * device/examples/ds390/ow390/temp10.h,
4719 * device/examples/ds390/ow390/thermodl.c,
4720 * device/examples/ds390/tinitalk/tinitalk.dsp,
4721 * device/examples/ds390/tinitalk/tinitalk.dsw,
4722 * device/examples/mcs51/clock/hw.h,
4723 * device/examples/mcs51/simple2/go.bat,
4724 * device/examples/serialcomm/windows/serial.h,
4725 * device/examples/xa51/dummy.c,
4726 * device/examples/xa51/hello.c,
4727 * device/include/80c51xa.h,
4728 * device/include/at89x051.h: corrected cvs line endings
4730 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
4732 * src/pic16/main.c (options): added command line --gstack, to trace
4733 stack over/under flows,
4734 * added pragma 'wparam' to allow passing first byte of function
4735 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
4736 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
4737 call to __gstack_test function and sets up the symbol as extern,
4738 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
4739 * popaop): added call to pic16_testStackOverflow,
4740 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
4742 * (genCall, genPcall): now all parameters are passed via stack
4743 except in functions that are pass to wparam pragma in which WREG is
4745 * (genPcall): REENTRANT flag is checked to see if variable prototype
4746 contains reentrant keyword, don't call a non-reentrant function, via
4747 a reentrant function pointer or vice versa, functions are never
4749 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
4751 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
4752 SIGSEGV when accessing a NULL register stucture,
4753 * (pic16_printGPointerType): modified to handle UPPER modifier for
4754 function initializers, changed prototype of function to simpler one,
4755 * (pic16_printIvalFuncPtr): check to see if function is already
4756 added in externs list,
4757 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
4758 optimized a move from W to SFR with a move to the same register
4760 * device/lib/pic16/debug: NEW directory, contains debug features
4761 which are enabled when linking with libdebug.lib, currently command
4762 line option --gstack enables stack pointer tracing for over/under
4763 flow, corresponding sources are in debug/gstack
4765 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
4767 * doc/sdccman.lyx: updated SDCC version,
4768 * (PIC16 port): update list of command line options,
4769 * src/pic16/device.h (structure pic16_options_t): added field gstack
4770 to enable stack overflow tracing on push/pops,
4771 * src/pic16/device.c (statistics structure): added statistics
4773 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
4774 pic16_dump_int_registers): increase statistics counters for each
4775 * variable which is encountered
4776 * (pic16_dump_usection): emit each .udata variable to its own udata
4778 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
4779 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
4780 parameters via stack, otherwise use old scheme,
4781 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
4782 assembler output file,
4783 * src/pic16/main.c: added command line options --gstack to enable
4784 push/pop tracing for stack overflow,
4785 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
4786 instructions): added size of each instruction,
4787 * (pic16_countInstruction): estimate size of instructions in
4788 the_pFile list, inline assembly blocks are not counted,
4789 * (pic16_FixRegisterBanking): trace previous register usage, when
4790 banksel optimizations is greater than 0, don't emit a redudant
4793 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
4795 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
4796 * src/pic16/ralloc.c : applied same fix for pic16.
4797 * src/pic/gen.c : tidied it up a little.
4799 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4801 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
4802 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
4804 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4806 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
4808 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4810 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
4811 non-reentrant function __modsint in the interrupt function (thus
4812 corrupting math operations during serial I/O)
4813 * device/lib/ser_ir.c: as above, changed buffersize
4814 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
4816 * doc/Makefile: added option -t for rsync
4818 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4820 * src/SDCCast.h (struct ast),
4821 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
4823 2004-10-20 Borut Razem <borut.razem AT siol.net>
4825 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
4828 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
4830 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
4832 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
4833 support functions to replace long sequences of MOVFF's from access
4834 bank registers to stack and vice versa,
4835 * src/pic16/device.h: added new field opt_flags, where optimization
4836 flags can be set to enable certain features,
4837 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
4838 * pBlock, (genFunction, genEndFunction): surroung loop for
4839 saving/loading used registers in stack with PC_INFO pCodes,
4840 INF_LREGS. Code in between can then be optimized by pCode optimizer
4841 to support function calls,
4842 * (genDataPointerSet): fixed bug which loaded float fields in
4843 structures with corrupt data,
4844 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
4845 in a standard way debug info on stderr. Feature used for developing
4847 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
4848 obsolete chunks of code,
4849 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
4850 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
4851 * pic16/src/pcode.c (pic16_newpCodeInfo,
4852 * (pic16_newpCodeOpLocalRegs),
4853 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
4855 * (pic16_pCodeConstString): printing of the initial value of a
4856 symbol as a comment is inhibited since parsing was already done by
4857 copyStr and output is corrupt,
4858 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
4860 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4862 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
4864 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4866 * as/mcs51/lkarea.c: removed old K&R style,
4867 (lnksect): changed check on boundary error,
4868 (lnksect2): changed check on boundary error,
4869 (lnksect2): extend XSTK to end of page if size = 1
4870 * as/mcs51/lkmain.c: removed old K&R style,
4871 (Areas51): create l_IRAM symbol
4872 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
4873 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
4874 model-mcs51-stack-auto, added model-mcs51-xstack-auto
4875 * device/lib/_mullong.c: added version to be compiled with xstack
4876 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
4877 * device/lib/mcs51/crtxclear.asm: clear pdata as well
4878 * device/lib/mcs51/crtxstack.asm: fixed comment
4879 * src/SDCCglue.c: maxInterrupts defaults to 0,
4880 (emitMaps): added pdata,
4881 (createInterruptVect): (re)moved default,
4882 (glue): added pdata,
4883 (glue): moved __start__xstack to XSTK with default size 1
4884 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
4885 and options.float_rent when options.stackAuto is set,
4886 (linkEdit): only write XDATA_NAME if provided on command line
4888 * src/SDCCmem.c: added pdata
4889 * src/port.h: added pdata_name to PORT
4890 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
4891 (saveRegisters, unsaveRegisters): removed usage of B,
4892 (genMinus): fixed accumulator clash,
4893 (genJumpTab): added comment, this needs another look
4894 * src/mcs51/gen.c: added check for "B in use" paranoia,
4895 added pushB() and popB()
4896 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
4905 * src/z80/main.c: (reset_regparms) made void parameter explicit and
4906 added PSEG (PAG,XDATA) or NULL to port specifier
4907 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
4908 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
4909 (_mcs51_genInitStartup): removed __start__xstack equ,
4910 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
4911 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
4912 * src/z80/gen.c (_rleAppend): fixed warnings
4913 * support/regression/tests/zeropad.c: added pdata test
4914 * .version: bumped to 2.4.6
4916 2004-10-17 Borut Razem <borut.razem AT siol.net>
4918 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
4919 as a part of nightly build
4921 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
4923 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
4924 WREG holds the first byte function parameters,
4925 * (aopForSym): take special case for symbols which are in FARSPACE
4926 but in CODESPACE too,
4927 * (assignResultValue): modified to take into account _G.useWreg,
4928 * (genCall): don't use wreg for parameter passing when function is
4929 declared as reentrant, too, added optimization INCF to stack
4930 pointer when stack parameter count is 1,
4931 * (genFunction, genEndFunction): refurnished and fixed to not using
4932 wreg for passing parameters when function has varargs or is
4933 reentrant, fixed bug with symbol name compare for generating
4934 functions in absolute address,
4935 * (pic16_storeForReturn): refurnished,
4936 * (genCmp): began writing a new version of the function, not ready
4937 yet, therefore it is disabled,
4938 * (genAssign): do not read code memory when assigning a function to
4940 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4941 array of characters, not pointer,
4942 * (pic16initialComments): in debug mode emit an .ident directive for
4944 * (_process_pragma): emit a new warning type (internal to pic16)
4945 when setting stack to default length, emit a similar warning when
4946 placing a function at absolute address and address is not word aligned
4947 * (_pic16_parseOptions): added 'return TRUE' statement,
4948 * (_pic16_linkEdit): if compiling a source, then add the source's
4949 file object, first in the list of objects to link,
4951 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4953 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4954 * src/pic/main.c : removed VC warning.
4955 * src/pic/gen.c : changed comment.
4957 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4959 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4960 reference to a deprecated symbol _GPTRREG was causing failure to
4961 link. Thanks G. M. Gallant for the info.
4963 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4965 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4966 comments for Bugs item #954788.
4968 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4970 * src/pic16/device.c (pic16_dump_gsection,
4971 * pic16_groupRegistersInSection): handle symbols declared to be in
4972 access bank differently,
4973 * src/pic16/gen.c (struct _G): added field resDirect,
4974 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4975 send values read from stack directly to result and don't allocate
4977 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4979 * (pic16_sameRegsOfs): NEW,
4980 * (freeAsmop): if _G.resDirect is set then do not mark registers as
4981 free because they were not allocated from temporary pool,
4982 * pic16_popRegFromString): workaround to fix a problem with
4983 allocating variables twice or never,
4984 * (genGenPointerGet): using PRODL instead of FSR0H,
4985 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
4987 * (genAssign): take advantage of the _G.resDirect flag,
4988 * (genCast): around line 11844, use mov2f instead of directly
4989 MOVFF'ing between operands to account for literal values,
4990 * src/pic16/genutils.c: some new debug functions for gpsim have been
4992 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
4993 float with integer part only,
4994 * src/pic16/main.c (_process_pragma): handle pragma udata access to
4995 place variables in access bank
4996 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
4997 updated sources to reflect recent changes in gen.c
4999 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
5001 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
5002 sources that searched for headers in installation path, now the
5003 device/include/pic16 is used,
5004 * src/pic16/glue.c (pic16glue),
5005 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
5006 .line directives if not in debug mode, this suppresses assembler's
5007 warnings for ignored directives
5009 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5011 * src/port.h: made reset_regparms prototype void parameter explicit.
5012 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
5013 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
5014 * doc/sdccman.lyx: documented warning disabling and how to use
5015 printf_large to make it print floats.
5016 * device/include/stdbool.h: NEW
5017 * device/lib/_atof.c,
5018 * device/lib/_divuint.c,
5019 * device/lib/_divulong.c,
5020 * device/lib/expf.c,
5021 * device/lib/printf_large.c,
5022 * device/lib/sincosf.c,
5023 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
5024 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
5025 a completely reentrant lib.
5027 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
5029 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
5030 * device/include/pic16/stdio.h: fixed bug with colon
5032 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
5034 * device/include/pic16/stdio.h,
5035 * device/include/pic16/stdlib.h,
5036 * device/include/pic16/math.h: NEW
5037 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
5038 declared as _naked to reduce overhead
5039 * device/lib/Makefile.in (target port-specific-objects-pic16):
5040 changed * to *.* so to ignore the CVS directory,
5041 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
5042 stacked variables back in stack,
5043 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
5046 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
5048 * .version: bumped version number to 2.4.5
5049 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
5050 * support/Util/SDCCerr.c (messages structure): added entry for
5053 Large cumulative patch for pic16 port and libraries.
5054 * device/include/pic16/sdcc-lib.h,
5055 * device/include/pic16/stdarg.h,
5056 * device/include/asm/pic16/features.h,
5057 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
5058 * device/include/pic16/float.h: changes reentrant keyword with
5059 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
5060 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
5061 updated target build-libraries to include objects from gptr,
5062 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
5063 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
5064 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
5065 all function headings,
5066 * src/SDCCmain.c: added global parameter userIncDirsSet,
5067 * (parseCmdLine): when option -I is encountered add directory to
5069 * src/version.awk: added space between control and long,
5070 * src/pic16/NOTES: added some notes for the port,
5071 * src/pic16/gen.c: added prototype for mov2fp function,
5072 * (fReturnpic16[]): properly named return value registers,
5073 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
5074 * (aopForSym): added code to handle symbols with onStack flag set,
5075 symbols onStack are allocated PTRSIZE bytes,
5076 * (aopFreeAsmop): handles special case where asmops are stack objects,
5077 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
5078 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
5079 added argument lock to trace flaws in allocating temporary registers
5080 when developing port,
5081 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
5082 * (pic16_popRegFromString): reenabled allocating a direct register
5084 * (assignResultValue): various beautifications,
5085 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
5086 referenced function argument,
5087 * (genIpush): reenabled to allow stacked arguments, handles only
5088 ic->parmPush iCodes,
5089 * (genCall, genPcall): major changes to allow for variable argument
5090 functions, fixed a bug with falsely restoring stack pointer after
5091 returning from call,
5092 * (genFunction): pending code for critical function,
5093 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
5094 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
5095 * (genNearPointerGet): fixed bug with indirect reading, was always
5097 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
5099 * (genAddrOf): rewrote code to take address of a stacked function parameter
5100 * (genCast): fixed casting to generic pointer type,
5101 * src/pic16/gen.h: added AOP_STA,
5102 * (struct asmop): added field stk,
5103 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
5104 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
5105 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
5106 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
5107 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
5108 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
5110 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
5112 * (pic16_port structure): generic pointer size is set to 3,
5113 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
5114 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
5116 * src/pic16/ralloc.c (allocReg): prevent allocating register when
5117 operand is an iTemp,
5119 2004-09-24 Martin Helmling <mh AT octo-soft.de>
5121 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
5122 * debugger/mcs51/simi.c: addapt new syntax of s51
5124 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
5126 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
5127 * src/pic16/pcode.c: commented out some calls to free() in order to
5130 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5133 * src/SDCCicode.c (isiCodeInFunctionCall),
5134 * src/avr/ralloc.c (selectSpil),
5135 * src/pic/ralloc.c (selectSpil),
5136 * src/pic16/ralloc.c (selectSpil),
5137 * src/ds390/ralloc.c (selectSpil),
5138 * src/hc08/ralloc.c (selectSpil),
5139 * src/xa51/ralloc.c (selectSpil),
5140 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
5141 stack in the middle of a function call sequence (fixes bug #1020268)
5142 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
5143 costs associated with the minimum switch case.
5145 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5147 * src/SDCC.lex: fixed bug #1030549
5149 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5151 * src/SDCCcse.h (struct cseDef),
5152 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
5153 over a function call if the CSE is derived from a symbol whose
5154 address has been taken (fixes bug #1029883)
5155 * support/regression/tests/bug-1029883: a new regression test for
5158 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5160 * src/hc08/gen.c (emitinline): fixed bug #1029778
5161 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
5162 to a cast object is no longer a syntax error ("fixes" bug #1030006,
5163 and starts toward RFE #905167)
5165 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
5167 * src/pic16/gen.c (mov2f): New function to move an operand to
5168 another without considering if it is a literal or a register,
5169 * (pic16_sameRegs): don't check if they are both AOP_REG,
5170 * (AccRsh): removed andmask=0 lines,
5171 * (genLeftShift): duplicated to be improved in future versions,
5172 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
5173 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
5174 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
5175 * (pic16initMnemonics): added initialization for POC_INFSNZW,
5176 * (insertBankSwitch): fixed inserting banksel directives algorithm
5177 for instructions that follow a skip instruction, this fixes a report
5178 for broken subtraction code generation,
5179 * src/pic16/ralloc.c (deassignLRs): do not free register if current
5180 iCode is a left op, just in case result and right share the same
5183 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5186 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
5188 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
5189 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
5190 on 2004-09-12; it was buggy
5192 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
5194 * src/SDCCsymt.h: removed RESULT_CHECK
5199 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
5201 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
5203 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
5204 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
5205 configuration values no more rejected by compiler, they are assigned
5206 to configuration registers with a warning message instead,
5207 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
5208 the for-loop so last conf register is emitted too,
5209 * (_pic16_initPaths): link library libsdcc.lib by default,
5210 * (_hasNativeMulFor): modified test for multiplication according to
5211 Raphael Neider's remarks. Integer multiplication is also done with
5213 * device/include/pic16/pic18fregs.h: corrected type error in while
5214 testing and including 18f6720 header file
5216 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
5218 * src/pic16/device.h (pic16_options): removed field use_crt,
5219 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
5220 until an optimization to handle single bits is added,
5221 * (pic16_loadFSR0): moved before genUnpackBits,
5222 * (genAnd): some white lines removed,
5223 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
5224 leave_reset flags in pic16_options when using crt modules,
5226 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
5228 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
5229 for bugs 898889 & 979599. Also used some safer print instructions.
5231 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
5233 * src/pic16/device.h (pic16_options_t): added field use_crt,
5235 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
5236 catch a probable future bug,
5237 * src/pic16/gen.c: aopIdx function commented out,
5238 * (genAssign): commented out old code which used aopIdx,
5239 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
5240 code, added if conditionals to take into account the --use-crt
5241 command line options,
5242 * src/pic16/main.c (pic16_optionsTable): added new command line
5243 options, --use-crt= and --no-crt,
5244 * (_pic16_linkEdit): now the proper crt object is added in the
5245 linker command line except than when --no-crt is specified,
5246 * src/pic16/pcode.c,
5247 * src/pic16/pcode.h: added some structures and functions for a new
5248 optimization scheme to compansate for instruction overhead between
5249 same iCodes, this scheme is currently under development and is not
5251 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
5253 * device/lib/pic16/startup/crt0i.c,
5254 * device/lib/pic16/startup/crt0iz.c: added global char variable
5255 __uflags to force the generation of an idata section
5257 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
5260 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
5261 * doc/sdccman.lyx: updated sdcc version to 2.4.4
5263 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5265 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
5266 Frieder) and clarified the default code optimization mode
5268 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5270 * src/SDCC.lex (doPragma, process_pragma),
5271 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
5272 "opt_code_size", and "opt_code_balanced"
5273 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
5274 regrouped options by category, added support for category headers
5275 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
5276 and "--opt-code-size"
5277 * doc/sdccman.lyx: documented these new options and pragmas
5278 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
5279 preference into account
5281 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5283 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
5284 geniCodePreDec): Fixed bug 904237 by generating a warning
5286 * src/SDCCerr.c: added warning W_SIZEOF_VOID
5288 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
5290 * src/pic/device.c : When no max ram set validate full memory range.
5292 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
5294 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5296 * device/lib/_gptrget.c,
5297 * device/lib/_gptrput.c: updated comment
5298 * device/lib/calloc.c,
5299 * device/lib/free.c,
5300 * device/lib/malloc.c,
5301 * device/lib/realloc.c: added LGPL, made them reentrant-safe
5302 * src/SDCCcse.c (cseBBlock),
5303 * src/SDCCicode.c (printOperand, geniCodeArray),
5304 * src/SDCCicode.h (struct operand): fixed bug 868103
5305 * support/regression/tests/bug-868103.c: added
5306 * src/SDCCast.c (searchLitOp),
5307 * src/SDCCcse.h (struct cseDef),
5308 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
5309 * src/SDCCicode.h (struct operand),
5310 * src/SDCCsymt.h (struct sym_link),
5311 * src/avr/gen.c (hasInc),
5312 * src/ds390/gen.c (hasInc),
5313 * src/hc08/gen.c (genPlusIncr, hasInc),
5314 * src/mcs51/gen.c (hasInc),
5315 * src/pic16/glue.c (pic16_printIvalChar),
5316 * src/pic16/ralloc.c (regWithIdx),
5317 * src/xa51/gen.c (hasInc) : removed warnings
5318 * src/SDCCast.c (createBlock): added comment ???
5319 * src/hc08/ralloc.c: updated comments
5321 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5323 * doc/sdccman.lyx: updated section on switch statements, added
5324 section about semaphore locking
5325 * doc/Makefile: added option -info for latex2html
5326 * device/lib/_gptrget.c,
5327 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
5329 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5333 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
5334 maxram is less than 0x100.
5336 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5338 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
5340 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5351 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
5352 a jump table is the best form for a switch statement, including
5353 automatic insertion of missing cases to make the case range
5354 continuous. Developed in collaboration with Frieder Ferlemann.
5356 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5358 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
5359 accumulator result if it needs sign extension
5361 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5363 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
5365 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5367 * device/lib/gbz80/printf.c,
5368 * device/lib/z80/printf.c: removed define for NULL
5370 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5372 * as/xa51/xa_link.c,
5373 * device/examples/ds390/ow390/ad26.c,
5374 * device/examples/ds390/ow390/cnt1d.c,
5375 * device/examples/ds390/ow390/counter.c,
5376 * device/examples/ds390/ow390/ds2480.h,
5377 * device/examples/ds390/ow390/ds2480ut.c,
5378 * device/examples/ds390/ow390/findtype.c,
5379 * device/examples/ds390/ow390/gethumd.c,
5380 * device/examples/ds390/ow390/owllu.c,
5381 * device/examples/ds390/ow390/ownetu.c,
5382 * device/examples/ds390/ow390/swt12.c,
5383 * device/examples/ds390/ow390/swtloop.c,
5384 * device/examples/ds390/ow390/temp.c,
5385 * device/examples/ds390/ow390/temp10.c,
5386 * device/examples/ds390/ow390/thermo21.c,
5387 * device/examples/ds390/ow390/tinilnk.c,
5388 * device/examples/ds390/ow390/tstfind.c,
5389 * device/examples/serialcomm/windows/serial.cpp,
5390 * device/examples/serialcomm/windows/test_serialcomm.cpp,
5391 * device/include/reg51.h: fixed line endings for cvs
5393 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5395 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
5396 packRegsForAccUse, packRegisters): new accumulator register
5398 * support/regression/ports/hc08/support.c (_putchar): suppress
5399 warning of unused variable
5400 * src/SDCCicode.c: added SWAP entry to codeTable
5402 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
5404 * device/lib/sprintf.c: forgot to add this file before previous commit
5406 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
5408 * src/pic16/gen.c (genPackBits): added operand right in function
5409 parameters, load result directly if p_type is POINTER (that is
5410 called by genNearPointerSet)
5411 * (genUnPackBits): added operand left in function parameters,
5412 * (genNearPointerGet, genNearPointerSet): prevent the loading of
5413 FSR0 if accessing bitfields,
5415 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
5417 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
5418 _print_format; updated printf, sprintf, vsprintf
5419 * device/include/asm/default/features.h: corrected comment/define
5420 * device/lib/Makefile.in: added sprintf.c
5421 * device/lib/libsdcc.lib: added sprintf module
5422 * device/lib/printf_large.c,
5423 * device/lib/vprintf.c,
5424 * device/lib/sprintf.c: totally refactored printf_large and vprintf
5426 * support/regression/Makefile: changed ALL_PORTS into a usefull default
5427 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
5428 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
5430 * support/regression/tests/zeropad.c: define idata as data for hc08
5432 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5434 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
5435 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
5436 labels are referenced at least once (even if a reference is not found)
5437 * src/hc08/gen.c (emitcode): set isComment flag for comments
5438 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
5439 loads), rules 6a..6b (optimize jumps to return)
5441 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5443 * device/lib/acosf.c (acosf),
5444 * device/lib/asinf.c (asinf),
5445 * device/lib/atanf.c (atanf),
5446 * device/lib/ceilf.c (ceilf),
5447 * device/lib/cosf.c (cosf),
5448 * device/lib/coshf.c (coshf),
5449 * device/lib/cotf.c (cotf),
5450 * device/lib/fabsf.c (fabsf),
5451 * device/lib/floorf.c (floorf),
5452 * device/lib/log10f.c (log10f),
5453 * device/lib/logf.c (logf),
5454 * device/lib/sinf.c (sinf),
5455 * device/lib/sinhf.c (sinhf),
5456 * device/lib/sqrtf.c (sqrtf),
5457 * device/lib/tanf.c (tanf),
5458 * device/lib/tanhf.c (tanhf),
5459 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
5460 replaced all instances of "reentrant" in the library functions
5461 defined in math.h with this macro.
5462 * support/regression/tests/float_trans.c: reenabled test for hc08
5464 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5466 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
5469 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5471 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
5472 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
5473 multi-byte volatile operands are used
5474 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
5475 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
5476 initialization to area GSINIT0 so that it would always precede
5477 any static initializers in GSINIT
5478 * support/regression/tests/zeropad.c: fixed idata define for hc08
5479 * support/regression/tests/bug-927659.c,
5480 * support/regression/tests/float_trans.c: disabled tests for hc08
5481 pending missing library routines
5482 * .version: increased version number to 2.4.4 - hc08 port now passes
5486 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
5488 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
5489 * Makefile.common.in,
5491 * as/hc08/Makefile.in,
5492 * as/mcs51/Makefile.in,
5493 * as/z80/Makefile.in,
5494 * debugger/mcs51/Makefile.in,
5495 * device/include/Makefile.in,
5496 * device/lib/Makefile.in,
5499 * link/z80/Makefile.in,
5500 * packihx/Makefile.in,
5501 * sim/ucsim/main_in.mk,
5502 * sim/ucsim/avr.src/Makefile.in,
5503 * sim/ucsim/doc/Makefile.in,
5504 * sim/ucsim/gui.src/serio.src/Makefile.in,
5505 * sim/ucsim/hc08.src/Makefile.in,
5506 * sim/ucsim/s51.src/Makefile.in,
5507 * sim/ucsim/xa.src/Makefile.in,
5508 * sim/ucsim/z80.src/Makefile.in,
5510 * support/cpp2/Makefile.in,
5511 * support/librarian/Makefile,
5512 * support/makebin/Makefile: added DESTDIR to the install path proposed
5513 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
5514 * doc/sdccman.lyx: added DESTDIR documentation
5516 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
5518 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
5519 instruction for interrupt handlers, use fast returns when returning
5520 from high priority interrupts
5522 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5524 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
5526 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
5527 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
5528 bugs, ported much of Bernhard's code from mcs51
5529 * src/mcs51/gen.c (genSend),
5530 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
5531 than one when calling a reentrant function
5532 * device/lib/_mullong.c: defined an alternate struct layout for big
5535 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5537 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
5540 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5542 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
5543 are sane and complete before asking the port its prefered parameter
5544 passing method (fixes bug #1017633)
5545 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
5548 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5550 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
5551 problem in bitfields >= 8 bits.
5553 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5555 * src/SDCCsymt.c: undid changes that were not meant to be committed
5557 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5559 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
5561 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5563 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
5564 copied and wrong bit got inverted
5566 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5568 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
5569 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
5570 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
5571 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
5572 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
5573 assignments to bitfields at known addresses
5574 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
5575 reads from bitfields at known addresses
5576 * src/hc08/ralloc.c (packRegisters),
5577 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
5578 genhc08Code): optimize pointer get values used as conditionals
5579 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
5582 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5584 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
5585 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
5586 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
5589 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5591 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
5593 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5595 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
5598 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
5600 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
5602 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5604 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
5607 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5609 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
5611 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5613 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
5614 cases use more compact code.
5616 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
5618 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
5620 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5622 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
5624 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5627 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
5628 parameter of changePointer() from symbol* to sym_link*
5629 * src/SDCCast.c (decorateType): call changePointer() for CAST op
5630 * src/SDCCsymt.c (compareType): void* type is castable to other
5631 pointers, but not necesarily an exact match.
5632 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
5633 is no longer blindly treated as an exact match.
5634 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
5636 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
5638 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
5640 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
5645 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
5647 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
5651 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
5653 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5655 * src/mcs51/gen.c (emitcode): fixed bug #992819
5657 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
5659 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
5660 there's no need to make it worse
5662 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5664 * src/mcs51/ralloc.c (deassignLR),
5665 * src/ds390/ralloc.c (deassignLR),
5666 * src/hc08/ralloc.c (deassignLR),
5667 * src/z80/ralloc.c (deassignLR),
5668 * src/pic/ralloc.c (deassignLR),
5669 * src/pic16/ralloc.c (deassignLR),
5670 * src/avr/ralloc.c (deassignLR),
5671 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
5672 rlivePoint): fixed another part of bug #971834
5674 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5676 * src/z80/main.c: enabled "critical" keyword
5677 * src/z80/mappings.i,
5678 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
5679 functions (fixes bug #979646)
5680 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
5682 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5684 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
5687 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
5689 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
5690 doesn't disable too much optimizations
5692 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5694 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
5696 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
5698 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
5700 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5702 * src/pic/gen.c tidied up tabs
5703 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
5704 * src/pic/main.c tidied up tabs
5705 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
5706 * src/pic/pcoderegs.c tidied up tabs
5707 * src/pic/ralloc.c tidied up tabs
5709 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
5711 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
5712 to S_FIXED for pic16 port and when symbol is not in level 0,
5713 allocate for S_REGISTER storage class and pic16 port, too,
5714 * src/pic16/device.h: prototype for checkSym,
5715 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
5716 * (pic16_assignConfigWordValue): test the value and the mask to
5717 validate that the value is suitable for the configuration word,
5718 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
5719 collect extern declared symbols, don't emit symbol twice, check
5720 first if symbol is in publics set first,
5721 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
5722 * added command line '--fstack' which enables an experimental
5723 feature for stack access, too buggy to be used yet...
5724 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
5725 * (pic16_allocDirReg): when register has storage class S_REGISTER
5726 allocate in pic16_dynAccessRegs,
5727 * device/include/pic16/pic18f????.h: modified configuration word
5728 naming convention, words started as CONFIG0H but should be CONFIG1H
5730 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5732 * device/include/mcs51reg.h: fixed bug 970993
5734 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
5736 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
5737 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
5738 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
5739 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
5740 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
5741 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
5742 error/warning numbers,
5743 added function setWarningDisabled()
5744 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
5745 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
5746 _memcmp.c _memmove.c calloc.c realloc.c free.c
5747 * support/regression/tests/malloc.c: added tests for new functionality
5748 * support/regression/tests/zeropad.c: added tests for truncated initializers
5749 and initialized char arrays starting with '\x0'
5750 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
5752 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
5754 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
5756 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5758 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
5759 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
5760 peephole 177.e. Thanks to anonymous
5762 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
5764 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
5765 function isn't used in the source but referenced as a
5766 variable initializer then declare it as extern in .asm file
5768 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
5770 * .version: increased version number to 2.4.3
5772 Adding version extension according to ChangeLog CVS revision
5773 * src/Makefile.in (target all): added dependency 'version.h'
5774 * (rule version.h): added rule to create version.h from ChangeLog,
5775 * (rule dep): added dependency version.h,
5776 * src/version.awk: AWK script to create version.h
5777 * src/SDCCdwarf2.c (dwWriteModule),
5778 * src/SDCCglue.c (initialComments),
5779 * src/SDCCmain.c (printVersionInfo): modified to write after
5780 version string the version extension number,
5781 * src/SDCCutil.c: included "version.h"
5782 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
5784 * src/SDCCutil.h: added prototype for getBuildNumber
5786 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
5787 includeDirsSet, too,
5788 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
5789 const char [] is found in function prototype...
5791 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
5792 moving to WREG with source is already in WREG,
5793 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
5794 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
5795 * (aopForSym): stack'ed symbols are partially supported, added
5796 if-clause to support symbols in FARSPACE,
5797 * (sameRegs): added test for AOP_ACC to see if registers are same,
5798 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
5799 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
5800 * (pic16_popRegFromString): will not allocate a new register if it
5801 doesn't find one by name, bug may have introduced...
5802 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
5803 * (genIpush): revived to use pic16 port's stack,
5804 * (genAddrOf): added incomplete case for stack'ed operand,
5805 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
5806 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
5807 can handle multibyte operands,
5808 * src/pic16/glue.c (pic16_printIval*): some debug info added,
5809 * (pic16initialComments): added message for MPLAB compatibility
5811 * src/pic16/main.h: prototype for pic16_mplab_comp,
5812 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
5813 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
5814 * (_pic16_linkEdit): NEW, handles link stage, transferred here
5815 because of increased complexity of procedure,
5816 * (_process_pragma): stack pragma changed to format 'stack pos len',
5817 emit symbol '_stack_end' to conform with gplink,
5818 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
5819 to search for register,
5820 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
5822 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
5823 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
5824 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5825 case for PO_GPR_REGISTER,
5826 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
5827 dies, the new era is ahead !...
5828 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
5829 pic16_dynInternalRegs,
5830 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
5831 * (pic16_allocDirReg): minor optimizations and bug fixes,
5832 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
5834 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
5835 load stack and frame pointer with address of 'stack_end' symbol
5837 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
5839 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
5840 without source code but only variable initializers
5842 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
5844 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
5845 external are not declared as extern to reduce overhead while linking
5847 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
5849 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
5851 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
5853 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
5854 Yee Keat for the patch
5855 * src/SDCCast.c (decorateType): fixed bug #979599
5856 * src/ds390/gen.h: removed local fReturnSizeDS390
5857 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
5858 * src/ds390/gen.c (genAnd, genOr, genXor),
5859 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
5861 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
5863 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
5864 add relFilesSet to $3, manipulate $2 to handle linking of object
5865 files without source files in command line,
5866 * device/include/pic16 (all headers): added ID location macros,
5867 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
5868 entries for ID location bytes,
5869 * (pic16_assignIdByteValue): NEW,
5870 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
5871 added field dumpcalltree to pic16_options_t,
5872 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
5873 is used instead of pic16_Gstack_base_addr, check if (ifx) before
5874 emitting rFalseIfx label after check_carry label,
5875 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
5876 pic16_emitDIRegs), NEW
5877 * (pic16glue): dump .calltree file when option --calltree found,
5878 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
5879 * (_pic16_genAssemblerPreamble): emit ID locations after
5880 configuration registers,
5881 * (pic16_linkCmd): modifications of the link command,
5882 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
5883 * (pic16_pCodeInitRegisters): don't init stack registers,
5884 * (pic16_findPrevInstruction): fixed bug,
5885 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
5886 bug with immediate registers,
5887 * (buildCallTree): traces stack push and pop,
5888 * (pct2): dump also stack usage for each function,
5889 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
5890 * (pic16_allocDirReg): various modifications,
5891 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
5894 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
5896 * src/pic16/pcode.c: removed buggy double colon
5898 2004-07-01 Borut Razem <borut.razem AT siol.net>
5900 * support/scripts/sdcc.nsi: added include/pic16 to setup
5902 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
5904 * device/lib/Makefile.in: fixed bug in target objects-pic16,
5905 * device/lib/pic16/Makefile: prefixed with dash (-) command under
5907 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
5908 specific command line arguments. Also added sample lkr script
5909 for placing a variable at a specific memory bank.
5910 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
5911 at a specific memory bank,
5912 * (pic16_dump_isection): fixed bug which caused string literals to
5913 be omitted when dumping idata section,
5914 * (pic16_groupRegistersInSection): added code to handle registers
5915 in specific memory banks,
5916 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
5917 public, all references are renamed too,
5918 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
5920 * (pic16_storeForReturn): added case to handle when dest is WREG,
5921 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
5922 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
5923 pic16_rel_udata, check to see if that register is marked as being
5924 a member of a specific memory bank,
5925 * (pic16_printIvalCharPtr): added code to add string literals either
5926 to code or the idata sections,
5927 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
5928 also accept the 'udata' pragma,
5929 * src/pic16/main.h: new structure types sectName and sectSym
5930 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
5931 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
5932 * (pic16_findPrevInstruction): fixed, it returned nothing,
5933 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
5934 instruction combinations,
5935 * (pic16_FixRegisterBanking): heavily reorganised,
5936 * (pic16_AnalyzeBanking): if generating banksel directives is
5937 disabled, then don't call FixRegisterBanking at all,
5938 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
5940 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5942 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5944 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5945 Phuah Yee Keat <yk.phuah AT nestac.com>
5947 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5949 * src/pic16/glue.c (pic16createInterruptVect): function now emits
5950 correctly the IVT even if it is relocated to some other location
5952 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5954 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5955 * device/include/pic16/pic18f2220.h: NEW,
5956 * device/lib/pic16/libdev/pic18f2220.c: NEW,
5957 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5958 * src/pic16/device.c (struct Pics16): added info for 18f2220,
5959 * src/pic16/device.h (struct pic16_options): added ivt_loc and
5960 nodefaultlibs, ivt_loc is the location of the interrupt vector
5961 table, and nodefaultlibs signs that default libraries should not be
5962 linked in link stage,
5963 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5964 according to --ivt-loc argument,
5965 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5966 when pragma stack is found,
5968 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5970 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5971 256 (range check), 257 (do while), 258.a-f (bit banging
5972 f.e. on 3-wire SPI bus)
5974 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5976 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5977 variables used exclusively within a loop
5979 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5981 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
5983 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5985 * src/SDCClrange.c (computeClash): fixed bug #971834
5987 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5989 * src/mcs51/gen.c (genCmp): fixed bug #975903
5990 * src/hc08/gen.c (operandsEqu),
5991 * src/ds390/gen.c (operandsEqu),
5992 * src/z80/gen.c (operandsEqu),
5993 * src/pic/gen.c (operandsEqu),
5994 * src/pic16/gen.c (operandsEqu),
5995 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
5996 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
5998 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6000 * src/SDCCcse.c (cseBBlock): fixed bug #966963
6002 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
6004 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
6005 default case in switch statement,
6006 * glue.c (pic16_initPointer): expr is initialised via decoarteType
6007 to eliminate problem with initialisation of pointers, but problem
6009 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
6010 * (emitStaticSegment): removed various lines emitting debug info,
6011 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
6012 added processor registers for utilizing EEPROM,
6013 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
6014 configurable and set 8
6016 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
6018 * .version: increased version number to 2.4.2,
6020 Cumulative patch for pic16 port
6021 * src/pic16/device.c: changed scheme to dump initial values for
6022 variables in idata segment, all print_idata* functions were removed,
6023 now the pic16_printIval* will be called,
6024 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
6025 * _pic16_printPointerType, pic16_printPointerType,
6026 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
6027 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
6028 NEW, similar to the respective functions in SDCCglue.c,
6029 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
6030 way, emitting hex bytes,
6031 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
6033 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6035 * src/avr/ralloc.c (serialRegAssign),
6036 * src/xa51/ralloc.c (serialRegAssign),
6037 * src/pic/ralloc.c (serialRegAssign),
6038 * src/pic16/ralloc.c (serialRegAssign),
6039 * src/hc08/ralloc.c (serialRegAssign),
6040 * src/z80/ralloc.c (serialRegAssign),
6041 * src/ds390/ralloc.c (serialRegAssign),
6042 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
6044 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6046 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
6047 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
6049 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
6051 Cumulative patch for pic16 port:
6052 * src/pic16/device.h (typedef PIC16_device) modified fields for
6053 defining microcontrollers,
6054 * src/pic16/device.c: added new info for all devices in Pics16 array,
6055 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
6056 to be optimised out by the pCode optimiser,
6057 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
6058 specially, bug reported by G.M. Gallant,
6059 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
6060 as force'd so that cannot be optimised out by pCode optimiser,
6061 * src/pic16/pcode.c,
6062 * src/pic16/pcodepeeph.c,
6063 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
6064 they are disabled by default, but can be enabled explicit with
6065 command argument --denable-peeps, for testing,
6066 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
6067 --pomit-ivt in COMPILE_FLAGS
6069 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6071 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
6074 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6076 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
6078 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6080 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
6081 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
6083 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
6085 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
6086 would only assign 0x300001 register.
6088 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
6090 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
6091 in COMPILE_FLAGS. Thanks to G. Gallant for report.
6093 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6095 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
6097 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
6098 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
6099 added peephole 254 (left shift), 255 (jump table)
6101 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
6103 * device/lib/Makefile.in: removed comment line with model-pic16,
6104 * (target port-specific-objects-pic16): the libraries and objects
6105 are copied to the build directory form the device/lib/pic16/bin
6108 Cumulative patch concerning pic16 port:
6109 * library directory has been re-organized,
6110 * added support for PIC18F1220,
6111 * added headers and library sources for chips 18f1220,18f6520,
6112 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
6114 * configuration registers setting has changed, now each supported
6115 device has a complete description of the registers it uses,
6116 * all initialisations are moved to idata sections, these section
6117 can be absolute or relocatable,
6118 * fixed initialisation of codespace variables,
6119 * fixed warning about PCLATU and gpsim,
6120 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
6121 * (genAssign): use table reads when assigning from variables in codespace,
6122 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
6123 char/int variables placed in codespace,
6124 * (pic16_emitConfigRegs): NEW, emits a list with configuration
6125 registers set in .asm file, no need for --pomit-config-words anymore,
6126 * (pic16glue): some 8051 legacy segments are commented out
6127 (to be removed completely),
6128 * added support for alternative assembler and linker with --asm=
6129 and --link= command line arguments,
6130 * peepholes are disabled automatically in the port, no need to
6131 specify on command line,
6132 * port supports natively char/int/long multiplication, but converts
6133 all divisions to support functions,
6134 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
6135 to the file set in variable $2,
6136 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
6137 strings in ASCII format and not in hex,
6138 * ralloc.c (serialRegAssign): added a triplet of conditional calls
6139 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
6140 allocate proper register if iCodes aren't temporary,
6142 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6144 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
6146 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
6148 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
6151 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6153 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
6154 computed address is reused
6155 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
6156 multi-byte bitfields
6158 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6160 * src/z80/gen.c: (genArrayInit): must check for pointers too
6162 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6164 * support/regression/tests/zeropad.c: never meant to commit the
6165 nestedstruct test: removed, added check for GCC version
6167 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
6169 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
6170 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
6171 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
6172 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
6173 bugs 928906 and 954082 half-empty initializers
6175 * src/SDCCsymt.c (getAllocSize): added for above fix
6176 * src/z80/gen.c (genArrayInit): fixed bug 741044
6177 * support/regression/tests/zeropad.c: added tests
6179 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
6181 * src/pic16/device.c (pic16_dump_section): corrected bug which
6182 caused some symbols of the libraries to be misplaced
6184 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6187 * src/pic16/ralloc.h,
6188 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
6189 to fix conflict with pic port
6191 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6193 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
6194 externs configuration variables,
6195 * src/pic16/ralloc.h,
6196 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
6197 prototype in header, commented out some debug messages
6199 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
6203 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
6204 for gpasm COFF object generation. Thanks to D. Hawkins for
6207 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6210 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
6211 Brock for spotting this)
6212 * src/ds390/gen.c (genEndFunction),
6213 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
6214 interrupt handler and critical. Disable push/pop optimizations when
6215 peephole optimizations disabled.
6217 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6219 Updated pic16 library sources and headers.
6220 * device/lib/pic16/pic18f*/ ,
6221 * device/include/pic16/*.h: modified to handle structured SFR
6224 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6226 * src/port.h (PORT structure): added hook initPaths, now each
6227 port can declare its own default search paths,
6228 which can been seen with the --print-search-dirs option,
6229 see pic16 port for example,
6230 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
6231 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
6232 * (doPrintSearchDirs): NEW, replaces in a central manner the
6233 printing of search dirs which was split in set*Paths functions,
6234 * (main): added call to port->initPaths and doPrintSearchDirs,
6239 * src/izt/tlcs900h.c,
6242 * src/pic16/main.c: modified port structures to reflect addition of
6245 * src/pic16/device.c (regCompare): registers are finally sorted by name,
6246 * (pic16_dump_section): for registers in same address reserve memory once,
6247 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
6249 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
6250 result is greater in size than right or left,
6251 * (pic16_genUMult8X8_8): there are some cases where the result can
6252 be 16 bits size, so handle these,
6253 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
6254 * (pic16_outBitC): modified to emit pcodes,
6255 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
6257 * (genDivOneByte): implemented algorithm to divide 8-bits,
6258 * (genCmp): uncommented goto, but issues still exist,
6259 * (genAnd): fixed a bug with variables >8bits,
6260 * (genPackBits): optimization added that uses BCF/BSF to change a
6262 * (genAssign): fixed bug when assigning floating point literals,
6263 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
6264 __sdcc_gsinit_startup label,
6265 * src/pic16/main.c (_pic16_init): removed search directory
6267 * (_pic16_initPaths): NEW, used to initialise search directories,
6268 * (_hasNativeMulFor): support functions for all except char/int
6269 multiplication, and char division,
6270 * (PIC16_port struct): modified entry for native mul support,
6271 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
6273 * (buildCallTree): call to register_usage is ifdef'ed out,
6275 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6277 * device/include/string.h: applied Stas Sergeev's patch to make this
6278 header file compatible with the preprocessor -Wundef option
6279 * src/SDCCmain.c (main): abort compilation if preprocessor reports
6280 failure (fixes bug #941458)
6282 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6284 * src/SDCCopt.c (killDeadCode): fixed bug #907733
6285 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
6286 that the variable, not the function, should be static
6287 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
6288 to be consistent with non-literal case
6290 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6292 * src/SDCCast.c (isConformingBody): fixed bug #949967
6293 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
6294 convilong): fixed bug #952086
6296 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6298 * src/SDCCmem.c (allocVariables): fixed bug #955321
6300 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6302 * src/hc08/main.c (_hc08_genAssemblerEnd),
6303 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
6304 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
6305 completely eliminated the use of a temporary file
6306 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
6307 when more than one file linked
6308 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
6310 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6312 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
6313 which fixes bug #543481
6314 * support/regression/tests/bug-751703.c: fixed comments left from a
6316 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
6317 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
6318 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
6320 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
6321 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
6322 are now changed to underscores in moduleName
6324 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6326 * as/mcs51/lkmem.c: better fix for bug #954173
6328 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6329 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6331 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
6332 * device/include/c8051f000.h,
6333 * device/include/c8051f120.h,
6334 * device/include/c8051f300.h,
6335 * device/include/c8051f310.h,
6336 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
6339 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6341 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
6342 and mailing lists, doc'ed --no-peep-comments, removed reference
6343 to knoppix (newest version has no LyX/LaTeX), other minor changes
6344 * src/SDCCglue.c (glue): save 2 bytes stack space with
6345 option --main-return. The ljmp could probably be avoided too
6347 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6349 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
6351 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6353 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
6354 * src/SDCCopt.c (isLocalWithoutDef),
6355 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
6356 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
6357 (credit to Maarten Brock for patch #949363, on which this is based)
6358 * support/regression/tests/bug-751703.c: some test cases of extern used
6359 within inner scopes.
6361 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6363 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
6365 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
6367 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
6368 dwWriteLabel): fix to create valid debugger symbols even when
6369 the module name has non-alphanumeric symbols in it
6370 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
6371 when a variable's allocation has been optimized away
6374 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6376 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
6378 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
6380 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
6382 * src/z80/gen.c (z80_emitDebuggerSymbol),
6384 * src/pic/gen.c (pic14_emitDebuggerSymbol),
6386 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
6388 * src/avr/gen.c (avr_emitDebuggerSymbol),
6390 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
6392 * src/SDCCdebug.c (emitDebuggerSymbol),
6394 * src/port.h: added a debugger struct to the port struct. Added a
6395 callback for defining debugger symbols
6397 * src/SDCCast.c (createLabel),
6398 * src/SDCC.y (labeled_statement): mark all compiler generated labels
6401 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
6402 iCode back to the ast for the function
6404 * src/hc08/ralloc.c (hc08_assignRegisters),
6405 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
6406 unneeded fields from the regs struct.
6407 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
6408 pushReg() & pullReg() functions instead of emitcode()
6410 * src/hc08/gen.c (genLabel, genhc08Code),
6411 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
6413 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
6416 * src/hc08/gen.c (genEndFunction, genhc08Code),
6418 * src/mcs51/gen.c (genEndFunction, gen51Code),
6420 * src/ds390/gen.c (genEndFunction, gen390Code),
6422 * src/z80/gen.c (genEndFunction, genZ80Code),
6425 * src/pic/gen.c (genEndFunction, genpic14Code),
6427 * src/pic16/gen.c (genEndFunction, genpic16Code),
6429 * src/avr/gen.c (genEndFunction, genAVRCode),
6431 * src/xa51/gen.c (genEndFunction, genXA51Code),
6433 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
6434 specific code to cdbFile.c and out of the backend code generators
6436 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
6437 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
6438 starting address is now 0
6442 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
6443 assembler directive for DWARF support
6444 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
6448 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
6450 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6452 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
6453 and inappropriate peephole optimization in jump tables
6455 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6458 * src/SDCCglue.c: sdccopt works for the hc08 port now
6460 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
6462 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
6464 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6466 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
6468 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6470 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
6474 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
6475 comments from the peephole optimizer replacement rules
6476 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
6478 * src/SDCCcse.c (updateSpillLocation),
6479 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
6481 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
6482 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
6483 objects far pointers
6485 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6487 * src/SDCCsymt.h: a missing part of my last change
6488 * src/pic/ralloc.c (regTypeNum),
6489 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
6491 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6494 * src/SDCCicode.c (aggrToPtrDclType),
6496 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
6497 ptrPseudoSymConvert),
6498 * src/pic/ralloc.c (regTypeNum),
6499 * src/pic16/ralloc.c (regTypeNum),
6500 * src/hc08/ralloc.c (regTypeNum),
6501 * src/ds390/ralloc.c (regTypeNum),
6502 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
6503 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
6505 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6507 * link/z80/lkmain.c (afile),
6508 * as/hc08/lkmain.c (afile),
6509 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
6510 prevent a pointer problem when a filename has no directory and
6511 no extension specified.
6513 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6515 * link/z80/lkmain.c (afile): allow periods in directory names
6516 * link/z80/lkmain.c (afile),
6517 * as/mcs51/lkmain.c (afile),
6518 * as/hc08/lkmain.c (afile): allow linker script file to have an
6519 extension other than ".lnk"
6520 * link/z80/lklex.c (getfid),
6521 * link/z80/lkmain.c (parse),
6522 * as/mcs51/lklex.c (getfid),
6523 * as/mcs51/lkmain.c (parse),
6524 * as/hc08/lklex.c (getfid),
6525 * as/hc08/lkmain.c (parse): Support comments in the linker script
6526 file on lines by themselves and after filenames
6528 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6530 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
6532 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6534 * src/z80/peeph-z80.def: removed some peephole rules that don't
6535 work with multibyte arithmetic (fixed bug #937126)
6536 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
6537 to registers and not global variables
6538 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
6539 geniCodePreInc, geniCodePostDec, geniCodePreDec,
6540 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
6541 checking for assignments not internally generated (fixed bug #931895)
6542 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
6543 structure member (fixed bug #930072)
6545 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6547 * src/SDCCmain.c (linkEdit),
6548 * src/hc08/main.c (_hc08_parseOptions),
6549 * as/hc08/Makefile.in,
6553 * as/hc08/lkrloc.c (relr, rele),
6554 * as/hc08/lkarea.c (lnkarea)
6555 * as/hc08/lkmain.c (afile, parse),
6556 * as/hc08/lkelf.c: support for ELF output
6557 * as/hc08/lks19.c (s19),
6558 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
6560 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6562 * as/mcs51/lkihx.c: Fixed bug #899105.
6564 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6566 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
6567 .dsp files from Unix to DOS.
6569 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6571 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
6572 function pointers; we have been compliant for several months now.
6573 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
6574 change that was accidently commented out
6575 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
6576 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
6579 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6581 * src/hc08/gen.c: output of all of the internal debugging information
6582 is now controlled by the D() macro; it is disabled by default
6584 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6586 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
6587 harder to keep the same registers during a CAST iCode
6588 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
6589 long via int can be done in a single cast, if the signedness is
6591 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
6592 putchar() in tinibios.c in ds390's library
6594 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
6596 * src/SDCCast.c (decorateType): fixed bug #898889,
6597 cast result of a literal complement too
6598 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
6599 fixed check for bitfields
6601 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
6603 * src/SDCCicode.c (geniCodeLogic): made it static,
6604 (geniCodeLogicAndOr): added in order to fix bug #905492,
6605 (ast2iCode): fixed bug #905492
6606 * support/regression/tests/bug-905492.c: added
6607 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
6608 (processParms): fixed bug #927659: don't copy parms, this will clear
6610 * support/regression/tests/bug-927659.c: added
6612 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
6614 * src/SDCCast.c (addCast): don't cast float to char
6615 * device/lib/libsdcc.lib: added _memmove
6617 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
6619 * device/lib/large/Makefile: fixed parallel execution by
6620 replacing `make` by `$(MAKE)`
6622 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6624 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
6625 offsets (fixes bug #923936)
6627 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
6629 * device/lib/small/Makefile: fixed parallel execution by
6630 replacing `make` by `$(MAKE)`
6632 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6634 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
6636 2004-03-23 Scott Dattalo <scott AT dattalo.com>
6638 * src/pic/gen.c (genCpl): multi-byte complements were not working.
6639 * src/regression/Makefile: Regression test was not running.
6641 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6643 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
6644 complement if possible
6645 * src/SDCCval.c (valComplement),
6646 * src/SDCCicode.c (operandOperation): fixed complement of literal
6647 * support/regression/tests/onebyte.c (testComplement): added
6649 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
6651 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
6652 return an optimized tree; actually replace actParm with the new tree
6653 * src/SDCCast.h: added some parantheses to remove side effects
6654 * support/regression/tests/bug-920866.c
6656 2004-03-21 Scott Dattalo <scott AT dattalo.com>
6657 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
6658 Bit operands were not being handled properly in the pic14 port.
6659 (now src/regression/add.c passes again).
6661 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6663 * src/SDCC.y (labeled_statement): case and default no longer require
6664 a following statement (RFE #893037)
6666 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6668 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
6669 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
6670 disabled (fixes bug #916294)
6671 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
6672 "mov a,acc"; patch provided by Lenny Story
6673 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
6675 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6677 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
6679 * src/ds390/gen.c (genFunction, genEndFunction),
6680 * src/ds390/ralloc.c (ds390_assignRegisters),
6681 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
6682 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
6683 pushed if there are parameters passed on the stack. Also, a cleaner
6684 way to decide if r0/r1 should be pushed/popped. (Together they fix
6687 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6690 * device/lib/mcs51/crtpagesfr.asm,
6691 * device/lib/mcs51/crtxinit.asm,
6692 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
6693 to avoid confusion with Si Lab's SFRPAGE register.
6695 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6697 * src/SDCCglue.c (emitMaps): allow public sfr variables
6698 * src/SDCCglue.c (initialComments): include compiler build date
6699 with compiler version and put the timestamp of the generated
6700 assembly file on a serperate line to be less confusing.
6701 * src/port.h: added genInitStartup hook
6708 * src/z80/main.c: genInitStartup initialize as NULL (default to
6709 historical behaviour)
6710 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
6711 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
6712 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
6713 library instead of hard coding it into the compiler.
6714 * support/regression/ports/mcs51-stack-auto/spec.mk,
6715 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
6716 * device/lib/mcs51/Makefile,
6717 * device/lib/small/Makefile,
6718 * device/lib/large/Makefile,
6719 * device/lib/mcs51/crtpagesfr.asm,
6720 * device/lib/mcs51/crtstart.asm,
6721 * device/lib/mcs51/crtxclear.asm,
6722 * device/lib/mcs51/crtxinit.asm,
6723 * device/lib/mcs51/crtclear.asm,
6724 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
6725 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
6726 and into user configurable files.
6727 * device/lib/clean.mk: clean mcs51 directory too
6728 * support/regression/tests/longlit.c: added static to T1 declaration
6729 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
6730 accesses in the initialization code
6732 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6734 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
6735 OSCTRIMVAL as noted in bug #916008
6737 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6739 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
6740 in loops with multiple exits (reported as incorrect registers
6741 used by Martin Helmling in Sdcc-user list)
6743 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6745 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
6746 made ds390 register extensions look less like error messages
6748 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6750 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
6751 reported by Adam Wozniak in Sdcc-user list
6753 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
6755 * src/SDCCast.c (decorateType): fixed with bug and promotion in
6756 arithmetic optimizations, added debug output
6758 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
6760 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
6761 * sdcc.spec: updated and split sdcc into 3 rpms
6762 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
6763 needed for literals of LEFT_OP and '+'
6764 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
6765 introduced RESULT_TYPE_NOPROM
6766 (geniCodeMultiply): fixed logic for decision if mul is optimized to
6768 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
6769 limited promotion to int only for '*'
6770 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
6772 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
6774 * src/pic16/gen.c (genSkip),
6775 (genc16bit2lit), (gencjneshort): commented out
6776 (is_LitOp): new helper function, checks operand type
6777 (genCmpEq): rewritten
6779 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
6781 * support/regression/tests/bug-908454.c: added
6783 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
6785 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
6786 * src/SDCCicode.c (usualBinaryConversions): op needs int type
6787 (geniCodeCast): cosmetic, don't preserve bit storage class
6788 (geniCodeLeftShift): added promotion
6789 (geniCodeLogic): fixed regression
6790 * src/SDCCsymt.c (computeTypeOr): accept bits too
6791 (compareType): 2nd part of fix for bug #908454, needed for bitfields
6793 2004-03-07 Borut Razem <borut.razem AT siol.net>
6795 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
6797 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
6799 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
6800 version of pic16_genPackRegisters which does not check if ic is a
6802 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
6803 function cause string1.c regression test fails
6805 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
6807 * sim/ucsim/configure.in,
6808 * sim/ucsim/configure,
6809 * sim/ucsim/doc/Makefile.in: use docdir
6810 * src/SDCC.y: fixed sbit atrributes
6811 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
6812 * src/SDCCast.c (decorateType): |^& need special promotion handling
6814 * src/SDCCsymt.h: moved definition of RESULT_TYPE
6815 * src/SDCCsymt.h (computeType),
6816 * src/SDCCicode.c: computeType() needs op
6817 * src/SDCCsymt.c (checkTypeSanity),
6818 * doc/sddman.lyx: "plain" bitfields are unsigned
6819 * src/SDCCsymt.c (computeTypeOr): added
6820 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
6822 * src/SDCCval.c (val*): computeType() needs op
6823 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
6824 * support/regression/tests/onebyte.c: added tests for |^&
6826 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
6828 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
6829 for writing icode into asm output.
6831 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
6833 * src/pic16/device.c: added some debug lines enabled
6834 with macro DEBUG_CHECK,
6835 * src/pic16/genarith.c: more debug in genPlus,
6836 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
6837 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
6838 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
6839 * (aopForSym): onStack symbols are re-placed in data memspace,
6840 and onStack flag is cleared,
6841 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
6842 copy temporary pcodeop,
6843 * (genPcall): added warning for not updating PCLATU,
6844 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
6845 always true for pic16 port,
6846 * (genMultOneWord): NEW, supports integer multiplication,
6847 * (genMult): modified to call genMultOneWord,
6848 * (ifxForOp): added warning when return NULL,
6849 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
6850 flag is set before call to operandFromSymbol for implicit
6852 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
6853 options.intlong_rent are set by default,
6854 * (_hasNativeMulFor): modified to allow port generation of integer
6856 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
6857 set regtype to REG_SFR for all registers, restricting seting the
6858 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
6860 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6862 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
6863 more than 500 times in the regression tests
6865 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6867 * support/Util/SDCCerr.h,
6868 * support/Util/SDCCerr.c,
6869 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6871 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
6872 for symbol conflicts.
6873 * support/valdiags/tests/enum.c,
6874 * support/valdiags/tests/tentdecl.c,
6875 * support/valdiags/tests/struct.c: expect possible error messages
6876 referring to original symbol definitions.
6877 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
6879 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
6881 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
6883 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
6885 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
6887 * src/pic16/ralloc.c (newReg): fixed bug #908929
6889 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6891 * src/ds390/gen.c: added missing #include "main.h"
6893 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
6895 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
6896 checking if symbol is already in set,
6897 * src/pic16/device.h: prototype for checkAddSym,
6898 * src/pic16/gen.c: (_G): added entry interruptvector,
6899 * (assignResultValue): removed some commented out lines,
6900 * (genFunction): check for ISR via sym->type, absolute section for
6901 interrupt code is created via a new pBlock, the goto instruction is
6902 placed now correctly at the interrupt vector position, changed all
6903 references from ivec to _G.interruptvector,
6904 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
6905 is the interrupt is a high priority one, same for return from ISR,
6906 * src/pic16/glue.c: changed all calls of addSetHead for publics and
6907 externs to calls of checkAddSym,
6908 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
6909 pic16_pcode_verbose flag is set,
6910 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
6911 * src/pic16/pcoderegs.c: message about how many registers are saved
6912 will only be emitted if pic16_pcode_verbose flag is set,
6914 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6916 * src/ds390/ralloc.h,
6917 * src/ds390/ralloc.c (ds390_regWithIdx),
6918 * src/ds390/gen.c (emitcode),
6920 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
6921 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6922 ds390operandCompare, getRegsRead, getRegsWritten,
6923 initializeAsmLineNode): customized instruction size calculation for
6924 ds390, started basis for some register optimizations
6925 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
6926 corresponding assembly output
6927 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
6928 missing push/pop of r0/r1. Optimized push/pops
6930 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6932 * src/mcs51/main.c (instructionSize): fixed ACALL size
6933 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
6935 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
6937 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
6938 the sorting of rlist with NULL elements
6939 * (print_idataType, print_idata): NEW to create idata sections
6940 * src/pic16/device.h: idataSymSet new variable
6941 * src/pic16/gen.c (genFunction): fixed some bugs in string
6942 comparing, improved the absolute section creation for ISRs,
6943 added FSR0L/FSR0H in registers that are saved in an ISR,
6944 * (genInline): fixed the processing of inline snippets,
6945 now they undergo no process by the peephole optimizer
6946 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6947 are placed in idataSymSet,
6948 * (pic16emitStaticSeg): extern symbols are added in externs,
6949 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6950 switching when aboslute variables are placed in access bank memory
6951 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6952 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6953 commented out with #if,
6954 * (pic16_packRegisters): reintroduce the check for CAST because some
6955 symbols are not correctly handled,
6956 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6957 pCodeInstruction instead of pCode,
6958 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6959 pCodeAsmDir definition,
6960 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6961 directive, then the argument directive is emitted without the leading
6962 tab, hack for inline labels which must be in the first column,
6963 * (compareLabel,pic16_findNextInstruction),
6964 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6965 * (insertBankSwitch): modified for the new pCodeAsmDir,
6967 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6968 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6970 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6972 * (pushSide): commented out with #if,
6973 * (assignResultValue): fixed some typos in saving
6975 * (genPcall): FIXED and sync'ed with genCall,
6976 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6977 * (genNearPointerGet): fixed to handle some more cases,
6978 implementation scheme via table reads,
6979 * (genConstPointerGet): modified to access code memory correct,
6980 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
6981 and improved to handle some cases
6982 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
6983 instead of "RETLW" for init data
6984 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
6985 not IN_DIRSPACE, work around to reduce bank switching when aboslute
6986 variables are placed in access bank memory (<0x80 and >=0xf80),
6987 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
6988 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
6989 TBLWT_POSTDEC,TBLWT_PREINC
6990 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
6991 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
6993 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
6994 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
6995 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
6996 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
6998 2004-02-29 Borut Razem <borut.razem AT siol.net>
7000 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
7001 support/Util/findme.h, support/Util/system.h: enhance binary relative
7002 search for lib and include by using findProgramPath()
7004 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7007 * src/SDCCpeeph.c (pcDistance),
7009 * src/mcs51/ralloc.h,
7010 * src/mcs51/ralloc.c (mcs51_regWithIdx),
7012 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
7013 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7014 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
7015 size calculation port specific, started basis for some register
7017 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
7018 missing push/pop of r0/r1. Optimized push/pops
7019 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
7020 * device/lib/_modsint.c (_modsint),
7021 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
7022 and stack version so regression tests pass
7024 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
7026 * src/Makefile.in (dep): include SLIBOBJS in dependency check
7027 * src/SDCCast.c (decorateType): catch another small optimization
7029 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
7030 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
7031 modified to finally use computeType() all over SDCC,
7032 see Feature Request #877103
7033 * src/SDCCval.h: cosmetic
7034 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
7035 valCompare(); regression tested in muldiv.c
7036 * support/regression/tests/muldiv.c (testMod): mod sign follows
7039 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
7041 * src/SDCCast.c (decorateType): fixed bug #902362
7042 * doc/INSTALL.txt: fixed install instructions for win32
7044 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
7046 * device/include/Makefile.in (install): fixed by replacing spaces
7049 * doc/INSTALL.txt: updated for release
7050 * doc/sdccman.lyx: added warning for --xstack being buggy
7052 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
7054 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
7055 to eliminate build warnings.
7056 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
7058 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
7059 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7061 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
7062 removed -penable-stack, added comment for stack pragma, added
7063 warning for not initializing the stack/frame registers, removed
7064 comment at interrupts section
7066 Stack is made permanent, there is no ability to disable stack usage.
7067 * src/pic16/device.h,
7068 * src/pic16/device.c: removed all references to USE_STACK macro,
7069 * src/pic16/device.c (pic16_dump_section): when no elements in
7070 rlist, free rlist before return,
7071 * (pic16_dump_int_registers): NEW, internal registers are a new set
7072 of general purpose registers reused by each function,
7073 * (checkAddReg): returns 1 if registers is added to set,
7074 * (pic16_groupRegistersInSection): when a registers is of type
7075 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
7076 * src/pic16/device.h: memRange and Assigned Memory are deleted,
7077 SRCASECMP macro is moved here from device.c
7078 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
7079 PO_PCLATU, PO_PRODL, PO_PRODH,
7080 * (pic16_pCodeOpType, genMinus,
7081 changed compares to "a" register, with AOP_ACC,
7082 * (pic16_genPlus): fixed some bugs and indented properly,
7083 * (pic16_addSign): changed size to size+offset in the MOVWF
7085 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
7086 multiply 8-bit operand by literal, result is 8-bit,
7087 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
7088 multiply 2 8-bit operand, result is 8-bit,
7089 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
7091 * src/pic16/gen.c: changed accUse to contain WREG only,
7092 * (pic16_emitcomment): renamed to pic16_emitpcomment,
7093 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
7094 true, do not use immediate addressing any more unless sym is a
7095 pointer in codespace,
7096 * (aopForRemat): do not use immediate addressing when symbol not in
7097 codespace and when symbol's address is requested,
7098 * (aopOp): for-loop in if(sym->accUse) is modified for the new
7100 * (aopGet): added case for AOP_ACC and don't return "accumulator
7101 bug" but WREG instead,
7102 * (popGetTempReg): pushes contents of temporary register in stack,
7103 * (popReleaseTempReg): pops contents of temporary register from
7104 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
7105 * (pic16_popGet): separated case AOP_ACC to return register WREG
7106 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
7107 or PO_IMMEDIATE and initializes their instance/offset appropriately,
7108 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
7109 the use of immediate pointers to certain cases only.
7111 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
7112 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
7113 * (assignResultValue, genCall, genRet): modified to use the new
7114 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
7115 genPcall is still broken,
7116 * (genFunction): added code to create 'A' type pBlocks when
7117 interrupt functions are generated, code not extensively tested yet,
7118 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
7119 * (genEndFunction): modified so ISRs pop stored registers from stack,
7120 * (genMultOneByte): cleanup,
7121 * (AccRsh): added flag andmask, to and result with appropriate mask,
7122 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
7123 * (genDataPointerGet): fixed and reenabled its use,
7124 * (genNearDataPointerGet): bugs fixed,
7125 * (genDataPointerSet): bugs fixed,
7126 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
7127 pic16_DumpSymbol, pic16_DumpOp,
7128 * src/pic16/genutils.h: function prototypes for the above functions,
7129 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
7131 * (pic16emitRegularMap): many many many improvements, but needs a
7133 * src/pic16/main.c: enable_stack in pic16_options is removed,
7134 * (_pic16_parseOptions): removed command line options -penable-stack,
7135 * (_process_pragma): emit stack symbol only when stack pragma is
7137 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
7138 redirected to FSR0L/FSR0H pair,
7139 * (pic16_get_op, pic16_get_op2): modifications and improvements,
7140 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
7141 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
7143 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
7144 * (dumpPicOptype): NEW,
7145 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
7146 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
7147 with movff instruction,
7148 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
7149 added pic16_int_regs, some packRegsFor* functions are commented out,
7150 because produce errors,
7151 * src/pic16/NOTES: minor modifications
7153 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7155 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
7156 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
7158 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
7159 * as/mcs51/lkaomf51.c: fixed bug #895763
7161 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
7163 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
7165 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7167 * doc/sdccman.lyx: added details about the HC08 storage classes and
7168 interrupts, fixed the register usage info for z80 & gbz80
7170 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
7172 * doc/sdccman.lyx: added more pic16 port documentation
7173 * device/include/pic16/: added header pic18fregs.h
7175 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
7177 * doc/sdccman.lyx: added Vangelis' contribution
7179 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7181 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
7182 extend to the next CALL or PCALL, not just to the next CALL.
7184 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
7186 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
7188 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7190 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
7191 bug #895752 and a better fix for bug #716790
7193 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7195 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
7197 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7199 * doc/sdccman.lyx: minor changes, minor changed
7201 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
7203 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
7204 which can't handle SDCC_NEWONEBYTEOPS,
7205 (geniCodeMultiply): removed conversion from mult to shift for pic14
7208 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7211 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
7212 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
7213 thus fixing bug #895406
7215 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
7217 * device/lib/_modsint.c,
7218 * device/lib/_modslong.c: sign follows divisor only
7219 * src/hc08/gen.c (genMultOneByte): if result size is 1,
7220 signs or signedness can be ignored
7221 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
7222 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
7223 added optimization for IFX,
7224 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
7226 reenabled optimization for IFX, which was removed on 2004-01-11
7227 * src/SDCCast.h: added return type IFX
7228 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
7229 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
7230 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
7231 SDCC_OLDONEBYTEOPS selects the old behaviour
7232 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
7233 changed again and commented promotion rule
7234 * src/SDCCval.c (valDiv): promotion no longer necessary
7235 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
7236 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
7238 * support/regression/tests/onebyte.c: added
7240 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
7242 * gen.c (genInline): reverted to old code for assemnling inline
7243 code because of bug reported James Chadd
7245 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
7247 * ralloc.h: missing declarations from previous patch,
7248 seems that patch for ralloc.h was never applied, fixed
7250 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7251 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7255 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
7256 indirect addressing. Marked FSR0 as deprecated
7257 * gen.c (pointerCode): commented out, not needed now
7258 (pic16_popGet2p): new MOVFF helper function
7260 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
7261 (shiftRLong): removed duplicate debugging info
7263 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7265 * src/ds390/gen.c (genNearPointerGet),
7266 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
7267 optimization with bits, but not bitfields.
7268 * src/ds390/ralloc.c (packRegisters),
7269 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
7271 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
7273 * src/SDCCcse.c (algebraicOpts): copy operands before modification
7275 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7278 * src/SDCCicode.c (operandFromSymbol),
7279 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
7280 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
7281 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
7282 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
7283 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
7284 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
7286 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
7287 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
7288 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
7289 * src/SDCCsymt.c (newSymbol),
7290 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7293 * src/SDCCval.c (newiList): fixed bug #885705
7295 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7297 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
7298 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
7300 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7302 * device/include/c8051f120.h,
7303 * device/include/c8051f300.h,
7304 * device/include/c8051f310.h: added/updated header files for Silicon
7305 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7306 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
7307 in new section Submitting patches
7309 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7311 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
7312 genFarPointerGet, genCodePointerGet, genGenPointerGet,
7313 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7315 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
7316 genFarPointerGet, genCodePointerGet, genGenPointerGet,
7317 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7319 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
7320 genFarPointerGet, genCodePointerGet, genGenPointerGet,
7321 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7323 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
7324 genFarPointerGet, genCodePointerGet, genGenPointerGet,
7325 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7326 genGenPointerSet): fixed bug #892400
7327 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
7328 to eliminate build warnings.
7329 * src/SDCCast.c (processParms),
7330 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
7332 * support/valdiag/valdiag.py: added GCC to the list of defines active
7333 when compiling with gcc
7335 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7337 * support/Util/SDCCerr.h,
7338 * support/Util/SDCCerr.c,
7339 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
7340 with an incomplete type (fixed bug #883734)
7341 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
7343 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7345 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
7347 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7349 * src/SDCCast.c (decorateType),
7350 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
7351 function pointer implementation
7352 * support/regression/tests/funptrs.c: added tests to verify both forms
7353 of function pointers work correctly. Added tests to verify parameters
7354 are passed in the correct order.
7356 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
7358 * device.c (regCompare): registers are sorted by ascending
7359 address and increasing size,
7360 * main.c (_pic16_finaliseOptions): removed the declaration
7361 of compiler macro MCU. Now a macro of the format pic18fxxxx
7362 will be defined from the command line
7364 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7365 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7367 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
7368 PCOP_RLCF was overwritten!
7369 * gen.c (genSkip): commented out calls to pic16_emitcode,
7370 * (genCmpEQ): fixed "long" compares, only high word did get compared,
7372 * (genRRC): added debugging info,
7373 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
7374 overwritten while shifting,
7375 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
7376 overwritten while shifting,
7379 * (shiftLLeftOrResult),
7380 * (shiftRLeftOrResult),
7382 * (shiftLLong): Implemented with pic16_emitpcode
7383 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
7384 * (genLeftShift): Fixed bug, operand for shift by variable always
7385 was "and"ed with 0x0f,
7386 * (genLeftShiftLiteral),
7388 * (genRightShiftLiteral): added debugging info,
7389 * (genrshFour): added comment,
7390 * (genRightShift): determined signedness from operand "left"
7393 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7395 * src/SDCCicode.c (geniCodeParms),
7396 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
7397 function pointers, fixed function pointer bugs #861242 and #861896
7399 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7401 * device/include/c8051f000.h,
7402 * device/include/c8051f120.h,
7403 * device/include/c8051f300.h: added header files for Silicon
7404 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7406 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
7408 * src/SDCCast.c (processParams): added new type flow and restructured
7409 (gatherAutoInit): added new type flow
7410 (addCast): cosmetic changes
7411 (getLeftResultType): added new type flow for array indices, patch
7412 provided by Stas, see FR #877103
7413 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
7414 array index patch by Stas
7415 * src/SDCCast.h: added prototype getResultTypeFromType()
7417 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
7418 * src/pic/glue.c (pic14emitStaticSeg),
7419 * src/pic16/glue.c (pic16emitStaticSeg),
7420 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
7421 for initialization of symbols
7422 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
7423 * support/Util/SDCCerr.h:
7424 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
7425 * .version: bumped version number to 2.3.8
7426 * device/include/Makefile.in (install),
7427 * doc/Makefile (install): changed to 'rm `find ...`' construct to
7430 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
7432 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
7433 Slade Rich fixed an optimization bug
7434 * src/pic/pcodepeep.c,
7435 * src/pic/pcoderegs.c
7436 * doc/Makefile (install): added test for directory
7438 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7440 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
7441 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
7442 * src/pic/ralloc.c (getRegPtr, getRegGpr),
7443 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
7444 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
7445 * as/mcs51/asexpr.c (term),
7446 * as/hc08/asexpr.c (term): fixed bug #887146
7448 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7450 * src/z80/gen.c (genMult): handle single byte result product
7451 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
7452 DUMMY_READ_VOLATILE (fixed bug #886367)
7454 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7456 * support/regression/tests/libmullong.c: fixed logic, on little endian
7457 hosts we ended without a mullong_wrapper()
7459 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7461 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
7462 virus/worm forged address usage.
7464 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7466 Fixed promotion, it should be done on AST level:
7467 * src/SDCCast.c (addCast): added promotion to int
7468 (decorateType): updated call to upCast()
7469 * src/SDCCicode.c (geniCodeLeftShift): removed call to
7470 usualUnaryConversions()
7472 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
7474 * support/regression/tests/literalop.c (mulWrapper): Added a
7475 wrapper to remove integer overflow warnings.
7477 * support/regression/tests/float_trans.c: Made work on host.
7479 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
7482 * support/regression/generate-cases.py (main): Changed from inline
7485 * doc/Makefile (install): Changed to depth first to get rid of
7486 missing directory install warning.
7488 * as/Makefile (install-doc): Made work on Mac.
7490 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
7492 * src/SDCCast.c: added an additional type flow in decorateType() of
7493 opposite direction, see feature request #860006; it's enabled at runtime
7494 by setting the environment variable SDCC_NEWTYPEFLOW
7495 * src/SDCCast.h: changed prototype of decorateType()
7496 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
7497 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
7498 'char' to 'int' can be omitted, if both operands are 'unsigned char';
7499 see feature request #877103
7500 * src/SDCCval.c: updated call of decorateType()
7501 (valBitwise): fixed bug #882876
7502 (valMinus): added promotion
7503 (valLogicAndOr): result is unsigned
7504 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
7505 * src/SDCCsymt.c (computeType),
7506 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
7507 must not cause an unsigned operation
7508 * src/pic/glue (pic14emitRegularMap),
7509 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
7511 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
7513 * src/pic/pcode.c (PCodeID): commented out left over debug code
7515 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7517 * support/valdiag/tests/overflow.c: added shift tests
7525 * src/pic/pcodepeep.c,
7526 * src/pic/pcoderegs.c,
7528 * src/pic/ralloc.h: applied patch from Slade Rich;
7529 added support for multiple code pages and multiple RAM banks on the
7530 PIC 14 port. The ASM files now no longer simply assume all the
7531 code / RAM are in the same page / bank. This means the linker can
7532 safely allocate code/RAM of separate ASM files to different pages/banks.
7533 * doc/sdccman.lyx: added Slade's tips
7534 * src/mcs51/peeph.def: fixed bug #880768
7536 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7538 * src/hc08/ralloc.c (rematStr): fixed bug #879282
7539 * src/SDCCast.c (decorateType): fixed bug #880197
7541 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
7543 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
7546 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
7547 strtof is not part of C89 and isn't included with Mac OS X.
7549 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7551 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
7552 shiftL2Left2Result): fixed bug #879326
7553 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
7554 (genMultOneByte): fixed bug in signed vs unsigned multiplication
7555 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
7556 address fetch for clr instruction
7557 * device/lib/hc08/_mulint.c: created optimized assembly version
7558 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
7560 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
7562 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
7563 proposed in FR #877103
7565 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7567 * src/SDCCval.c (cheapestVal): added missing checks
7568 * src/SDCCicode.c (usualBinaryConversions): fixed condition
7569 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
7571 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
7573 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
7576 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
7578 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
7579 loaded with the linker search paths (-L arguments) and the libraries
7580 to be linked with the current source (-l arguments). Changes
7581 currently will affect only the pic16 port.
7582 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
7583 include path the port specific paths and port specific libraries,
7584 * gplink command now contains the $3 argument,
7585 * src/pic16/device.h,
7586 * src/pic16/device.c,: structure PIC_device is made public and
7587 renamed to PIC16_device, the same for variable Pics which is renamed
7588 to Pics16. Updated all references to them.
7589 * src/pic16/glue.c (pic16glue): corrected bug with code
7590 initialization which bypassed the variable initializations block.
7592 * device/lib/pic16/Makefile.rules: removed --penable-stack from
7593 COMPILE_FLAGS and added the --nostdinc option
7595 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7597 * device/include/mc68hc908jb8.h: Register defs for another member
7598 of the hc08 family. Contributed by Bjorn Bringert - thanks!
7600 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
7602 Documenting changes from previous commits.
7603 * configure.in (version 1.56),
7604 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
7605 when generating output files to configure the pic16 library,
7606 but now I've commented it out, since gputils aren't installed in the
7607 SF compile farm, so library won't compile
7609 * device/lib/Makefile.in (version 1.56): initially I've added in
7610 target 'all' the prerequestive 'model-pic16' so it compiled the
7611 pic16 library, but now I've commented it out for the same reasons
7613 * added targets 'model-pic16' and 'objects-pic16' to compile the
7615 * added target 'port-specific-objects-pic16' to handle the
7616 generated libraries and copy them into the build/ directory
7617 * added target 'clean-intermediate-pic16' to clean intermediate
7618 files into pic16 directory
7619 * in target 'installdirs' added line to create directory pic16 in
7620 the installation path
7622 * device/include/Makefile.in (version 1.11): in target 'install'
7623 added lines to copy all header files to installation path,
7624 * in target 'installdirs' added line create directory for pic16
7625 headers in the installation path
7627 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
7629 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
7632 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
7635 * device/lib/configure.in,
7636 * device/lib/configure: fixed for autoconf 2.57
7638 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7640 * src/z80/main.c (_parseOptions): fixed the portmode= command line
7641 option so that it actually works. Made it specific to the z80, since
7642 the gbz80 doesn't have these kinds of I/O ports.
7644 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7646 * device/include/z180.h,
7647 * device/lib/_memcpy.c,
7648 * device/lib/_memmove.c,
7649 * device/lib/_mulint.c,
7650 * device/lib/ser_ir.c,
7651 * device/lib/ser_ir_cts_rts.c,
7652 * device/lib/_strcmp.c,
7653 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
7654 * src/z80/main.c (_process_pragma): add support for pragmas bank and
7655 portmode; added deprecation warning for bank= and protmode= forms.
7656 Also, guard against buffer overflow.
7657 * src/z80/gen.c (aopGet): generate better code for sfr banked read
7659 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7661 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
7662 changed interrupt vector table generation to only emit declared vectors.
7663 * device/include/Makefile.in: added missing backslash
7664 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
7666 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7668 Mainly changes to support compilation of the device libraries
7669 * src/pic16/device.c: stack is allocated via symbol and not
7670 via literal number. The symbol is placed in the corresponding
7671 position of the data ram
7672 * (pic16_dump_section): relocatable and absolute uninitialized
7673 data are now emitted in sorted order to reduce section naming,
7674 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
7675 weren't marked as being in the access bank,
7677 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7679 Added portion of GNU PIC Library under the directory
7680 device/include/pic16 and device/lib/pic16. These files
7681 contain the declarations of SFRs for the PIC18Fxx2 devices.
7682 The directory is initialized via configure from toplevel.
7684 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
7686 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
7687 the spilllocations to be compared correctly
7689 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7691 * src/SDCCast.c (decorateType): fixed bug introduced today
7693 2004-01-12 Borut Razem <borut.razem AT siol.net>
7695 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
7696 doc/sdccman.lyx: upper case pragmas are deprecated
7698 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7700 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
7701 in simpler and even better code
7703 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7705 * src/SDCCicode.c (operandOperation): fixed bug #874819
7706 * src/SDCCast.c (decorateType): fixed
7707 char foo (unsigned long ul) { return ul > 0; }
7709 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7711 * doc/sdccman.lyx: Moved and added some sections, small changes
7712 all over. Telling LaTeX to be less strict with word spacing
7713 to better keep the right margin. Changed some notes about
7714 maintainance of the ports in section 3.2.1 - is it OK like this?
7716 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7718 SDCC source changes:
7719 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
7720 convilong): modified to inform the pic16 port that builtin functions
7723 PIC16 PORT specific changes:
7724 * src/pic16/device.c pic16_dump_equates() added,
7725 processor registers declared internally by the port are emitted in
7726 the translation as equates,
7727 * src/pic16/gen.c: inline code is passed unprocessed to the
7729 * (pic16_popGetLit2): fnuction modified to take second operand as
7730 pCodeOp pointer and not as literal,
7731 * (popRegFromIdx): prefixed with pic16_,
7732 * (pic16_popCombine2): modified to receive already allocated pCode
7734 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
7735 * (genFunction): initializes local stack frame and pushes on stack
7736 all the registers used by this function,
7737 * (genEndFunction): restores all registers from stack and restores
7739 * src/pic16/glue.c (pic16emitRegularMap): various changes and
7741 * (pic16glue): changed the program startup sequence,
7742 * added new dbName code 'A' for functions placed in absolute section
7743 * src/pic16/main.c: added function attribute _naked,
7744 * added pragma 'code' to place a fnuction at an absolute address,
7745 * added command line arguments --debug-ralloc and --pcode-verbose,
7746 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
7747 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
7748 * (pic16_newpCodeOpLit2): modified to take the second operand as
7750 * (pic16_printpBlock): modified to emit each function in a separate
7752 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
7753 UPPER for immediate operands,
7754 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
7756 * src/pic16/peeph.def: all peepholes with movff are commented out,
7757 because there is a problem in the pcode peep optimizer,
7758 * src/pic16/ralloc.c: the register allocator can now reuse local
7759 function symbols for another function. This saves register usage.
7760 * src/pic16/ralloc.h: added flag isLocal in structure regs,
7762 Added file src/pic16/NOTES with information about program writing on
7763 the current port version.
7765 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7767 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
7768 and peephole 252 (array access)
7770 2004-01-09 Borut Razem <borut.razem AT siol.net>
7772 * src/SDCCmain.c : fixed #872250: -l command line defined library
7773 files are scanned before standard library files
7775 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7777 * src/SDCCast.c (decorateType): fixed bug #874046
7779 2004-01-09 Borut Razem <borut.razem AT siol.net>
7781 * support/scripts/sdcc.nsi: remove previous installation
7783 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7785 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
7786 bytes for last interrupt vector (mcs51)
7787 * sdcc.spec: fixed typo
7789 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7791 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
7792 gen51Code): more efficient parameter receive for --model-large
7795 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7798 * src/z80/main.c: added missed needLinkerScript flags (more than
7799 one port structure defined in these file)
7800 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
7803 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
7805 * src/SDCCmain.c: removed various references to DEFAULT_PORT
7806 * src/port.h: added flag needLinkerScript in port->linker
7807 structure to inform whether to create a .lnk file or not,
7815 * src/z80/main.c: changed appropriately to configure
7816 needLinkerScript flag
7818 * src/pic16/gen.c (genAddrOf): fixed bug #863624
7819 * src/pic/glue.c: added variable udata_section_name to
7820 override default uninitialized data segment definition for
7821 devices only with SHAREBANK memory (reported from Erik Epetrich)
7822 * (pic14emitOverlay): modified to emit a commented overlay segment
7823 directive when no overlay data exist
7824 * (picglue): modified to emit uninitialized data segment
7825 according to udata_section_name
7826 * src/pic/main.c (_pic14_parseOptions): added command line
7827 options --udata-section-name=[name] to override default
7828 udata definition name
7829 * modified _linkCmd and _asmCmd to include compiler passed
7830 arguments via -W option
7831 * src/pic16/main.c: added $l in _asmCmd, changed extension for
7832 object file from '.rel' to '.o' in port->linker structure,
7833 changed size of fptr from 2 to 3 in port structure
7835 2004-01-07 Borut Razem <borut.razem AT siol.net>
7837 * support/scripts/sdcc.nsi: update PATH
7838 * support/scripts/sdcc.ico: craeted
7840 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
7842 * device/include/Makefile.in: fix install
7843 * doc/Makefile: fix install
7845 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7847 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
7849 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
7850 how the function variable allocation summary is displayed; also
7851 include information about variables allocated to the overlay
7854 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7856 * as/mcs51/lkmain.c: Help about -Y option
7857 * as/mcs51/lkarea.c: Fixed gcc warnings
7859 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7861 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
7863 * support/valdiag/tests/overflow.c: added
7864 * src/SDCCast.c (decorateType),
7865 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
7866 LEFT_OP (left shift)
7868 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7870 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
7871 (default behaviour).
7873 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7875 A python script to validate compiler diagnostic messages. It can be
7876 used to verify that sdcc complains about bad c source code and
7877 gives a good location of the error.
7878 * support/valdiag/Makefile,
7879 * support/valdiag/valdiag.py,
7880 * support/valdiag/tests/*
7882 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7884 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
7885 * src/SDCCsymt.c (newEnumType),
7887 * support/Util/SDCCerr.c,
7888 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
7890 * support/regression/tests/enum.c: added test for enum values that
7891 require at least 2 bytes of storage.
7893 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7895 * src/common.h: added ifndef/define/endif macros
7896 around the header file.
7897 Bug reported from Jesus Calvino-Fraga
7899 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7901 * sdcc.spec: updated
7902 * device/include/Makefile.in: don't install CVS directories
7903 * device/lib/Makefile.in: added removal of CVS directories after install
7904 * doc/Makefile: fixed install, added local_icons
7905 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
7906 * src/mcs51/gen.c (genRightShift): fixed bug #870788
7907 * src/ds390/gen.c (genRightShift): fixed bug #870788
7908 * src/SDCCast.c (decorateType): fixed bug #870781
7910 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7912 PIC16 port related changes:
7913 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
7914 added variable stackPos,
7916 * gen.c: genCall, assignResultValue: added support for
7917 pushing/retrieving function parameters to/from stack,
7918 genFunction,genEndFunction: setup stack frame for the
7920 genAddrOf: will be changed according to bug 863624
7922 * added files genutils.c and genutils.h which contain gen*
7923 debugged and optimised functions extracted from gen.c
7925 * glue.c: added variable 'externs' which holds extern symbols,
7926 pic16emitRegularMap: is modified to properly handle relocatable
7927 symbols under the new scheme,
7928 pic16createInterruptVect: is modified
7929 pic16printPublics: is modified to emit 'global' assembler directives,
7930 added pic16_printExterns to print extern symbols,
7931 pic16glue: initializes stack/frame pointer in the beginning of
7932 the assembly output. Temporary hack, will be corrected later,
7933 because gplink yet does not support stack and SDCC does not
7934 yet support a type of crt0.o object to create the final binary.
7936 * Removed many lines that contain 8051 legacy code.
7937 * The code is finally placed under a 'code' directive.
7938 * Added port specific options.
7940 * _process_pragma: simplified since now we do not need *special*
7941 include file to define SFR registers. But a separate header
7942 will be needed. This will be developed later.
7943 * _pic16_parseOptions: added, parses port specific options:
7944 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7945 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7946 --preplace-udata-with=
7948 * _pic16_setDefaultOptions: modified to initialize section names,
7949 but hack is temporarly out of order since it needs improvement.
7950 * _pic16_genAssemblerPreamble: configuration words are emitted by
7951 their address instead of their name. This part is incomplete and
7952 supports only the 18Fxx2 devices. Other devices will emit an error
7953 during assembly since they do not contain the same set of config
7955 * _pic16_genIVT: is modified,
7957 * pcode.c: added definitions for some hardware registers that are needed
7959 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7960 All PCI entries are updated. Now LFSR is supported.
7961 * Removed pic16_pciTRIS is mentioned by mdubuc in source
7962 * added pic16_newpCodeOpLit2 to support instructions with
7963 two literal arguments
7964 * pic16_pCode2str: corrected code that emits assembler instructions
7965 with two literal operands and those that have an access bit modifier
7966 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7967 this fixes a bug which caused some labels to be lost, when an
7968 assembler directive was added, i.e. banksel,
7969 * pic16_FixRegisterBanking: improved logic that causes the insertion
7971 * InlineFunction: functions that are called once, are not any more
7972 inlined. This can be a port option in the future,
7974 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7976 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7977 hold the corresponding uninitialized symbols,
7978 * pic16_allocProcessorRegister: registers have explicit marked the
7980 * pic16_allocInternalRegister: registers are explicit marked as
7982 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
7983 processing list, so bit registers were lost,
7986 * ralloc.h: added field 'accessBank' and original symbol operand
7987 in register definition,
7988 * removed the field isMapped from register definition,
7990 ** Several functions have been removed from various sources:
7991 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
7992 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
7993 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
7994 pic16_assignRelocatableRegisters
7996 ** others have been introduced:
7997 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
7998 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
8000 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
8002 * support/scripts/inc2h.pl: changed definition of BIT_AT
8003 to emit 'sbit at' instead of 'bit at'. This was a request.
8005 PIC16 port related preliminary changes:
8006 * gen.c: prefixed function popRegFromString with
8007 pic16_ and all references to it corrected
8008 * pcode.c: all pic16_pc_* hardware registers prefixed
8009 with underscore (_),
8010 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
8011 * ralloc.c: newReg(): when register is REG_SFR then
8012 set address to rIdx,
8013 pic16_allocProcessorRegister(): marks register wasUsed=0
8014 pic16_writeUsedRegs(): added a call to assign processor
8015 registers via pic16_assignFixedRegisters
8017 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8019 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
8020 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
8021 variables in unused register banks. Also the SSEG is placed
8022 wherever there is enough space for it, and IDATA can be anywhere
8023 in internal RAM. For now compile using -Wl-Y[stack_size].
8024 The mem file is different for this option as well, since it
8025 makes no sense of talking about DSEG lenght.
8027 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
8029 * src/SDCClrange.c: fixed bug 869095 that caused segfault
8030 in certain cases, e.g. when ROM assignment, patch provided
8031 from Albert den Haan.
8033 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
8035 Many signedness and type propagation fixes:
8036 * src/SDCCicode.c: made geniCodeCast() static
8037 replaced SPEC_ by IS_ (cosmetic)
8038 (operandOperation): fixed div and mod operation
8039 (usualBinaryConversions): added support for promotion of char
8040 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
8041 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
8042 (geniCodeAdd): an array index will stay unsigned, even if promoted
8044 (geniCodeArray): ditto
8045 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
8046 * src/SDCCsymt.c (computeType): added more support for char;
8047 promotion of char is selectable by promoteCharToInt, fixed signedness
8049 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8050 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8051 * src/SDCCval (val*): replaced signedness calculation by
8053 rearranged if-branches (cosmetic)
8054 (valShift): added warning W_SHIFT_CHANGED
8055 (valCompare): fixed problem with different types
8056 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
8057 * support/regression/tests/literalop.c: added many cases
8058 * support/regression/tests/ast_constant_folding.c: changed finally to
8060 * .version: new year, new version: 2.3.7
8061 * src/SDCCmain.c (main): applied patch #866468
8062 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
8063 provided by Scott Bronson
8064 * doc/sdccman.lyx: updated documentation for sdcdb
8065 updated and added chapter tips
8067 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8069 * src/SDCCsymt.h: missing from yesterday's commits
8071 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8073 * src/SDCC.y (struct_or_union_specifier),
8074 * support/Util/SDCCerr.c,
8075 * support/Util/SDCCerr.h: verify that struct & union tags are used
8078 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8080 * src/SDCCglobl.h: missing from yesterday's commits
8082 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8084 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
8085 sft_attributes, struct_declaration, parameter_declaration,
8086 type_name, start_block, declaration_list),
8087 * src/SDCC.lex (check_type): support redefinition of typedef names
8089 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8091 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
8092 aligned xdata arrays. Erik helped me with the if clause.
8094 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8096 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
8099 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8102 * src/SDCCast.c (newAst_),
8104 * src/SDCCicode.c (ast2iCode, newiCode),
8106 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
8107 expr, statement, expression_statement, selection_statement,
8108 iteration_statement, expr_opt, jump_statement): foundation for tracking
8110 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
8113 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8115 * support/Util/SDCCerr.c,
8117 * src/SDCCast.c (createCase, createDefault, decorateType),
8118 * src/SDCClabel.c (labelUnreach),
8119 * src/SDCC.y (labeled_statement, jump_statement): More improvements
8121 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
8122 (with thanks to Stas Sergeev)
8123 * device/include/time.h,
8124 * device/lib/time.c (CheckTime): suppress unreachable code warning
8126 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8128 * src/SDCCast.c (createIvalCharPtr),
8129 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
8131 * support/regression/tests/nullstring.c: tests for these two bugs
8133 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8135 * support/Util/SDCCerr.h,
8136 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
8137 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
8138 about storage class and 'at' used inside struct or union
8139 * src/SDCCBBlock.c (iCodeFromeBBlock),
8140 * src/SDCCcse.c (ifxOptimize),
8141 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
8142 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
8143 printIval, emitStaticSeg, emitOverlay),
8144 * src/SDCClabel.c (deleteIfx),
8145 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
8146 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
8147 gatherAutoInit, processParms),
8148 * support/Util/SDCCerr.h,
8149 * support/Util/SDCCerr.c (werrorfl): Support for better error location
8150 reporting for post-parse errors.
8152 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8154 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
8155 implicit casts via union; they don't work on big endian systems
8156 (possible fix for bug #861138)
8158 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8160 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
8161 * src/mcs51/main.c: fixed the fix for bug #737001
8163 2003-12-15 Borut Razem <borut.razem AT siol.net>
8165 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
8167 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8169 * support/makebin/makebin.c: put output in binary mode
8171 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8173 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
8174 xdata and data memory on startup. Set the environment variable
8175 SDCC_NOGENRAMCLEAR to disable this.
8176 * src/mcs51/peephole.def,
8177 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
8178 (allows non-interrupt and interrupt code to safely compete for a resource
8179 without the non-interrupt code having to disable interrupts)
8181 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8183 * src/SDCCicode.c (geniCodeAdd),
8184 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
8185 with valFromType if type might be a pointer and host is big endian).
8186 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
8187 types, not just integer types.
8188 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
8189 multiply defined with mismatching "at" address.
8191 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8193 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
8194 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
8195 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
8196 with embedded nulls (fixed bug #753752)
8198 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8200 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
8201 Apparently this did not see much testing (endless loop)
8203 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8205 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
8207 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8209 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
8210 gracefully handle NULL memmap pointers
8212 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8214 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
8215 instead of deleting the iCode when an operand is volatile
8216 * src/z80/gen.c (genDummyRead),
8217 * src/mcs51/gen.c (genDummyRead),
8218 * src/ds390/gen.c (genDummyRead),
8219 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
8221 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
8222 * src/SDCC.y: fixed bug #850420
8224 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8226 Applied z80 i/o port patch from Peter Townson and fixed some operators
8227 to better handle operands in A register.
8228 * device/include/z180.h
8234 * src/z80/peeph-z80.def
8238 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8240 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
8242 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8244 * device/lib/hc08/_mullong.c: Removed extra #endif
8246 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8248 * sim/ucsim/hc08.src/inst.cc,
8249 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
8251 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
8252 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
8253 * device/include/stdarg.h: fixed varargs for hc08
8254 * device/lib/Makefile.in,
8255 * device/lib/hc08/Makefile,
8256 * device/lib/hc08/_mulint.c,
8257 * device/lib/hc08/_mullong.c: fixed some endian problems
8259 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8261 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
8262 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
8263 * device/lib/_gptrget.c,
8264 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
8266 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8268 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
8269 * src/SDCCast.c (astErrors): fixed bug #846007
8270 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
8272 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8274 * src/SDCCast.c (decorateType): disabled a transformation I added in
8275 revision 1.188 (access to fields of a structure at an absolute address);
8276 it breaks with bitfields, extern declarations, and gcse analysis.
8277 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
8278 could be assigned through a pointer, so don't complain.
8279 * src/SDCCast.c (astErrors),
8281 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
8283 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
8285 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
8286 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
8287 output of __config directives, since gpasm now supports them
8288 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
8289 pre-processor macro, i.e. -DMCU=p18f452
8290 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
8291 and modified to handle 'cast' icode similarly to '=' icode
8292 * src/pic16/device.h (typedef struct PIC_device): added field
8293 'extMIface' to indicate that chip has external memory interface
8294 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
8295 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
8298 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8300 * src/SDCC.y (pointer): fixed bug #846006
8301 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
8302 * src/SDCCast.c (decorateType): fixed bug #846009
8303 * src/ds390/peeph.def,
8304 * src/ds390/gen.c (genAnd, genOr),
8305 * src/mcs51/peeph.def,
8306 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
8308 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8310 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
8317 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
8321 * src/SDCCbitv.c: added function to free a bitvector
8323 * src/SDCClrange.c: added function to recompute the liveranges
8325 * src/ds390/ralloc.c,
8326 * src/hc08/ralloc.c,
8327 * src/mcs51/ralloc.c,
8329 * src/pic16/ralloc.c,
8330 * src/xa51/ralloc.c,
8331 * src/z80/ralloc.c: recompute the liveranges after register packing
8333 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
8335 * src/SDCCloop.c (newInduction): fixed bug #845630
8337 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8339 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
8340 inadvertantly left behind from my 2003-11-12 change
8342 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8344 Updated headers I neglected to commit yesterday.
8348 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8350 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
8351 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
8352 * src/SDCCopt.c (eBBlockFromiCode),
8353 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
8354 the creation of the key hash table from the sequencing so it can be used
8355 earlier (for some GCSE bug fixes still pending)
8357 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8359 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
8360 * support/regression/tests/addsub.c: testing genPlus shortcut
8362 2003-11-15 Borut Razem <borut.razem AT siol.net>
8364 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
8366 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8368 * src/SDCCcse.c (cseBBlock): fixed bug #527779
8369 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
8370 ordering is immaterial.
8371 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
8373 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8375 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
8376 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
8377 (SIGSEV) of bug #840381
8378 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
8379 unlink new file before rename if new and old filenames are the same)
8381 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8383 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
8384 uninitialized variables) for the mcs51. Set environment variable
8385 SDCC_GENRAMCLEAR to test.
8386 xdata initialization slightly shorter
8388 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8391 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
8392 #838241 & 780691 (basicly the same bug)
8393 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
8394 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
8396 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
8398 * src/SDCCmain.c (linkEdit): "fix" #834252
8400 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8402 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
8404 * src/SDCC.y: fixed bug #819403
8406 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8408 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
8409 the reentrant attribute.
8410 * src/hc08/gen.c (genPackBits): added missing stack readjustment
8411 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
8413 * src/SDCCast.c (decorateType): fixed bug with storage class not being
8414 updated during pointer dereference; f.e. ~(((char *)1)*) was being
8415 erroneously reduced to a literal.
8416 * src/hc08/ralloc.c (packRegisters, rematStr),
8417 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
8420 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8422 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
8423 * doc/sdccman.lyx: changed from 'article' to 'book'
8424 * doc/Makefile: readded test_suite_spec and cdbfileformat
8426 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
8428 * device/include/stdlib.h: include malloc.h to comply with ANSI
8429 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
8431 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8433 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
8434 * doc/clean.mk: also remove *.out files
8435 * doc/sdccman.lyx: some additions, larger top/bottom margins
8437 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8439 * src/SDCC.y: fixed bug #837365
8440 * support/regression/tests/bitopcse.c
8441 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
8442 a symbol (might be valop instead)
8443 * device/lib/Makefile.in: added errno.c to HC08SOURCES
8444 * device/lib/clean.mk: added hc08 to the cleaning list
8446 2003-11-04 Borut Razem <borut.razem AT siol.net>
8448 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
8450 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8451 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
8452 malloc is declared in standard stdlib.h
8454 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8456 * device/lib/hc08/Makefile: need to clean .rel not .o files
8457 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
8459 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8469 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
8470 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
8471 tests (which uses the port's oclsExpense function)
8477 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
8479 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8481 * src/SDCCcse.c (ifxOptimize),
8482 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
8483 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
8484 deleting the IFX iCode.
8485 * src/hc08/ralloc.c: reduced unneeded slocs
8486 * src/hc08/gen.c: fixed bug in asmopToBoolean
8488 2003-11-04 Borut Razem <borut.razem AT siol.net>
8490 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
8491 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8492 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
8493 transferred to configure
8495 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
8497 Use headers defined in the C[++] standards:
8498 * sim/ucsim/gui.src/serio.src/fileio.cc
8499 * sim/ucsim/gui.src/serio.src/frontend.cc
8500 * sim/ucsim/gui.src/serio.src/main.cc
8501 * sim/ucsim/gui.src/serio.src/posix_signal.cc
8502 * support/Util/NewAlloc.c
8508 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8510 * Added MSVC projects for hc08 assembler and linker:
8511 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
8512 /as/hc08/link_hc08.dsp
8514 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
8516 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
8518 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
8520 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
8522 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8524 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
8526 2003-10-31 Borut Razem <borut.razem AT siol.net>
8528 * support/cpp2/cpplib.h,
8529 support/cpp2/cpplib.c,
8530 support/cpp2/cpplex.c,
8531 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
8532 to switch _asm block preprocessing on / off. Default is
8533 #pragma preproc_asm +
8535 2003-10-31 Borut Razem <borut.razem AT siol.net>
8537 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
8538 when outputting comment blocks (when executed with -C option) and
8539 _asm (SDCPP specific) blocks
8541 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8543 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
8545 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
8547 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
8549 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
8551 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
8552 * src/SDCCast.c (decorateType): fixed bug #832664
8554 2003-10-31 Borut Razem <borut.razem AT siol.net>
8556 * support/cpp2/cpplex.c: fixed for SDCPP:
8557 comments(when executed with -C option) and _asm blocks
8558 were included even if they where in skipped #if block.
8559 Applied solution from GCC cpp 3.3.2
8561 2003-10-31 Borut Razem <borut.razem AT siol.net>
8563 * src/SDCC.lex: sdcc now understands both formats:
8564 '# <line_number> <file_name>' and
8565 '#line <line_number> <file_name>'
8566 * support/cpp2/cppmain.c: sdcpp now generates the standard
8567 '# <line_number> <file_name>' instead of former
8568 '#line <line_number> <file_name>'
8570 2003-10-30 Borut Razem <borut.razem AT siol.net>
8572 * support/cpp2/cpphash.h,
8573 * support/cpp2/cpplib.h
8574 * support/cpp2/cpplex.c,
8575 * support/cpp2/cppmain.c,
8576 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
8578 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8580 Fixed a number of problems revealed by bug #827883.
8581 * src/SDCCloop.c (loopInvariants): Spill location of the
8582 result operand should be recomputed if extracted from
8583 a loop. Also, don't extract assignments of an iTemp
8585 * src/SDCCast.c (isConformingBody): loop reversal should
8586 not occur if the control variable is involved with a
8587 relational operator.
8589 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
8591 * .version: bumped to 2.3.6 to reflect the big improvements
8592 made by Erik and Klaus. Thanks!
8594 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
8596 Replaced the livrange code.
8597 * src/SDCClrange.c: added new LR code
8599 * src/SDCCBBlock.h: removed remainig parts from old LR code
8600 * src/ds390/ralloc.c,
8601 * src/ds390/gen.c: minor fixes to make it work with new code
8603 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8608 * src/hc08/ralloc.c: Fix various warnings related to the hc08
8609 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
8610 (tweaked fix for bug #818696)
8612 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8614 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
8616 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8619 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
8620 * src/mcs51/gen.c (gencjneshort),
8621 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
8622 more efficient (per Scott Bronson's suggestion)
8624 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8626 Extended the semantics of the critical keyword to include
8627 individual statements. See RFE #827755 and #799831
8632 * support/Util/SDCCerr.c
8633 * support/Util/SDCCerr.h
8638 2003-10-19 Borut Razem <borut.razem AT siol.net>
8640 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
8642 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8644 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
8646 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
8647 and predecrement operand is displayed
8649 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8651 * src/SDCCval.c (valMinus): fixed bug #826041
8653 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8655 Some hc08 related updates that I missed earlier
8656 * sim/ucsim/stypes.h
8657 * support/regression/ports/hc08/spec.mk
8659 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8661 New target "hc08" for the Motorola 68hc08 family of micros
8669 * sim/ucsim/hc08.src/*
8670 * sim/ucsim/configure.in
8671 * src/ucsim/configure
8672 * sim/ucsim/packages_in.mk
8675 * device/include/mc68hc908qy.h
8677 * device/lib/Makefile.in
8678 * support/regression/ports/hc08/*
8679 * support/regression/Makefile
8681 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8683 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
8685 * src/ds390/gen.c (genCast): fixed bug #821957
8687 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8689 * device/lib/logf.c: "fixed" overlay bug
8690 * support/regression/ports/host/spec.mk: added m library
8691 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
8692 * support/regression/tests/float_trans: added (for Eric)
8694 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
8696 * src/mcs51/gen.c (genCpl): fixed bug
8697 http://sf.net/mailarchive/message.php?msg_id=6263915
8699 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
8701 * src/SDCCast.c (decorateType): added extended constant folding
8702 * src/SDCCsymt.c (computeType): cleanup
8703 * src/SDCCval.c (valShift): minor optimization
8704 * support/regression/tests/ast_constant_folding.c: added
8706 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8708 * src/SDCCmain.c: removed some unintended changes
8710 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8712 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
8713 * src/z80/gen.c: fixed part of bug #817589
8714 * src/SDCCsymt.c (checkFunction): fixed bug #817895
8716 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
8718 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
8729 * src/ds390/ralloc.c
8731 * src/mcs51/ralloc.c
8733 * src/pic16/ralloc.c
8736 * src/z80/gen.c: removed unused label "release:"
8738 2003-10-06 Borut Razem <borut.razem AT siol.net>
8740 * src/SDCC.lex: removed definition of unused variables
8741 save_optimize and save_options
8743 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
8745 * clean.mk: removed '=' in "-maxdepth=1"
8746 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
8747 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
8749 2003-10-06 Borut Razem <borut.razem AT siol.net>
8751 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
8752 my_unput() replaced by unput()
8754 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
8756 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
8757 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
8758 type-punned pointer will break strict-aliasing rules"
8759 Old LR behaviour is again default; Klaus' LR can be choosen by
8760 defining the environment variable LRKLAUS
8764 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
8765 * clean.mk: fixed removal of files in bin/CVS/
8766 * device/lib/clean.mk: fixed removal of directories small and large
8767 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
8769 * src/SDCCval.c: removed superflous test for pedantic
8771 2003-10-05 Borut Razem <borut.razem AT siol.net>
8773 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
8774 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
8775 message "unmatched #pragma SAVE and #pragma RESTORE"
8777 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8779 * doc/sdccman.lyx: various additions and updates (interrupts, inline
8780 assembly, critical functions, atomic, nojtbound)
8782 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
8784 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
8790 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8793 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8795 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8797 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8798 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
8799 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
8801 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8803 * src/z80/gen.c (genRet): fixed bug #524753
8804 * src/z80/gen.c (genCast): fixed internal error on cast from
8806 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
8807 fix for bug #477835 to the z80
8808 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
8809 for tracking iCodes in the peephole optimizer for z80
8811 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8813 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
8814 the other part of bug #814548
8815 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
8817 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
8819 * src/SDCCcse.c: fixed part of bug #814548
8821 2003-09-28 Borut Razem <borut.razem AT siol.net>
8823 * src/asm.c: rewrite of printILine() to use temporary file instead
8825 * src/xa51/main.c: commented out declaration of int rewinds
8827 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8829 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
8831 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8833 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
8834 * src/asm.c (printILine): Fixed bug #811015
8836 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8838 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
8841 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8843 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
8844 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
8845 to correctly handle general case of AOP_PAIRPTR
8846 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
8848 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8850 * src/mcs51/ralloc.c (fillGaps),
8851 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
8852 register positioning bug)
8854 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
8856 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
8858 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8860 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
8861 genCodePointerGet, genGenPointerGet, genFarPointerSet,
8862 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
8863 (ralloc doesn't intentionally do this now, but perhaps later)
8864 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
8865 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
8866 register positioning bugs (Fixed bug #762602 and #795325)
8867 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
8869 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
8870 lines that --i-code-in-asm generates
8872 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8874 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
8875 trying to fclose a FILE* that was already closed.
8877 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8879 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
8880 of const struct should be treated as if const themselves)
8882 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
8884 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
8886 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8888 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
8889 Unix (/n) and DOS (/r/n) line terminations.
8891 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8893 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
8896 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8898 * src/mcs51/gen.c (genFunction, genEndFunction),
8899 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
8900 and restore of EA so that stack offsets to parameters are
8901 correct when using both critical and reentrant/stack-auto.
8902 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
8903 size (can be triggered in error if sloc is shared between
8904 different sized objects)
8905 * device/include/float.h: fixed macros to explicitly use
8906 unsigned long where needed
8908 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8910 Feature req. 799831: added code to allow nesting of critical functions
8911 * src/mcs51/gen.c (genFunction, genEndFunction)
8912 * src/ds390/gen.c (genFunction, genEndFunction)
8914 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8916 * src/SDCCsymt.c (sclsFromPtr),
8918 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
8919 support for standard C idiom of memory mapped variables; for
8920 example, *((xdata int*)0x1234) = 1 is now internally equivalent
8921 to xdata int at 0x1234 tempvar = 1.
8922 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
8923 provided by Akiya ISHIDA
8925 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
8927 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
8928 * src/SDCCval.c (constVal): added reduction from int to char
8929 * src/SDCCval.c (valMult, valDiv): fixed sign handling
8930 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
8931 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
8933 * support/regression/tests/shifts.c: fixed
8935 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8937 * src/z80/gen.c (genXor): Fixed bug #805445
8939 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8941 Fixed bug #621531 (const & volatile confusion in the type chain).
8942 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8943 refer to the const or volatile state of the pointer itself.
8955 * src/pic16/ralloc.c
8956 * support/regression/tests/const.c
8958 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8960 When checking for duplicated modules, use absolute paths
8961 instead of relative paths. Files changed:
8966 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8968 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8970 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8972 * device/include/string.h: added size_t typedef, changed
8973 prototypes to use size_t, eliminated separate reentrant and
8974 non-reentrant declarations, added _memmove declaration
8975 * device/lib/_memcpy.c: changed to use size_t instead of int,
8976 changed /4 to >>2 to avoid division library call
8977 * device/lib/_memcmp.c,
8978 * device/lib/_memset.c,
8979 * device/lib/_strncat.c,
8980 * device/lib/_strncpy.c,
8981 * device/lib/_strncmp.c: changed to use size_t instead of int
8982 * device/lib/_memmove.c: new file (fixed bug #772294)
8983 * device/lib/Makefile.in: added _memmove.c
8984 * device/lib/z80/asm_strings.s: fixed bug #772290
8985 * support/regression/tests/bitfields.c: attempt to fix host assertion
8986 failure on amd64-unknown-linux2.2
8988 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8990 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
8991 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
8992 * as/z80/asmain.c (main): fixed bug #801766
8994 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
8996 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
8999 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9001 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
9002 reported in bug #800609
9004 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
9006 * Top header beautifications in src/pic16 directory:
9007 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
9008 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
9009 pcoderegs.h, ralloc.c, ralloc.h
9010 * main.c: added top header and GPL license notice
9011 * pcode.c: fixed the if-conditional warning
9013 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
9015 * device/lib/_mullong.c: replaced int by short for gcc
9017 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9019 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
9020 and JUMPTABLE iCodes properly now (worked by accident before)
9021 * src/mcs51/gen.c (leftRightUseAcc),
9022 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
9023 iCode properly now. Use getSize instead of nRegs since a & b
9024 aren't part of the nRegs tally.
9026 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
9028 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
9029 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
9030 before instructions that use the _STATUS register
9032 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
9034 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
9035 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
9036 fetching of the pointer
9037 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
9038 copied from genNearPointerSet()
9039 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
9040 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
9041 If they pop r0/r1 they must be called in the opposite order than aopOp().
9042 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
9043 (resp. --stack-auto), prepared for --xstack
9045 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9047 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
9049 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
9051 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
9052 these ports have their own __sdcc_external_start()
9054 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
9056 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9057 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
9058 type for bits was changed. It resulted in bit variables becoming
9059 global, which is not permitted in PIC 14 assembly output.
9061 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9063 * doc/sdccman.lyx: various additions and updates. Rearranged sections
9065 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9067 Z80 and MCS51 linkers complaint if a public symbol is defined
9068 in more than one library module:
9072 * as/mcs51/Makefile.in
9074 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9076 A few small changes that speed up the peephole optimizer.
9080 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9082 Try to make the peephole optimizer smarter by maintaining
9083 an association between the assembly source code and the
9084 iCodes that originated them. Put this information to use
9085 with a new peephole rule condition "notVolatile" so that
9086 the rules can be aggressive yet still safe.
9091 * src/mcs51/peeph.def
9093 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9097 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
9098 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
9099 if the left or right operand symbols have the accuse flag set.
9101 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9103 Changed the type of the result of the ! (NOT) operator to char;
9104 previously it returned the same type as the source. This allows
9105 us to eliminate all the genFloatNot functions (all of its target
9106 implementations were very buggy) since !float can use the same
9109 * src/SDCCicode.c (ast2iCode): ! returns char
9110 * src/mcs51/gen.c (genNot, genNotFloat),
9111 * src/ds390/gen.c (genNot, genNotFloat),
9112 * src/z80/gen.c (genNot, genNotFloat),
9113 * src/pic/gen.c (genNot, genNotFloat),
9114 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
9116 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
9118 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9119 1. Interrupt would not compile properly. Ensure PCLATH register is saved
9120 during interrupts. Ensure WSAVE is located at a shared bank address.
9121 2. Fixed page selection in some places
9122 3. Fixed BTFSS/C to where necessary use registers directly and not simply
9123 the registers name strings.
9124 4. Fixed "signed / unsigned compare" compiler warnings.
9125 5. The PIC port manages its own allocation of the general purpose
9126 registers, but makes no attempt to reuse them. As a result when
9127 compiling it soon runs out of general purpose registers. Some
9128 additional code was added to the files pcode.c and device.c to walk
9129 through the function call tree and rename the registers so that they
9139 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
9140 genPlus() & genMinus() when the result is the same as left or right
9142 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9144 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
9146 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9148 Made bitfield a distinct type from bit so that bitfields
9149 convert as per ANSI C and bits retain their traditional
9150 boolean style behaviour. Implemented bitfield support in
9158 * src/ds390/gen.c: bit v bitfield split
9159 * src/z80/gen.c: New support for bitfields
9160 * support/regression/tests/bitfields.c: reenabled z80,
9163 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9165 Rules 246.x, 247.x relate to bitfields, the others speed up
9166 access to xdata mapped I/O devices.
9168 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
9170 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9172 Cleaned up genPackBits and genUnpackBits and added two helper
9173 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
9174 for literal assignments in genPackBits (thanks to Frieder for
9180 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9182 Fixed bug #748310 (pointer to function type mishandled when the
9183 function name is omitted). Also fixed a SIGSEGV when a function
9184 attribute (reentrant, etc) is used on a non-function or on a
9185 function but misplaced before the parameter list.
9187 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
9189 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
9190 * support/Util/SDCCerr.h,
9191 * support/Util/SDCCerr.c: Added func attr misuse error msg
9193 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
9195 Fixed bug #787649 by anonymous
9196 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
9197 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
9199 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9201 Fixed numerous bitfield problems.
9203 * src/SDCC.y: More bitfield related error checking
9205 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
9206 * support/Util/SDCCerr.h,
9207 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
9208 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9209 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9210 * support/regression/tests/bitfields.c: tests added
9212 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9214 Made the constant following the "interrupt" keyword optional. If
9215 omitted, the function will not automatically be given an entry
9216 in the interrupt vector table (similar to #pragma NOIV, but
9217 less syntacticly kludgy). The interrupt number is also now
9218 range checked. Also fixed a bug in the high order bit example
9225 * support/Util/SDCCerr.c
9226 * support/Util/SDCCerr.h
9229 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
9231 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
9232 * src/SDCCicode.c (operandOperation): rewritten some ops
9233 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
9234 * src/SDCCsymt.c (computeType): literals are handled the same way as any
9236 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
9237 be re-activated by defining REDUCE_LITERALS)
9238 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
9239 unsigned, but are signed by default
9240 * src/SDCCval.c (constVal): rearranged
9241 * src/SDCCval.c (valMod): preliminary fix
9242 * src/SDCCval.c (valCastLiteral): use TYPE_* types
9243 * support/regression/literalop.c: added, work in progress
9245 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9247 Generate warnings for useless declarations like "char data;"
9248 that don't do what new users expect.
9251 * support/Util/SDCCerr.h
9252 * support/Util/SDCCerr.c
9254 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
9256 * src/SDCCval.c (valMult): fix overflow detection of negative int
9258 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9260 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
9262 Changes to support big endian targets:
9275 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
9277 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
9278 * device/lib/time.c: fixed warning "integer overflow in expression"
9280 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
9282 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
9283 * src/SDCCval.c (constVal): changed default to signed; hex and octal
9284 constants are unsigned; added recognition of "u" flag for unsigned
9285 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
9286 * src/SDCCval.c (valDiv, valMod): fixed signdness
9287 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
9288 signedness of modulo, left and right shift
9289 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
9290 * support/Util/SDCCerr.h: added warning W_INT_OVL
9291 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
9292 * src/SDCCast.c (ast_print): improved output of constants
9294 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9296 Fixed some warnings when building with MSVC:
9309 * support/cpp2/cpplib.c
9313 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
9315 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
9317 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9319 * support/librarian/clean.mk: Do not remove Makefile.
9320 * support/librarian/Makefile: added.
9322 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9324 Added librarian to MSVC build:
9327 * support/librarian/librarian.dsp
9329 'configure' not needed for librarian, removed:
9330 * support/librarian/configure
9331 * support/librarian/configure.in
9332 * support/librarian/config_in.h
9333 * support/librarian/Makefile.in
9335 Hopefully these ones built the librarian and the rest of sdcc properly:
9337 * Makefile.common.in
9339 Messed up 'configure', so revert to previous version:
9343 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
9345 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
9346 there, while the mantissa of a double is "only" 53 bits wide.
9348 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9350 Adding sdcclib to the build. MSVC project coming soon.
9351 Files added/changed:
9353 * support/librarian/clean.mk
9354 * support/librarian/configure
9355 * support/librarian/configure.in
9356 * support/librarian/config_in.h
9357 * support/librarian/Makefile.bcc
9358 * support/librarian/Makefile.in
9359 * support/librarian/sdcclib.c
9362 * Makefile.common.in
9366 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9368 Linker now complaints if linked modules have conflicting options, for
9369 example, one compiled using --model-large and another one compiled with
9370 --model-small. The following files were modified:
9392 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9394 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
9395 as/mcs51/lklibr.c: Generate a warning when a library is not found.
9397 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
9399 * src/z80/mappings.i: fix _mul[us][int,long] entries
9401 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9403 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
9405 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
9407 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
9408 * support/regression/tests/bitopcse.c: added
9416 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9418 added support for new library format to z80, gbz80 linkers:
9424 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
9426 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
9427 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
9429 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
9431 added DUMMY_READ_VOLATILE:
9440 * src/SDCCcse.c (algebraicOpts): many improvements
9441 * src/SDCCcse.h: removed algebraicOpts()
9442 * src/SDCCicode.c (picDummyRead): added
9444 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9446 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
9447 "Insufficient space in data memory".
9449 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9451 * src/mcs51/gen.c: fixed bug #771358
9452 * src/z80/gen.c: fixed bug #759087
9454 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
9456 * src/pic16/glue.c: minor cleanup by Vangelis
9458 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9460 * device/include/regc515c.h: fixed #758477
9461 * device/lib/_gptrget.c: saving some cycles in generic pointer get
9462 * device/lib/_gptrput.c: saved a few bytes
9463 * my tab spacing is 8, yours too?)
9464 * device/lib/_ser.c: process RX bytes earlier than TX bytes
9465 * device/lib/serial.c: process RX bytes earlier than TX bytes
9466 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
9468 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9470 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
9472 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9474 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
9476 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
9478 * device/lib/Makefile.in: bad fix, reverted to 1.43
9480 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
9482 * device/lib/Makefile.in: added missing z80 object files
9484 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
9486 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
9487 pic16 progress by Vangelis:
9502 * pic16/pcodepeep.c:
9505 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9507 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
9509 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9511 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
9512 added gbz80 build to MSVC project.
9513 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
9514 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
9515 from 8051 stuff and setup so it links using a .lnk file.
9517 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9519 * support/librarian/sdcclib.c: sdcc librarian.
9520 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
9523 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9525 * as/mcs51/lkmain.c: properly handle extensions in function afile.
9527 2003-07-02 Borut Razem <borut.razem AT siol.net>
9529 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
9530 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
9531 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
9532 src/xa51/main.c, src/z80/main.c:
9533 virtualization of glue() function: each port has it's own glue function,
9534 which is accessed by do_glue function pointer in PORT.general structure
9536 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
9538 * DS800C400 fun, improved ROM interface and tinibios.
9540 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
9542 * More support for DS80C400. Now includes beginning of interface to ROM.
9544 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
9546 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
9548 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9550 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
9552 2003-06-19 Borut Razem <borut.razem AT siol.net>
9554 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
9556 2003-06-19 Borut Razem <borut.razem AT siol.net>
9558 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
9559 fixed Z80 port - crt0.o: cannot open.
9561 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
9563 * support/Util/MySystem.c (merge_command): revert bad fix
9565 2003-06-18 Borut Razem <borut.razem AT siol.net>
9567 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
9569 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9571 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9572 option --use-stdout sends errors to stdout instead of stderr.
9574 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
9576 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
9578 2003-06-15 Borut Razem <borut.razem AT siol.net>
9580 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
9581 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
9582 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
9583 fixed width array of pointers replaced with sets;
9584 multiple include and lib paths ared transferred to preprocessor and linker
9585 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
9586 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
9587 fixed width array of pointers
9588 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
9589 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
9590 fixupPath(), getPathDifference()
9591 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
9592 fixed width array of pointers
9594 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
9596 * src/pic16/ralloc.c: fix warnings
9597 * src/pic16/pcode.c: fix warning
9599 2003-06-10 Scott Dattalo <scott AT dattalo.com>
9601 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
9602 know all the details, but essentially this set of changes enable
9603 the pic16 port to generate movff instructions and generate assembler
9608 * src/pic16/pcode.c:
9609 * src/pic16/device.c:
9611 * src/pic16/pcode.h:
9612 * src/pic16/pcoderegs.c:
9613 * src/pic16/ralloc.c:
9614 * src/pic16/ralloc.h:
9616 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9618 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9619 added option --vc, so sdcc errors and warnings are compatible with
9620 Microsoft Visual Studio.
9622 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9624 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
9625 device/lib/libfloat.lib: added atof function.
9627 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
9629 * doc/sdccman.lyx: updated to Lyx 1.3
9630 * doc/cdbfileformat.lyx: updated to Lyx 1.3
9631 * doc/test_suite_spec.lyx: updated to Lyx 1.3
9632 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
9634 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
9636 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
9638 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9640 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
9641 additions to the "related tools/documentation" section
9643 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
9645 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
9647 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
9649 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
9650 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
9652 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
9654 * doc/sdccman.lyx: fix double dash and other minor things
9655 * doc/Makefile: fix double dash
9657 2003-05-28 Karl Bongers(patches from Martin Helmling)
9658 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
9659 condition and ignore commands.
9661 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9663 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
9664 is in parts still quite out of date, I did changes as far as I felt makes sense
9665 for a non-native english speaker.
9666 Please feel free to add to the manual or to correct my changes.
9667 * doc/Makefile: undid touching the date of intermediate tex files.
9669 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9671 * doc/sdccman.lyx: Manual has an index now
9673 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
9675 Finalize muluint/mulsint and mululong/mulslong merging:
9676 * device/lib/_mulint.c
9677 * device/lib/_mullong.c
9678 * device/lib/gbz80/mul.s
9679 * device/lib/gbz80/stubs.s
9680 * device/lib/z80/mul.s
9681 * device/lib/z80/stubs.s
9682 * src/SDCCsymt.c (initCSupport)
9684 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9686 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
9687 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
9688 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
9689 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
9692 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9694 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
9695 the regression tests I'm not brave enough to enable 245.b, 245.c
9696 * doc/sdccman.lyx: added latex preamble for hyperref package.
9697 Using pdflatex this will give you a hyperlinked pdf file with
9698 bookmarks. (prepend '%' before /usepackage if this breaks something)
9700 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9702 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
9704 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
9706 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
9708 2003-05-21 <johan AT balder>
9710 * src/SDCCglue.c (printIval): fixed bug #739934
9712 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
9714 Applied patch from bug 737905 (renamed yylineo to mylineno):
9721 * src/pic16/pcode.c: Cleaned warnings
9722 * src/pic16/pcodeflow.c: Cleaned warnings
9723 * src/pic16/pcoderegs.c: Cleaned warnings
9725 2003-05-19 Scott Dattalo <scott AT dattalo.com>
9727 * src/pic16/pcode.c: Cleaned warnings
9728 * src/pic16/pcodepeep.c: Cleaned warnings
9729 * src/pic16/ralloc.c: Cleaned warnings
9731 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
9733 * doc/sdccman.lyx: fixed bug 739745
9734 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
9736 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
9738 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
9739 it can be defined with CFLAGS when running configure
9740 * src/SDCCmain.c: fixed compiling + linking with object files
9742 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
9744 * configure.in: configure for pic16 port,
9745 added --disable-pic16-port
9746 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
9747 * src/SDCCmain.c: linkOptions is changed to set *,
9748 added if/endif conditional macros to remove options help
9749 messages from optionsTable when a port is not configured, added
9750 support for the PIc16 port in the ports table, when executing
9751 the compiler with no port specified on command line, a default
9752 port is selected with the new macro DEFAULT_PORT which is
9753 defined in port.h, in setDefaultOptions() linkOptions is removed
9754 from initialization assignment, since now it is a set,
9755 parseCmdLine uses setParseWithComma for linkOptions, in
9756 linkEdit() linkOptions are accessed with new function indexSet()
9757 which returns the i'th item of a set variable. See SDCCset.c, in
9758 linkEdit() when calling buildCmdLine(), added linkOptions as
9759 last argument. Now users can pass arguments to gplink via the
9760 -Wl option, main() uses pic16glue() to glue up pic16 programs
9761 * src/SDCCpeeph.c: various changes to support pic16
9762 * src/SDCCset.c: added function void *indexSet(set *, int) to
9763 return the i'th item of the set
9764 * src/SDCCset.h: added function prototype for indexSet()
9765 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
9766 * src/clean.mk: added pic16 in CLEANALLPORTS variable
9767 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
9768 added macro DEFAULT_PORT
9769 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
9770 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
9772 * src/pic16/glue.c: commented out some error producing lines
9773 * src/pic16/main.c: __config directives are commented out to stop
9774 gpasm complaining and test the linkage with gplink, _linkCmd and
9775 _asmCmd changed to be more gplink and gpasm friendly
9776 * src/pic16/peeph.def: peep rule 3 is commented out, since it
9777 produced an error when parsed, peep rule 12 is added to utilize
9778 movff, but it is commented out since the pCode does not support
9779 yet a command with 2 address arguments
9781 2003-05-18 <johan AT balder>
9783 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9784 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9785 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
9787 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
9788 Added feature to script commands from file.
9790 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
9792 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
9793 * src/SDCCutil.c: include ctype.h for win32
9795 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
9797 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
9799 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
9801 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
9802 Fixed so you can set breakpoints prior to run, run does not stop
9803 on entry now. Add tbreak. Other enhancements and fixes for use
9806 2003-05-12 Borut Razem <borut.razem AT siol.net>
9808 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
9810 2003-05-11 Borut Razem <borut.razem AT siol.net>
9812 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
9813 the path of bin directory, so that PATH is the only env. variable, which has to be set
9814 in case of standard installation.
9815 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
9816 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
9817 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
9819 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
9821 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
9822 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
9823 temp files are in the port dir; clean the gen/test directory when
9824 generating new test.c
9825 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
9826 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
9827 * support/regression/tests/zeropad.c: added
9829 2003-05-09 <johan AT balder>
9831 * src/SDCCglue.c: fixed bug #597940
9833 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
9835 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9836 cache sfr, optimize next,step, fix off by one sourceline,
9837 support ddd list function.
9838 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
9840 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
9842 * support/regression/HTMLgen.py: added compare_s2f()
9843 * support/regression/Makefile: redo 1.27
9844 * support/regression/generate-cases.py: redo 1.5
9846 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
9848 * support/regression/tests/float.c: workaround 33 bit hex constant
9849 * support/regression/tests/simplefloat.c: fix division for host
9851 2003-04-29 Scott Dattalo <scott AT dattalo.com>
9853 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
9854 that tame's the PIC's over-aggressive optimizer.
9856 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9858 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
9861 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
9863 Initial support for DS80C400. "Hello world" runs on TINIm400
9866 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
9868 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9869 * Some notes on ddd usage added in debugger/README
9870 Martin Helmling adding more features and fixes for ddd GUI debugger.
9871 Code added for nexti, stepi, up, down, and other adjustments.
9873 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
9875 * src/pic/pCodepeep.c non-wildcard asmops are now handled
9876 * src/pic/peeph.def Added two rules to optimize carry manipulation
9877 * src/pic/* removed debug printfs
9879 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
9881 * debugger/mcs51/cmd.c: added header newalloc.h
9883 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
9885 * as/Makefile: new EXEEXT
9886 * as/z80/Makefile: remove trailing slash of BUILDIR
9887 * as/z80/clean.mk: new EXEEXT
9888 * Makefile.common.in: add to CFLAGS (and others), don't replace it
9889 * support/cpp2/Makefile.in: new EXEEXT
9890 * src/pic/glue.c (pic14emitRegularMap): fixed warning
9892 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
9894 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
9895 EXEEXT was introduced to fix all related problems with targets
9896 "clean", "install" and "uninstall"; a couple of further flaws
9897 especially with "clean" have been fixed too
9898 * as/mcs51/Makefile.in
9903 * debugger/mcs51/Makefile.in
9904 * debugger/mcs51/clean.mk
9906 * link/z80/Makefile.in
9909 * packihx/Makefile.in
9911 * sim/ucsim/Makefile
9912 * sim/ucsim/clean.mk
9913 * sim/ucsim/avr.src/Makefile.in
9914 * sim/ucsim/avr.src/clean.mk
9915 * sim/ucsim/s51.src/Makefile.in
9916 * sim/ucsim/s51.src/clean.mk
9917 * sim/ucsim/xa.src/Makefile.in
9918 * sim/ucsim/xa.src/clean.mk
9919 * sim/ucsim/z80.src/Makefile.in
9920 * sim/ucsim/z80.src/clean.mk
9921 * sim/ucsim/main_in.mk
9922 * sim/ucsim/packages_in.mk
9923 * sim/ucsim/gui.src/Makefile.in
9924 * sim/ucsim/gui.src/serio.src/Makefile.in
9925 * sim/ucsim/gui.src/serio.src/clean.mk
9928 * support/cpp2/Makefile.in
9929 * support/cpp2/clean.mk
9930 * support/makebin/Makefile
9931 * support/makebin/clean.mk
9932 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
9933 * doc/sdccman.lyx: --program-suffix no longer needed
9935 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
9937 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
9938 Martin Helmling added support for ddd GUI debugger.
9939 Code added to display assembly, set variables, and other commands
9940 to interface to ddd.
9942 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
9944 * as/Makefile: fix target clean
9945 * as/clean.mk: fix target clean
9946 * as/z80/clean.mk: fix target clean
9948 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
9950 * Makefile.common.in: added AT EXEEXT AT
9951 * configure.in: removed all mingw32 stuff
9952 * configure: rebuilt from configure.in
9953 * doc/sdccman.lyx: updated section "installation"
9954 * support/scripts/sdcc_mingw32: adapted to configure
9955 * support/scripts/sdcc_cygwin_mingw32: added
9957 2003-04-22 Scott Dattalo <scott AT dattalo.com>
9959 * src/pic Added object file support for the PIC port
9960 * src/pic Applied patch from Craig Franklin (this started the object file support)
9961 * src/regression Updated the PIC regression tests for object files
9963 2003-04-20 Borut Razem <borut.razem AT siol.net>
9965 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9966 lklex.c: In function `getfid':
9967 lklex.c:203: warning: array subscript has type `char'
9968 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9969 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9970 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9971 stack handling macros
9973 2003-04-19 Borut Razem <borut.razem AT siol.net>
9975 * "handling space characters in file path" task:
9976 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9977 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9978 * support/Util/MySystem.h: make it self-sufficient
9979 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9980 src/z80/main.c, sdcc/as/mcs51/lklex.c:
9981 handling space characters in file path
9982 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
9983 (it will be used by assemblers, which have their own includes, e.g. gpasm)
9984 * support/Util/MySystem.c: handling space characters in executable's path
9986 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
9988 * as/z80/Makefile: fix permanent rebuild of z80
9989 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
9990 * support/regression/tests/bitfields.c: added Johan's bitfields.c
9992 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
9994 * src/SDCCopt.c: add special case optimization to replace modulo by
9995 a power of two with a bitwise AND.
9997 2003-04-18 <johan AT balder>
9999 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
10001 2003-04-17 <johan AT balder>
10003 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
10004 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
10006 2003-04-13 Borut Razem <borut.razem AT siol.net>
10008 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
10009 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
10010 fixed mingw problem in adl_NORMALIZE_PATH
10012 2003-04-12 Borut Razem <borut.razem AT siol.net>
10014 * fixed "#pragma SAVE/RESTORE can not be nested":
10015 * src/SDCC.lex: reworked pragma handling functions
10016 * sdcc/src/SDCCglobl.h: reworked stack handling macros
10017 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
10019 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10021 * src/SDCCutil.c (pathEquivalent): defined but not used
10022 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
10023 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
10024 * configure: rebuilt from configure.in
10025 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10026 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10027 * device/include/Makefile.in: replace sdcc_datadir
10028 * device/lib/Makefile.in: replace sdcc_datadir
10029 * Makefile.common.in: add LDFLAGS from configure
10030 * packihx/Makefile.in: use LDFLAGS
10031 * src/Makefile.in: use LDFLAGS
10032 * support/cpp2/Makefile.in: add LDFLAGS from configure
10033 * support/makebin/Makefile: use LDFLAGS
10034 * .version: bumped version number to 2.3.5
10036 2003-04-12 Borut Razem <borut.razem AT siol.net>
10038 * completed "different paths" task:
10039 * src/SDCCmacro.c: fixed bug in handling quotes
10040 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
10041 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
10043 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10045 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
10047 2003-04-11 kevin Vigor <kevin AT vigor.nu>
10049 * ds390/gen.c ds390/peeph.def: fix bug 706781
10051 2003-04-11 Borut Razem <borut.razem AT siol.net>
10053 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
10055 2003-04-10 Scott Dattalo <scott AT dattalo.com>
10057 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
10058 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
10059 set - this bit used to not be set...).
10060 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
10061 bad code in PIC Port
10062 * src/regression/and2.c added to test bug 609268
10063 * src/regression/Makefile added and2.c to regression test
10066 2003-04-08 <johan AT CP255758-A>
10068 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
10069 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
10070 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
10072 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
10074 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
10076 * support/cpp2/Makefile.in: fix bug #487815
10077 * configure: rebuilt from configure.in
10078 * Makefile.common.in: docdir changed, new path suffixes
10079 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10080 * sdcc_vc_in.h: reflect changes from sdccconf.h
10081 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
10082 * src/SDCCutil.h: remove BINDIR hack
10083 * doc/sdccman.lyx: update new path hierarchy
10085 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
10087 * src/SDCCpeeph.c: added okToRemoveSLOC test
10089 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
10091 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
10093 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
10095 * src/SDCCpeeph.c: added labelIsReturnOnly test
10096 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
10098 2003-04-05 <johan AT balder>
10100 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
10101 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
10102 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
10103 * src/SDCCast.c: fixed a warning
10104 * src/SDCCast.h: fixed a warning
10105 * src/SDCCicode.c (operandFromAst): fixed a warning
10107 2003-04-04 <johan AT balder>
10109 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
10110 * src/SDCCast.c (decorateType): fixed bug #715076
10111 * src/SDCC.y: fixed bug #702907
10113 2003-04-03 <johan AT balder>
10115 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
10116 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
10117 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
10118 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
10119 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
10121 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
10123 * _decdptr.c: fix return values
10124 * _gptrget.c: fix return values
10125 * _gptrgetc.c: fix return values
10126 * _gptrput.c: fix return values
10127 * _mulint.c: fix return values
10128 * as/z80/Makefile: fix 'make -j' problem
10130 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
10132 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
10133 * configure.in: big cleanup, updated to autoconf 2.5x
10134 * configure: rebuilt from configure.in
10135 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10136 * sdcc_vc_in.h: reflect changes from sdccconf.h
10137 * doc/Makefile: fixed a flaw in "make install"
10139 2003-04-02 <johan AT balder>
10141 * src/ds390/gen.c (genCmp): no comments
10142 * src/mcs51/gen.c (genCmp): no comments
10143 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
10144 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
10146 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
10148 * support/regression/generate-cases.py: place generated file in given sub directory
10149 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
10150 * support/regression/Makefile: improvements for 'make -j';
10151 side effect: it's simpler and faster now
10153 2003-03-31 Borut Razem <borut.razem AT siol.net>
10155 * src/z80/main.c: link-{port} and as-{port} defined without path
10156 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
10158 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
10160 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
10162 2003-03-30 Borut Razem <borut.razem AT siol.net>
10164 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
10165 changed type of list parameter to set
10166 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
10167 * src/port.h: changed type of do_assemble() parameter to set
10168 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
10169 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
10170 definition of "cppoutfilename" macro with NULL value in preProcess()
10171 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
10172 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
10173 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
10174 replaced with set *binPathSet
10175 * shash_add() deallocates the item, if allready exsists, before adding the new one
10176 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
10178 2003-03-30 Scott Dattalo <scott AT dattalo.com>
10180 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
10181 a nested for loop bug in the PIC port
10182 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
10185 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10187 * support/Util/dbuf.h: remove C++ stuff to make it portable
10189 2003-03-28 Borut Razem <borut.razem AT siol.net>
10191 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
10192 literal strings in stringLiteral()
10193 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
10194 * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
10197 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
10199 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
10201 2003-03-26 <johan AT balder>
10203 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
10204 * src/ds390/gen.c (saveRegisters): catched symbol abuse
10205 * src/SDCCast.c (decorateType): fixed " -v < 3"
10207 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10209 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
10210 Added Lenny Story's debug infrastructure changes:
10211 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
10212 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
10213 * src/cdbFile.c: added
10214 * src/SDCCdebug.c: added
10215 * src/SDCCdebug.h: added
10216 * src/SDCCast.c (createFunction)
10217 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
10218 * src/SDCCmain.c (parseCmdLine, main)
10219 * src/SDCCmem.c (redoStackOffsets)
10220 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
10223 * src/avr/gen.c (genAVRCode)
10224 * src/ds390/gen.c (gen390Code)
10225 * src/mcs51/gen.c (gen51Code)
10226 * src/pic/gen.c (genpic14Code)
10227 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
10228 * src/xa51/gen.c (genXA51Code)
10229 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
10231 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10233 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
10234 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
10236 2003-03-22 <johan AT balder>
10238 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
10240 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
10242 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
10243 * doc/cdbfileformat.lyx: added, written by Lenny Story
10244 * doc/Makefile: added cdbfileformat.lyx
10245 * doc/clean.mk: added cdbfileformat.lyx
10247 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
10249 * src/mcs51/peeph.def: fix bug #705773
10251 2003-03-20 <johan AT balder>
10253 An sfr/sbit can have an "at #" AND an initializer
10254 * src/SDCCsymt.c (checkSClass):
10255 * src/SDCCmem.c (allocGlobal):
10256 * src/SDCCmem.c (allocLocal):
10257 * src/SDCCast.c (createBlock):
10259 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
10261 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
10263 2003-03-16 <johan AT balder>
10265 Undid the hackup of const and volatile, the problem is much bigger
10267 * src/SDCCast.c:1.171
10268 * src/SDCCglue.c:1.138
10269 * src/SDCCicode.c:1.146
10270 * src/SDCCsymt.c:1.150
10271 * src/SDCCval.c:1.65
10273 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
10275 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
10276 * src/ds390/gen.c (genAddrOf): fixed bug #704087
10278 2003-03-13 <johan AT balder>
10280 Hackup const and volatile modifiers in type chains a bit:
10282 * src/SDCCast.c:1.169
10283 * src/SDCCglue.c:1.136
10284 * src/SDCCicode.c:1.143
10285 * src/SDCCsymt.c1.146
10286 * src/SDCCsymt.h1.59
10287 * src/SDCCval.c:1.63
10289 2003-03-12 <johan AT balder>
10291 * src/SDCCBBlock.h: more LRH debugging junk
10292 * src/SDCCcflow.h: more LRH debugging junk
10293 * src/SDCCloop.c: more LRH debugging junk
10294 * src/SDCC.y (struct_declaration): fixed bug #697590
10295 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
10296 * src/ds390/gen.c (aopForRemat): fixed bug #700031
10297 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
10299 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10300 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
10301 test function names must now match exactly).
10302 * src/SDCCcse.c: added special case in findCheaperOp to allow
10303 extending a short integer. Makes less awful code for bug 700121 test case.
10305 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10307 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
10308 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
10310 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10312 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
10313 actually called (operandsNotEqual() was called for all
10314 operandsNotEqualX tests).
10316 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10318 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
10319 with shorter literals. Fixes bug 700121.
10321 2003-03-11 <johan AT balder>
10323 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
10325 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
10327 * src/SDCCloop.c (mergeRegions): an evil beast is dead
10328 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
10330 2003-03-10 Borut Razem <borut.razem AT siol.net>
10332 * src/SDCCmain.c: pipe preprocessor's output
10333 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10334 * sdcc_vc_in.h: define pclose as _pclose for WIN32
10335 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10336 which closes all pipes in pipeSet set
10337 * src/SDCCset.c: free deleted item in function deleteSetItem()
10338 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10339 moved from z80 to src subproject
10340 * .version: increased version number to 2.3.4
10342 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10344 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
10345 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
10346 * support/regression/ports/xa51/spec.mk: fix typo
10348 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10350 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
10352 2003-03-09 Borut Razem <borut.razem AT siol.net>
10354 * src/SDCCmain.c: pipe preprocessor's output
10355 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10356 * sdcc_vc_in.h: define pclose as _pclose for WIN32
10357 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10358 which closes all pipes in pipeSet set
10359 * src/SDCCset.c: free deleted item in function deleteSetItem()
10360 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10361 moved from z80 to src subproject
10363 2003-03-09 Borut Razem <borut.razem AT siol.net>
10365 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
10366 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
10367 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
10368 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
10369 * src/SDCCglobl.h: unification of WIN32 native definitions
10371 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10373 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
10375 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10377 * src/configure.in: check for endianess (even while cross-compiling)
10378 * src/configure: check for endianess (even while cross-compiling)
10379 * src/configure_in.h: check for endianess (even while cross-compiling)
10380 * src/avr/gen.c: remove old endianess stuff
10381 * src/mcs51/gen.c: remove old endianess stuff
10382 * src/ds390/gen.c: remove old endianess stuff
10383 * src/pic/gen.c: remove old endianess stuff
10384 * src/pic/genarith.c: remove old endianess stuff
10385 * src/pic/glue.c: fix endianess check
10386 * src/pic16/gen.c: remove old endianess stuff
10387 * src/pic16/genarith.c: remove old endianess stuff
10388 * src/pic16/glue.c: fix endianess check
10389 * src/xa51/gen.c: remove old endianess stuff
10390 * src/z80/gen.c: fix endianess check
10391 * src/SDCCglue.c: fix endianess check
10392 * src/ds390/peeph.def: fix bug 700036
10394 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10396 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
10397 * src/configure: find appropriate data-types on host for SDCC's int and long
10398 * src/configure.in: find appropriate data-types on host for SDCC's int and long
10399 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
10400 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
10402 2003-03-07 <johan AT balder>
10405 some minor cleanups before the big shot
10406 OP_DEFS and OP_USES now use Kevin's protection
10407 new option --nolabelopt
10409 * src/SDCCBBlock.c:
10418 * src/ds390/ralloc.c:
10419 * src/mcs51/ralloc.c:
10420 * src/pic/ralloc.c:
10421 * src/xa51/ralloc.c:
10422 * src/z80/ralloc.c:
10424 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
10426 * src/pic/pcode.c (get_op): fix 64 bit warnings
10427 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
10428 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
10429 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
10430 * support/regression/tests/malloc.c: fix 64 bit warnings
10432 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
10434 * src/mcs51/gen.c (genMinus): fixed bug 696436
10436 2003-03-02 Borut Razem <borut.razem AT siol.net>
10438 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
10440 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10442 * configure.in: test for mkstemp
10443 * sdccconf_in.h: add HAVE_MKSTEMP
10445 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
10447 * device/include/ctype.h: removed warning while using --stack-auto
10448 * device/include/malloc.h: removed warning while using --stack-auto
10449 * device/include/string.h: removed warning while using --stack-auto
10451 2003-02-23 Borut Razem <borut.razem AT siol.net>
10453 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
10454 because NDEBUG is defined (see man assert)
10455 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
10457 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10459 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
10460 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
10462 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10464 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
10465 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
10467 2003-02-18 <johan AT balder>
10469 * as/mcs51/asmain.c (asmbl): module can start with a digit
10470 * as/z80/asmain.c (asmbl): module can start with a digit
10472 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10474 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
10475 * src/asm.c: fix pipe() for Mingw32
10477 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
10479 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
10480 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
10481 make -V work again; --c1mode reads now from stdin
10482 * doc/sdccman.lyx: added --c1mode
10483 * support/Util/SDCCerr.c: new messages for c1 mode
10484 * support/Util/SDCCerr.h: new messages for c1 mode
10485 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
10487 2003-02-15 <johan AT balder>
10489 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
10491 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
10493 * doc/sdccman.lyx: Environment variables, -o and other minor things
10495 2003-02-14 <johan AT balder>
10497 * src/xa51/main.c: before anyone really tries to use it :)
10499 * Install doc's in share/sdcc/doc
10500 * removed some obsolete files
10501 * Do a proper make distclean and uninstall
10502 M Makefile.common.in
10505 M device/include/Makefile.in
10506 M device/lib/Makefile.in
10509 M sim/ucsim/doc/Makefile.in
10511 R src/avr/peeph.rul
10512 R src/xa51/peeph.rul
10513 M support/cpp2/Makefile.in
10514 M support/makebin/Makefile
10517 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10519 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
10521 2003-02-10 Borut Razem <borut.razem AT siol.net>
10523 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
10524 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
10525 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
10526 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
10527 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
10528 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
10529 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
10530 src/z80/Makefile.bcc: Borland Makefile cleanup
10531 * as/z80/Makefile.bcc: Added Borland Makefile
10532 * support/cpp2/borland.h: Removed
10534 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
10536 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
10537 * src/SDCC.lex: new pragma NOIV
10538 * src/SDCCglobl.h: new pragma NOIV
10539 * src/SDCCmem.c: new pragma NOIV
10541 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10543 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
10545 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10547 * src/SDCCmain.c: signal handling is switched off by --debug
10548 * doc/Makefile: small fix for install; use clean.mk again
10549 * doc/clean.mk: clean *.pdf and *.html too
10551 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
10553 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
10554 * device/lib/printfl.c: fix a ds390 bug by making it portable
10555 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
10556 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
10557 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
10558 * debugger/mcs51/cmd.c: converted multi-line string literals
10559 * sim/ucsim/globals.cc: converted multi-line string literals
10560 * src/SDCCmain.c: introduced signal handler to remove temp files
10561 * doc/Makefile: small tweaks, implement clean
10562 * doc: removed generated files
10564 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10566 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
10567 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
10568 Address Record is not correctly generated for DS390."
10570 2003-02-02 Borut Razem <borut.razem AT siol.net>
10572 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
10573 * as/mcs51/asm.h: fixed compilation with Borland C
10574 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
10575 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
10576 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
10577 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
10578 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
10579 src/z80/Makefile.bcc: delete $(LIB) only if exist
10580 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
10582 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
10584 * device/include/malloc.h: introduced NULL
10585 * device/include/string.h: introduced NULL
10586 * device/include/stdlib.h: introduced NULL
10587 * device/lib/_memcpy.c: removed NULL
10588 * device/lib/_strcat.c: removed NULL
10589 * device/lib/_strchr.c: removed NULL
10590 * device/lib/_strcmp.c: removed NULL
10591 * device/lib/_strcpy.c: removed NULL
10592 * device/lib/_strcspn.c: removed NULL
10593 * device/lib/_strlen.c: removed NULL
10594 * device/lib/_strncat.c: removed NULL
10595 * device/lib/_strncmp.c: removed NULL
10596 * device/lib/_strncpy.c: removed NULL
10597 * device/lib/_strpbrk.c: removed NULL
10598 * device/lib/_strrchr.c: removed NULL
10599 * device/lib/_strspn.c: removed NULL
10600 * device/lib/_strstr.c: removed NULL
10601 * device/lib/_strtok.c: removed NULL
10602 * device/lib/malloc.c: removed NULL, include own header
10604 2003-02-02 <johan AT balder>
10606 * 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
10607 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
10608 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
10609 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
10610 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
10611 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
10613 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10615 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
10618 2003-02-01 <johan AT balder>
10620 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
10622 2003-01-31 <johan AT CP255758-A>
10624 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
10626 2003-01-30 <johan AT balder>
10628 * src/SDCCBBlock.c: automatic bug detection
10629 * src/SDCCicode.c: automatic bug detection
10631 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10633 * src/SDCCglobl.h: now --xram-size 0 works
10634 * src/SDCCmain.c: now --xram-size 0 works
10636 2003-01-29 <johan AT balder>
10638 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
10640 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10642 * as/mcs51/aslink.h: Added options --xram-size and --code-size
10643 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
10644 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
10645 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
10646 * src/SDCCglobl.h: Added options --xram-size and --code-size
10647 * src/SDCCmain.c: Added options --xram-size and --code-size
10649 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
10651 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
10652 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
10654 2003-01-27 <johan AT balder>
10656 * src/SDCC.y: fixed bug #613764
10658 2003-01-26 <johan AT balder>
10660 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
10661 * src/SDCCsymt.h: fixed bug #673374
10662 * src/SDCCglue.c: fixed bug #661910
10663 * src/SDCCast.c: fixed bug #458099 and 673374
10665 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
10667 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
10668 * as/mcs51/strcmpi.h: added
10669 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
10670 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
10671 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
10672 * as/mcs51/assym.c: strcmpi -> as_strcmpi
10673 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
10674 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
10675 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
10676 * as/mcs51/Makefile.aslink: new module strcmpi
10677 * as/mcs51/Makefile.asx8051: new module strcmpi
10678 * as/mcs51/Makefil.bcc: new module strcmpi
10679 * as/mcs51/Makefile.in: new module strcmpi
10680 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
10682 2003-01-26 <johan AT balder>
10684 * src/SDCCglue.c: reverted back to 1.124
10685 * src/SDCCast.c: reverted back to 1.156
10686 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
10688 2003-01-25 <johan AT balder>
10690 * src/SDCCglue.c: A better fix for bug #661910
10691 * src/SDCCast.c: A better fix for bug #661910
10692 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
10694 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
10696 * src/Makefile.in: remove spawn.o
10697 * src/SDCCmain.c: remove spawn.h
10698 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
10699 * src/spawn.c: removed
10700 * src/spawn.h: removed
10701 * support/regression/ports/ds390/spec.mk: link with -r
10703 2003-01-24 <johan AT CP255758-A>
10705 * src/ds390/gen.c (aopOp): fixed bug #667458
10706 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
10707 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
10708 (createIvalCharPtr): an ival doesn't always have a storage class anymore
10710 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
10712 * src/mcs51/peeph.def: better assembler identation by Frieder
10713 * src/mcs51/gen.c: better assembler identation by Frieder
10715 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
10717 * as/z80/string.h: removed for gcc 3.2
10718 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
10719 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
10721 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10723 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
10724 * src/SDCCpeeph.c (replaceRule): fix bug #663503
10725 * support/regression/Makefile: separate temp files for ports
10726 * support/regression/generate-cases.py: separate temp files for ports
10727 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10728 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10730 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10732 * moved tinitalk to device/examples/ds390
10734 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
10736 * as/mcs51/lkmem.c: rflag is for DS390
10737 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
10738 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
10739 (linkEdit): move mem- and map-files the same way as ihx-files
10740 * src/z80/main.c (_setDefaultOptions): removed --generic
10741 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
10742 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
10743 * src/pic/glue.c (picglue): --c1mode works again
10744 * src/pic16/glue.c (pic16glue): --c1mode works again
10745 * src/asm.c (printCLine): fix #660034
10747 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10749 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
10750 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
10751 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
10752 * as/mcs51/lkmem (summary): better fix for sp problem
10753 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
10754 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
10755 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
10756 remove --stack-after-data
10758 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10760 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
10761 * src/SDCCutil.c (join): ugly bug: missing '\0'
10762 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
10764 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10766 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
10768 * src/pic/main.c (_asmCmd): gpasm supports -o
10769 * src/z80/main.c: more general macros
10770 * device/lib/Makefile.in: remove intermediate files
10772 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10774 * .version: Bumped version number to 2.3.3
10775 * src/SDCCBBlock.c: new option -o
10776 * src/SDCCglobl.h: new option -o
10777 * src/SDCCglue.c: new option -o
10778 * src/SDCCmain.c: new option -o
10779 * src/asm.c: new option -o
10780 * src/ds390/main.c: new option -o
10781 * src/pic/glue.c: new option -o
10782 * src/pic/pcode.c: new option -o
10783 * src/pic/ralloc.c: new option -o
10784 * src/pic16/glue.c: new option -o
10785 * src/pic16/pcode.c: new option -o
10786 * src/pic16/ralloc.c: new option -o
10787 * src/z80/main.c: new option -o
10788 * device/lib/Makefile.in: use -o
10789 * support/regression/ports/ds390/spec.mk: use -o
10790 * support/regression/ports/gbz80/spec.mk: use -o
10791 * support/regression/ports/mcs51/spec.mk: use -o
10792 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
10793 * support/regression/ports/z80/spec.mk: use -o
10794 * support/regression/ports/ucz80/spec.mk: use -o
10795 * support/regression/ports/xa51/spec.mk: use -o
10796 * support/regression/fwk/lib/timeout.c: fix usage string
10798 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
10799 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
10801 2003-01-07 <johan AT balder>
10803 * src/SDCCast.c (decorateType): fixed bug #600035
10805 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10806 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
10807 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
10808 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
10809 * src/pic/pcode.c: outcommented unused variable to remove warnings
10810 * src/pic/ralloc.c: outcommented unused variable to remove warnings
10812 2003-01-06 <karl AT turbobit.com>
10813 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
10816 2003-01-06 <johan AT balder>
10818 * src/SDCCicode.c: fixed array add
10820 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
10821 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
10822 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
10824 2003-01-04 <johan AT balder>
10826 * src/SDCCval.c (getNelements): fixed the initialized array of structures
10828 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10829 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
10831 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
10832 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
10833 * support/regression/tests/bug-524697.c: fit mem usage into 8032
10835 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
10836 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
10838 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
10839 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
10841 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
10842 * src/mcs51/main.c: removed {bindir}{sep} from aslink
10844 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10846 * in /sdcc/as/mcs51/ changed these files in order to create an
10847 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
10848 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
10849 following files to include the previous two files: aslink.dsp,
10850 Makefile.aslink, Makefile.bcc, and Makefile.in.
10852 * Changed /sdcc/src/SDCCmain.c so it creates files with extension
10853 .adb instead of .cdb
10855 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10857 * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
10858 value from option --iram-size.
10860 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10862 * /sdcc/as/mcs51/lklist.c: added boundary check before using
10865 2002-09-18 <wiml AT hhhh.org>
10867 * SDCClrange.h: exposed setFromRange() and setToRange()
10868 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
10869 packRegsForAccUse() (bug 542397)
10870 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
10871 multiple times and emitting the fetch operations more than once
10872 added aopGetUsesAcc() function to allow binary operators to
10873 fetch their operands in the correct order; made genMinus() emit
10874 compact code for X = LITERAL - Y
10876 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10877 * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
10878 sprintf() in line 1267.
10880 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10881 * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
10884 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10885 Changes to aslink (All the changes are marked with 'JCF'):
10887 * /sdcc/as/mcs51/aslink.h: External definition of sflag and
10890 * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
10891 area BSEG. Also moves, if possible, the DATA area down into the internal
10892 ram so more space is available.
10894 * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
10897 * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
10898 not bytes. Function summary() which creates a memory usage summary
10899 file with extension .mem. Reports of overlaping stack and small stack
10900 size. If the space for the stack is less than 16 bytes aslink trows a
10903 * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
10904 the 8051. Option 'y' for memory summary output file.
10906 Changes to sdcc (All the changes are marked with 'JCF'):
10908 * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
10910 * /sdcc/src/SDCCglue.c: If a register bank is used, creates an
10911 overlaying area for it (uses RegBankUsed[4]).
10913 * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
10914 bank zero as used by default. By default aslink locates the stack
10915 (equivalent to --stack-after-data). Pass option 'y' to aslink for
10916 the creation of the .mem file. Delegates the allocation of data area
10917 to aslink (it is not longer 0x30 by default). If --stack-loc passes
10918 the begining of the stack area to aslink.
10920 * /sdcc/src/SDCCmem.c: If a register bank is used, marks it so
10921 glue() in SDCCglue.c creates an area for it.
10923 2002-09-03 Borut Razem <borut.razem AT siol.net>
10924 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
10925 sdcc/src/pic/glue.c:
10926 introduced atexit() handler for teporay files removal in case of
10927 errors, assertions, ...
10929 2002-08-29 Borut Razem <borut.razem AT siol.net>
10930 * sdcc/support/cpp2/auto-host_vc_in.h:
10931 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
10932 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
10933 Maybe there is a similar problem with BORLANDC? It should be checked!
10935 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
10936 corrected improper use of assert: the assignment to clr variable was done inside the assert.
10937 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
10938 was not executed, and the compiler (cl) launched a warning:
10939 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10941 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
10942 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10944 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10945 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10947 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10948 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10949 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10950 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10951 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10952 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10953 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10954 - added Release configuration in VS projects
10955 - review of compiler an linker options
10956 - VC .exe files are generated in bin_vc directory, not to interfere
10957 with binaries generated from other projects (cygwin, mingw, bcc ...)
10959 * sdcc/src/yacc.dsp: added
10961 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10962 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10963 and insert the version number definitions from .version
10965 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10967 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10968 added - genarate auto-host.h using auto-host_vc_in.h as template
10971 removed from CVS, generated automatically
10973 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
10974 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10976 2002-08-11 Borut Razem <borut.razem AT siol.net>
10977 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10979 2002-08-10 Borut Razem <borut.razem AT siol.net>
10980 * src/SDCCmain.c (main):
10981 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
10982 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
10983 The consequence was that some temporary files were not removed.
10986 unification of code in functions tempfilename() and tempfile():
10987 function tempnam() is defined in Visual Studio 6.0 and .NET
10989 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
10991 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10992 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
10993 - removed compiler command line option /WX: Treats all warnings as errors
10994 - update a list of source files, included into the project
10996 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10997 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
10998 changed project type to Generic Project so that can be correcly converted to VS.NET project
11000 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
11002 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
11004 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
11006 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
11007 added return 0 statements after assert() to make compiler happy
11009 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
11010 added newline in the def file to keep MSC compiler satisfied
11012 * sdcc/src/z80/gen.c:
11013 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
11014 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
11015 - solved MSC error in function aopDump()
11017 * sdcc_vc.h: define PREFIX as "\\sdcc"
11019 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
11020 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
11022 2002-06-22 Scott Dattalo <scott AT dattalo.com>
11023 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
11024 - Rewrote the register banking algorithm.
11025 - Added pCode live-range analysis to registers (for now, only non-used and
11026 singly-used registers optimized away)
11028 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
11030 * 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.
11032 2002-05-10 Scott Dattalo <scott AT dattalo.com>
11033 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
11035 2002-04-22 Michael Hope <michaelh AT vroom>
11037 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
11039 * configure.in (DD_COPT): Added include support required for gbdk.
11041 * .version: Bumped version number just to increase it.
11043 * src/SDCCmain.c: Added -nostdinc to the default options.
11045 2002-04-15 Michael Hope <michaelh AT vroom>
11047 * device/lib/z80/printf.c (sprintf): Added.
11049 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
11051 * src/z80/peeph.def: Added transpose redundent load rule.
11053 * src/z80/main.c: Added force callee saves for jaune.
11055 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
11057 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
11059 2002-03-28 Johan Knol <johan AT balder>
11061 * src/SDCCval.c: fixed bug #532436
11063 2002-03-14 Scott Dattalo <scott AT dattalo.com>
11065 Added "char *Processor" field to the port structure.
11068 Added -p option. Allows port dependent processor to be specified.
11071 Initialized the new field char *Processor field to NULL in all ports
11074 Compiler generated registers for interrupt context saving
11075 were not getting allocated.
11077 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
11080 Fixed left shift. Will promote the left side of a left shift
11081 if a) left shifting more than size of operand or b) when assigned
11082 to something size > size of left side
11084 2002-03-14 Scott Dattalo <scott AT dattalo.com>
11086 tons of changes. Register allocation has been
11087 rewritten. Added customization for the various PICs. Flow
11088 analysis is restructured. ...
11090 * src/pic/device.h:
11093 * src/pic/device.c:
11094 Added. device.c is a PIC port hack to accomodate variations
11097 2002-03-13 Michael Hope <michaelh AT vroom>
11099 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
11101 2002-03-04 johanknol <johanknol AT manik>
11103 * /src/SDCCval.c: fixed
11105 const unsigned char arr[][2] = { { 0, 1 } };
11106 t18.c:1: error: Initializer element is not constant
11108 2002-03-04 bela <bela AT manik>
11110 * /device/include/mcs51reg.h:
11111 ds89c420 register definition update
11113 2002-03-03 <johan AT FRIJA>
11115 * support/Util/SDCCerr.c: did something, but don't no why anymore
11117 * support/regression/tests/bug-524691.c: made it a little less shy
11119 * src/SDCCast.c (decorateType): fixed bug #524697
11121 * src/SDCCast.c: made some lineno improvements
11123 * src/SDCCval.c (getNelements): changed warning to error
11125 * src/SDCCglue.c (printIvalArray): changed warning to error
11127 * src/SDCCicode.c: fixed a warning for mingw
11129 * src/SDCCast.c (decorateType): fixed the << promotion for ops
11131 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
11133 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
11135 * src/ds390/peeph.def:
11136 Added some more peephole rules
11138 * src/ds390/gen.c: Various fixes & enhancements
11140 * src/SDCClrange.c, src/SDCClrange.h:
11141 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
11143 * src/ds390/ralloc.c:
11144 various fixes & enhancements (ds390) specific
11146 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
11147 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
11150 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
11152 2002-03-02 <johan AT FRIJA>
11154 * src/SDCCast.c (decorateType): fixed bug #524708
11156 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
11158 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
11160 2002-03-01 Michael Hope <michaelh AT vroom>
11162 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
11164 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
11166 2002-03-01 <johan AT FRIJA>
11168 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
11170 * src/SDCCast.c (decorateType): fixed bug #524209
11172 * src/SDCCval.c (valNot): fixed bug #524195
11174 2002-02-26 <johan AT balder>
11176 * src/xa51/gen.c: fixed a warning
11178 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
11180 * src/SDCCast.c (decorateType): fixed bug #522534
11182 2002-02-23 <johan AT balder>
11184 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
11186 2002-02-22 <johan AT balder>
11188 * src/SDCCast.c: fixed bug #514865
11190 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
11192 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
11194 * sdcc/src/SDCCloop.c:
11195 Previous fix was not good. basic blocks that have "break" or "return" are
11196 not really partof a loop , but live ranges used in these blocks should
11197 be live thru the entire loop, so set partOfLoop but don't add them to
11200 2002-02-21 <johan AT FRIJA>
11202 * src/SDCCcse.c: fixed bug #514308
11204 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
11207 Fixed BUG #519583. If a conditional block ended in a return/break
11208 statement inside a loop, it was not being considered part of the loop.
11210 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
11212 2002-02-10 Karl Bongers <karl AT turbobit.com>
11215 Fixed up SDCDB debugger somewhat. Updated debugger/README
11216 with lots of comments and notes.
11218 * device/examples/test2.c:
11219 Fix bug, "red" variable not being initialized(compiler complained).
11221 * device/examples/Makefile, examples/test3.c:
11222 Add Makefile in device/examples folder, compiles test3.c
11223 for use as a multiple module SDCDB test case.
11225 * sim/ucsim/cmd.src/cmdset.cc:
11226 Took out debug printfs in ucsim "next" command.
11228 * sim/ucsim/xa.src:
11229 Karl and Johan start ucsim XA support. Most dissassembly working,
11230 about 75% emulation done(plenty of work remaining).
11232 * sim/ucsim/z80.src:
11233 Add Z80 support to ucsim, add test-ucz80 regression test,
11234 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
11235 Notice z80 compiler fails on examples/test3.c/crc code.
11237 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
11239 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
11240 Added support for --parms-in-bank1
11242 * src/ds390/peeph.def:
11243 added a few more peephole optimzations
11245 * src/ds390/main.c:
11246 1) added __builtin_inp & __builtin_outp used to read in data of given length
11247 from a memory mapped port
11248 2) added __builtin_memcmp
11249 3) added __builtin_swapw swap bytes of a short
11251 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
11252 1) handle multiple send & receives from register bank1
11253 2) ralloc can now allocate DPTR1 to some liveRanges
11255 * src/SDCCsymt.c, src/SDCCsymt.h:
11256 changes to handle multiple sends & receives
11258 * src/SDCCptropt.h:
11259 added some pointer arithmetic optimization
11261 * src/SDCCptropt.c:
11262 added some pointer arithmetic optimizations but not stable yet so not
11263 called from anywhere (will get this working shortly)
11265 * src/SDCCopt.c: fixed for multiple sends & receives
11268 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
11269 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
11270 set preprocessor defines (depending on options)
11272 * src/SDCCicode.c, src/SDCCicode.h:
11273 changes made to handle multiple sends & receives
11276 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
11278 * src/SDCCcse.c, src/SDCCcse.h:
11279 added function findbackward def (to be used in upcoming optimization)
11281 * src/SDCCcflow.c, src/SDCCcflow.h:
11282 added function returnAtEnd - to determine if a basic block terminates with
11285 * src/SDCCast.c, src/SDCCast.h:
11286 added option parms-in-bank1
11288 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
11289 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
11290 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
11291 adjusted for --parms-in-bank1 option
11293 * device/include/string.h:
11294 donot redefine "reentrant" keyword
11296 * device/include/ds80c390.h: Added some more SFRs
11298 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
11300 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
11302 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
11304 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
11306 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
11308 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
11310 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
11312 * Added --xram-movc option
11314 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11316 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
11318 2002-01-11 Johan Knol
11320 * Added math lib of Jesus Calvino-Fraga
11322 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
11324 * src/SDCCmain.c (processFile): fix processing of ../../src.c
11325 * support/regression/Makefile: new target test-mcs51-stack-auto
11326 * support/regression/ports/mcs51-stack-auto/spec.mk: added
11328 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
11330 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
11332 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
11334 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
11336 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
11338 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
11340 * src/SDCCglue.h: add definition for printIvalChar()
11342 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
11344 * src/SDCCast.c: fix #498138 by Johan
11346 * src/SDCCglue.c: fix #498138 by Johan
11348 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
11350 * support/regression/Makefile: fix clean
11352 * support/regression/ports/ds390/support.c: fix transmission of last character
11354 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
11356 * /sdcc/src/ds390/gen.c:
11357 a) improved computing address of stack variable
11358 b) took out some #if 0 code
11359 c) improved parmBytes adjustment
11360 d) improved genPlusIncr & genMinusIncr
11361 e) genCmp could generate bad code (when left assigned to DPTR)
11362 f) Fixed bug in hasInc
11364 * /sdcc/src/ds390/ralloc.c:
11365 a) packRegsForSupport could mess up live information (Fixed)
11366 b) packRegsDPTRuse could be incorrect for left & right shift
11368 * /sdcc/src/mcs51/ralloc.c:
11369 packRegsForSupport could mess up the live information (Fixed)
11371 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
11373 * /sdcc/src/SDCCast.c:
11374 can reverse a loop even if function call is present as long
11375 as the loop control variable is local & is not passed as parameter
11377 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
11379 * /sdcc/ChangeLog: *** empty log message ***
11381 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
11382 More builtin function additions for TININative
11384 * /sdcc/src/ds390/ralloc.c:
11385 Had broken the regression testsuite
11387 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
11389 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
11390 Added funcattr hasStackParms will be set for reentrant functions when there
11391 are paramteres on the stack, this helps in minimizing frame pointer generation
11392 typeFromStr can handle function pointers now
11394 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
11395 *** empty log message ***
11397 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
11399 * /src/ds390/gen.c, /src/ds390/main.c:
11400 More builtin function additions for TININative
11402 * /src/ds390/ralloc.c:
11403 Had broken the regression testsuite
11405 * /src/SDCCast.c: Fixed a bug in dumptree
11407 * /src/SDCCsymt.c, /src/SDCCsymt.h:
11408 Added funcattr hasStackParms will be set for reentrant functions when there
11409 are paramteres on the stack, this helps in minimizing frame pointer generation
11410 typeFromStr can handle function pointers now
11412 * /doc/builtins.txt, /doc/TININative.txt:
11413 *** empty log message ***
11416 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
11418 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
11419 ALPHA version for -mTININative
11421 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
11422 updated to reflect changes in the port structure
11425 added function do_assemble (similar to do_link) if non-null this function
11426 will be called to do assembly (-mTININative) requires a multi command
11428 added function genAssemblerEnd will be called to generate assembler Epilogue
11431 added _JavaNative to debug info printing
11433 * /src/SDCCmain.c: added option --tini-libid
11434 added port->do_assemble function (-mTININative) has a multi command assemble
11436 * /src/SDCCglue.c: Disabled "constExpr" check
11437 added port->genAssemblerEnd function
11439 * /src/SDCCglobl.h: Added option --tini-libid value
11442 tookout optimizeCompare from the header (has no external references)
11444 * /src/SDCCast.c: made one more function "static"
11446 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
11448 * src/z80/mappings.i: Added z80asm support.
11450 * src/z80/main.c: Added z80asm support on --asm=z80asm
11452 * src/z80/gen.c: Fixed asm portability issues.
11454 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
11456 * src/SDCCglue.c (printExterns): Added global/extern split.
11458 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
11460 * support/regression/Makefile: added test for mcs51 model large
11462 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
11464 * support/regression/ports/gbz80/spec.mk: added -mgbz80
11466 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
11468 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
11470 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
11472 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
11474 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
11476 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
11478 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
11480 * support/regression/tests/simplefloat.c: Port to mcs51.
11482 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
11483 * support/regression/tests/bug-485362.c: Added.
11485 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
11487 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
11489 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
11491 * src/z80/gen.c (aopDump): Added a dump function.
11493 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
11494 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
11496 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
11498 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
11500 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
11502 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
11504 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
11506 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
11508 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
11510 * support/regression/ports/ds390/support.c: Use tinibios.
11512 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
11514 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
11516 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
11517 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
11519 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
11521 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
11523 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
11525 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
11527 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
11528 (packRegsForIYUse): Created and optimised.
11530 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
11532 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
11533 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
11535 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
11537 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
11539 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
11541 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
11543 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
11545 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
11547 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
11549 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
11551 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
11553 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
11555 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
11557 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
11558 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
11559 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
11561 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
11563 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
11564 (genNotFloat): Added.
11565 (genUminusFloat): Added.
11567 * device/lib/z80/Makefile: Added floating pt stubs.
11569 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
11571 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
11573 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
11575 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
11577 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
11579 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
11581 * sdcc/support/regression/Makefile: Add port ds390.
11583 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
11585 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
11587 * sdcc/support/regression/ports/ds390/spec.mk: Added.
11589 * sdcc/support/regression/ports/ds390/support.c: Added.
11591 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
11593 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
11595 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
11597 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
11599 * device/include/malloc.h: Added z80 and gbz80 support.
11601 * device/lib/gbz80/heap.s: Added.
11603 * device/lib/z80/heap.s: Added.
11605 * device/lib/malloc.c: Added z80 and gbz80 support.
11607 * support/regression/tests/malloc.c (testMalloc): Added.
11609 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
11611 * support/regression/tests/bug-478094.c: Added.
11613 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
11615 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
11617 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
11619 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
11621 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
11623 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
11625 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
11627 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
11629 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
11631 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
11633 * support/regression/tests/bug-477927.c: Added.
11635 * src/z80/peeph.def: Added minor rules.
11637 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
11639 * src/z80/peeph.def: Added jump optimisation modification.
11641 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
11643 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
11645 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
11647 * support/regression/tests/funptrs.c: Added.
11649 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
11651 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
11653 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
11655 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
11657 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
11659 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
11660 (movLeft2ResultLong): Created.
11662 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
11663 (joinPushes): Added. Joins two char pushes into a word push.
11665 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
11667 * support/cpp2/Makefile.in (install): Added creation of dest dir.
11669 * support/makebin/Makefile (install): Added creation of dest dir.
11671 2001-10-24 Karl Bongers <karl AT turbobit.com>
11673 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
11675 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
11677 * src/z80/ralloc.c: Turned off faulty pack for one use.
11679 * src/z80/peeph-gbz80.def: Removed redundent restart options.
11681 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
11683 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
11685 * support/regression/Makefile: Improved clean
11687 * support/regression/ports/gbz80/spec.mk: Added clean
11689 * support/regression/ports/host/spec.mk: Added clean
11691 * support/regression/ports/z80/spec.mk: Added clean
11693 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
11695 * support/regression/ports/mcs51/timeout.c: little improvements
11697 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
11699 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
11701 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
11703 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
11705 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
11707 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
11709 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
11711 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
11712 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
11714 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
11716 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
11718 * src/mcs51/main.c (_linkCmd): Added bin path to command.
11720 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
11722 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
11724 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
11726 * support/regression/tests/longor.c: Added.
11728 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
11730 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
11732 * as/mcs51/aslink.h: define PATH_MAX
11734 * as/mcs51/asm.h: define PATH_MAX
11736 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
11738 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
11740 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
11742 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
11744 * src/SDCCglobl.h: define PATH_MAX
11746 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
11748 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
11750 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
11752 * src/z80/gen.c (gencjneshort): Fixed
11754 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
11756 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
11758 * support/regression/tests/bug-469671.c: Added.
11760 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
11762 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
11764 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
11766 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
11768 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
11770 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
11772 * src/device/lib/_mulint.c : removed hint: nooverlay bug
11774 * src/device/lib/_mullong.c : removed hint: nooverlay bug
11776 * src/device/lib/_divuint.c : removed hint: nooverlay bug
11778 * src/device/lib/_divulong.c: removed hint: nooverlay bug
11780 * src/device/lib/_moduint.c : removed hint: nooverlay bug
11782 * src/device/lib/_modulong.c: removed hint: nooverlay bug
11784 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
11786 * 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.
11788 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
11790 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
11792 2001-10-07 <johan AT FRIJA>
11794 * device/lib/gets.c (gets): fixed the return value.
11796 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
11797 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
11799 * 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.
11801 * 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.
11803 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
11805 * src/pic/gen.c: Removed Safe_strdup.
11807 * configure.in: Added option to enable libgc support.
11809 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
11810 (bitVectUnion): Optimised.
11811 (bitVectIntersect): Optimised.
11812 (bitVectBitsInCommon): Optimised.
11813 (bitVectCplAnd): Optimised.
11815 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
11817 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11819 * src/SDCCmain.c: distinguish between assembler debug and plain options
11821 * src/avr/main.c: remove standard assembler options
11823 * src/ds390/main.c: remove standard assembler options
11825 * src/mcs51/main.c: remove standard assembler options
11827 * src/port.h: removed "PENDING" comment
11829 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11831 * src/device/lib/_mulint.c : new, with assember functions
11833 * src/device/lib/_mullong.c : new, with assember functions
11835 * src/device/lib/_divuint.c : with assember functions
11837 * src/device/lib/_divsint.c : with assember functions
11839 * src/device/lib/_divulong.c: with assember functions
11841 * src/device/lib/_divslong.c: with assember functions
11843 * src/device/lib/_moduint.c : with assember functions
11845 * src/device/lib/_modsint.c : with assember functions
11847 * src/device/lib/_modulong.c: with assember functions
11849 * src/device/lib/_modslong.c: with assember functions
11851 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
11853 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
11855 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
11856 replaced _mululong.c and _mulslong.c by _mullong.c
11858 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11860 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
11862 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11864 * src/SDCCglue.c: test, if win32api is available for MINGW
11866 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11868 * src/SDCCsymt.c: no more _modifier in printTypeChain()
11869 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
11870 * support/regression/ports/gbz80/spec.mk: removed GENERIC
11871 * support/regression/ports/host/spec.mk: removed GENERIC
11872 * support/regression/ports/mcs51/spec.mk: removed GENERIC
11873 * support/regression/ports/z80/spec.mk: removed GENERIC
11875 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
11877 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
11879 * support/regression/tests/bug-467035.c: Created.
11881 2001-10-01 <johan AT FRIJA>
11883 * src/SDCC.y: fixed bug #466586 part 1
11885 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
11887 * SDCCicode.c: z80 has no generic pointers
11888 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
11890 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
11892 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
11894 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
11896 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
11898 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
11900 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
11902 * configure.in: Fixed up so that ucsim is only configured once.
11904 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
11906 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
11907 (getPathDifference): As above.
11909 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
11911 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
11913 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
11914 * .version: Updated to 2.3.1
11916 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
11917 Added copyright header.
11919 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
11920 (assemble): Added support for macro based assembler commands.
11921 (linkEdit): Added support for macro based linker commands.
11922 (preProcess): Changed the pre-processor to use macros.
11923 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
11924 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
11926 * device/lib/z80/crt0.s: Added module name for debugging.
11928 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
11930 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11932 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
11934 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
11936 * src/Makefile.in: Added SDCCmacro and SDCCutil
11938 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
11940 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11942 2001-09-16 <johan AT FRIJA>
11944 * 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.
11946 2001-09-15 <johan AT FRIJA>
11948 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11949 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11951 2001-09-11 <johan AT FRIJA>
11953 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11955 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
11957 * support/regression/tests/bug-460444.c: Added test case.
11959 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11960 (genCast): Added justification for all of the asserts.
11962 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
11964 * support/regression/support.c: _xdata replaced by xdata
11966 * support/regression/spec.mk: removed _generic
11968 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
11970 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11972 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11973 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11975 * src/z80/peeph.def: Added a rule to optimise shift then compare.
11977 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11979 * support/regression/tests/bug-460010.c: Added test case.
11981 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
11983 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
11985 * support/regression/Makefile: inter-port-clean adjusted for mcs51
11987 * support/regression/testfwk.c: removed workaround for bug #436344
11989 * support/regression/tests/bp.c: use less memory with mcs51
11991 * support/regression/tests/bug-441448.c: use less memory
11993 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
11995 * support/regression/collate-results.py: typo
11997 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
11999 * support/regression/tests/fetchoverlap.c: Added new test case.
12001 * support/regression/tests/bp.c: Added new test case.
12003 * support/regression/tests/bug-448984.c: Added new test case.
12005 * support/regression/tests/pow2shifts.c: Added new test case.
12007 * src/z80/gen.c: Turned off the noise it normally generates for the release.
12008 (genlshTwo): Fixed right shift for count > 8.
12010 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
12012 2001-09-08 <johan AT FRIJA>
12014 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
12016 2001-09-07 <johan AT FRIJA>
12018 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
12020 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
12022 2001-09-06 <johan AT FRIJA>
12024 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
12025 * bernhard noted me at this: "() equals to (void)" (1.38)
12027 2001-09-05 <johan AT FRIJA>
12029 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
12031 2001-09-04 <johan AT FRIJA>
12033 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
12036 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
12038 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
12040 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
12042 * link/z80/aslink.h: Fixed path for PATH_MAX
12044 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
12046 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
12048 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
12050 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
12052 * 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.
12054 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
12056 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
12057 (genCmp): Fixed up genCmp for the GB with longs.
12059 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
12061 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
12063 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
12065 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
12067 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
12069 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
12071 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
12073 * 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.
12075 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
12077 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
12079 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
12081 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
12083 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
12085 * sim/ucsim/configure: little improvement of Cygwin-detection
12086 * sim/ucsim/configure.in: little improvement of Cygwin-detection
12087 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
12088 * support/regression/tests/bug-221100.c: small changes for mcs51
12089 * support/regression/tests/bug-221168.c: small changes for mcs51
12090 * support/regression/tests/bug-227710.c: small changes for mcs51
12091 * support/regression/tests/staticinit.c: small changes for mcs51
12092 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
12093 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
12094 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601