1 2006-04-28 Raphael Neider <rneider AT web.de>
3 * src/pic/{gen.c,main.h,pcode.c},
4 * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5 concerning signedness with casts
7 2006-04-28 Raphael Neider <rneider AT web.de>
9 * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
10 definition of an interrupt handler,
11 * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
12 interrupt handler stuff from picglue() to separate routine,
13 (picglue): enabled definition of intr handlers in files w/o main()
15 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
17 * support/librarian/sdcclib.c: moved include <limits.h> up to enable
18 compilation with MSVC 2005 Express Edition (VC8)
20 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
22 * device/lib/Makefile: fixed build of gbz80 lib
24 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
26 * support/regression/tests/bug-460010.c,
27 * support/regression/tests/bug-524691.c,
28 * support/regression/tests/bug-716242.c: removed conditional defines
29 that are already in testfwk.h
31 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
33 * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
34 (AccAXRsh1): added, shift right by 1,
35 (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
37 * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
39 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
41 * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
42 remove cast to same type
43 * src/SDCCast.c (decorateType): fix for RFE 1475742,
44 optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
46 * link/z80/Makefile: removed, they have moved to
49 * configure.in: replaced duplicate message about ucsim by missing sdcpp
50 * install-sh: fix bug #1204398 by setting umask 0022
51 * device/lib/Makefile: separate build of z80 and gbz80 lib
53 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
55 Enabled VPATH feature: changed nearly all Makefiles (149 files).
56 See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
58 One basic decision: e.g. src/clean.mk includes further files. In order
59 to make this work there are two solutions:
60 - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
61 run configure on them. This way they can use
62 'include $(srcdir)/port-clean.mk'
63 - always include clean.mk by the Makefile at the same level. To avoid
64 that `make clean` tries to include and build Makefile.dep the
65 MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
66 implemented, because now even `make uninstall` doesn't create
67 Makefile.in. clean.mk could be eliminated by pasting it in
70 * debugger/mcs51/Makefile.in: build own objects from library sources
71 (SLIB, SDCC) in current directory
73 * configure, configure.in: renamed --disable-device-lib-build in
74 --disable-device-lib; added --enable-doc, the required tools are
75 searched by configure; added result message; the toolchain for the
76 belonging ports are now only built, if the port is enabled.
78 * support/regression/*: all output is written in directory gen, because
79 the fwk and ports directories don't livet in the build tree using vpath
81 * doc/sdccman.lyx: renamed --disable-device-lib-build to
82 --disable-device-lib, added --enable-doc, added section VPATH
84 * sim/ucsim/configure.in,
85 * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
86 z80 are enabled by default
88 2006-04-24 Raphael Neider <rneider AT web.de>
90 * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
91 to config word, "pic14_"-prefixed some extern functions
92 (pic14_emitConfigWord): emit __config directive(s) if assignment to
93 config word has been found
94 * src/pic/device.h: added prototypes
95 * src/pic/pcode.c: added "pic14_"-prefix where needed
96 * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
98 * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
100 (pic14emitRegularMap): ignore config words,
101 (pic14createInterruptVect): moved generating __config directives away
102 (picglue): have __config directives emitted
104 2006-04-24 Borut Razem <borut.razem AT siol.net>
106 * doc/Makefile: sync with nightly build makefile
108 2006-04-24 Raphael Neider <rneider AT web.de>
110 * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
111 registers that have not been assigned proper liveranges,
112 fixes #1469504 and #1474602,
113 (pCodeRegOptimizeRegUsage): fixed typo in comment
115 2006-04-24 Borut Razem <borut.razem AT siol.net>
117 * device/examples/main8051.c: deleted - it was removed from CVS
118 24.mar.2000 and after that modified 18.feb.2001, so it reappered
119 after the transition to Subversion
120 * src/SDCCalloc.h: deleted - it was removed from CVS
121 3.feb.2001 and after that modified 18.feb.2001, so it reappered
122 after the transition to Subversion
123 * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
124 sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
125 sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
126 sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
128 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
130 * as/asx8051.dsp: added mcs51/strcmpi.h
131 * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
132 * as/hc08/aslink.h: updated lnksect prototype
134 * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
136 * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
137 (newdot): handle A_ABS
139 * as/mcs51/asout.c (outarea): output address
140 * as/hc08/lkaomf51.c,
141 * as/mcs51/lkaomf51.c: disabled unused array UsageType
144 * as/z80/z80pst.c: "ABS" is not A_OVR
145 * as/hc08/lkarea.c (newarea): read a_addr,
146 (lnkarea): added codemap array, sort absolute areas to the front,
147 combine all GSINITx/GSFINAL,
148 (find_empty_space, allocate_space): new functions,
149 (lnksect): return next address, handle absolute sections
150 * as/mcs51/lkarea.c (newarea): read a_addr,
151 lnksect2 prototype changed,
152 (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
153 (find_empty_space, allocate_space): new, factored out of lnksect2,
154 (lnksect2): return next address, handle absolute sections
156 * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
157 * as/hc08/lklibr.c (addfile, fndsym),
158 * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
159 index out of range and detect both '\' and '/'
160 * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
161 * device/include/stdbool.h: removed SDCC_ds390 from check to pass
162 regression tests (ds390 cannot return bool yet)
163 * doc/sdccman.lyx: changed version number, document changed --no-peep,
164 document critical interrupts on z80, document changed SDCC define
165 * src/asm.c (_asxxxx_mapping): fixed .org directive,
166 (_a390_mapping): added .org directive
167 * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
168 (genMultOneByte): fixed warnings
169 * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
171 * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
172 * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
173 (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
174 * src/pic16/gen.h: changed prototype for pic16_popGetLabel
175 * src/pic16/main.c: removed newReg prototype
177 * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
179 * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
182 * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
184 * src/pic/pcode.c (allocInternalRegister): changed parameter optype
185 from short to PIC_OPTYPE
186 * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
187 * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
188 optype from short to PIC_OPTYPE
189 * src/port.h: made int_size unsigned to fix warnings
190 * src/SDCC.y: fixed warning on MSVC
191 * src/SDCCicode.c (getArraySizePtr): return unsigned int
192 * src/SDCCopt.c (convertToFcall): fixed warnings
193 * src/SDCCsymt.h: removed double prototype for genSymName
194 * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
195 offset int to fix warnings
197 2006-04-22 Borut Razem <borut.razem AT siol.net>
199 * doc/sdccman.lyx, */Makefile, */Makefile.in:
200 references to CVS replaced with Subversion
202 2006-04-21 Borut Razem <borut.razem AT siol.net>
204 * doc/sdccman.lyx, */Makefile, */Makefile.in:
205 references to CVS replaced with Subversion
207 2006-04-19 Borut Razem <borut.razem AT siol.net>
209 * src/version.awk: adapted for svn
210 * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
211 sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
212 sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
213 /binutils-avr/etc/*.vi, *.jin: removed all properties
214 support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
216 2006-04-19 Borut Razem <borut.razem AT siol.net>
218 * CVS to Subversion migration completed
220 2006-04-18 Borut Razem <borut.razem AT siol.net>
222 * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
223 ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
225 2006-04-17 Borut Razem <borut.razem AT siol.net>
227 * device/include/Makefile.in: added pic/*.inc to the installation
229 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
231 * support/regression/collate-results.py: fixed output in case of
233 * support/regression/generate-cases.py: fixed splitting of pathnames
235 * as/hc08/lklibr.c (addfile),
236 * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
238 2006-04-11 Raphael Neider <rneider AT web.de>
240 * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
241 * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
242 * src/pic16/pcode.c (assignValnums): fixed #1460578
244 2006-04-11 Raphael Neider <rneider AT web.de>
246 * device/lib/pic/libdev/*.c,
247 * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
248 fixes #1468739, enables compilation in --std-c99 mode
249 * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
251 2006-04-11 Raphael Neider <rneider AT web.de>
253 * src/pic/device.c (find_device): removed debug output
254 (list_valid_pics): enabled verbose listing of supported devices
255 * device/include/stdbool.h: define bool as char for pic14/16 as well
257 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
259 * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
261 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
263 * .version: bumped version to 2.5.6
264 * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
266 2006-04-06 Raphael Neider <rneider AT web.de>
268 * .version: bumped version to 2.5.6 (pic14 ABI changed)
269 * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
270 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
271 pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
272 pic14_constructAbsMap
273 (pic14printPublics): declare absolute global symbols as global
274 (pic14createInterruptVect),
275 * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
276 (newReg): assume new registers unused, use correct name in
277 hashtable (reg->name instead of name), more debugLog output
278 * src/pic/device.h (PIC_device): added fields for verbose output
279 * src/pic/device.c: moved device definition to pic14devices.txt,
280 added routines for runtime parsing of pic14devices.txt,
281 added support for second config word
282 * src/pic/main.c (_process_pragma): removed #pragma maxram,
283 (_pic14_keywords): no longer accept "bit" and "sbit" keywords
284 (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
285 (_pic14_parseOptions): moved pCodeInitRegisters here
286 (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
287 * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
288 (pCodeInitRegisters): rewrapped comments, perpared new approach to
289 handling the pseudo stack
290 * device/lib/Makefile.in: ignore failures in objects-pic16,
291 * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
292 * device/lib/pic/NEWS: document new dependency on picXXX.lib
293 * device/lib/pic/Makefile.subdir,
294 * device/lib/pic16/Makefile.subdir: improved clean rules
295 * device/lib/pic/libdev/: NEW, pic14 device libraries
296 * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
297 * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
298 * device/include/Makefile.in: create subdir and install pic14 headers
299 * device/include/pic/p16f_common.inc: removed unused declarations
300 * device/include/pic/pic16*.h: added header files for 100+ 14 bit
301 PICs from inc2h.pl v1.6,
302 replaced BIT_AT macros with struct declarations
303 * device/include/pic/pic14devices.txt: definition of supported devices,
304 all above improvements contributed by Zik Saleeba, thanks
305 * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
306 * support/scripts/sdcc.nsi: also install pic14 device libraries and
309 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
311 * device/include/mcs51/c8051f410.h: added interrupt numbers,
312 * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
313 thanks to Charles Olds
315 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
317 * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
319 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
321 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
322 * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
323 * support/regression/bug1464657.c: added, new test
325 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
327 * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
330 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
332 * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
333 --no-peep and --peep-file <file> are used don't use default rules but
336 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
338 * src/mcs51/gen.c (genCall): fixed bug 1457608
340 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
342 * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
343 changes seem to cause (trigger?) problems with the build system.
345 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
347 * src/SDCCpeeph.c (operandsLiteral): new, added,
348 (callFuncByName): inserted operandsLiteral
349 * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
351 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
353 * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
354 * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
356 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
358 * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
359 implemented patch 1120823 Thanks to Willy De la Court (normal
360 interrupts need an interrupt number now if they are made critical),
361 and enabled nesting of critical functions though not for gbz80
362 (genCritical, genEndCritical): added functions
363 (genZ80Code): added cases for CRITICAL and ENDCRITICAL
364 * src/z80/mappings.i: added "ei" to all mappings
366 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
368 * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
369 submitted by the Debian SDCC maintainer Aurelien Jarno:
370 "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
371 archive with gcc 4.1 on mips and wrote the patch"
373 2006-03-16 Raphael Neider <rneider AT web.de>
375 * src/pic16/genarith.c (genAddLit): simplified and fixed case where
376 the left operand is shorter than the result (c* = lit-c* + int),
378 * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
381 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
383 * src/.version: increased version number to 2.5.5
384 * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
385 linking is done manually in pic16 port's _linkEdit,
386 * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
387 PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
388 * src/pic16/gen.c (aopForSym): when direct register name is WREG then
389 allocate asmop as AOP_ACC,
390 (aopForRemat): added parameter 'bool result' in function declaration,
391 (pic16_aopGet): return AOP_ACC when accessing WREG,
392 (pic16_popGetTempReg): minor modification,
393 (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
394 'pic16_allocWithIdx',
395 (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
396 calling function in absolute addresses,
397 (genAssign): take into account AOP_ACC asmop,
398 * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
399 * src/pic16/pcoderegs.c: some debug functions and lines added,
400 * src/pic16/ralloc.c (decodeRegType): added but commented out,
401 * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
403 * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
404 call to allocReg, not by manually allocating a new one,
405 (pic16_assignRegisters): now before going through the register
406 allocating functions mark all registers as free. This eliminates some
407 side effects resulting from peephole parser done earlier in the backbone
409 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
411 * src/SDCCicode.c (geniCodeLogic),
412 * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
414 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
416 * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
417 (genSend): bugfix, do not allocate and free twice,
418 (shiftRLong): handle partially overlapping aops
419 * support/regression/tests/bitopcse.c: fixed warning redefined idata
421 2006-03-08 Borut Razem <borut.razem AT siol.net>
423 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
426 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
428 * support/regression/tests/bug1409955.c: new, added
429 * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
430 * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
431 (aopForSym, aopOp): increment asmop.allocated if reused,
432 (freeAsmop): decrement asmop.allocated and check for zero instead of
434 (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
435 (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
436 genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
437 genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
438 genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
439 genSignedRightShift, genRightShift, genDataPointerGet,
440 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
441 genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
442 in reverse order from allocation,
443 (genPlus, genCmpEq): free asmop's in reverse order from allocation and
444 added swappedLR to keep track
445 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
446 pdata & code for GCC, z80, gbz80 & hc08
447 * support/regression/tests/zeropad.c: moved defines to testfwk.h
449 2006-03-08 Raphael Neider <rneider AT web.de>
451 * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
453 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
455 * device/include/mcs51/c8051f410.h: new SiLabs mcu
456 * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
457 * support/regression/tests/array.c: added parenthesis, made arrays unsigned
459 2006-03-06 Borut Razem <borut.razem AT siol.net>
461 * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
462 made the linker quiet
464 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
466 * src/pic16/gen.c (genPcall): fixed bug #1443644
467 * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
468 which dumps before the function entry point a data byte which represents
469 the number of the local variables used by the specified function, added
470 'xinst' for initial support for Extended Instruction Support,
471 * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
472 (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
473 port->fun_prefix anymore (may change later),
474 (genFunction, genEndFunction): do not store/restore local registers for
475 _main (this should take care the --main-return command line option in
477 (genOr): removed some legacy pic-port instructions,
478 * src/pic16/genarith.c (genAddLit): re-enabled old code because
479 performing operations with SFR's causes data to be written more than
480 once to each SFR. Perhaps SFRs should be handled in special cases...
481 * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
483 * src/pic16/main.c (_process_pragma): stack bound checking did not take
484 into account for stack starting position,
485 (struct OPTIONS pic16_optionsTable): added command line argument
486 --extended or -y for Extended Instruction Support,
487 * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
488 (deassignLRs): *** perhaps the most important change, old 'for' code
489 (commented out for reference), didn't account for some registers which
490 were left marked 'not free' after a pointer operation. The change
491 reduces register usage a lot in some cases
493 2006-03-04 Borut Razem <borut.razem AT siol.net>
495 * support/regression/ports/hc08/spec.mk: remove *.asm in traget
497 * support/regression/tests/bug-524697.c: decreased array size for
498 mcs51 to fit into the internal RAM
499 * support/regression/Makefile.in: a little bit more verbose
501 2006-03-03 Borut Razem <borut.razem AT siol.net>
503 * support/regression/fwk/lib/testfwk.c,
504 support/regression/fwk/include/testfwk.h: introduced function
505 _prints(), nonrecursive _printn(), call _initEmu() from main()
506 * support/regression/ports/gbz80/support.asm,
507 support/regression/ports/ucz80/support.asm,
508 support/regression/ports/z80/support.asm,
509 support/regression/ports/ds390/support.c,
510 support/regression/ports/hc08/support.c,
511 support/regression/ports/host/support.c,
512 support/regression/ports/mcs51/support.c,
513 support/regression/ports/xa51/support.c: added empty _initEmu()
515 * support/regression/ports/pic16/gpsim.cmd,
516 support/regression/ports/pic16/spec.mk,
517 support/regression/ports/pic16/support.c,
518 support/regression/Makefile.in: added pic16 regression test
520 2006-03-01 Raphael Neider <rneider AT web.de>
522 * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
523 genConstPointerGet): use safe way of generating MOVFF to cover
524 literals as well as registers, fixes bug #1440527
525 * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
527 (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
528 more correctly, fixes bug #1232186
529 (pic16_printIval): use pic16_printIvalUnion() for initialized unions
530 * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
531 gplink guess the correct processor in more cases, applied patch
532 from Till Riedel attached to and fixing bug #1436552
534 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
536 * support/regression/tests/array.c: added, contains check for #1434401
537 * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
539 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
541 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
542 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
543 * device/include/mcs51/c8051f326.h,
544 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
545 * device/include/mcs51/c8051f000.h,
546 * device/include/mcs51/c8051f018.h,
547 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
548 PCON_IDLE,PCON_STOP and added sfr16 definitions
550 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
552 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
553 genGetWord): fixed bug 1409955
555 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
557 * device/include/hc08/mc68hc908gp32.h,
558 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
560 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
562 * src/SDCCast.c (constExprValue): return NULL if not a value
563 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
564 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
565 * support/regression/tests/bitfields.c: enabled signed bitfield for all
567 2006-02-13 Borut Razem <borut.razem AT siol.net>
569 * src/regression/ptrarg.c: added, fails due to bug #1430967
570 * src/regression/Makefile: ptrarg.c added, ...
572 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
574 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
575 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
577 2006-02-11 Borut Razem <borut.razem AT siol.net>
579 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
580 print "Processor: xxx" message to stdout only if --verbose
582 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
584 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
585 * support/regression/tests/bug1426356.c: added
586 * support/regression/tests/bitfields.c: removed 2 tests
588 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
590 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
591 * device/include/mcs51/c8051f330.h,
592 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
593 PCON_IDLE,PCON_STOP and added sfr16 definitions
594 * device/lib/_divsint.c,
595 * device/lib/_divuint.c,
596 * device/lib/_divulong.c,
597 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
598 register bank bug for small stackauto
600 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
602 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
604 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
606 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
607 * all.dsp: corrected several bin paths
608 * device/include/mcs51/c8051f120.h,
609 * device/include/mcs51/c8051f300.h,
610 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
611 to PCON_IDLE,PCON_STOP
612 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
613 * device/lib/printf_large.c (output_float): fixed bug 1388703
614 * support/regression/tests/bug1057979.c: added test for bug 1388703
616 2006-02-08 Raphael Neider <rneider AT web.de>
618 * src/pic/pcode.c (pciTRIS): fixed typo,
619 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
620 (LinkFlow): fixed handling of flows that end in a call,
621 (ReuseReg): perform safety check earlier
622 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
623 to work with flows at the beginning of a pBlock,
624 fixes #1426557 (Symbol not previously defined),
625 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
627 (RemoveUnusedRegisters): update register usage info
628 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
629 created, reuse existing ones instead
630 * src/pic/gen.c (genPcall): fixed #1424719
632 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
637 * link/z80/aslink.h: fixed build on current cygwin:
638 replaced getline() by lk_getline()
640 2006-02-01 Borut Razem <borut.razem AT siol.net>
642 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
643 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
644 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
645 src/regression/bool1.c, src/regression/bool2.c,
646 src/regression/bool3.c, src/regression/call1.c,
647 src/regression/compare.c, src/regression/compare10.c,
648 src/regression/compare2.c, src/regression/compare3.c,
649 src/regression/compare4.c, src/regression/compare5.c,
650 src/regression/compare6.c, src/regression/compare7.c,
651 src/regression/compare8.c, src/regression/compare9.c,
652 src/regression/configword.c, src/regression/for.c,
653 src/regression/inline.c, src/regression/mult1.c,
654 src/regression/nestfor.c, src/regression/or1.c,
655 src/regression/pointer1.c, src/regression/ptrfunc.c,
656 src/regression/rotate1.c, src/regression/rotate2.c,
657 src/regression/rotate3.c, src/regression/rotate4.c,
658 src/regression/rotate5.c, src/regression/rotate6.c,
659 src/regression/rotate7.c, src/regression/string1.c,
660 src/regression/struct1.c, src/regression/sub.c,
661 src/regression/sub2.c, src/regression/switch1.c,
662 src/regression/while.c, src/regression/xor.c,
663 src/regression/create_stc, src/regression/simulate,
664 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
666 * src/regression/gpsim_assert.h: added
668 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
670 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
671 ((void (code *) (void)) 0) ();
688 * as/z80/asmain.c: fixed build on current cygwin:
689 replaced getline() by as_getline()
691 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
693 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
694 declarator in the symbol chain
696 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
697 parameter list for function pointers
698 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
699 * support/regression/tests/bug-716242.c: added
701 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
703 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
705 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
707 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
709 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
710 inifinitely recurseable, added static
711 * support/regression/tests/bug-1408066.c: added
713 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
716 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
717 renamed, added possibility to create "postLoopLbl"-labels
718 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
719 newiTempLoopHeaderLabel
720 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
721 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
722 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
723 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
724 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
725 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
726 (basicInduction): fixed bug #136564, made static,
727 (loopInduction): changed parameter of basicInduction, made static,
728 (addPostLoopBlock): added
729 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
730 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
732 * support/regression/tests/bug-136564.c: added
733 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
734 --std-sdcc99 to LIBSDCCFLAGS
736 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
738 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
740 * support/regression/tests/bug-1406131.c: added
742 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
744 * src/SDCCast.c (decorateType): fix promotion of unary minus
745 * src/SDCCsymt.c (computeType): beautified
746 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
747 (valUnaryPM, valComplement): fix sign and promotion,
748 (valNot): ANSI: result type is int (SDCC: unsigned char)
749 * support/regression/tests/uminus.c: speedup by removing superflous
751 * support/regression/tests/onebyte.c: added promotion and signedness
752 tests for unary minus
753 * support/regressions/tests/bug-477927.c: disable warning about
754 uninitialized variables
755 * support/regression/tests/not.c: added
757 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
759 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
760 * src/mcs51/gen.c (gen51Code): show final register usage after
761 fillGaps in asm with --i-code-in-asm
762 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
763 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
764 incUsed, rliveClear, adjustIChain): made static,
765 (setFromRange): excluded because it's unused,
766 (findPrevUseSym, markWholeLoop): added,
767 (findPrevUse): rewritten; fixes bug 895992; now a complete search
768 through all branches of predecessors enables sdcc to emit the warning
769 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
770 (rlivePoint): made static, added parameter emitWarnings which is only
771 true during the first run out of two,
772 (findRecursiveSucc, findRecursivePred): removed,
773 (computeLiveRanges): made static, added parameter emitWarnings,
774 (dumpIcRlive): added for debugging only
775 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
776 removed prototype of setFromRange()
777 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
778 in call of computeLiveRanges()
779 * support/regression/tests/bug-895992.c: added
780 * support/regression/tests/bug-971834.c: added
781 * support/valdiag/tests/bug-895992.c: added
782 * support/valdiag/tests/bug-971834.c: added
784 2005-12-18 Raphael Neider <rneider AT web.de>
786 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
787 (genUnpackBits): improved code for direct operands,
788 (genPackBits): improved code for literal assignment to bitfields
789 and for direct destination operands (no FSR indirection),
790 prevented redundant AND, fixes #1362800,
791 (AccLsh): added parameter to disable masking of the result
792 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
793 skip instructions with side-effects (like incfsz),
794 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
795 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
796 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
799 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
801 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
802 volatile variables as spill location
804 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
806 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
808 * support/regression/tests/bug-1376320.c: added
810 2005-12-08 Raphael Neider <rneider AT web.de>
812 * src/pic/device.c: renamed is_shared to pic14_is_shared
813 * src/pic/gen.c (genIfx): re-enabled handling of sbits
814 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
815 (is_valid_identifier): added for above workaround
817 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
819 * device/lib/Makefile.in: fixed to enable port-specific-objects
820 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
821 char, thanks Hubert Sack
822 * doc/sdccman.lyx: documented --xstack-loc,
823 elaborated a bit more on interrupts and pitfalls,
824 removed "setjmp/longjmp unsupported",
825 documented some unsupported C99 features
826 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
827 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
828 if, thanks Hubert Sack
829 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
830 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
832 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
833 regression tests can report resource usage (rfe 700441)
834 * support/regression/collate-results.py: report resource usage
835 * support/regression/ports/ds390/spec.mk,
836 * support/regression/ports/hc08/spec.mk,
837 * support/regression/ports/mcs51/spec.mk,
838 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
839 * support/regression/ports/ds390/uCsim.cmd,
840 * support/regression/ports/hc08/uCsim.cmd,
841 * support/regression/ports/mcs51/uCsim.cmd,
842 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
843 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
844 library, use the default one
845 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
848 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
850 * config.dsp: added dependency on .version and configure_vc.awk
851 * device/include/setjmp.h: updated for --stack-auto and --xstack
852 * device/include/mcs51/at89c51snd1c.h: corrected line endings
853 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
854 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
855 * device/lib/libsdcc.lib: added _setjmp
856 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
857 (decorateType): fixed bug 1372851,
858 (optimizeGetHbit): fixed warning
859 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
861 * support/regression/tests/bug1057979.c: added test for bug 1358192
862 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
864 2005-12-03 Borut Razem <borut.razem AT siol.net>
866 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
867 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
869 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
871 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
872 createIval): implement symbol independant "flexible array member",
873 (createIvalCharPtr): implemented flexible array initialisation with a
875 * src/SDCCsymt.c (copyStruct): removed,
876 (getSize): fixed misleading comment,
877 (getAllocSize): removed, the additional allocation size is now in
878 sym->flexArrayLength,
879 (checkStructFlexArray): new, syntax checks for flexible array members,
880 (compStructSize): added syntax checks for "flexible array members"
881 (copyStruct): removed,
882 (copyLinkChain): removed inefficient fix for bug 770487
883 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
884 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
885 symbol->flexArrayLength
887 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
888 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
889 * support/regression/tests/structflexarray.c: added
890 * support/valdiag/tests/structflexiblearray.c: added
892 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
894 * src/SDCCast.c (decorateType): fixed bug 1368489
895 * support/Util/SDCCerr.c,
896 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
898 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
900 * device/include/mcs51/at89c51snd1c.h: added file submitted by
901 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
903 2005-11-27 Borut Razem <borut.razem AT siol.net>
905 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
906 support/cpp2/mkdeps.h: added command line option
907 -obj-ext=<extension> to SDCPP to define object file externion, used
908 for generation of make dependencies (-M)
909 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
911 2005-11-26 Borut Razem <borut.razem AT siol.net>
913 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
914 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
915 added pic and pic16 libraries
917 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
919 * device/include/float.h: Corrected typo in prototype of __fsgt
921 2005-11-25 Borut Razem <borut.razem AT siol.net>
923 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
924 added creation of model-mcs51-stack-auto libraries
926 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
928 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
930 * src/SDCCast.c (createIvalArray): removed obsolete comment
932 2005-11-24 Borut Razem <borut.razem AT siol.net>
934 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
935 added missing device/lib/mcs51/crt*.asm sources
937 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
939 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
941 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
943 * device/lib/_fs2schar.c,
944 * device/lib/_fs2sint.c,
945 * device/lib/_fs2slong.c: optimized inline asm
947 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
949 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
950 Better handling of floats between -1.0 and 0.0.
952 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
954 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
955 (the missing "if"s prohibited removal of redundant labels)
957 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
959 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
960 Properly convert floats between -1.0 and 0.0 to long, int, and char
961 types (max integer value of negative floats tends to zero).
962 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
963 Removed changes made so to work properly with floats between
964 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
967 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
969 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
970 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
971 (genCast) cosmetic change
972 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
973 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
975 * support/regression/tests/bitfields (testSignedBitfields): added
977 2005-11-18 Borut Razem <borut.razem AT siol.net>
979 * sdcc/device/lib/Makefile.in: remove all unnecessary files
980 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
981 introduced SILENT option to make building of pic16 libraries less
983 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
985 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
986 Now they work properly with floats between -1.0 and 0.0
987 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
989 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
991 * src/SDCCicode.c (printOperand): added missing else
993 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
995 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
996 reformatted for better readability
997 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
1000 2005-11-17 Borut Razem <borut.razem AT siol.net>
1002 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
1003 introduced SILENT option to make building of pic16 libraries less
1004 verbose - used for nightly snapshot build
1005 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
1006 available on Win32 platforms.
1007 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
1008 medium, large, pic and pic16
1010 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1012 * device/lib/printf_large.c: Temporary patch for bug 1358192:
1013 printf("%f"...) sets fraction to zero.
1015 2005-11-16 Raphael Neider <rneider AT web.de>
1017 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
1019 * src/pic/gen.c (genIfx): implemented for CARRY bit
1020 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
1021 to generic pointers, fixes #1357332,
1022 (pic16_movLit2f): NEW,
1023 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
1025 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1027 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1029 2005-11-11 Raphael Neider <rneider AT web.de>
1031 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1032 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1033 compute pointer's type from operand,
1034 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1035 improved single bit reads, fixes bug #1353379
1037 2005-11-09 Borut Razem <borut.razem AT siol.net>
1039 * support/scripts/sdcc.nsi: added lib/pic to the package
1041 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1043 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1045 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1047 * support/regression/tests/bug1348008.c: added
1048 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1049 * support/regression/tests/bug1337835.c: updated comment
1051 2005-11-06 Borut Razem <borut.razem AT siol.net>
1053 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1054 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1055 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1056 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1057 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1058 dynamic construction of cl_error_class and derivates - 2.nd try
1060 2005-11-05 Borut Razem <borut.razem AT siol.net>
1062 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1063 bug, which caused Bus Errors on sparc solaris
1065 2005-11-04 Borut Razem <borut.razem AT siol.net>
1067 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1068 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1069 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1070 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1071 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
1072 and derivates to resolve the initialization problem on OSX
1074 2005-11-02 Borut Razem <borut.razem AT siol.net>
1076 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1077 corrected typo - #include <winsock2.h>
1079 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
1081 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
1082 (_asxxxx_mapping): added org directive for future enhancements
1084 2005-11-01 Borut Razem <borut.razem AT siol.net>
1086 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1087 enabled sockets on WIN32
1088 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
1090 2005-10-31 Borut Razem <borut.razem AT siol.net>
1092 * support/regression/generate-cases.py: escape backslashes in {testcase}:
1093 WIN32 backslash path delimiters should be escaped when used in C strings
1094 * support/regression/tests/bitfields.c: exclude failing assertions for
1095 __CYGWIN32__ and __MINGW32__ hosts
1097 2005-10-30 Borut Razem <borut.razem AT siol.net>
1099 * src/SDCCutil.c: corrected double comparison typo
1101 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
1103 * device/lib/medium/Makefile: added for new memory model medium
1104 * device/include/asm/mcs51/features.h: updated for medium/pdata
1105 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
1106 added Multiply & Accumulate sbit's and MAC0_PAGE define
1107 * device/include/mcs51/c8051f300.h: added sfr16 definitions
1108 * device/include/mcs51/c8051f310.h: added sfr16 definitions
1109 * device/lib/_mullong.c: update for medium model
1110 * device/lib/incl.mk: added medium model
1111 * doc/sdccman.lyx: documented medium model
1112 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
1113 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
1114 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
1115 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
1116 (allocParms): set SCLS and OCLS to pdata for medium model
1117 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
1119 (powof2): return <0 if not power of 2
1120 * src/avr/gen.c (genBitWise): use updated powof2
1121 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
1122 (shiftR2Left2Result): small optimization in setup, save acc when storing,
1123 (shiftLLeftOrResult): use B if necessary
1124 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
1125 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
1126 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
1127 * support/regression/Makefile.in: added test-mcs51-medium
1128 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
1130 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1132 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
1134 * device/lib/time.c (mktime): fixed bug 1334315
1136 2005-10-28 Raphael Neider <rneider AT web.de>
1138 * device/include/pic/p16f_common.inc: added common declarations
1139 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
1141 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1143 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
1144 (aopPutUsesAcc): added to predict accumulator use,
1145 (assignResultValue): save acc if necessary,
1146 (genMinusDec): store result if indirectly addressed,
1147 (genDivOneByte): save acc if necessary,
1148 (movLeft2Result): bugfix if left already in acc,
1149 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
1150 attention to accumulator use (esp. pdata),
1151 (genReceive): receive pdata correctly
1152 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
1153 * src/SDCCicode.h: added isOperandInPagedSpace prototype
1155 2005-10-27 Raphael Neider <rneider AT web.de>
1157 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
1159 2005-10-27 Raphael Neider <rneider AT web.de>
1161 * .version: changed version to 2.5.4
1162 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
1163 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
1164 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
1165 arithmetics support routines
1166 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
1167 * device/lib/Makefile.in: also create installdir for pic
1169 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
1171 * src/pic/device.c (dump_sfr): rewritten to delegate register
1172 placement to the linker (use `extern sym' rather than sym EQU addr),
1173 (validAddress): fixed to check last specified address
1174 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
1175 (popGetLit): truncate literal value to 8 bit,
1176 (popGet): moved assert to more appropriate place
1177 (popGetExternal): create pCode operand from and mark the according
1178 symbol as being `extern'
1179 (popGetAddr): added sanity check on immediate's offset, provide
1180 GPOINTER tag on demand
1181 (aopPut): fixed for immediates,
1182 (mov2w_op): move operand's address or contents to WREG (depending on
1183 operand type), safer variant of mov2w,
1184 (movwf,call_libraryfunc): NEW, handy abbreviations,
1185 (get_argument_pcop,get_return_val_pcop,pass_argument,
1186 get_returnvalue): interface for accessing function parameters and
1188 (assignResultValuei,genRet): use new parameter/return value interface
1189 (pic14_getDataSize): back to old version handling generic pointers,
1190 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
1191 provided implementation and/or fixed old one,
1192 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
1193 calls, removed legacy 8051 reference code
1194 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
1195 (loadSignToC): NEW, move the operands sign bit to CARRY,
1196 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
1197 genRightShiftSigned, accepts negative shift counts,
1198 (setup_fsr): load FSR and adjust IRP (indirect memory access),
1199 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
1200 generic pointers, __data pointers and __code pointers,
1201 (genUnpackBits,genPackBits): rewritten to work with generic pointers
1202 and signed bitfields, limit bitfields to 8 bit,
1203 (genDataPointerGet): fixed number of bytes read,
1204 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
1205 (genPointerGet,genPointerSet): fixed handling of __code pointers,
1206 pointers to constant data are no longer assumed to point to __code
1207 space, removed invalid pointer types,
1208 (bitpatternFromVal): retrieve the PICs representation of an integer
1210 (genDataPointerSet): fixed assigning to po_immediate operands,
1211 (genGenPointerSet): implemented as library call,
1212 (genIfx): fixed incorrect condition,
1213 (genAddrOf): limit generic pointers' addresses to 2 bytes,
1214 provide GPOINTER tag according to destination's storage class,
1215 (genCast): added code to handle casting to generic pointers, added
1216 sign-/zero extension of the result
1217 (aop_isLitLike,op_isLitLike): fixed handling of immediates
1218 * src/pic/gen.h: added macros to access IRP bit in STATUS register
1219 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1221 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1222 address/register resides in the shared banks
1223 (emitSymbolToFile): improved to handle global and `pinned' symbols,
1224 put all variables into separate sections (have the linker arrange
1226 (picglue): put init code and interrupt handlers in separate sections
1227 * src/pic/main.c: added port specific options table, modified to PORT
1228 structure to make GPOINTERs 3 byte, added pic14_options
1229 (_pic14_do_link): private linking routine (update paths to libraries,
1230 add libsdcc.lib by default)
1231 * src/pic/main.h: declare pic14_options
1232 * src/pic/pcode.c: fixed instructions i/o relations,
1233 (RegCond): reverted to correct version,
1234 (newpCodeOpLit): truncate literals to 8 bit,
1235 (genericPrint): added debug output,
1236 (getRegFromInstruction): fixed for various operand types, simplified
1237 (BuildFlow): fixed broken handling of isntructions with labels
1238 (LinkFlow): start at last instruction in flow (skip trailing comments),
1239 pass the flow on to the next instruction after CALL
1240 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1241 (insertPCodeInstruction): fixed inserting after a skip instruction,
1242 (DoBankSelect): fixed for labeled instructions
1243 (OptimizepBlock): honor --nopeep switch
1244 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1245 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1246 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1247 (pCodeOptime2pCodes): allow disabling this optimization via
1248 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1249 but is still buggy), started implementation of a dataflow based
1250 pCode optimization (CSE + dead code elimination)
1251 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1252 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1253 names are independant of the stack location and therefore portable across
1256 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1258 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1259 (selectSpil): fixed bug 1337835 by not spilling bit variables
1260 * support/regression/tests/bug1337835.c: added test for this bug
1261 * src/mcs51/peeph.def: restart after rule 3.c,
1262 addded rules 263.x to optimize loading constants
1264 2005-10-26 Raphael Neider <rneider AT web.de>
1266 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1267 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1268 (genAssign): emit warning when casting literals to generic pointer
1269 type, also applies when taking the address of a fixed variable,
1270 (genCast): improved casting to generic pointers
1271 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1272 extern variables, added verbose error message
1273 * device/include/pic16/{string.h,errno.h}: added #pragma library c
1275 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1277 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1278 carry must be complemented too
1279 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1280 could be emitted by genMinus
1281 * src/SDCCval.c (constVal): fixed bug 1305065
1283 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1285 * src/SDCCast.c (addCast): added promotion for bit variables
1286 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1287 promotion casts + optimisation
1288 (optimizeGetWord): fix warning 'i' might be used uninitialized
1289 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1290 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1292 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1294 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1295 all chars are promoted to int; promotion should be handled in SDCCast.c
1297 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1299 * device/lib/_strcmp.c: Fixed bug 1326457
1301 2005-10-11 Raphael Neider <rneider AT web.de>
1303 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1304 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1306 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1308 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1309 * support/regression/tests/sfr16.c: added test for the sfr32 bug
1311 2005-10-04 Raphael Neider <rneider AT web.de>
1313 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1314 device/lib/pic16/pics.all: added pic18f1320
1315 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1317 2005-09-30 Raphael Neider <rneider AT web.de>
1319 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1320 * src/pic16/devices.inc: NEW, provides device descriptions
1321 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1323 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1325 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1328 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1330 * doc/sdccman.lyx: updated Highest Order Bit documentation,
1331 documented Any Order Bit, Higher Order Byte and Higher Order Word
1332 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1333 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1334 (optimizeGetAbit): new, to get any bit, not only the high bit,
1335 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1336 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1337 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1338 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1339 RIGHT_OP: also try GETBYTE, GETWORD optimization,
1340 GETABIT, GETBYTE, GETWORD: decorate them,
1341 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1342 (ast_print): added GETABIT, GETBYTE, GETWORD
1343 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1344 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1345 (geniCodeBinary): new generic binary icode,
1346 (ast2iCode): added GETABIT, GETBYTE, GETWORD
1347 * src/port.h: updated comment for PORT.hasExtBitOp
1348 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1349 (genGetByte): new, to get a single byte,
1350 (genGetWord): new, to get a word from a long,
1351 (gen51Code): added GETABIT, GETBYTE, GETWORD
1352 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1354 2005-09-23 Raphael Neider <rneider AT web.de>
1356 * configure.in, configure: have device/lib/pic configured
1357 * device/lib/Makefile.in: added model-pic14
1358 * device/lib/clean.mk: added pic/ to clean rule
1359 * device/lib/pic: added rudimentary pic14 library providing support
1360 functions for multiplication/division/generic pointer access
1361 * src/SDCCopt.c (convilong): mark support functions as extern
1362 for pic14 port as well
1363 * src/pic/gen.c (genMult): added assertions,
1364 (genpic14Code): emit warning on unhandled iCodes
1365 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1366 * src/pic/pcode.c (pCodeOpCopy),
1367 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1368 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1369 SFR_REGISTER}), made safe for future extensions
1370 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1371 instructions even if preceeded by SKIP instructions (also remove
1372 them); removed unused code
1373 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1374 prevents leaving parts of the structure uninitialized after copying
1376 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1378 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1380 * support/regression/tests/addsub.c: added test for the bug
1382 2005-09-21 Raphael Neider <rneider AT web.de>
1384 * device/include/pic16/pic18f1220.h,
1385 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1386 * device/lib/pic16/Makefile.rules: added missing opening paren
1387 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1388 are provided in genutils.c,
1389 (genUminusFloat,genUminus,genCmpEq): added asserts on different
1390 operand/result sizes,
1391 (genCmp): assert on NULL pointers first, then check deref'ed values
1392 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1395 2005-09-18 Raphael Neider <rneider AT web.de>
1397 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1398 as these are now unused,
1399 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1400 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1401 local, avoids uninitialized pointer dereference on r->name
1402 * src/pic16/ralloc.c (newReg): fixed indentation
1404 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1406 * src/SDCCval.c (constVal): fixed bug 730366
1407 * support/Util/SDCCerr.c,
1408 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1410 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1412 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1414 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1416 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1418 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1420 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1421 (hex2dec): made hex_digit unsigned char, removed ascii dependance
1422 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1423 (hex2dec): made hex_digit unsigned char, removed ascii dependance
1424 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1425 * packihx/packihx.c (hexDigit): made c unsigned char
1426 * as/mcs51/lklibr.c (fndsym),
1427 * link/z80/lkgb.c (gb),
1428 * link/z80/lklibr.c (fndsym),
1429 * link/z80/lkrloc.c (relr),
1430 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1431 * src/SDCC.lex (checkCurrFile, process_pragma),
1432 * src/SDCCglue.c (spacesToUnderscores),
1433 * src/SDCCmain.c (setParseWithComma, processFile),
1434 * src/asm.c (tvsprintf, printCLine),
1435 * src/avr/gen.c (emitcode, aopPut),
1436 * src/ds390/gen.c (emitcode),
1437 * src/hc08/gen.c (emitcode, emitinline),
1438 * src/mcs51/gen.c (emitcode, genInline),
1439 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1441 * src/pic/ralloc.c (debugLog),
1442 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1444 * src/pic16/ralloc.c (debugLog),
1445 * src/z80/main.c (_process_pragma):
1446 made all ctype.h function calls safe
1447 * src/SDCCopt.c: include math.h for fabs
1448 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1449 and used them throughout the code to make ctype.h function calls safe
1450 * src/ds390/main.c (asmLineNodeFromLineNode),
1451 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1452 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1454 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1455 (newpCodeAsmDir): made ctype.h function calls safe
1456 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1457 pic16_emitcode): made lbp unsigned char*
1458 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1459 (pic16_newpCodeAsmDir): made ctype.h function calls safe
1460 * src/xa51/gen.c (emitcode),
1461 * src/z80/gen.c (_emit2): made lbp unsigned char*
1462 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1465 2005-09-05 Raphael Neider <rneider AT web.de>
1467 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1468 access bank splitpoint
1470 2005-09-05 Raphael Neider <rneider AT web.de>
1472 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1474 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1476 * .version: changed to version 2.5.3
1477 * doc/sdccman.lyx: changed version to 2.5.3,
1478 documented --codeseg and --constseg and pragma codeseg and constseg,
1479 documented bit parameters (reentrant) and bit returning
1480 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1481 currFunc->recvSize, but is this ok for all ports?
1482 (ast2iCode): result of ~ on unsigned char must be cast to int for
1484 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1485 function pointers in bit space
1486 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1487 (processFuncArgs): call port.reg_parm() with reentrancy info
1495 * src/z80/main.c: port.reg_parm prototype extended with
1496 "bool reentrant" parameter
1497 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1498 options.stackAuto for allocating bit register parameters
1499 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1500 (genSend): set BitBankUsed if it is,
1501 (selectRegBank): factored out of genCall for use in genPcall,
1502 (genCall): removed redundant dtype assignmen, use selectRegBank,
1503 (genPcall): handle returning in Carry properly, save in F0 if needed,
1504 (genReceive): handle bit register parameters
1505 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1506 (mcs51_assignRegisters): enable bit registers for all reentrant
1507 functions and don't set BitBankUsed unconditionally
1508 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1509 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1510 * support/regression/tests/funptrs.c: added tests for BOOL and for return
1512 2005-08-27 Borut Razem <borut.razem AT siol.net>
1514 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1515 ppc-osx (Darwin) does not support -u option. It seems that it is
1516 supported only on Linux - GNU cp
1518 2005-08-25 Borut Razem <borut.razem AT siol.net>
1520 * sim/ucsim/gui.src/serio.src/Makefile.in,
1521 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1522 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1523 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1524 install and strip, since the strip at /usr/ccs/bin should be used
1527 2005-08-24 Borut Razem <borut.razem AT siol.net>
1529 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1531 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1533 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
1536 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1538 * as/mcs51/aslink.h: completed lkrloc.c prototypes
1539 * as/mcs51/lkmain.c (link_main): fixed warning
1540 * device/include/stdbool.h: ds390 has no advanced bit support yet
1541 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1542 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1543 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1544 and updated their macros
1545 * src/SDCCval.c (constVal): updated comment for renamed b_long
1547 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1549 * as/mcs51/asdata.c: changed ctype['['] to BINOP
1550 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1551 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1552 (oprio): set priority for '['
1553 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1555 * as/mcs51/asm.h: added defines R_BIT and S_BIT
1556 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1557 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1558 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1559 added overlayable BIT_BANK area
1560 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1561 (summary2): explain 'T' in legenda
1562 * as/mcs51/lkrloc.c: replaced old K&R style,
1563 (relr): added R_BIT processing,
1564 (errmsg): added "Bit-addressable relocation error",
1565 (adb_bit): added for converting from byte- to bit-addressable space,
1566 (adb_24_bit): added for converting from byte- to bit-addressable space
1567 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1568 used in reentrant functions now even as return value
1569 * device/lib/_gptrput.c (_gptrput): removed obsolete code
1570 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1571 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1572 * src/SDCCglobl.h: added indicator BitBankUsed
1573 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1574 the bit registers b0-b7
1575 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1576 (geniCodeCast): fixed bug 1263853,
1577 (geniCodeLogicAndOr): put result in bool or char,
1578 (geniCodeReceive): added parameter func for accessing the return type,
1579 (geniCodeFunctionBody): pass func to geniCodeReceive
1580 * src/SDCCmain.c: added indicator BitBankUsed
1581 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1582 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1583 (checkSClass): don't put automatic bool/bit on stack,
1584 (checkFunction): removed check on function cannot return bit
1585 * src/SDCCsymt.h: added newBoolLink prototype
1586 * src/mcs51/gen.c (rb1regs): added bit registers,
1587 (movc): created for assigning to carry,
1588 (pushReg, popReg): created for pushing registers,
1589 (sameRegs): check both AOP_REG and AOP_CRY types,
1590 (aopOp): handle bit registers,
1591 (aopPut): optimization no self-assign,
1592 (saveRegisters): push reg->base (bits) only once for bit registers,
1594 (unsaveRegisters): pop reg->base only once and use popReg,
1595 (assignResultValue): added parameter func and return in carry for bits,
1596 (genIpush): optimization no reload in A if not changed,
1597 (genSend): bit parameters in reentrant functions are passed in bit
1598 registers by first assigning to bits in B, then save registers and
1600 (genCall): handle returning in Carry properly, save it in F0 if needed,
1601 (genPcall): updated assignResultValue call, this is not safe yet for bit
1602 returning function !!!
1603 (genFunction): don't generate equ's for bit registers and use pushReg,
1604 (genEndFunction): take care of bit returning functions and use popReg,
1605 (genRet): return bit in Carry,
1606 (genIfx): optimize bit registers and other directly addressable bits,
1607 (genReceive): updated assignResultValue call
1608 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1609 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1610 registers when using stack-auto
1611 * src/mcs51/ralloc.c (_G): added allBitregs,
1612 (regs8051): added the bit registers,
1613 (createStackSpil): use macro IS_BIT,
1614 (getRegBit): added to allocate a bit register, else spill,
1615 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1616 (updateRegUsage): factored out to ease stepping while debugging,
1617 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1618 also allocate bit registers,
1619 (fillGaps): handle bit registers,
1620 (findAllBitregs): added to create bit vector with all bit registers,
1621 (mcs51_allBitregs): returns this bit vector,
1622 (mcs51_assignRegisters): when using stack-auto use bit registers for
1623 passing parameters and creating local variables
1624 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1626 2005-08-22 Borut Razem <borut.razem AT siol.net>
1628 * device/lib/Makefile.in: replaced find option -or with -o
1629 to make it run on solaris
1631 2005-08-22 Raphael Neider <rneider AT web.de>
1633 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
1634 fixes #1265442 (crash on Solaris)
1636 2005-08-20 Borut Razem <borut.razem AT siol.net>
1638 * configure, configure.in: added tests for libsocket and libnsl libraries,
1639 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
1640 from support/regression/Makefile.in
1641 * support/regression/Makefile.in: added
1642 * device/lib/pic16/Makefile.common.in: force make to use bash shell
1643 * sim/ucsim/libtool: regenerated on sparc-solaris
1644 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1645 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
1646 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
1647 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
1648 sparc-solaris, which doesn't use GNU ld linker
1649 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
1650 * as/Makefile: find on sparc-solaris does not support -maxdepth option
1652 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
1654 * src/mcs51/peeph.def: updated comments
1656 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1658 * device/lib/_gptrget.c,
1659 * device/lib/_gptrput.c: slightly shorter
1660 * doc/sdccman.lyx: incremented version
1661 * src/mcs51/peeph.def: moved peephole comments to the line of first
1662 change to better keep line correlation, reanimated 186.e
1663 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
1665 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1667 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
1668 David Saxton with quotes around file name.
1670 2005-08-15 Borut Razem <borut.razem AT siol.net>
1672 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
1673 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
1674 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
1675 make tests run on x86_64 platform
1677 2005-08-13 Raphael Neider <rneider AT web.de>
1679 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
1680 as it might be executed DURING a build (parallel make is wonderful)
1682 2005-08-13 Raphael Neider <rneider AT web.de>
1684 * device/lib/Makefile.in (port-specific-objects-pic16):
1685 revert to cp $(PORT)/bin/*.* $(PORTDIR)
1686 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
1688 * device/lib/pic16/Makefile.rules: build subdirs before creating
1689 the library, removed builddir rule, create $(builddir) early in
1690 recurse rule, use empty recurse rule for leaf directories
1691 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
1692 mkdir errors (race condition), removed duplicate suffix "hex"
1694 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
1695 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
1696 prevents mkdir -p from aborting on Alpha
1698 2005-08-12 Raphael Neider <rneider AT web.de>
1700 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
1701 db-statements in order to allow for arrays of pointers in code
1702 sections to be placed without interspersed 0-padding, fixes
1704 * (emitStatistics): fixed division by zero for pic18f1220
1705 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
1706 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
1707 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
1708 * (pic16_pCodeConstString): keep track of already emitted string
1709 literals to prevent "duplicate definitions of symbol _str_NR"
1710 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
1712 * device/lib/Makefile.in: ignore failing PIC16 library builds
1713 * device/lib/pic16/Makefile: do not build if gputils are missing
1714 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
1716 2005-08-10 Raphael Neider <rneider AT web.de>
1718 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
1721 2005-08-10 Raphael Neider <rneider AT web.de>
1723 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
1724 Rokas' patch to add the new fixed point type "__fixed16x16"
1725 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
1726 functions for __fixed16x16 arithmetics
1727 * device/lib/pic16: reimplemented the build system to support
1728 a separate build directory, better handling of libio (create
1729 the library in a separate subdir for each architecture) and
1730 easier configuration (centralized in Makefile.common)
1732 2005-08-07 Raphael Neider <rneider AT web.de>
1734 * src/pic16/gen.c (genrshTwo): fixed sign extension
1735 * src/pic16/device.c: added pic18f2320, 4220 and 4320
1736 * device/include/pic16/pic18f2220.h: changed some bit definitions,
1738 * device/include/pic16/pic18f4220.h: NEW, header for
1739 pic18f4220 and pic18f4320
1740 * device/include/pic16/pic18fregs.h: added new devices,
1741 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
1742 * device/include/pic16/signal.h: resolved name clashes
1743 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
1744 to also allow testing for interrupt enable bits, added
1745 comments on how to use the macros
1746 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
1747 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
1748 register definitions for the devices
1749 * device/lib/pic16/pics.all: added new devices
1750 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
1752 * device/lib/pic16/libc/stdlib/memfree: do not count
1753 the block header as free memory
1754 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
1755 simplified and added missing end-of-blocklist-marker
1756 (reported by Peter Onion, fixes #1252814)
1757 * (_mergeHeapBlock): fixed loop condition
1758 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
1759 len==0, restructured code
1760 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
1761 up a bit, reduced bitfield accesses, prevent endless loops
1762 in case of heap corruption
1763 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
1764 "unreferenced arguments/must return a value" warnings
1765 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
1766 replaced BAUDREG with SPBRG
1767 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
1768 device/lib/pic16/debug/gstack/gstack.c: replaced
1769 _naked, _asm, _endasm with __naked, __asm, __endasm
1771 2005-08-05 Raphael Neider <rneider AT web.de>
1773 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
1774 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
1776 2005-08-05 Borut Razem <borut.razem AT siol.net>
1778 * device/lib/Makefile.in: added missing ';'
1779 * configure: removed ^M characters
1781 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1783 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
1784 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
1787 2005-08-04 Borut Razem <borut.razem AT siol.net>
1789 * configure.in: pic16 libraries build 2nd try - enable running
1790 configure in device/lib/pic16
1791 * configure: regenerated from configure.in
1792 * device/lib/Makefile.in: create $(PORT)/bin directory
1794 2005-08-03 Raphael Neider <rneider AT web.de>
1796 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
1797 to get/set values via pointers
1798 * (genUnpackBits,genPackBits): changed detection of
1799 ptr->bitfield vs. sym.bitfield, fixed access via generic
1800 pointers, removed dead (wrong) code for multibyte bitfields
1801 * (genNearPointerGet, genGenPointerGet): removed useless code,
1802 fixed bitfield detection, fixes #1250594
1803 * (genNearPointerSet): removed useless code
1804 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
1805 and introduced macro pic16_emitpcode that conditionally emits
1806 the origin of the following pCode (useful for debugging SDCC)
1807 * src/pic16/pcode.c: changed (and disabled) some debug outputs
1808 * (createDefmap): fixed handling of LFSR for --optimize-df
1810 2005-08-02 Borut Razem <borut.razem AT siol.net>
1812 * device/lib/Makefile.in: pic16 libraries build enabled since
1813 gputils-0.13.2 are now localy installed at sourceforge's compile farm
1815 2005-08-02 Raphael Neider <rneider AT web.de>
1817 * src/pic16/gen.c (genPackBits): removed deprecated warning
1818 * (genGenPointerSet): fixed bitfield detection
1820 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1822 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
1824 2005-07-31 Raphael Neider <rneider AT web.de>
1826 * device/lib/pic16/libdev/pic18f458.c,
1827 device/include/pic16/pic18f458.h: added missing T0CONbits
1829 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
1831 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
1833 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
1835 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
1837 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1839 * device/include/mcs51/at89c51ed2.h: added.
1841 2005-07-23 Raphael Neider <rneider AT web.de>
1843 * src/pic/gen.h: added emitpcode macro for debugging
1844 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
1845 and replace by macro adding debug information on demand
1846 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
1847 * (gencjne): tried to fix; replaced with correct (slower) code
1848 * (gen{Unp,P}ackBits): fixed single bit access
1849 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
1850 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
1851 previous instruction
1852 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
1853 register has to be handled with care (forbidding movement
1854 of assignments/uses, removing assignments completely, ...)
1855 * (pCodeOptime2pCodes): make use of regIsSpecial
1856 * added lots of debugging output (commented out)
1857 * src/pic/rallloc.c (deassignLRs): prevent operand registers
1858 from being reused as result UNLESS it is known to work
1860 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
1862 * support/Util/dbuf.h: include <stddef.h> for size_t
1863 * .version: changed to version 2.5.2
1865 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1867 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
1869 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1871 * src/hc08/gen.c (genMinus): fixed bug #1241835,
1872 (genModOneByte): removed needless psha/pula
1874 2005-07-22 Raphael Neider <rneider AT web.de>
1876 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
1877 have PIC14 handled like PIC16, fixes broken pic14 linker calls
1878 * src/pic/gen.c (resolveIfx): do not "invent" labels
1879 * (genSkipc): changed to positive logic
1880 * (genSkipCond): removed as no longer needed
1881 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
1883 * (genLeftShift): check operands are in different registers
1884 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
1885 INCF does not update CARRY...
1886 * src/pic/main.c: fixed _linkCmd
1887 * src/pic/pcode.c (unlinkpCode): added inactive code
1888 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
1889 alive (do not assign result and operand overlapping registers)
1891 2005-07-22 Raphael Neider <rneider AT web.de>
1893 * src/pic/device.c (dump_sfr): replaced register declaration with
1894 call to emitSymbolToFile() to avoid duplicate symbols
1895 * (assignRelocatableRegisters): do not declare external symbols
1896 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
1897 right (take size of type, not etype)
1898 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
1899 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
1900 * (packRegsForAccUse): disabled assignment of WREG as
1901 the result reg to prevent occurence of just fixed #1235003,
1903 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
1904 symbols (avoids duplicate symbols in .asm file)
1905 * (pic14emitRegularMap): use emitSymbolToFile()
1906 * src/pic/gen.c (aopOp): fixed spillLocation handling
1907 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
1908 * (genDataPointerSet): removed unneccessary variables/output
1910 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
1912 * as/mcs51/lkarea.c: enlarged codemap for banked memory
1913 * device/lib/mcs51/crtbank.asm: added # to 0x0F
1915 2005-07-21 Raphael Neider <rneider AT web.de>
1917 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
1918 architecture cannot handle them efficiently, fixes bug #1235003
1919 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
1920 check for empty sets before using them (fixes bug #1232190)
1922 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
1924 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
1925 (lnksect2): generate warnings for memory overlap
1926 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
1927 constseg to set the name of these segments so you can instruct the linker
1928 to place them in banks
1929 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
1930 * src/SDCCglobl.h: added MODEL_HUGE to enum,
1931 added code_seg and const_seg to options
1932 * src/SDCCglue.c (emitMaps): use options.const_seg,
1933 (createInterruptVect): put interrupt vectors in segment HOME,
1934 (glue): put HOME before static segment and put the main glue in HOME,
1935 (glue): use options.code_seg
1936 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
1937 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
1938 these segments so you can instruct the linker to place them in banks
1939 (linkEdit): use code_loc for HOME segment which should be the first
1940 segment in code memory now
1941 * src/SDCCmem.c: fixed more stuff like bug 1238386
1942 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
1943 (changePointer): don't change function pointers to code pointers for
1945 (compareType): added exceptional check for banked function pointers
1946 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
1947 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
1948 after static in code memory
1949 * src/mcs51/gen.c: added aopLiteralLong prototype,
1950 (aopForSym): use getSize for functions,
1951 (genCall): generate banked calls over one trampoline __sdcc_banked_call
1952 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
1953 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
1955 (genPcall): use call for literal function pointers and generate banked
1956 calls over the one trampoline so there's only one place for the user to
1957 modify according to his/hers hardware,
1958 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
1959 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
1960 * src/mcs51/main.c: added keyword banked,
1961 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
1962 * support/Util/SDCCerr.c,
1963 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
1964 needed for passing the bank and address to the trampoline
1965 * device/lib/mcs51/crtbank.asm: added for bankswitching
1966 * device/lib/mcs51/Makefile: added crtbank
1968 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1970 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
1971 for fields at offset 0 of a struct or union as reported
1972 on 2005-07-07 in the developer mailing list.
1974 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1976 * src/SDCCmem.c: fixed bug 1238386
1978 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1980 * src/mcs51/peeph.def: added labelrefcounting for peepholes
1981 (patch #1144962), added peephole 300, enabled 259.x
1982 * doc/sdccman.lyx: removed screenshot and provided link instead
1984 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1986 * doc/sdccman.lyx: added section about debugging with ddd
1987 * doc/figures/ddd_example.eps: screenshot of debugging session
1989 2005-07-04 Raphael Neider <rneider AT web.de>
1991 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
1992 like CODE pointers, fixes #1115683
1993 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
1994 call, fixes bugs #1232211, #1228110,
1995 fixed wrong casts to pCodeFlow from pCodeInstructions
1997 2005-07-04 Raphael Neider <rneider AT web.de>
1999 * src/pic/gen.c (popGet): changed assert to allow for
2001 * (popGetAddr): changed signature to provide
2002 an additional index, patched all call sites
2003 * (genCmpEq): handle literal-like operands correctly
2004 * (genAddrOf): added sanity checks on __code/__data pointers
2005 * (genAssign): added handling of symbols from __code section
2006 * (gencjne): do not generate code for comparisons whose result
2007 is neither stored nor used, fixes bug #1171114
2008 * (AccLsh, AccRsh): operate on operand instead of WREG
2009 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
2010 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
2012 * rewrote complete shift-by-literal logic, commented unused
2014 * (genConstPointerGet): get multiple bytes (if result size > 1),
2015 fixed handling of non-immediate addresses
2016 * (genPointerGet): handle CODE pointers like CONST pointers
2017 * (genpic14Code): insert C-SRC lines as Cource-pCodes
2018 * ({aop,op}_isLitLike): NEW, single place to decide whether an
2019 operand is to be treated as a literal or not
2020 * (mov2w,genPcall,genCmpEq),
2021 src/pic/genarith.c: use aop_isLitLike() to decide between
2022 literal/register contents
2023 * (addSign): added missing offset
2024 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2025 only emit comment in debug-mode,
2026 use {aop,op}_isLitLike throughout the file
2027 * src/pic/glue.c: fix initializers for pointers (work in progress)
2028 * src/pic/pcode.c (get_op): honor index on _const symbols
2029 * ({reset,dump}pCodeStatistics): NEW, estimate code size
2030 * (dumppBlock): added pCode size estimation
2031 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2032 check for IS_SYMOP before OP_SYMBOL'ing
2033 * fixed indentation, compacted switch-statements
2034 * (allocReg): find free register and allocate it instead of
2035 allocating new registers all the time
2036 * (deassignLRs): prevent POINTER_GET's from being assigned the same
2037 registers as its operands (necessary only for multibyte GETs)
2039 2005-07-01 Raphael Neider <rneider AT web.de>
2041 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2042 debugging .asm-output macros FENTRY + FEXIT
2043 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2045 * (emitpComment): NEW, printf to pCode
2046 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2048 * (popGetAddr): NEW, variant of popGet to access an immediates
2049 high(er) bytes instead of the n'th byte of memory they reference,
2050 replaced popGet with popGetAddr where neccessary
2051 * (genDataPointerGet): reactivated and fixed implementation
2052 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2054 * (genDataPointerSet): fixed multibyte assignments
2055 * (genpic14Code): fixed --i-code-in-asm handling
2056 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2057 * (genPlus): fixed index-out-of-bounds error
2058 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2059 * src/pic/ralloc.c: added debugging output macro FENTRY2
2060 * (spillThis): fixed indentation, enbraced for-body for clarity
2061 * (rematStr): commented out as now unused
2062 * (regTypeNum): commented out special spill case (overwrites
2064 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2066 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
2068 * doc/sdccman.lyx: documented sfr16/sfr32,
2069 added example for using storage class with function pointers
2070 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
2072 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
2074 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
2075 * device/lib/_itoa.c,
2076 * device/lib/_ltoa.c: optimized codesize
2077 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
2078 but don't know how to suppress the double warning.
2079 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
2080 * support/Util/SDCCerr.c,
2081 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
2083 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
2085 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
2086 fixed old K&R prototypes
2087 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
2088 * device/lib/_gptrget.c,
2089 * device/lib/_gptrgetc.c,
2090 * device/lib/_gptrput.c: changed versions for new memory indicator values,
2091 also new versions for small generic pointers and banked generic pointers
2092 * src/port.h: added const_name
2093 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
2094 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
2095 * src/SDCCcse.c (findPrevIc): check all associative operators
2096 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
2097 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
2098 * src/SDCCmem.c: updated comments,
2099 set far-space to 0 for pdata, results in optimized code
2100 * src/SDCCmem.h: added macro CONST_NAME
2101 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
2102 moving the info into the highest bits, see also gptrget/gptrput
2103 * src/src.dsp: added sdcc.ico to project files
2104 * src/avr/gen.c (genCast): fixed bug 0x%d
2105 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
2106 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
2107 relation between ptr_type and DCL_TYPE,
2108 (genCast): fixed bug 0x%d
2109 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
2110 (CODE)" for const_name
2111 * src/hc08/gen.c (genCast): fixed bug 0x%d
2112 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
2113 (hc08_port): added "CONST (CODE)" for const_name
2114 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
2115 (aopForRemat, adjustArithmeticResult): disconnected direct relation
2116 between ptr_type and DCL_TYPE,
2117 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
2118 operand* and took AOP() inside function so sfr-ness can be checked,
2119 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
2121 (genFunction, genEndFunction): optimized stack setup,
2122 (genMinus): optimized for literals with ending zeroes (in bytes),
2123 (genCast): fixed bug 0x%d
2124 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
2125 (mcs51_port): added "CONST (CODE)" for const_name
2126 * src/mcs51/peeph.def: made rule 226 more generic
2127 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
2128 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
2129 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
2130 * src/z80/main.c (z80_port): added NULL for const_name,
2131 (gbz80_port): added NULL for const_name
2132 * support/regression/tests/bug663539.c,
2133 * support/regression/tests/sfr16.c: new tests
2135 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2137 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
2139 2005-06-24 Raphael Neider <rneider AT web.de>
2141 * device/lib/pic16/libdev/pic18f[68][567]20.c:
2143 * device/include/pic16/signal.h: added USBIF
2146 2005-06-24 Raphael Neider <rneider AT web.de>
2148 * device/lib/pic16/libdev/pic18f2455.c,
2149 device/include/pic16/pic18f2455.h: NEW
2150 * device/include/pic16/pic18fregs.h,
2151 device/lib/pic16/pics.all,
2152 src/pic16/device.c: added 18f2455
2153 * device/lib/pic16/libdev/pic18f[68][567]20.c,
2154 device/include/pic16/{pic18f[68][567].h,usart.h}:
2155 replaced MULTIPLE_USARTS define with more relaible
2156 compatibility sfrs (for USART access)
2158 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
2160 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
2161 and the output asm file line is printed on two lines.
2163 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2165 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
2166 BGT, BLE, BHI, and BLS instructions
2167 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
2169 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
2170 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
2172 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
2174 2005-06-15 Raphael Neider <rneider AT web.de>
2176 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
2177 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
2178 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
2179 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
2180 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
2182 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2184 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
2185 Marcel Telka in bug #1215704
2187 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
2189 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
2190 located in shared memory bank.
2192 2005-05-31 Raphael Neider <rneider AT web.de>
2194 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
2195 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
2196 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
2198 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
2200 * device/lib/_strncpy.c: fixed the fix
2202 2005-05-26 Raphael Neider <rneider AT web.de>
2204 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
2205 initializers with \0, bug #1208187
2206 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
2207 intializers with \0, bug #1208187
2209 2005-05-26 Raphael Neider <rneider AT web.de>
2211 * src/pic16/glue.c (pic16_printIvalChar): fixed string
2212 initializers with \0, bug #1208187
2213 * src/pic16/main.c (_process_pragma): added sanity checks
2214 for stack position and size, emit warnings when appropriate
2216 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2218 * device/lib/_strncpy.c: fixed not filling with \0
2220 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2222 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2224 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2225 compound_statement),
2227 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2229 2005-05-24 Raphael Neider <rneider AT web.de>
2231 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2233 2005-05-24 Raphael Neider <rneider AT web.de>
2235 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2236 TRISE definitions, closes bug #1162453
2238 2005-05-22 Raphael Neider <rneider AT web.de>
2240 * src/pic16/main.c (_process_pragma): check for missing
2241 arguments to pragmas code and udata
2242 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2243 consistency fixes to match other headers (thanks to Jim Paris)
2244 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2246 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2248 * src/SDCCicode.c (isOperandEqual): fixed missing ;
2250 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2252 * support/regression/tests/bug1198642.c: new test
2253 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2254 * src/SDCCcse.c (findPrevIc): added comment, please have a look
2255 * support/scripts/resource.h,
2256 * support/scripts/resource.rc,
2257 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2258 * support/scripts/sdcc.ico: added 32x32 icon
2260 2005-05-18 Raphael Neider <rneider AT web.de>
2262 * device/lib/pic16/libdev/pic18f*.c,
2263 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2264 keywords to "__sfr" and "__at (X)"
2265 * device/include/pic16/pic18fregs.h: added pic18f4520
2266 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2267 #1203088 (MPLAB compatibility)
2269 2005-05-17 Raphael Neider <rneider AT web.de>
2271 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2272 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2273 * device/lib/pic16/pics.all: added new devices
2274 * src/pic16/device.c: added support for pic18f4520
2276 2005-05-16 Raphael Neider <rneider AT web.de>
2277 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2278 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2279 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2280 convenience function for bit access
2282 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2284 * device/lib/printf_large.c: fixed bug 1193299
2285 * support/regression/tests/bug1057979.c: added test %3.3s
2287 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2289 * device/include/mcs51/8051.h,
2290 * device/include/mcs51/8052.h: made parseable with lint
2291 * device/include/mcs51/lint.h: added include file for (sp)lint
2292 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2293 * doc/cdbfileformat.lyx,
2294 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2296 2005-05-14 Raphael Neider <rneider AT web.de>
2298 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2299 * device/lib/pic16/libc/stdlib/itoa.c (new)
2300 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2301 * device/lib/pic16/libio/Makefile: exclude subdir according to
2302 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2303 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2304 * src/pic16/gen.c (genFunction): prevent annoying warning
2305 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2307 * support/cpp2/cppmain.c (cpp_output_string): new
2308 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2311 2005-05-13 Borut Razem <borut.razem AT siol.net>
2313 * src/SDCCmain.c (linkEdit): fixed bug 1195202
2315 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2317 * .version: changed to version 2.5.1; back to bleeding edge development
2319 2005-05-11 Borut Razem <borut.razem AT siol.net>
2321 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2322 generate PDF version 1.3 documents
2324 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2326 * .version: changed to version 2.5.0
2328 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2330 * doc/sdccman.lyx: updated weblinks, index and smaller updates
2332 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2334 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2335 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2336 well as many smaller updates.
2337 * .version: changed to version 2.5.0-pre1
2339 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2341 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2343 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2345 * support/regression/tests/bug1185672.c: added
2346 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2348 * src/mcs51/gen.c (genCall): added comments, made it look safer
2349 * src/mcs51/gen.c (genEndFunction): simplified
2351 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2353 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2355 2005-04-14 Borut Razem <borut.razem AT siol.net>
2357 * fixed bug 1045046 - SIGSEGV with really simple code?:
2358 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2359 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2361 2005-04-14 Borut Razem <borut.razem AT siol.net>
2363 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2364 src/pic16/device.h: temporarily disabled experimental #inline pragma
2367 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2369 * device/include/z80/stdio.h,
2370 * device/include/z80/string.h: removed these highly incomplete files so
2371 SDCC can use the default ones in device/include/
2373 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2375 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2377 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2380 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2382 * device/include/malloc.h: removed redundant __reentrant prototypes
2383 * device/lib/_mullong.c: added working xstack variant in asm (C version
2384 doesn't pass regression tests)
2385 * device/lib/bpx.c: used __data and made bpx char for mcs51
2386 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2387 (createFunction): fixed bug with xstackPtr
2388 * src/SDCCcse.c: corrected comments
2389 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2390 (killDeadCode, eBBlockFromiCode): removed unused code
2391 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2393 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2394 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2395 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2396 (genModOneByte): fixed warning in MSVC
2397 * src/mcs51/main.c (): added comments
2398 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2400 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2402 * src/SDCCmain.c (linkEdit): oops, changed one line too many
2404 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2406 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2408 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2410 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2411 characters arrays of larger size than the declared one.
2413 2005-04-10 Borut Razem <borut.razem AT siol.net>
2415 * src/pic/gen.c (genInline),
2416 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2417 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2418 (findNextInstruction), (findPrevInstruction),
2419 (findInstructionUsingLabel),
2420 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2421 * src/pic/pcode.c (findLabel): added missing '\n'
2422 * src/src.dsp: added SDCCdwarf2.c to the project
2424 2005-04-09 Borut Razem <borut.razem AT siol.net>
2426 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2428 2005-04-08 Raphael Neider <rneider AT web.de>
2430 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2431 into the chain after a given one) and mergeDefmapSymbols (combine
2432 defmap entries for each symbol per pcode)
2433 * (createDefmap): have defmap entries merged in the end
2434 * (defmapReplaceSymRef): split defmap entries covering two accesses to
2435 a symbol before replacing one access type's symbol, merge symbols in
2436 the end (replacement symbol might already have an entry)
2437 * (assignValnums): keep reference to written WREG intact
2439 2005-04-08 Raphael Neider <rneider AT web.de>
2441 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2444 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2446 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2449 2005-04-07 Raphael Neider <rneider AT web.de>
2451 * device/include/pic16/usart.h: added compatibility defines for
2452 devices with more than one USART
2453 * device/include/pic16/pic18f[68][567]20.h: activated above defines
2455 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2457 * device/lib/Makefile.in: updated for port specific include
2459 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2461 * support/regression/ports/mcs51/spec.mk: added mcs51 include
2463 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2465 * device/include/8051.h,
2466 * device/include/8052.h,
2467 * device/include/at89S8252.h,
2468 * device/include/at89c55.h,
2469 * device/include/at89x051.h,
2470 * device/include/at89x51.h,
2471 * device/include/at89x52.h,
2472 * device/include/mcs51reg.h,
2473 * device/include/reg51.h,
2474 * device/include/reg764.h,
2475 * device/include/regc515c.h,
2476 * device/include/sab80515.h: (re)moved these 12 files
2477 * device/include/mcs51/8051.h,
2478 * device/include/mcs51/8052.h,
2479 * device/include/mcs51/at89S8252.h,
2480 * device/include/mcs51/at89c55.h,
2481 * device/include/mcs51/at89x051.h,
2482 * device/include/mcs51/at89x51.h,
2483 * device/include/mcs51/at89x52.h,
2484 * device/include/mcs51/mcs51reg.h,
2485 * device/include/mcs51/reg51.h,
2486 * device/include/mcs51/reg764.h,
2487 * device/include/mcs51/regc515c.h,
2488 * device/include/mcs51/sab80515.h: and added them here
2490 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2492 * device/include/stdarg.h: changed SDCC specific keywords to double
2494 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2496 * device/include/hc08/mc68hc908gp32.h,
2497 * device/include/hc08/mc68hc908jb8.h,
2498 * device/include/hc08/mc68hc908jkjl.h,
2499 * device/include/hc08/mc68hc908qy.h: fixed comments
2500 * device/include/mcs51/README: updated
2501 * device/include/mcs51/c8051f120.h: added PINRSF
2502 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2503 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2504 amidst code. Also inline is not supported.
2506 2005-04-06 Raphael Neider <rneider AT web.de>
2508 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2509 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2510 callers stack/frame pointers
2512 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2514 * device/include/pic16/usart.h: added, missing in previous commit,
2515 * device/include/pic16/adc.h: fixed typo,
2516 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2518 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2520 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2521 uninitialized because a bug appears with gplink
2522 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2523 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2524 complains for unrecognised option
2526 2005-04-05 Raphael Neider <rneider AT web.de>
2528 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2529 structs as well (using memcpy)
2530 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2531 on ISRs (GOTO has no label)
2532 * src/pic16/device.h: added OF_OPTIMIZE_DF
2533 * src/pic16/main.c: added compiler switch --optimize-df to enable the
2534 new data flow analysis/optimization
2535 * src/pic16/pcode.c: added (prototypes for and implementation of)
2536 dataflow analysis functions, fixed pCodeInstructions' inCond and
2537 outCond values, made RCALL a branch instruction
2538 * (pic16_unlinkpCode): keep C line if possible
2539 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2540 C line moved if possible
2541 * (pic16_getRegFrompCodeOp): NEW, improved version of...
2542 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2543 to use new pic16_getRegFrompCodeOp (works for more SFRs)
2544 * (pic16_BuildFlow): fixed skip instructions with label (did not start
2546 * (pic16_getJumptabpCode): NEW, needed in...
2547 * (LinkFlow): fixed handling of jumptables, calls and conditional
2549 * (pic16_InsertCommentAfter): NEW
2550 * (pic16_pCodeReplace): made verbose and flow preserving
2551 * (AnalyzeFlow): added call to data flow analysis
2552 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2553 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2554 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2556 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2558 * src/SDCCast.c (decorateType): fixed bug #1105626
2560 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2562 * device/include/asm/pic16/features.h,
2563 * pic18f*.h headers,
2564 * device/include/pic16/adc.h,
2565 * device/include/pic16/delay.h,
2566 * device/include/pic16/i2c.h,
2567 * device/include/pic16/malloc.h,
2568 * device/include/pic16/stdio.h,
2569 * device/include/pic16/stdlib.h,
2570 * device/include/pic16/string.h,
2571 * device/lib/pic16/libc/stdio/printf_tiny.c,
2572 * device/lib/pic16/libc/stdio/printf_small.c,
2573 * device/lib/pic16/libc/stdio/strmgpsim.c,
2574 * device/lib/pic16/libc/stdio/strmmssp.c,
2575 * device/lib/pic16/libc/stdio/strmusart.c,
2576 * device/lib/pic16/libc/stdio/vfprintf.c,
2577 * device/lib/pic16/libc/stdlib/ltoa.c,
2578 * device/lib/pic16/libc/stdlib/putchar.c,
2579 * device/lib/pic16/libc/stdlib/x_ftoa.c,
2580 * device/lib/pic16/libc/stdlib/memchrpgm.c,
2581 * device/lib/pic16/libc/stdlib/memchrram.c,
2582 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2583 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2584 * device/lib/pic16/libio/adc/adcbusy.c,
2585 * device/lib/pic16/libio/adc/adcread.c,
2586 * device/lib/pic16/libio/adc/adcsetch.c,
2587 * device/lib/pic16/libio/usart/ubaud.c,
2588 * device/lib/pic16/libio/usart/ubusy.c,
2589 * device/lib/pic16/libio/usart/udrdy.c,
2590 * device/lib/pic16/libio/usart/uopen.c,
2591 * device/lib/pic16/libio/usart/uputc.c,
2592 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2593 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2594 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2595 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2596 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2597 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2598 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2599 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2600 specific keywords to double underlined form,
2601 * device/lib/pic16/libc/Makefile.rules,
2602 * device/lib/pic16/libsdcc/Makefile.rules,
2603 * device/lib/pic16/libm/Makefile,
2604 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2605 to compile with C standard set in Makefile.common
2606 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2607 rand.c and crc.c in compilation process,
2608 * device/lib/pic16/libsdcc/int/divuint.c,
2609 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2610 `c' from signed to unsigned,
2611 * device/lib/pic16/startup/crt0.c,
2612 * device/lib/pic16/startup/crt0i.c,
2613 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2614 keywords to double underlined form, bug fixes in _do_cinit function
2615 which prevented the correct initialization of the .idata segment,
2616 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2617 core to enter a infinite loop
2618 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2620 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2622 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2624 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2626 * device/include/Makefile.in: add support for hc08 subdirectory
2627 * device/include/hc08/: new subdirectory
2628 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
2629 Lucas Loizaga, thanks!
2630 * device/include/hc08/mc68hc908qy.h,
2631 * device/include/hc08/mc68hc908gp32.h,
2632 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
2633 their own directory. Changed internal macro names to use the compiler
2634 reserved namespace. Changed SDCC specific keywords to double
2636 * device/include/math.h,
2637 * device/include/malloc.h,
2638 * device/include/stdarg.h,
2639 * device/include/stdbool.h
2640 * device/include/string.h,
2641 * device/include/tinibios.h,
2642 * device/include/ds400rom.h,
2643 * device/include/8051.h,
2644 * device/include/8052.h,
2645 * device/include/80c51xa.h,
2646 * device/include/at89c55.h,
2647 * device/include/at89S8252.h,
2648 * device/include/at89x51.h,
2649 * device/include/at89x52.h,
2650 * device/include/ds80c390.h,
2651 * device/include/reg764.h,
2652 * device/include/regc515c.h,
2653 * device/include/sab80515.h,
2654 * device/include/mcs51/c8051f000.h,
2655 * device/include/mcs51/c8051f018.h,
2656 * device/include/mcs51/c8051f020.h,
2657 * device/include/mcs51/c8051f040.h,
2658 * device/include/mcs51/c8051f060.h,
2659 * device/include/mcs51/c8051f120.h,
2660 * device/include/mcs51/c8051f300.h,
2661 * device/include/mcs51/c8051f310.h,
2662 * device/include/mcs51/c8051f320.h,
2663 * device/include/mcs51/c8051f330.h,
2664 * device/include/mcs51/c8051f350.h,
2665 * device/include/z180.h: Changed SDCC specific keywords to double
2668 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
2670 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
2672 * (pic16_assignConfigWordValue): disable testing of configuration
2673 register value with config mask,
2674 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
2675 function with port->fun_prefix,
2676 * (genFunction): when generating a naked interrupt function never
2677 create an absolute segment placed in interrupt vector address, place
2678 the actual interrupt function at IVA instead, when an interrupt
2679 function is generated with unspecified interrupt then do not create
2680 the absolute section,
2681 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
2682 code for generating a call to generic pointer get/put function with
2683 a call to function pic16_callGenericPointer(),
2684 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
2685 the call to the generic pointer get/put functions with prefixing the
2686 function name with port->fun_prefix,
2687 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
2688 * src/pic16/main.c (_process_pragma): prefix function with
2690 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
2691 calling assembler, old 18Fxxxx macro is deprecated,
2692 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
2693 PC_ASMDIR in while condition,
2694 * (findInstruction): add PC_ASMDIR in while condition,
2695 * (buildCallTree): prefix main with port->fun_prefix,
2696 * (pic16_pCode2str): fixed bug that didn't emit the memory access
2697 identifier for variable with banked access in instructions BTFSS,
2698 BTFSC, BCF, BSF, BTG
2699 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
2700 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
2701 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
2702 perform optimization when enviroment variable NO_REG_OPT is set,
2703 * (insideLRBlock): NEW, return 1 if register is inside an
2704 INF_LOCALREGS block,
2705 * (RemoveRegFromLRBlock): remove a register that is completely
2706 eliminated by register optimization, but it is still left in local
2707 register store/restore in/from stack block,
2708 * (Remove2pcodes): after removing register, check to see if it
2709 should be removed from local register store/restore in/from stack
2711 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
2712 DUMMY_READ_VOLATILE,
2714 * device/include/pic16/adc.h: minor prototype modifications and
2716 * device/include/pic16/malloc.h: added GPL notice various
2718 * device/include/pic16/stdint.h: NEW, standard header for ints
2719 * device/include/pic16/delay.h: NEW, header for delay functions,
2720 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
2722 * device/include/pic16/signal.h: NEW, header providing helper macros
2723 for implementing signal handlers,
2724 * device/include/pic16/stdio.h: added prototypes for functions,
2725 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
2726 prototypes for stdin and stdout, added macro PUTCHAR to
2727 automatically implement putchar function prototype,
2728 * device/include/pic16/usart.h: modified and updated USART library,
2729 * device/lib/pic16/libio/adc/,
2730 * device/lib/pic16/libio/i2c: some modifications to improve library
2732 * device/lib/pic16/libc/stdio/: modifications for the new printf*
2733 family of functions,
2734 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
2735 family of functions and other sources,
2736 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
2737 of the PIC18Fxx[28] devices,
2738 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
2739 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
2740 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
2741 _do_cinit function, because the previous failed when local variables
2742 where not placed in the same memory bank,
2743 * device/lib/pic16/libsdcc/char/: various modifications to improve
2744 library performance,
2745 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
2746 information on the new functions of the c library and more...
2748 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2750 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
2752 2005-03-26 Raphael Neider <rneider AT web.de>
2754 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
2755 if condition == CARRY)
2756 * (genCmp): adapted to new genSkipc semantics
2757 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
2758 on rIfx (genCmp was broken)
2760 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2762 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
2763 * src/z80/main.c (_keywords[]),
2764 * src/SDCCglobal.h (struct options),
2766 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
2767 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
2768 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
2769 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
2770 always available in leading double underscore form. The C99 support is
2771 mostly missing, but it's a start.
2772 * support/regression/tests/bug-227710.c: fixed nonconforming use of
2773 reserved identifier "__data".
2775 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2777 * src/mcs51/peeph.def: fixed bug 1170013
2779 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
2781 * device/include/mcs51reg.h: fixed bug 842007
2783 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2785 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
2788 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2790 * src/port.h (struct PORT),
2791 * src/avr/ralloc.c (avr_assignRegisters),
2793 * src/ds390/ralloc.c (ds390_assignRegisters),
2795 * src/hc08/ralloc.c (hc08_assignRegisters),
2797 * src/mcs51/ralloc.c (mcs51_assignRegisters),
2799 * src/pic/ralloc.c (pic14_assignRegisters),
2801 * src/pic16/ralloc.c (pic16_assignRegisters),
2803 * src/xa51/ralloc.c (xa51_assignRegisters),
2805 * src/z80/ralloc.c (z80_assignRegisters),
2807 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
2808 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
2810 * src/SDCCdflow.c (computeDataFlow),
2812 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
2814 * src/SDCCcflow.c (*),
2816 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
2817 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
2818 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
2819 immedDom() returning wrong block; probably fixes bug #1160833)
2821 2005-03-20 Borut Razem <borut.razem AT siol.net>
2823 * support/scripts/inc2h.pl: WIN32 port
2825 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
2827 * device/lib/makefile.in: added abs.c and labs.c
2829 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2831 * device/include/stdint.h: added
2832 * device/lib/abs.c: added
2833 * device/lib/labs.c: added
2834 * device/include/stdlib.h: added abs() and labs() prototypes
2835 * device/lib/libsdcc.lib: added abs and labs
2836 * device/include/float.h,
2837 * device/lib/_fsmul.c,
2838 * device/lib/printf_fast.c,
2839 * device/lib/printf_tiny.c: updated comments
2841 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2843 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
2846 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2848 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
2849 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
2851 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
2853 * device/lib/printf_large.c: removed inline assembly for portability and
2854 readability. Use printf_fast if speed or size are more important.
2855 * src/pic16/gen.c: removed conditions around use of DEBUGpc
2856 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
2858 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
2860 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
2861 prevent compiler warning
2863 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2865 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
2866 moved to level 0 and declared as static. Also they are explicit
2867 placed in access bank. This was necessery because some times they
2868 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
2869 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
2870 optimizations. Currently only compare to unsigned char is implemented,
2871 * src/pic16/gen.c: added fReturnIdx array,
2872 * (struct resolvedIfx) is moved to gen.h and made public,
2873 * (struct _G): added sregsAlloc and sregsAllocSet fields,
2874 * (aopForSym): added an optimization to directly store in stack of
2875 the operand of a SEND iCode,
2876 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
2877 but as registers instead (AOP_REG) using the fReturnIdx array,
2878 * (pic16_freeAsmop): remove the freed register from the
2879 _G.sregsAlloc field,
2880 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
2881 a compare of 'WREG',
2882 * (pic16_popGetTempRegCond): changed function prototype, now
2883 function takes also a bitVector argument v which holds the current
2884 set of registers that are allocated for stack access by aopForSym,
2885 registers allocated in aopForSym for accessing stack symbols are not
2886 any more part of the functions usedRegs field,
2887 * (genCall): some times aopOp is called for a stack variable to be
2888 send, aopForSym might perform the push, if this is true make sure
2889 that genCall doesn't push the variable twice by testing _G.resDirect,
2890 * (genFunction): changed testing for unspecified interrupt number
2891 from 256 to INTNO_UNSPEC,
2892 * modified selection scheme of frame pointer generation. Previously
2893 if function did use local registers a frame pointer was generated,
2894 now a frame pointer is generated only if function has arguments
2895 (that need PLUSW2 register access), or has stack arguments, or the
2896 compiler is not instructed to omit the frame pointer,
2897 * (genEndFunction): before restoring local registers that were saved
2898 in the function preamble, also restore the registers that *might*
2899 have been allocated for stack access,
2900 * (genRet): removed some old comments,
2901 * (genCmp, the active (RN's) version): added a call to the
2902 pic16_genCmp_special function to perform the compare with a more
2903 robust and optimized way,
2904 * (genInline): a feature has been added in inline code generation,
2905 which allows a wildcard variable substitution when writing inline
2906 assembly. Code is incomplete and experimental therefore undocumented,
2907 * (genCast): changed order of aopOp for result and right to allow
2908 aopForSym to directly load the result if possible,
2909 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
2910 perform an optimized compare on some selected special occasions,
2911 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
2912 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
2913 generate an IVT any more,
2914 * src/pic16/main.c (pic16_optionsTable): added command line option
2916 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
2917 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
2919 * src/pic16/NOTES: Raphael Neider added in list of active developers
2920 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
2921 jumptable_end to prevent bug #,
2922 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
2923 inCond and outCond fields,
2924 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
2925 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
2926 turn off register spilling,
2927 * (packRegsForOneUse): synced with other ports' versions although it
2928 is not used currently,
2929 * (pic16_packRegisters): added an optimization while reading
2930 structure bitfields, some registers may be saved (malloc code is
2931 decreased by 80 bytes)
2933 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
2935 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
2936 left is a bitfield, if yes, then don't optimize assignment. Perhaps
2937 this can be optimized more?
2939 2005-03-10 Raphael Neider <rneider AT web.de>
2941 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
2942 genNearPointerGet): (hopefully) fixed access to bitfields via
2943 pointers (p->bitN = x; and x = p->bitN; failed)
2945 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
2947 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
2949 2005-03-09 Raphael Neider <rneider AT web.de>
2951 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
2953 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
2955 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
2956 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
2957 (regTypeNum): set REG_BIT type if necessary
2958 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
2959 * support/regression/tests/critical.c: check bug 1144613
2961 2005-03-02 Raphael Neider <rneider AT web.de>
2963 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
2965 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2967 * src/avr/ralloc.c (serialRegAssign),
2968 * src/ds390/ralloc.c (serialRegAssign),
2969 * src/hc08/ralloc.c (serialRegAssign),
2970 * src/mcs51/ralloc.c (serialRegAssign),
2971 * src/pic/ralloc.c (serialRegAssign),
2972 * src/pic16/ralloc.c (serialRegAssign),
2973 * src/xa51/ralloc.c (serialRegAssign),
2974 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
2976 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2978 * src/SDCCast.c (decorateType): fixed bug 1124787
2980 2005-02-20 Hubert Sack <sack AT digiplan.de>
2981 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2983 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
2986 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2988 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
2989 to keep the correct label reference count when adding/removing references
2990 to labels. A peephole file using this is appended to patch #1144962.
2992 2005-02-14 Raphael Neider <rneider AT web.de>
2994 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
2995 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
2996 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
2997 retrievals of result operand's value on assignment
2999 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
3001 * device/include/pic16/string.h: modified prototype for memccpy()
3002 to memccpy(void *, void *, char, size_t)
3003 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
3004 check whether to omit frame pointer or not,
3005 * (genInline): convert all occurences of "\n" to LF in inline
3006 assembler blocks, this helps formatting the inline text,
3007 * (pic16_loadFSR0): modified prototype,
3008 * (genNearPointerGet, genNearPointerSet): reorganization of code,
3009 removed some 8051 legacy code,
3010 * (genPackBits): enabled handling bitfields exceeding one byte in size,
3011 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
3012 before allocating temporary registers in functions,
3014 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3016 * support/regression/tests/bitvars.c: corrected the "fix"
3018 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3020 * support/regression/tests/bitvars.c,
3021 * support/regression/tests/bitwise.c,
3022 * support/regression/tests/rotate.c: "fixed" problems on Alpha
3024 2005-02-10 Raphael Neider <rneider AT web.de>
3026 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3027 different size for Alpha
3028 * src/pic16/gen.c (genCmpEq) : improved compare with 0
3030 2005-02-09 Raphael Neider <rneider AT web.de>
3032 * src/SDCC.lex(doPragma) : save and restore warning options as well
3033 (also added new stack plus clone- and copyAndFreeSDCCERRG())
3034 * have #pragma less_pedantic set the errorlevel to WARNING
3036 * (cloneOptimize) : fixed wrong malloc's size
3037 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3038 facilitate correct handling of #pragma (save|restore)
3040 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3042 * src/mcs51/gen.c: removed non-standard C nameless struct/union
3044 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3046 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3048 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3050 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3052 2005-02-02 Raphael Neider <rneider AT web.de>
3054 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3055 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3056 * (pic16_storeForReturn): fixed to allow returning function pointers
3057 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3058 * device/include/pic16/{stddef.h,stdbool.h}: added
3060 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3062 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3064 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3066 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
3067 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
3068 appeared to be required
3070 2005-01-31 Borut Razem <borut.razem AT siol.net>
3072 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
3073 include/mcs51 and include/z80 directories to the package
3075 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3077 * src/hc08/gen.c (genFunction): fixed bug #1112752
3079 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3081 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
3083 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3085 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
3087 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
3089 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
3091 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
3093 * device/include/c8051fxxx.h: removed these 6 files
3094 * device/include/mcs51/c8051fxxx.h: added these 11 new files
3096 2005-01-26 Raphael Neider <rneider AT web.de>
3098 * src/pic16/gen.c (genAssign): fixed assignment from longs
3099 in codespace (were cut to three bytes)
3100 * (genDummyRead): implemented (except for CODESPACE...),
3102 * src/pic16/glue.c (emitStatistics): beautified
3103 * device/lib/pic16/libm/Makefile: added include path
3105 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3107 * src/z80/gen.c (aopPut): fixed bug #1103902
3109 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3111 * device/lib/expf.c: fixed bug #1095792
3113 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
3115 * device/lib/pic16/libm: added Math library sources
3117 2005-01-24 Raphael Neider <rneider AT web.de>
3119 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
3120 to enable upcast to pCodeOpReg2 (there is no type tag to
3121 differenciate the two and pic16_popGet2p cast into PCOR2)
3122 * src/pic16/main.c (_process_pragma): fixed another malloc bug
3123 (sizeof(sectNames) changed to sizeof(sectName))
3124 Both patches fix segfaults under MinGW.
3126 2005-01-23 Raphael Neider <rneider AT web.de>
3128 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
3129 Safe_[mc]?alloc()'ed variables
3130 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
3131 of (byte sized) temporaries (assign them to WREG for now)
3132 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
3133 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
3134 this might fix SIGSEGVs on MinGW...
3135 * src/SDCCopt.c (killDeadCode): restored original behaviour
3136 (volatile operands might get thrown away though)
3138 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
3140 * src/pic16/gen.c: fixed bug #1106975,
3141 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
3142 pointer update, INTCON is saved, global interrupts are disabled and
3143 restored after updateing TOS.
3144 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
3145 * added function attribute 'shadowregs' to take advantage of shadow
3147 * added function attribute 'wparam' as an alternative to the wparam
3149 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
3150 user declares a non-ISR function as 'shadowregs',
3151 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
3153 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
3155 * .version: bumped version number to 2.4.8
3156 * device/lib/pic16/pics.all: list of PIC18F devices supported by
3158 * device/lib/pic16/libio/i2c/: I2C module support library,
3159 * device/include/pic16/i2c.h: I2C support library header,
3160 * device/lib/pic16/libc/stdio/: standard IO support sources,
3161 * (printf_small.c): printf_small() source, supports float print,
3162 * (printf_tiny.c): printf_tiny() source, does not support floats,
3163 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
3164 enable global optimizations for entire library source, other
3165 Makefiles in the source tree are also modified to reflect this,
3166 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
3168 * doc/sdccman.lyx: updated to reflect new changes,
3169 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
3170 sym->onStack if-case,
3171 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
3172 sbit, idata, _idata, xdata, _xdata,
3173 * added pragma library, to link an external library, (see doc),
3174 * removed command line options, --pomit-config-words, --pomit-ivt,
3175 --pleave-reset-vector,
3176 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
3177 when calling assembler to reflect memory model used, also define
3178 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
3179 reflect stack model used,
3180 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
3181 on stack return NULL,
3183 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3185 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
3186 of the operands is volatile. Fixes #1020220
3188 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3190 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
3191 * (OptimizeRegUsage): make sure that there is really no other flow where
3192 the first pCode is used
3194 2005-01-22 Raphael Neider <rneider AT web.de>
3196 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
3197 to fix #1106967 (pCode->seq are not set up correctly)
3199 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3201 * src/SDCCglue.c (glue): make sure code area is declared before the
3202 static initialization area.
3204 2005-01-21 Raphael Neider <rneider AT web.de>
3206 * device/lib/Makefile.in: fixed test for pic16 install dir
3207 * device/lib/pic16/*/Makefile*: modified compile flags to enable
3209 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
3210 added --optimize-goto compiler switch and pragma wparam documentation
3211 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
3212 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
3213 and PRODH closing bug #1071770 (peephole optimizer)
3215 2005-01-19 Raphael Neider <rneider AT web.de>
3217 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3218 cmdLine buffers (used when calling sdcpp...) are large enough
3219 (MAX_PATH=256 truncates arguments leading to system halts when
3221 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3222 * (genUminus): rewritten to for efficiency
3223 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3224 used uninitialized in some cases)
3225 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3226 copy the third byte from the int -- now assumes 0x80 (data memory)
3227 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3228 operands (genAddLit expects the iCode's operands to swapped as
3229 well), fixed leftover bytes (crashed for short left operands)
3230 * (pic16_genMinusDec): performance improvements, removed false
3232 * (pic16_genMinus): fixed to cope with differently sized operands
3233 * src/pic16/glue.c (pic16_glue): added new banksel optimization
3235 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3236 * src/pic16/graph.[ch]: implementation of directed graphs, used by
3237 new banksel optimization
3238 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3239 analysis for temporary registers (segfaults...)
3240 * src/pic16/peeph.def: added rule
3242 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3244 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3245 which converts a float number to its ASCII representation
3246 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3247 functions to convert the fractional and integer part of a float to ASCII,
3248 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3249 realloc.c): added _MALLOC_SPEC to explicit place variables in data
3251 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3253 * device/include/pic16/adc.h: added GPL info,
3254 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3255 a pCodeOp as tested operand,
3256 * (genNearPointerGet): optimized bit testing, does not use
3257 intermediate register for bit value, test directly instead with
3258 BTFSS, BTFSC, works only for single bits,
3259 * (genpic16Code): dump the name of the iCode in the asm,
3260 * src/pic16/ralloc.c (decodeOp): removed static declaration and
3261 renamed to pic16_decodeOp,
3262 * (serialRegAssign): do not allocate a temporary register for iCode
3263 sequences that test a single bit for 1/0
3265 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3267 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3268 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3269 access stack and frame pointers. They are initially assigned to
3270 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3271 accessing SFRs. Updated all occurences of modification of stack or
3272 frame pointer in gen.c and pcode.c,
3273 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3274 assigning of a literal value to pointers,
3275 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3276 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3279 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3281 * doc/sdccman.lyx: update documentation about stack pragma, added
3282 some info for stack memory models
3284 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3286 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3288 2005-01-08 Raphael Neider <rneider AT web.de>
3290 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3291 udata sections to fix bug #1097823
3293 2005-01-05 Raphael Neider <rneider AT web.de>
3295 * src/pic16/gen.c (genGenericShift): added handling of differently
3296 sized left operand and result
3298 2005-01-04 Raphael Neider <rneider AT web.de>
3300 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3301 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3302 to hold the condition bit)
3303 * added new version of genCmp (old code available via #define)
3304 * added new version of genShiftLeft/genShiftRight in a generic
3305 way, now supports shifting by negative values
3306 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3307 shiftCount (expected by genGenericShift)
3308 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3309 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3311 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3312 is an invalid literal too...)
3314 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3316 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3317 from Raphael Neider,
3318 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3319 for 8-bit literals. This fixes some literal operands which are sign
3320 extended to 16-bits ints when instruction needs only 8-bits.
3322 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3324 * device/lib/logf.c: added mcs51 assembly version
3325 * device/lib/expf.c: added mcs51 assembly version
3326 * device/lib/_logexpf.c: new shared asm code for expf and logf
3327 * device/include/math.h: add defines for assembly math library
3328 * device/lib/Makefile.in: build new _logexpf.c
3329 * device/lib/libfloat.lib: use new _logexpf.c
3331 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3334 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3335 device types which have less than 0x7f registers.
3337 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3339 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3341 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3343 * device/lib/printf_fast.c: only build on supported arch.
3344 * device/lib/printf_tiny.c: only build on supported arch.
3345 * device/lib/printf_fast_f.c: only build if asm float lib
3346 * device/lib/_fsget1arg.c: only build if asm float lib
3347 * device/lib/_fsget2args.c: only build if asm float lib
3348 * device/lib/_fsnormalize.c: only build if asm float lib
3349 * device/lib/_fsreturnval.c: only build if asm float lib
3350 * device/lib/_fsrshift.c: only build if asm float lib
3351 * device/lib/_fsswapargs.c: only build if asm float lib
3352 * device/include/stdio.h: don't provide print_fast,
3353 print_fast_f, print_tiny prototypes if --xstack used
3355 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3357 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3358 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3361 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3363 * device/lib/printf_fast_f.c: same as printf_fast, but
3364 with floating point enabled
3365 * device/lib/printf_fast.c: minor tweaks
3366 * device/include/stdio.h: add printf_fast_f
3368 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3370 * src/SDCCmain.c: make --float-reent default for mcs51
3371 * device/lib/_fsadd.c: added mcs51 assembly version
3372 * device/lib/_fssub.c: added mcs51 assembly version
3373 * device/lib/_fsmul.c: added mcs51 assembly version
3374 * device/lib/_fsdiv.c: added mcs51 assembly version
3375 * device/lib/_fseq.c: added mcs51 assembly version
3376 * device/lib/_fsneq.c: added mcs51 assembly version
3377 * device/lib/_fsgt.c: added mcs51 assembly version
3378 * device/lib/_fslt.c: added mcs51 assembly version
3379 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3380 * device/lib/Makefile.in: add _fscmp to build
3381 * device/lib/libfloat.lib: add _fscmp to build
3383 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3385 * device/lib/_fs2slong.c: added mcs51 assembly version
3386 * device/lib/_fs2sint.c: added mcs51 assembly version
3387 * device/lib/_fs2schar.c: added mcs51 assembly version
3388 * device/lib/_fs2ulong.c: added mcs51 assembly version
3389 * device/lib/_fs2uint.c: added mcs51 assembly version
3390 * device/lib/_fs2uchar.c: added mcs51 assembly version
3391 * device/lib/_slong2fs.c: added mcs51 assembly version
3392 * device/lib/_sint2fs.c: added mcs51 assembly version
3393 * device/lib/_schar2fs.c: added mcs51 assembly version
3394 * device/lib/_ulong2fs.c: added mcs51 assembly version
3395 * device/lib/_uint2fs.c: added mcs51 assembly version
3396 * device/lib/_uchar2fs.c: added mcs51 assembly version
3397 * device/include/float.h: added #define to select asm vs c
3399 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3401 * device/lib/printf_fast.c: improvements to float output
3402 * device/include/float.h: add defines for assembly float library
3403 * device/lib/_fsget1arg.c: receive 1 float arg
3404 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3405 * device/lib/_fsnormalize.c: normalize a float
3406 * device/lib/_fsreturnval.c: return float, various helper routines
3407 * device/lib/_fsrshift.c: right shift a float's mantissa
3408 * device/lib/_fsswapargs.c: swap 2 floats
3409 * device/lib/Makefile.in: build these 6 new files for mcs51
3410 * device/lib/libfloat.lib: add these 6 files to the library
3412 2004-12-26 Borut Razem <borut.razem AT siol.net>
3414 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3417 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3419 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3420 and fully reentrant and register bank neutral.
3421 * device/lib/printf_fast.c: added float (not enabled by default),
3422 added compact/slower integer (also not enabled by default),
3423 improved size/speed of fast integer code, other minor changes
3424 * device/include/stdio.h, device/lib/Makefile.in,
3425 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3427 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3429 * src/pic16/pcode.c: declaring variables other than at the start of a
3430 block is not supported in C by VC6.
3432 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3434 * applied a previous patch from Raphael Neider that wasn't included
3435 in the previous commits, which fixes infinite loops within jumptable
3437 * made some fixes that previous patches introduced
3439 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3441 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3442 that fixes an issue with AOP_PCODE asmop's offset,
3443 * (pic16_popCopyReg): update instance field too,
3444 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3445 function of pic port,
3446 * (genCmp, genAnd, genAssign),
3447 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3449 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3451 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3452 variables initial values to idata section,
3453 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3454 variables in some functions. This utilizes parmBytes field of iCode
3455 structure to hold the offset of the variable in stack. (might be
3456 able to use the stack field too?)
3457 * applied patch from Raphael Neider # ### , # ###
3458 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3459 variable initial values in idata section,
3460 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3461 for static variables with initial value
3462 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3463 applied fix in while loop from Raphael Neider.
3465 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3467 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3468 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3469 * src/ds390/ralloc.c (serialRegAssign): spill bits
3470 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3471 * support/Util/SDCCerr.c,
3472 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3473 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3474 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3476 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3478 * device/include/sdcc-lib.h: inserted LGPL, added includes
3479 asm/ds390/features.h and asm/mcs51/features.h
3480 * device/include/asm/default/features.h,
3481 * device/include/asm/gbz80/features.h,
3482 * device/include/asm/z80/features.h: added empty _AUTOMEM
3484 * device/include/asm/ds390/features.h,
3485 * device/include/asm/mcs51/features.h: added files with defines for
3486 _AUTOMEM and _STATMEM indicating automatic and static storage class
3487 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3488 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3489 * src/SDCCicode.c (geniCodeCast),
3490 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3491 * src/SDCCloop.c (loopInduction): removed unused variable lr
3492 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3493 to convertToFcall to include char modulo (RFE 1065037), added check
3494 if left operand is unsigned and use abs of literal value
3495 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3496 as it doesn't work after conversion from peephole.def to peephole.rul
3497 * src/mcs51/gen.c (toBoolean): added check for size,
3498 (genModOneByte): optimized code for signed char modulo a literal
3499 power of 2 (thanks to Hubert Sack),
3500 (genRRC): removed unnecessary "clr c",
3501 (genRLC): replaced "add a,acc" with cheaper "rlc a"
3502 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3504 swapped rules 256.c and 256.d,
3505 extended 256.d by using new multiple checks (thanks Erik),
3506 added rules 256.e and 256.f,
3507 updated rule 261.a and 261.b to new generated code
3508 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3510 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3512 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3513 induction related bugs, including first part of bug #1074377
3515 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3517 * applied patch from bug-report #1076292,
3518 * applied patches for genAnd and Goto-optimizations for Raphael
3520 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3521 dump a less iCode information,
3522 * src/pic16/device.h (pic16_options_t): added field debgen,
3523 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3524 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3525 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3527 * (various functions): added macros FENTRY and FENTRY2 to functions,
3528 to emit function prologue,
3529 * (various functions): fixed indentation,
3530 * (genNearPointerGet): fixed loading of FSR0,
3531 * (genPackBits): applied patch from Raphael Neider to fix updating
3532 of FSR0 and touching only the modified bits,
3533 * src/pic16/genarith.c (various functions): added macros FENTRY to
3534 emit function prologue in comments,
3535 * src/pic16/pcode.h: added functions debugf2, debugf3,
3536 * src/pic16/ralloc.c: partial fix for packForPush caused
3539 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3541 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3542 <stsp AT users.sourceforge.net> with reversed byte order
3543 * support/regression/tests/rotate.c: added (ds390 skips some tests)
3545 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3547 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3549 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3550 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3552 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3554 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3556 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3558 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3560 (setFromConditionArgs): friendly operand parser for peephole rules,
3561 (operandBaseName, operandsNotRelated): new peephole condition
3562 "operandsNotRelated" -- similar to "operandsNotSame", but takes
3563 architecture specific register naming into account, handles n-way
3564 comparisons, and supports quoted literals
3565 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3567 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3569 * src/mcs51/peeph.def: fixed bug #1076940
3571 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3573 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3575 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3577 Adding support for replacing ljmps with sjmps in jumptables
3578 generated for switch statements. For now you need to set the
3579 environment variable SDCC_SJMP_JUMPTABLE to enable this.
3580 Now 4 algorithms for mcs51 jumptable generation are used:
3581 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3582 addresses loaded pc-relative for up to 112 cases and stack-pushing
3583 target addresses loaded with offset from dptr for up to 256 cases.
3585 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3586 * src/mcs51/main.c: adapted constants for switch table generation
3587 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3589 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3591 * device/lib/printf_large.c (_print_format): fixed bug 1073386
3592 * support/regression/tests/bug1057979.c: added test for bug 1073386
3594 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3596 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3599 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3601 * src/pic16/device.h,
3602 * src/pic16/genarith.c,
3605 * src/pic16/pcode.c: applied patches #1068154 and #1070213
3607 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3609 Large cummulative patch for pic16 port.
3610 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3611 to call when a stack overflow occurs,
3612 * (malloc.h): added CVS Id tag,
3613 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3615 * added libc directory. The current version of LibC contains string
3616 functions, ctype functions and macros and some functions of the
3617 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3618 be extensively tested in the future. Standard disclaimer here.
3619 Library is not automatically build yet. But one can build it by
3620 invoking 'make' inside the libc directory.
3621 * added ADC library under libio. Preliminary version yet.
3623 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3624 * src/pic16/gen.c (aopForRemat): asmop size is filled by
3625 aopForRemat() now and not by pic16_aopOp(),
3626 * (pic16_popGetTempReg): removed warning messgae when allocating
3627 temporary registers, its a buggy feature and will be removed,
3628 * (pic16_popGet): set register instance field in AOP_CRY,
3629 * (pic16_outBitC): fixed for results in size greater than 1,
3630 * (genUminusFloat): fixed for pic16, ported code from mcs51,
3631 * (pic16_storeForReturn): optimized return of 0,
3632 * (genCmp): experimental code for new genCmp which uses PIC18's
3633 special compare&skip instructions. Initial tests fail some times
3634 with variables grater than 1 byte in size, so new code is disabled,
3635 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
3637 * (genCast): began a fix to optimize the casting of a bit to another
3638 bit, now assigning a bitfield to another bitfield will fail, sorry,
3639 * src/pic16/main.c: disabled the use of lr-support feature,
3640 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
3641 * added some function prototypes, added function _debugf prototype,
3642 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
3643 bits with offset (case PO_GPR_BIT),
3644 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
3646 * (isBankInstruction): modified to return 0 for no banking instruction,
3647 and 1 for banking instruction,
3648 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
3649 caused stop processing pCodes after a inline assembly block,
3650 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
3651 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
3652 registers when it shouldn't,
3653 * src/pic16/ralloc.c (allocReg): add preliminary support for
3654 supporting a limited set of temporary registers,
3656 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3658 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
3659 genDataPointerSet): ensure assignments always copy in MSB to LSB
3661 (loadRegFromAop): recognize CLRH optimization,
3662 (genFunction): optimize RECEIVE iCodes in reentrant functions
3664 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3666 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
3667 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
3669 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
3670 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
3671 contiguous with data
3673 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3675 * device/lib/_gptrget.c (_gptrget),
3676 * device/lib/_gptrgetc.c (_gptrgetc),
3677 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
3678 instead of sjmp to ret
3679 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
3680 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
3682 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3684 * .version: bumped version to 2.4.7
3685 * device/lib/_gptrget.c (_gptrget): is now _naked
3686 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
3687 * device/lib/_gptrput.c (_gptrput): is now _naked
3688 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
3689 (createFunction): fixed xstack
3690 * src/SDCCglue.c (emitMaps): set allocation required for bit area
3691 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
3693 (geniCodeCritical): store original interrupt state in an iTemp bit
3694 var unless stack-auto
3695 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
3696 * src/SDCCmain.c (setIncludePath): added include/target to search path
3697 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
3698 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
3700 (processFuncArgs): put bit vars in bit area
3701 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
3702 unsaveRBank): fixed xstack,
3703 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
3704 (genFunction, genEndFunction): fixed xstack,
3705 (genAssign): optimization don't walk backwards through mem
3706 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
3707 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
3708 * support/regression/Makefile: also make library (for stack-auto) when
3709 making "all" and added "test-mcs51-xstack-auto"
3710 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
3711 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
3712 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
3713 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
3714 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
3715 make-library by MAKE_LIBRARY
3716 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
3717 regression tests for xstack
3718 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
3719 * support/regression/tests/critical.c: test for critical on mcs51
3721 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3723 * support/regression/ports/ucz80/spec.mk: use include and lib files from
3724 built version of sdcc instead of installed version
3726 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3728 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
3729 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
3731 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
3732 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
3733 WARNING: remove device/lib/build/z80/printf.o by hand when
3734 updating from previous build!
3735 * device/lib/z80/printf.c: updated comment
3736 * support/regression/tests/bug1057979.c: test all ports now
3737 * support/regression/tests/bug1065458.c: file added
3739 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3741 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
3742 *_start and *_end symbols for static functions
3744 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
3746 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
3747 and search crt0.o in all library paths,
3748 (setIncludePath): proper handling of --nostdinc,
3749 (setLibPath): proper handling of --nostdlib
3750 * support/regression/Makefile,
3751 * support/regression/ports/ds390/spec.mk,
3752 * support/regression/ports/gbz80/spec.mk,
3753 * support/regression/ports/hc08/spec.mk,
3754 * support/regression/ports/mcs51/spec.mk,
3755 * support/regression/ports/mcs51-large/spec.mk,
3756 * support/regression/ports/mcs51-stack-auto/spec.mk,
3757 * support/regression/ports/z80/spec.mk: use include and lib files from
3758 built version of sdcc instead of installed version
3759 * doc/sdccman.lyx: fixed typo in --nostdinc
3761 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
3766 * src/pic/gen.c : added support to generate code for struct bit fields.
3768 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3770 * as/xa51/xa_version.h,
3771 * device/include/errno.h,
3772 * device/include/regc515c.h,
3773 * device/lib/_itoa.c,
3774 * device/lib/_ltoa.c,
3775 * device/lib/ser_ir_cts_rts.c,
3776 * sim/ucsim/xa.src/glob.cc,
3777 * sim/ucsim/xa.src/inst_gen.cc,
3778 * sim/ucsim/xa.src/xa_bit.cc,
3779 * sim/ucsim/xa.src/xa_sfr.cc,
3780 * sim/ucsim/z80.src/inst_dd.cc,
3781 * sim/ucsim/z80.src/inst_fdcb.cc,
3782 * support/scripts/keil2sdcc.pl,
3783 * src/pic16/pic16.dsp,
3784 * src/pic16/pic16a.dsp: corrected cvs line endings
3785 * device/lib/printf_large.c: fixed bug 1057979
3786 * src/pic16/gen.c: fixed non-C standard code
3787 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
3788 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
3789 * support/regression/ports/mcs51/support.c: reload T1 asap
3790 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
3791 pdata use and clear idata startup behaviour
3792 * support/regression/tests/bug1057979.c: added
3794 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
3796 * device/examples/ds390/ow390/ad26.h,
3797 * device/examples/ds390/ow390/cnt1d.h,
3798 * device/examples/ds390/ow390/crcutil.c,
3799 * device/examples/ds390/ow390/ownet.h,
3800 * device/examples/ds390/ow390/owsesu.c,
3801 * device/examples/ds390/ow390/swt12.h,
3802 * device/examples/ds390/ow390/swtoper.c,
3803 * device/examples/ds390/ow390/temp10.h,
3804 * device/examples/ds390/ow390/thermodl.c,
3805 * device/examples/ds390/tinitalk/tinitalk.dsp,
3806 * device/examples/ds390/tinitalk/tinitalk.dsw,
3807 * device/examples/mcs51/clock/hw.h,
3808 * device/examples/mcs51/simple2/go.bat,
3809 * device/examples/serialcomm/windows/serial.h,
3810 * device/examples/xa51/dummy.c,
3811 * device/examples/xa51/hello.c,
3812 * device/include/80c51xa.h,
3813 * device/include/at89x051.h: corrected cvs line endings
3815 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
3817 * src/pic16/main.c (options): added command line --gstack, to trace
3818 stack over/under flows,
3819 * added pragma 'wparam' to allow passing first byte of function
3820 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
3821 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
3822 call to __gstack_test function and sets up the symbol as extern,
3823 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
3824 * popaop): added call to pic16_testStackOverflow,
3825 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
3827 * (genCall, genPcall): now all parameters are passed via stack
3828 except in functions that are pass to wparam pragma in which WREG is
3830 * (genPcall): REENTRANT flag is checked to see if variable prototype
3831 contains reentrant keyword, don't call a non-reentrant function, via
3832 a reentrant function pointer or vice versa, functions are never
3834 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
3836 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
3837 SIGSEGV when accessing a NULL register stucture,
3838 * (pic16_printGPointerType): modified to handle UPPER modifier for
3839 function initializers, changed prototype of function to simpler one,
3840 * (pic16_printIvalFuncPtr): check to see if function is already
3841 added in externs list,
3842 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
3843 optimized a move from W to SFR with a move to the same register
3845 * device/lib/pic16/debug: NEW directory, contains debug features
3846 which are enabled when linking with libdebug.lib, currently command
3847 line option --gstack enables stack pointer tracing for over/under
3848 flow, corresponding sources are in debug/gstack
3850 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
3852 * doc/sdccman.lyx: updated SDCC version,
3853 * (PIC16 port): update list of command line options,
3854 * src/pic16/device.h (structure pic16_options_t): added field gstack
3855 to enable stack overflow tracing on push/pops,
3856 * src/pic16/device.c (statistics structure): added statistics
3858 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
3859 pic16_dump_int_registers): increase statistics counters for each
3860 * variable which is encountered
3861 * (pic16_dump_usection): emit each .udata variable to its own udata
3863 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
3864 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
3865 parameters via stack, otherwise use old scheme,
3866 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
3867 assembler output file,
3868 * src/pic16/main.c: added command line options --gstack to enable
3869 push/pop tracing for stack overflow,
3870 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
3871 instructions): added size of each instruction,
3872 * (pic16_countInstruction): estimate size of instructions in
3873 the_pFile list, inline assembly blocks are not counted,
3874 * (pic16_FixRegisterBanking): trace previous register usage, when
3875 banksel optimizations is greater than 0, don't emit a redudant
3878 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
3880 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
3881 * src/pic16/ralloc.c : applied same fix for pic16.
3882 * src/pic/gen.c : tidied it up a little.
3884 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3886 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
3887 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
3889 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3891 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
3893 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3895 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
3896 non-reentrant function __modsint in the interrupt function (thus
3897 corrupting math operations during serial I/O)
3898 * device/lib/ser_ir.c: as above, changed buffersize
3899 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
3901 * doc/Makefile: added option -t for rsync
3903 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3905 * src/SDCCast.h (struct ast),
3906 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
3908 2004-10-20 Borut Razem <borut.razem AT siol.net>
3910 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
3913 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
3915 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
3917 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
3918 support functions to replace long sequences of MOVFF's from access
3919 bank registers to stack and vice versa,
3920 * src/pic16/device.h: added new field opt_flags, where optimization
3921 flags can be set to enable certain features,
3922 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
3923 * pBlock, (genFunction, genEndFunction): surroung loop for
3924 saving/loading used registers in stack with PC_INFO pCodes,
3925 INF_LREGS. Code in between can then be optimized by pCode optimizer
3926 to support function calls,
3927 * (genDataPointerSet): fixed bug which loaded float fields in
3928 structures with corrupt data,
3929 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
3930 in a standard way debug info on stderr. Feature used for developing
3932 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
3933 obsolete chunks of code,
3934 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
3935 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
3936 * pic16/src/pcode.c (pic16_newpCodeInfo,
3937 * (pic16_newpCodeOpLocalRegs),
3938 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
3940 * (pic16_pCodeConstString): printing of the initial value of a
3941 symbol as a comment is inhibited since parsing was already done by
3942 copyStr and output is corrupt,
3943 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
3945 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3947 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
3949 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3951 * as/mcs51/lkarea.c: removed old K&R style,
3952 (lnksect): changed check on boundary error,
3953 (lnksect2): changed check on boundary error,
3954 (lnksect2): extend XSTK to end of page if size = 1
3955 * as/mcs51/lkmain.c: removed old K&R style,
3956 (Areas51): create l_IRAM symbol
3957 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
3958 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
3959 model-mcs51-stack-auto, added model-mcs51-xstack-auto
3960 * device/lib/_mullong.c: added version to be compiled with xstack
3961 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
3962 * device/lib/mcs51/crtxclear.asm: clear pdata as well
3963 * device/lib/mcs51/crtxstack.asm: fixed comment
3964 * src/SDCCglue.c: maxInterrupts defaults to 0,
3965 (emitMaps): added pdata,
3966 (createInterruptVect): (re)moved default,
3967 (glue): added pdata,
3968 (glue): moved __start__xstack to XSTK with default size 1
3969 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
3970 and options.float_rent when options.stackAuto is set,
3971 (linkEdit): only write XDATA_NAME if provided on command line
3973 * src/SDCCmem.c: added pdata
3974 * src/port.h: added pdata_name to PORT
3975 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
3976 (saveRegisters, unsaveRegisters): removed usage of B,
3977 (genMinus): fixed accumulator clash,
3978 (genJumpTab): added comment, this needs another look
3979 * src/mcs51/gen.c: added check for "B in use" paranoia,
3980 added pushB() and popB()
3981 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
3990 * src/z80/main.c: (reset_regparms) made void parameter explicit and
3991 added PSEG (PAG,XDATA) or NULL to port specifier
3992 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
3993 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
3994 (_mcs51_genInitStartup): removed __start__xstack equ,
3995 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
3996 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
3997 * src/z80/gen.c (_rleAppend): fixed warnings
3998 * support/regression/tests/zeropad.c: added pdata test
3999 * .version: bumped to 2.4.6
4001 2004-10-17 Borut Razem <borut.razem AT siol.net>
4003 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
4004 as a part of nightly build
4006 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
4008 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
4009 WREG holds the first byte function parameters,
4010 * (aopForSym): take special case for symbols which are in FARSPACE
4011 but in CODESPACE too,
4012 * (assignResultValue): modified to take into account _G.useWreg,
4013 * (genCall): don't use wreg for parameter passing when function is
4014 declared as reentrant, too, added optimization INCF to stack
4015 pointer when stack parameter count is 1,
4016 * (genFunction, genEndFunction): refurnished and fixed to not using
4017 wreg for passing parameters when function has varargs or is
4018 reentrant, fixed bug with symbol name compare for generating
4019 functions in absolute address,
4020 * (pic16_storeForReturn): refurnished,
4021 * (genCmp): began writing a new version of the function, not ready
4022 yet, therefore it is disabled,
4023 * (genAssign): do not read code memory when assigning a function to
4025 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4026 array of characters, not pointer,
4027 * (pic16initialComments): in debug mode emit an .ident directive for
4029 * (_process_pragma): emit a new warning type (internal to pic16)
4030 when setting stack to default length, emit a similar warning when
4031 placing a function at absolute address and address is not word aligned
4032 * (_pic16_parseOptions): added 'return TRUE' statement,
4033 * (_pic16_linkEdit): if compiling a source, then add the source's
4034 file object, first in the list of objects to link,
4036 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4038 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4039 * src/pic/main.c : removed VC warning.
4040 * src/pic/gen.c : changed comment.
4042 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4044 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4045 reference to a deprecated symbol _GPTRREG was causing failure to
4046 link. Thanks G. M. Gallant for the info.
4048 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4050 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4051 comments for Bugs item #954788.
4053 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4055 * src/pic16/device.c (pic16_dump_gsection,
4056 * pic16_groupRegistersInSection): handle symbols declared to be in
4057 access bank differently,
4058 * src/pic16/gen.c (struct _G): added field resDirect,
4059 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4060 send values read from stack directly to result and don't allocate
4062 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4064 * (pic16_sameRegsOfs): NEW,
4065 * (freeAsmop): if _G.resDirect is set then do not mark registers as
4066 free because they were not allocated from temporary pool,
4067 * pic16_popRegFromString): workaround to fix a problem with
4068 allocating variables twice or never,
4069 * (genGenPointerGet): using PRODL instead of FSR0H,
4070 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
4072 * (genAssign): take advantage of the _G.resDirect flag,
4073 * (genCast): around line 11844, use mov2f instead of directly
4074 MOVFF'ing between operands to account for literal values,
4075 * src/pic16/genutils.c: some new debug functions for gpsim have been
4077 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
4078 float with integer part only,
4079 * src/pic16/main.c (_process_pragma): handle pragma udata access to
4080 place variables in access bank
4081 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
4082 updated sources to reflect recent changes in gen.c
4084 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
4086 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
4087 sources that searched for headers in installation path, now the
4088 device/include/pic16 is used,
4089 * src/pic16/glue.c (pic16glue),
4090 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
4091 .line directives if not in debug mode, this suppresses assembler's
4092 warnings for ignored directives
4094 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4096 * src/port.h: made reset_regparms prototype void parameter explicit.
4097 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
4098 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
4099 * doc/sdccman.lyx: documented warning disabling and how to use
4100 printf_large to make it print floats.
4101 * device/include/stdbool.h: NEW
4102 * device/lib/_atof.c,
4103 * device/lib/_divuint.c,
4104 * device/lib/_divulong.c,
4105 * device/lib/expf.c,
4106 * device/lib/printf_large.c,
4107 * device/lib/sincosf.c,
4108 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
4109 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
4110 a completely reentrant lib.
4112 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
4114 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
4115 * device/include/pic16/stdio.h: fixed bug with colon
4117 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
4119 * device/include/pic16/stdio.h,
4120 * device/include/pic16/stdlib.h,
4121 * device/include/pic16/math.h: NEW
4122 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
4123 declared as _naked to reduce overhead
4124 * device/lib/Makefile.in (target port-specific-objects-pic16):
4125 changed * to *.* so to ignore the CVS directory,
4126 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
4127 stacked variables back in stack,
4128 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
4131 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
4133 * .version: bumped version number to 2.4.5
4134 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
4135 * support/Util/SDCCerr.c (messages structure): added entry for
4138 Large cumulative patch for pic16 port and libraries.
4139 * device/include/pic16/sdcc-lib.h,
4140 * device/include/pic16/stdarg.h,
4141 * device/include/asm/pic16/features.h,
4142 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
4143 * device/include/pic16/float.h: changes reentrant keyword with
4144 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
4145 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
4146 updated target build-libraries to include objects from gptr,
4147 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
4148 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
4149 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
4150 all function headings,
4151 * src/SDCCmain.c: added global parameter userIncDirsSet,
4152 * (parseCmdLine): when option -I is encountered add directory to
4154 * src/version.awk: added space between control and long,
4155 * src/pic16/NOTES: added some notes for the port,
4156 * src/pic16/gen.c: added prototype for mov2fp function,
4157 * (fReturnpic16[]): properly named return value registers,
4158 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
4159 * (aopForSym): added code to handle symbols with onStack flag set,
4160 symbols onStack are allocated PTRSIZE bytes,
4161 * (aopFreeAsmop): handles special case where asmops are stack objects,
4162 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
4163 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
4164 added argument lock to trace flaws in allocating temporary registers
4165 when developing port,
4166 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
4167 * (pic16_popRegFromString): reenabled allocating a direct register
4169 * (assignResultValue): various beautifications,
4170 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
4171 referenced function argument,
4172 * (genIpush): reenabled to allow stacked arguments, handles only
4173 ic->parmPush iCodes,
4174 * (genCall, genPcall): major changes to allow for variable argument
4175 functions, fixed a bug with falsely restoring stack pointer after
4176 returning from call,
4177 * (genFunction): pending code for critical function,
4178 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
4179 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
4180 * (genNearPointerGet): fixed bug with indirect reading, was always
4182 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
4184 * (genAddrOf): rewrote code to take address of a stacked function parameter
4185 * (genCast): fixed casting to generic pointer type,
4186 * src/pic16/gen.h: added AOP_STA,
4187 * (struct asmop): added field stk,
4188 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
4189 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
4190 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
4191 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
4192 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
4193 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
4195 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
4197 * (pic16_port structure): generic pointer size is set to 3,
4198 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
4199 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
4201 * src/pic16/ralloc.c (allocReg): prevent allocating register when
4202 operand is an iTemp,
4204 2004-09-24 Martin Helmling <mh AT octo-soft.de>
4206 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
4207 * debugger/mcs51/simi.c: addapt new syntax of s51
4209 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
4211 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
4212 * src/pic16/pcode.c: commented out some calls to free() in order to
4215 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4218 * src/SDCCicode.c (isiCodeInFunctionCall),
4219 * src/avr/ralloc.c (selectSpil),
4220 * src/pic/ralloc.c (selectSpil),
4221 * src/pic16/ralloc.c (selectSpil),
4222 * src/ds390/ralloc.c (selectSpil),
4223 * src/hc08/ralloc.c (selectSpil),
4224 * src/xa51/ralloc.c (selectSpil),
4225 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4226 stack in the middle of a function call sequence (fixes bug #1020268)
4227 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4228 costs associated with the minimum switch case.
4230 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4232 * src/SDCC.lex: fixed bug #1030549
4234 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4236 * src/SDCCcse.h (struct cseDef),
4237 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4238 over a function call if the CSE is derived from a symbol whose
4239 address has been taken (fixes bug #1029883)
4240 * support/regression/tests/bug-1029883: a new regression test for
4243 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4245 * src/hc08/gen.c (emitinline): fixed bug #1029778
4246 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4247 to a cast object is no longer a syntax error ("fixes" bug #1030006,
4248 and starts toward RFE #905167)
4250 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4252 * src/pic16/gen.c (mov2f): New function to move an operand to
4253 another without considering if it is a literal or a register,
4254 * (pic16_sameRegs): don't check if they are both AOP_REG,
4255 * (AccRsh): removed andmask=0 lines,
4256 * (genLeftShift): duplicated to be improved in future versions,
4257 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4258 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4259 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4260 * (pic16initMnemonics): added initialization for POC_INFSNZW,
4261 * (insertBankSwitch): fixed inserting banksel directives algorithm
4262 for instructions that follow a skip instruction, this fixes a report
4263 for broken subtraction code generation,
4264 * src/pic16/ralloc.c (deassignLRs): do not free register if current
4265 iCode is a left op, just in case result and right share the same
4268 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4271 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4273 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4274 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4275 on 2004-09-12; it was buggy
4277 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4279 * src/SDCCsymt.h: removed RESULT_CHECK
4284 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4286 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4288 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4289 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4290 configuration values no more rejected by compiler, they are assigned
4291 to configuration registers with a warning message instead,
4292 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4293 the for-loop so last conf register is emitted too,
4294 * (_pic16_initPaths): link library libsdcc.lib by default,
4295 * (_hasNativeMulFor): modified test for multiplication according to
4296 Raphael Neider's remarks. Integer multiplication is also done with
4298 * device/include/pic16/pic18fregs.h: corrected type error in while
4299 testing and including 18f6720 header file
4301 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4303 * src/pic16/device.h (pic16_options): removed field use_crt,
4304 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4305 until an optimization to handle single bits is added,
4306 * (pic16_loadFSR0): moved before genUnpackBits,
4307 * (genAnd): some white lines removed,
4308 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4309 leave_reset flags in pic16_options when using crt modules,
4311 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4313 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4314 for bugs 898889 & 979599. Also used some safer print instructions.
4316 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4318 * src/pic16/device.h (pic16_options_t): added field use_crt,
4320 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4321 catch a probable future bug,
4322 * src/pic16/gen.c: aopIdx function commented out,
4323 * (genAssign): commented out old code which used aopIdx,
4324 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4325 code, added if conditionals to take into account the --use-crt
4326 command line options,
4327 * src/pic16/main.c (pic16_optionsTable): added new command line
4328 options, --use-crt= and --no-crt,
4329 * (_pic16_linkEdit): now the proper crt object is added in the
4330 linker command line except than when --no-crt is specified,
4331 * src/pic16/pcode.c,
4332 * src/pic16/pcode.h: added some structures and functions for a new
4333 optimization scheme to compansate for instruction overhead between
4334 same iCodes, this scheme is currently under development and is not
4336 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4338 * device/lib/pic16/startup/crt0i.c,
4339 * device/lib/pic16/startup/crt0iz.c: added global char variable
4340 __uflags to force the generation of an idata section
4342 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4345 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4346 * doc/sdccman.lyx: updated sdcc version to 2.4.4
4348 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4350 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4351 Frieder) and clarified the default code optimization mode
4353 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4355 * src/SDCC.lex (doPragma, process_pragma),
4356 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4357 "opt_code_size", and "opt_code_balanced"
4358 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4359 regrouped options by category, added support for category headers
4360 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4361 and "--opt-code-size"
4362 * doc/sdccman.lyx: documented these new options and pragmas
4363 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4364 preference into account
4366 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4368 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4369 geniCodePreDec): Fixed bug 904237 by generating a warning
4371 * src/SDCCerr.c: added warning W_SIZEOF_VOID
4373 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4375 * src/pic/device.c : When no max ram set validate full memory range.
4377 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4379 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4381 * device/lib/_gptrget.c,
4382 * device/lib/_gptrput.c: updated comment
4383 * device/lib/calloc.c,
4384 * device/lib/free.c,
4385 * device/lib/malloc.c,
4386 * device/lib/realloc.c: added LGPL, made them reentrant-safe
4387 * src/SDCCcse.c (cseBBlock),
4388 * src/SDCCicode.c (printOperand, geniCodeArray),
4389 * src/SDCCicode.h (struct operand): fixed bug 868103
4390 * support/regression/tests/bug-868103.c: added
4391 * src/SDCCast.c (searchLitOp),
4392 * src/SDCCcse.h (struct cseDef),
4393 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4394 * src/SDCCicode.h (struct operand),
4395 * src/SDCCsymt.h (struct sym_link),
4396 * src/avr/gen.c (hasInc),
4397 * src/ds390/gen.c (hasInc),
4398 * src/hc08/gen.c (genPlusIncr, hasInc),
4399 * src/mcs51/gen.c (hasInc),
4400 * src/pic16/glue.c (pic16_printIvalChar),
4401 * src/pic16/ralloc.c (regWithIdx),
4402 * src/xa51/gen.c (hasInc) : removed warnings
4403 * src/SDCCast.c (createBlock): added comment ???
4404 * src/hc08/ralloc.c: updated comments
4406 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4408 * doc/sdccman.lyx: updated section on switch statements, added
4409 section about semaphore locking
4410 * doc/Makefile: added option -info for latex2html
4411 * device/lib/_gptrget.c,
4412 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4414 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4418 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4419 maxram is less than 0x100.
4421 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4423 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4425 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4436 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4437 a jump table is the best form for a switch statement, including
4438 automatic insertion of missing cases to make the case range
4439 continuous. Developed in collaboration with Frieder Ferlemann.
4441 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4443 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4444 accumulator result if it needs sign extension
4446 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4448 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4450 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4452 * device/lib/gbz80/printf.c,
4453 * device/lib/z80/printf.c: removed define for NULL
4455 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4457 * as/xa51/xa_link.c,
4458 * device/examples/ds390/ow390/ad26.c,
4459 * device/examples/ds390/ow390/cnt1d.c,
4460 * device/examples/ds390/ow390/counter.c,
4461 * device/examples/ds390/ow390/ds2480.h,
4462 * device/examples/ds390/ow390/ds2480ut.c,
4463 * device/examples/ds390/ow390/findtype.c,
4464 * device/examples/ds390/ow390/gethumd.c,
4465 * device/examples/ds390/ow390/owllu.c,
4466 * device/examples/ds390/ow390/ownetu.c,
4467 * device/examples/ds390/ow390/swt12.c,
4468 * device/examples/ds390/ow390/swtloop.c,
4469 * device/examples/ds390/ow390/temp.c,
4470 * device/examples/ds390/ow390/temp10.c,
4471 * device/examples/ds390/ow390/thermo21.c,
4472 * device/examples/ds390/ow390/tinilnk.c,
4473 * device/examples/ds390/ow390/tstfind.c,
4474 * device/examples/serialcomm/windows/serial.cpp,
4475 * device/examples/serialcomm/windows/test_serialcomm.cpp,
4476 * device/include/reg51.h: fixed line endings for cvs
4478 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4480 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4481 packRegsForAccUse, packRegisters): new accumulator register
4483 * support/regression/ports/hc08/support.c (_putchar): suppress
4484 warning of unused variable
4485 * src/SDCCicode.c: added SWAP entry to codeTable
4487 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4489 * device/lib/sprintf.c: forgot to add this file before previous commit
4491 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4493 * src/pic16/gen.c (genPackBits): added operand right in function
4494 parameters, load result directly if p_type is POINTER (that is
4495 called by genNearPointerSet)
4496 * (genUnPackBits): added operand left in function parameters,
4497 * (genNearPointerGet, genNearPointerSet): prevent the loading of
4498 FSR0 if accessing bitfields,
4500 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4502 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4503 _print_format; updated printf, sprintf, vsprintf
4504 * device/include/asm/default/features.h: corrected comment/define
4505 * device/lib/Makefile.in: added sprintf.c
4506 * device/lib/libsdcc.lib: added sprintf module
4507 * device/lib/printf_large.c,
4508 * device/lib/vprintf.c,
4509 * device/lib/sprintf.c: totally refactored printf_large and vprintf
4511 * support/regression/Makefile: changed ALL_PORTS into a usefull default
4512 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4513 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4515 * support/regression/tests/zeropad.c: define idata as data for hc08
4517 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4519 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4520 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4521 labels are referenced at least once (even if a reference is not found)
4522 * src/hc08/gen.c (emitcode): set isComment flag for comments
4523 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4524 loads), rules 6a..6b (optimize jumps to return)
4526 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4528 * device/lib/acosf.c (acosf),
4529 * device/lib/asinf.c (asinf),
4530 * device/lib/atanf.c (atanf),
4531 * device/lib/ceilf.c (ceilf),
4532 * device/lib/cosf.c (cosf),
4533 * device/lib/coshf.c (coshf),
4534 * device/lib/cotf.c (cotf),
4535 * device/lib/fabsf.c (fabsf),
4536 * device/lib/floorf.c (floorf),
4537 * device/lib/log10f.c (log10f),
4538 * device/lib/logf.c (logf),
4539 * device/lib/sinf.c (sinf),
4540 * device/lib/sinhf.c (sinhf),
4541 * device/lib/sqrtf.c (sqrtf),
4542 * device/lib/tanf.c (tanf),
4543 * device/lib/tanhf.c (tanhf),
4544 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4545 replaced all instances of "reentrant" in the library functions
4546 defined in math.h with this macro.
4547 * support/regression/tests/float_trans.c: reenabled test for hc08
4549 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4551 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4554 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4556 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4557 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4558 multi-byte volatile operands are used
4559 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4560 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4561 initialization to area GSINIT0 so that it would always precede
4562 any static initializers in GSINIT
4563 * support/regression/tests/zeropad.c: fixed idata define for hc08
4564 * support/regression/tests/bug-927659.c,
4565 * support/regression/tests/float_trans.c: disabled tests for hc08
4566 pending missing library routines
4567 * .version: increased version number to 2.4.4 - hc08 port now passes
4571 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4573 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4574 * Makefile.common.in,
4576 * as/hc08/Makefile.in,
4577 * as/mcs51/Makefile.in,
4578 * as/z80/Makefile.in,
4579 * debugger/mcs51/Makefile.in,
4580 * device/include/Makefile.in,
4581 * device/lib/Makefile.in,
4584 * link/z80/Makefile.in,
4585 * packihx/Makefile.in,
4586 * sim/ucsim/main_in.mk,
4587 * sim/ucsim/avr.src/Makefile.in,
4588 * sim/ucsim/doc/Makefile.in,
4589 * sim/ucsim/gui.src/serio.src/Makefile.in,
4590 * sim/ucsim/hc08.src/Makefile.in,
4591 * sim/ucsim/s51.src/Makefile.in,
4592 * sim/ucsim/xa.src/Makefile.in,
4593 * sim/ucsim/z80.src/Makefile.in,
4595 * support/cpp2/Makefile.in,
4596 * support/librarian/Makefile,
4597 * support/makebin/Makefile: added DESTDIR to the install path proposed
4598 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4599 * doc/sdccman.lyx: added DESTDIR documentation
4601 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4603 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4604 instruction for interrupt handlers, use fast returns when returning
4605 from high priority interrupts
4607 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4609 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4611 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4612 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4613 bugs, ported much of Bernhard's code from mcs51
4614 * src/mcs51/gen.c (genSend),
4615 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4616 than one when calling a reentrant function
4617 * device/lib/_mullong.c: defined an alternate struct layout for big
4620 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4622 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4625 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4627 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
4628 are sane and complete before asking the port its prefered parameter
4629 passing method (fixes bug #1017633)
4630 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
4633 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4635 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
4636 problem in bitfields >= 8 bits.
4638 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4640 * src/SDCCsymt.c: undid changes that were not meant to be committed
4642 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4644 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
4646 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4648 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
4649 copied and wrong bit got inverted
4651 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4653 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
4654 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
4655 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
4656 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
4657 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
4658 assignments to bitfields at known addresses
4659 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
4660 reads from bitfields at known addresses
4661 * src/hc08/ralloc.c (packRegisters),
4662 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
4663 genhc08Code): optimize pointer get values used as conditionals
4664 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
4667 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4669 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
4670 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
4671 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
4674 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4676 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
4678 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4680 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
4683 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
4685 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
4687 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4689 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
4692 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4694 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
4696 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4698 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
4699 cases use more compact code.
4701 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
4703 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
4705 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4707 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
4709 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4712 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
4713 parameter of changePointer() from symbol* to sym_link*
4714 * src/SDCCast.c (decorateType): call changePointer() for CAST op
4715 * src/SDCCsymt.c (compareType): void* type is castable to other
4716 pointers, but not necesarily an exact match.
4717 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
4718 is no longer blindly treated as an exact match.
4719 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
4721 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
4723 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
4725 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
4730 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
4732 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
4736 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
4738 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4740 * src/mcs51/gen.c (emitcode): fixed bug #992819
4742 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
4744 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
4745 there's no need to make it worse
4747 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4749 * src/mcs51/ralloc.c (deassignLR),
4750 * src/ds390/ralloc.c (deassignLR),
4751 * src/hc08/ralloc.c (deassignLR),
4752 * src/z80/ralloc.c (deassignLR),
4753 * src/pic/ralloc.c (deassignLR),
4754 * src/pic16/ralloc.c (deassignLR),
4755 * src/avr/ralloc.c (deassignLR),
4756 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
4757 rlivePoint): fixed another part of bug #971834
4759 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4761 * src/z80/main.c: enabled "critical" keyword
4762 * src/z80/mappings.i,
4763 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
4764 functions (fixes bug #979646)
4765 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
4767 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4769 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
4772 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
4774 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
4775 doesn't disable too much optimizations
4777 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4779 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
4781 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
4783 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
4785 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4787 * src/pic/gen.c tidied up tabs
4788 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
4789 * src/pic/main.c tidied up tabs
4790 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
4791 * src/pic/pcoderegs.c tidied up tabs
4792 * src/pic/ralloc.c tidied up tabs
4794 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
4796 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
4797 to S_FIXED for pic16 port and when symbol is not in level 0,
4798 allocate for S_REGISTER storage class and pic16 port, too,
4799 * src/pic16/device.h: prototype for checkSym,
4800 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
4801 * (pic16_assignConfigWordValue): test the value and the mask to
4802 validate that the value is suitable for the configuration word,
4803 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
4804 collect extern declared symbols, don't emit symbol twice, check
4805 first if symbol is in publics set first,
4806 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
4807 * added command line '--fstack' which enables an experimental
4808 feature for stack access, too buggy to be used yet...
4809 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
4810 * (pic16_allocDirReg): when register has storage class S_REGISTER
4811 allocate in pic16_dynAccessRegs,
4812 * device/include/pic16/pic18f????.h: modified configuration word
4813 naming convention, words started as CONFIG0H but should be CONFIG1H
4815 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
4817 * device/include/mcs51reg.h: fixed bug 970993
4819 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
4821 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
4822 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
4823 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
4824 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
4825 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
4826 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
4827 error/warning numbers,
4828 added function setWarningDisabled()
4829 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
4830 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
4831 _memcmp.c _memmove.c calloc.c realloc.c free.c
4832 * support/regression/tests/malloc.c: added tests for new functionality
4833 * support/regression/tests/zeropad.c: added tests for truncated initializers
4834 and initialized char arrays starting with '\x0'
4835 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
4837 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
4839 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
4841 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4843 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
4844 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
4845 peephole 177.e. Thanks to anonymous
4847 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
4849 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
4850 function isn't used in the source but referenced as a
4851 variable initializer then declare it as extern in .asm file
4853 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
4855 * .version: increased version number to 2.4.3
4857 Adding version extension according to ChangeLog CVS revision
4858 * src/Makefile.in (target all): added dependency 'version.h'
4859 * (rule version.h): added rule to create version.h from ChangeLog,
4860 * (rule dep): added dependency version.h,
4861 * src/version.awk: AWK script to create version.h
4862 * src/SDCCdwarf2.c (dwWriteModule),
4863 * src/SDCCglue.c (initialComments),
4864 * src/SDCCmain.c (printVersionInfo): modified to write after
4865 version string the version extension number,
4866 * src/SDCCutil.c: included "version.h"
4867 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
4869 * src/SDCCutil.h: added prototype for getBuildNumber
4871 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
4872 includeDirsSet, too,
4873 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
4874 const char [] is found in function prototype...
4876 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
4877 moving to WREG with source is already in WREG,
4878 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
4879 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
4880 * (aopForSym): stack'ed symbols are partially supported, added
4881 if-clause to support symbols in FARSPACE,
4882 * (sameRegs): added test for AOP_ACC to see if registers are same,
4883 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
4884 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
4885 * (pic16_popRegFromString): will not allocate a new register if it
4886 doesn't find one by name, bug may have introduced...
4887 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
4888 * (genIpush): revived to use pic16 port's stack,
4889 * (genAddrOf): added incomplete case for stack'ed operand,
4890 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
4891 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
4892 can handle multibyte operands,
4893 * src/pic16/glue.c (pic16_printIval*): some debug info added,
4894 * (pic16initialComments): added message for MPLAB compatibility
4896 * src/pic16/main.h: prototype for pic16_mplab_comp,
4897 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
4898 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
4899 * (_pic16_linkEdit): NEW, handles link stage, transferred here
4900 because of increased complexity of procedure,
4901 * (_process_pragma): stack pragma changed to format 'stack pos len',
4902 emit symbol '_stack_end' to conform with gplink,
4903 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
4904 to search for register,
4905 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
4907 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
4908 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
4909 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
4910 case for PO_GPR_REGISTER,
4911 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
4912 dies, the new era is ahead !...
4913 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
4914 pic16_dynInternalRegs,
4915 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
4916 * (pic16_allocDirReg): minor optimizations and bug fixes,
4917 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
4919 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
4920 load stack and frame pointer with address of 'stack_end' symbol
4922 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
4924 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
4925 without source code but only variable initializers
4927 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
4929 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
4930 external are not declared as extern to reduce overhead while linking
4932 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
4934 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
4936 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
4938 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
4939 Yee Keat for the patch
4940 * src/SDCCast.c (decorateType): fixed bug #979599
4941 * src/ds390/gen.h: removed local fReturnSizeDS390
4942 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
4943 * src/ds390/gen.c (genAnd, genOr, genXor),
4944 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
4946 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
4948 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
4949 add relFilesSet to $3, manipulate $2 to handle linking of object
4950 files without source files in command line,
4951 * device/include/pic16 (all headers): added ID location macros,
4952 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
4953 entries for ID location bytes,
4954 * (pic16_assignIdByteValue): NEW,
4955 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
4956 added field dumpcalltree to pic16_options_t,
4957 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
4958 is used instead of pic16_Gstack_base_addr, check if (ifx) before
4959 emitting rFalseIfx label after check_carry label,
4960 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
4961 pic16_emitDIRegs), NEW
4962 * (pic16glue): dump .calltree file when option --calltree found,
4963 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
4964 * (_pic16_genAssemblerPreamble): emit ID locations after
4965 configuration registers,
4966 * (pic16_linkCmd): modifications of the link command,
4967 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
4968 * (pic16_pCodeInitRegisters): don't init stack registers,
4969 * (pic16_findPrevInstruction): fixed bug,
4970 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
4971 bug with immediate registers,
4972 * (buildCallTree): traces stack push and pop,
4973 * (pct2): dump also stack usage for each function,
4974 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
4975 * (pic16_allocDirReg): various modifications,
4976 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
4979 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
4981 * src/pic16/pcode.c: removed buggy double colon
4983 2004-07-01 Borut Razem <borut.razem AT siol.net>
4985 * support/scripts/sdcc.nsi: added include/pic16 to setup
4987 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
4989 * device/lib/Makefile.in: fixed bug in target objects-pic16,
4990 * device/lib/pic16/Makefile: prefixed with dash (-) command under
4992 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
4993 specific command line arguments. Also added sample lkr script
4994 for placing a variable at a specific memory bank.
4995 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
4996 at a specific memory bank,
4997 * (pic16_dump_isection): fixed bug which caused string literals to
4998 be omitted when dumping idata section,
4999 * (pic16_groupRegistersInSection): added code to handle registers
5000 in specific memory banks,
5001 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
5002 public, all references are renamed too,
5003 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
5005 * (pic16_storeForReturn): added case to handle when dest is WREG,
5006 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
5007 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
5008 pic16_rel_udata, check to see if that register is marked as being
5009 a member of a specific memory bank,
5010 * (pic16_printIvalCharPtr): added code to add string literals either
5011 to code or the idata sections,
5012 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
5013 also accept the 'udata' pragma,
5014 * src/pic16/main.h: new structure types sectName and sectSym
5015 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
5016 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
5017 * (pic16_findPrevInstruction): fixed, it returned nothing,
5018 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
5019 instruction combinations,
5020 * (pic16_FixRegisterBanking): heavily reorganised,
5021 * (pic16_AnalyzeBanking): if generating banksel directives is
5022 disabled, then don't call FixRegisterBanking at all,
5023 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
5025 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5027 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5029 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5030 Phuah Yee Keat <yk.phuah AT nestac.com>
5032 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5034 * src/pic16/glue.c (pic16createInterruptVect): function now emits
5035 correctly the IVT even if it is relocated to some other location
5037 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5039 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5040 * device/include/pic16/pic18f2220.h: NEW,
5041 * device/lib/pic16/libdev/pic18f2220.c: NEW,
5042 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5043 * src/pic16/device.c (struct Pics16): added info for 18f2220,
5044 * src/pic16/device.h (struct pic16_options): added ivt_loc and
5045 nodefaultlibs, ivt_loc is the location of the interrupt vector
5046 table, and nodefaultlibs signs that default libraries should not be
5047 linked in link stage,
5048 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5049 according to --ivt-loc argument,
5050 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5051 when pragma stack is found,
5053 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5055 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5056 256 (range check), 257 (do while), 258.a-f (bit banging
5057 f.e. on 3-wire SPI bus)
5059 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5061 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5062 variables used exclusively within a loop
5064 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5066 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
5068 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5070 * src/SDCClrange.c (computeClash): fixed bug #971834
5072 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5074 * src/mcs51/gen.c (genCmp): fixed bug #975903
5075 * src/hc08/gen.c (operandsEqu),
5076 * src/ds390/gen.c (operandsEqu),
5077 * src/z80/gen.c (operandsEqu),
5078 * src/pic/gen.c (operandsEqu),
5079 * src/pic16/gen.c (operandsEqu),
5080 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
5081 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
5083 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5085 * src/SDCCcse.c (cseBBlock): fixed bug #966963
5087 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
5089 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
5090 default case in switch statement,
5091 * glue.c (pic16_initPointer): expr is initialised via decoarteType
5092 to eliminate problem with initialisation of pointers, but problem
5094 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
5095 * (emitStaticSegment): removed various lines emitting debug info,
5096 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
5097 added processor registers for utilizing EEPROM,
5098 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
5099 configurable and set 8
5101 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
5103 * .version: increased version number to 2.4.2,
5105 Cumulative patch for pic16 port
5106 * src/pic16/device.c: changed scheme to dump initial values for
5107 variables in idata segment, all print_idata* functions were removed,
5108 now the pic16_printIval* will be called,
5109 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
5110 * _pic16_printPointerType, pic16_printPointerType,
5111 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
5112 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
5113 NEW, similar to the respective functions in SDCCglue.c,
5114 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
5115 way, emitting hex bytes,
5116 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
5118 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5120 * src/avr/ralloc.c (serialRegAssign),
5121 * src/xa51/ralloc.c (serialRegAssign),
5122 * src/pic/ralloc.c (serialRegAssign),
5123 * src/pic16/ralloc.c (serialRegAssign),
5124 * src/hc08/ralloc.c (serialRegAssign),
5125 * src/z80/ralloc.c (serialRegAssign),
5126 * src/ds390/ralloc.c (serialRegAssign),
5127 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
5129 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5131 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
5132 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
5134 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
5136 Cumulative patch for pic16 port:
5137 * src/pic16/device.h (typedef PIC16_device) modified fields for
5138 defining microcontrollers,
5139 * src/pic16/device.c: added new info for all devices in Pics16 array,
5140 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
5141 to be optimised out by the pCode optimiser,
5142 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
5143 specially, bug reported by G.M. Gallant,
5144 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
5145 as force'd so that cannot be optimised out by pCode optimiser,
5146 * src/pic16/pcode.c,
5147 * src/pic16/pcodepeeph.c,
5148 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
5149 they are disabled by default, but can be enabled explicit with
5150 command argument --denable-peeps, for testing,
5151 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
5152 --pomit-ivt in COMPILE_FLAGS
5154 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5156 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
5159 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5161 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
5163 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5165 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
5166 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
5168 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
5170 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
5171 would only assign 0x300001 register.
5173 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
5175 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
5176 in COMPILE_FLAGS. Thanks to G. Gallant for report.
5178 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5180 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
5182 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
5183 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
5184 added peephole 254 (left shift), 255 (jump table)
5186 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
5188 * device/lib/Makefile.in: removed comment line with model-pic16,
5189 * (target port-specific-objects-pic16): the libraries and objects
5190 are copied to the build directory form the device/lib/pic16/bin
5193 Cumulative patch concerning pic16 port:
5194 * library directory has been re-organized,
5195 * added support for PIC18F1220,
5196 * added headers and library sources for chips 18f1220,18f6520,
5197 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
5199 * configuration registers setting has changed, now each supported
5200 device has a complete description of the registers it uses,
5201 * all initialisations are moved to idata sections, these section
5202 can be absolute or relocatable,
5203 * fixed initialisation of codespace variables,
5204 * fixed warning about PCLATU and gpsim,
5205 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
5206 * (genAssign): use table reads when assigning from variables in codespace,
5207 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
5208 char/int variables placed in codespace,
5209 * (pic16_emitConfigRegs): NEW, emits a list with configuration
5210 registers set in .asm file, no need for --pomit-config-words anymore,
5211 * (pic16glue): some 8051 legacy segments are commented out
5212 (to be removed completely),
5213 * added support for alternative assembler and linker with --asm=
5214 and --link= command line arguments,
5215 * peepholes are disabled automatically in the port, no need to
5216 specify on command line,
5217 * port supports natively char/int/long multiplication, but converts
5218 all divisions to support functions,
5219 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5220 to the file set in variable $2,
5221 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5222 strings in ASCII format and not in hex,
5223 * ralloc.c (serialRegAssign): added a triplet of conditional calls
5224 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5225 allocate proper register if iCodes aren't temporary,
5227 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5229 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5231 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5233 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5236 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5238 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5239 computed address is reused
5240 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5241 multi-byte bitfields
5243 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5245 * src/z80/gen.c: (genArrayInit): must check for pointers too
5247 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5249 * support/regression/tests/zeropad.c: never meant to commit the
5250 nestedstruct test: removed, added check for GCC version
5252 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5254 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5255 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5256 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5257 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5258 bugs 928906 and 954082 half-empty initializers
5260 * src/SDCCsymt.c (getAllocSize): added for above fix
5261 * src/z80/gen.c (genArrayInit): fixed bug 741044
5262 * support/regression/tests/zeropad.c: added tests
5264 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5266 * src/pic16/device.c (pic16_dump_section): corrected bug which
5267 caused some symbols of the libraries to be misplaced
5269 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5272 * src/pic16/ralloc.h,
5273 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5274 to fix conflict with pic port
5276 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5278 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5279 externs configuration variables,
5280 * src/pic16/ralloc.h,
5281 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5282 prototype in header, commented out some debug messages
5284 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5288 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5289 for gpasm COFF object generation. Thanks to D. Hawkins for
5292 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5295 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5296 Brock for spotting this)
5297 * src/ds390/gen.c (genEndFunction),
5298 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5299 interrupt handler and critical. Disable push/pop optimizations when
5300 peephole optimizations disabled.
5302 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5304 Updated pic16 library sources and headers.
5305 * device/lib/pic16/pic18f*/ ,
5306 * device/include/pic16/*.h: modified to handle structured SFR
5309 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5311 * src/port.h (PORT structure): added hook initPaths, now each
5312 port can declare its own default search paths,
5313 which can been seen with the --print-search-dirs option,
5314 see pic16 port for example,
5315 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5316 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5317 * (doPrintSearchDirs): NEW, replaces in a central manner the
5318 printing of search dirs which was split in set*Paths functions,
5319 * (main): added call to port->initPaths and doPrintSearchDirs,
5324 * src/izt/tlcs900h.c,
5327 * src/pic16/main.c: modified port structures to reflect addition of
5330 * src/pic16/device.c (regCompare): registers are finally sorted by name,
5331 * (pic16_dump_section): for registers in same address reserve memory once,
5332 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5334 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5335 result is greater in size than right or left,
5336 * (pic16_genUMult8X8_8): there are some cases where the result can
5337 be 16 bits size, so handle these,
5338 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5339 * (pic16_outBitC): modified to emit pcodes,
5340 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5342 * (genDivOneByte): implemented algorithm to divide 8-bits,
5343 * (genCmp): uncommented goto, but issues still exist,
5344 * (genAnd): fixed a bug with variables >8bits,
5345 * (genPackBits): optimization added that uses BCF/BSF to change a
5347 * (genAssign): fixed bug when assigning floating point literals,
5348 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5349 __sdcc_gsinit_startup label,
5350 * src/pic16/main.c (_pic16_init): removed search directory
5352 * (_pic16_initPaths): NEW, used to initialise search directories,
5353 * (_hasNativeMulFor): support functions for all except char/int
5354 multiplication, and char division,
5355 * (PIC16_port struct): modified entry for native mul support,
5356 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5358 * (buildCallTree): call to register_usage is ifdef'ed out,
5360 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5362 * device/include/string.h: applied Stas Sergeev's patch to make this
5363 header file compatible with the preprocessor -Wundef option
5364 * src/SDCCmain.c (main): abort compilation if preprocessor reports
5365 failure (fixes bug #941458)
5367 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5369 * src/SDCCopt.c (killDeadCode): fixed bug #907733
5370 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5371 that the variable, not the function, should be static
5372 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5373 to be consistent with non-literal case
5375 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5377 * src/SDCCast.c (isConformingBody): fixed bug #949967
5378 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5379 convilong): fixed bug #952086
5381 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5383 * src/SDCCmem.c (allocVariables): fixed bug #955321
5385 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5387 * src/hc08/main.c (_hc08_genAssemblerEnd),
5388 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5389 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5390 completely eliminated the use of a temporary file
5391 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5392 when more than one file linked
5393 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5395 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5397 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5398 which fixes bug #543481
5399 * support/regression/tests/bug-751703.c: fixed comments left from a
5401 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5402 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5403 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5405 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5406 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5407 are now changed to underscores in moduleName
5409 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5411 * as/mcs51/lkmem.c: better fix for bug #954173
5413 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5414 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5416 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5417 * device/include/c8051f000.h,
5418 * device/include/c8051f120.h,
5419 * device/include/c8051f300.h,
5420 * device/include/c8051f310.h,
5421 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5424 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5426 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5427 and mailing lists, doc'ed --no-peep-comments, removed reference
5428 to knoppix (newest version has no LyX/LaTeX), other minor changes
5429 * src/SDCCglue.c (glue): save 2 bytes stack space with
5430 option --main-return. The ljmp could probably be avoided too
5432 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5434 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5436 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5438 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5439 * src/SDCCopt.c (isLocalWithoutDef),
5440 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5441 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5442 (credit to Maarten Brock for patch #949363, on which this is based)
5443 * support/regression/tests/bug-751703.c: some test cases of extern used
5444 within inner scopes.
5446 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5448 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5450 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5452 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5453 dwWriteLabel): fix to create valid debugger symbols even when
5454 the module name has non-alphanumeric symbols in it
5455 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5456 when a variable's allocation has been optimized away
5459 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5461 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5463 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5465 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5467 * src/z80/gen.c (z80_emitDebuggerSymbol),
5469 * src/pic/gen.c (pic14_emitDebuggerSymbol),
5471 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5473 * src/avr/gen.c (avr_emitDebuggerSymbol),
5475 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5477 * src/SDCCdebug.c (emitDebuggerSymbol),
5479 * src/port.h: added a debugger struct to the port struct. Added a
5480 callback for defining debugger symbols
5482 * src/SDCCast.c (createLabel),
5483 * src/SDCC.y (labeled_statement): mark all compiler generated labels
5486 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5487 iCode back to the ast for the function
5489 * src/hc08/ralloc.c (hc08_assignRegisters),
5490 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5491 unneeded fields from the regs struct.
5492 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5493 pushReg() & pullReg() functions instead of emitcode()
5495 * src/hc08/gen.c (genLabel, genhc08Code),
5496 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5498 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5501 * src/hc08/gen.c (genEndFunction, genhc08Code),
5503 * src/mcs51/gen.c (genEndFunction, gen51Code),
5505 * src/ds390/gen.c (genEndFunction, gen390Code),
5507 * src/z80/gen.c (genEndFunction, genZ80Code),
5510 * src/pic/gen.c (genEndFunction, genpic14Code),
5512 * src/pic16/gen.c (genEndFunction, genpic16Code),
5514 * src/avr/gen.c (genEndFunction, genAVRCode),
5516 * src/xa51/gen.c (genEndFunction, genXA51Code),
5518 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5519 specific code to cdbFile.c and out of the backend code generators
5521 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5522 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5523 starting address is now 0
5527 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5528 assembler directive for DWARF support
5529 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5533 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
5535 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5537 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5538 and inappropriate peephole optimization in jump tables
5540 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5543 * src/SDCCglue.c: sdccopt works for the hc08 port now
5545 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5547 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5549 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5551 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5553 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5555 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5559 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5560 comments from the peephole optimizer replacement rules
5561 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5563 * src/SDCCcse.c (updateSpillLocation),
5564 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5566 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5567 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5568 objects far pointers
5570 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5572 * src/SDCCsymt.h: a missing part of my last change
5573 * src/pic/ralloc.c (regTypeNum),
5574 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5576 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5579 * src/SDCCicode.c (aggrToPtrDclType),
5581 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5582 ptrPseudoSymConvert),
5583 * src/pic/ralloc.c (regTypeNum),
5584 * src/pic16/ralloc.c (regTypeNum),
5585 * src/hc08/ralloc.c (regTypeNum),
5586 * src/ds390/ralloc.c (regTypeNum),
5587 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5588 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5590 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5592 * link/z80/lkmain.c (afile),
5593 * as/hc08/lkmain.c (afile),
5594 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5595 prevent a pointer problem when a filename has no directory and
5596 no extension specified.
5598 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5600 * link/z80/lkmain.c (afile): allow periods in directory names
5601 * link/z80/lkmain.c (afile),
5602 * as/mcs51/lkmain.c (afile),
5603 * as/hc08/lkmain.c (afile): allow linker script file to have an
5604 extension other than ".lnk"
5605 * link/z80/lklex.c (getfid),
5606 * link/z80/lkmain.c (parse),
5607 * as/mcs51/lklex.c (getfid),
5608 * as/mcs51/lkmain.c (parse),
5609 * as/hc08/lklex.c (getfid),
5610 * as/hc08/lkmain.c (parse): Support comments in the linker script
5611 file on lines by themselves and after filenames
5613 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5615 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5617 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5619 * src/z80/peeph-z80.def: removed some peephole rules that don't
5620 work with multibyte arithmetic (fixed bug #937126)
5621 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5622 to registers and not global variables
5623 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5624 geniCodePreInc, geniCodePostDec, geniCodePreDec,
5625 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5626 checking for assignments not internally generated (fixed bug #931895)
5627 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
5628 structure member (fixed bug #930072)
5630 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5632 * src/SDCCmain.c (linkEdit),
5633 * src/hc08/main.c (_hc08_parseOptions),
5634 * as/hc08/Makefile.in,
5638 * as/hc08/lkrloc.c (relr, rele),
5639 * as/hc08/lkarea.c (lnkarea)
5640 * as/hc08/lkmain.c (afile, parse),
5641 * as/hc08/lkelf.c: support for ELF output
5642 * as/hc08/lks19.c (s19),
5643 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
5645 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5647 * as/mcs51/lkihx.c: Fixed bug #899105.
5649 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5651 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
5652 .dsp files from Unix to DOS.
5654 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5656 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
5657 function pointers; we have been compliant for several months now.
5658 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
5659 change that was accidently commented out
5660 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
5661 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
5664 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5666 * src/hc08/gen.c: output of all of the internal debugging information
5667 is now controlled by the D() macro; it is disabled by default
5669 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5671 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
5672 harder to keep the same registers during a CAST iCode
5673 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
5674 long via int can be done in a single cast, if the signedness is
5676 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
5677 putchar() in tinibios.c in ds390's library
5679 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5681 * src/SDCCast.c (decorateType): fixed bug #898889,
5682 cast result of a literal complement too
5683 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
5684 fixed check for bitfields
5686 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
5688 * src/SDCCicode.c (geniCodeLogic): made it static,
5689 (geniCodeLogicAndOr): added in order to fix bug #905492,
5690 (ast2iCode): fixed bug #905492
5691 * support/regression/tests/bug-905492.c: added
5692 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
5693 (processParms): fixed bug #927659: don't copy parms, this will clear
5695 * support/regression/tests/bug-927659.c: added
5697 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
5699 * src/SDCCast.c (addCast): don't cast float to char
5700 * device/lib/libsdcc.lib: added _memmove
5702 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
5704 * device/lib/large/Makefile: fixed parallel execution by
5705 replacing `make` by `$(MAKE)`
5707 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5709 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
5710 offsets (fixes bug #923936)
5712 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
5714 * device/lib/small/Makefile: fixed parallel execution by
5715 replacing `make` by `$(MAKE)`
5717 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5719 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
5721 2004-03-23 Scott Dattalo <scott AT dattalo.com>
5723 * src/pic/gen.c (genCpl): multi-byte complements were not working.
5724 * src/regression/Makefile: Regression test was not running.
5726 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5728 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
5729 complement if possible
5730 * src/SDCCval.c (valComplement),
5731 * src/SDCCicode.c (operandOperation): fixed complement of literal
5732 * support/regression/tests/onebyte.c (testComplement): added
5734 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
5736 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
5737 return an optimized tree; actually replace actParm with the new tree
5738 * src/SDCCast.h: added some parantheses to remove side effects
5739 * support/regression/tests/bug-920866.c
5741 2004-03-21 Scott Dattalo <scott AT dattalo.com>
5742 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
5743 Bit operands were not being handled properly in the pic14 port.
5744 (now src/regression/add.c passes again).
5746 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5748 * src/SDCC.y (labeled_statement): case and default no longer require
5749 a following statement (RFE #893037)
5751 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5753 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
5754 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
5755 disabled (fixes bug #916294)
5756 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
5757 "mov a,acc"; patch provided by Lenny Story
5758 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
5760 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5762 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
5764 * src/ds390/gen.c (genFunction, genEndFunction),
5765 * src/ds390/ralloc.c (ds390_assignRegisters),
5766 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
5767 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
5768 pushed if there are parameters passed on the stack. Also, a cleaner
5769 way to decide if r0/r1 should be pushed/popped. (Together they fix
5772 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5775 * device/lib/mcs51/crtpagesfr.asm,
5776 * device/lib/mcs51/crtxinit.asm,
5777 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
5778 to avoid confusion with Si Lab's SFRPAGE register.
5780 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5782 * src/SDCCglue.c (emitMaps): allow public sfr variables
5783 * src/SDCCglue.c (initialComments): include compiler build date
5784 with compiler version and put the timestamp of the generated
5785 assembly file on a serperate line to be less confusing.
5786 * src/port.h: added genInitStartup hook
5793 * src/z80/main.c: genInitStartup initialize as NULL (default to
5794 historical behaviour)
5795 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
5796 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
5797 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
5798 library instead of hard coding it into the compiler.
5799 * support/regression/ports/mcs51-stack-auto/spec.mk,
5800 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
5801 * device/lib/mcs51/Makefile,
5802 * device/lib/small/Makefile,
5803 * device/lib/large/Makefile,
5804 * device/lib/mcs51/crtpagesfr.asm,
5805 * device/lib/mcs51/crtstart.asm,
5806 * device/lib/mcs51/crtxclear.asm,
5807 * device/lib/mcs51/crtxinit.asm,
5808 * device/lib/mcs51/crtclear.asm,
5809 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
5810 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
5811 and into user configurable files.
5812 * device/lib/clean.mk: clean mcs51 directory too
5813 * support/regression/tests/longlit.c: added static to T1 declaration
5814 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
5815 accesses in the initialization code
5817 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5819 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
5820 OSCTRIMVAL as noted in bug #916008
5822 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5824 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
5825 in loops with multiple exits (reported as incorrect registers
5826 used by Martin Helmling in Sdcc-user list)
5828 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5830 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
5831 made ds390 register extensions look less like error messages
5833 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5835 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
5836 reported by Adam Wozniak in Sdcc-user list
5838 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
5840 * src/SDCCast.c (decorateType): fixed with bug and promotion in
5841 arithmetic optimizations, added debug output
5843 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
5845 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
5846 * sdcc.spec: updated and split sdcc into 3 rpms
5847 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
5848 needed for literals of LEFT_OP and '+'
5849 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
5850 introduced RESULT_TYPE_NOPROM
5851 (geniCodeMultiply): fixed logic for decision if mul is optimized to
5853 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
5854 limited promotion to int only for '*'
5855 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
5857 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
5859 * src/pic16/gen.c (genSkip),
5860 (genc16bit2lit), (gencjneshort): commented out
5861 (is_LitOp): new helper function, checks operand type
5862 (genCmpEq): rewritten
5864 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
5866 * support/regression/tests/bug-908454.c: added
5868 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
5870 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
5871 * src/SDCCicode.c (usualBinaryConversions): op needs int type
5872 (geniCodeCast): cosmetic, don't preserve bit storage class
5873 (geniCodeLeftShift): added promotion
5874 (geniCodeLogic): fixed regression
5875 * src/SDCCsymt.c (computeTypeOr): accept bits too
5876 (compareType): 2nd part of fix for bug #908454, needed for bitfields
5878 2004-03-07 Borut Razem <borut.razem AT siol.net>
5880 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
5882 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
5884 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
5885 version of pic16_genPackRegisters which does not check if ic is a
5887 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
5888 function cause string1.c regression test fails
5890 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
5892 * sim/ucsim/configure.in,
5893 * sim/ucsim/configure,
5894 * sim/ucsim/doc/Makefile.in: use docdir
5895 * src/SDCC.y: fixed sbit atrributes
5896 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
5897 * src/SDCCast.c (decorateType): |^& need special promotion handling
5899 * src/SDCCsymt.h: moved definition of RESULT_TYPE
5900 * src/SDCCsymt.h (computeType),
5901 * src/SDCCicode.c: computeType() needs op
5902 * src/SDCCsymt.c (checkTypeSanity),
5903 * doc/sddman.lyx: "plain" bitfields are unsigned
5904 * src/SDCCsymt.c (computeTypeOr): added
5905 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
5907 * src/SDCCval.c (val*): computeType() needs op
5908 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
5909 * support/regression/tests/onebyte.c: added tests for |^&
5911 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
5913 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
5914 for writing icode into asm output.
5916 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
5918 * src/pic16/device.c: added some debug lines enabled
5919 with macro DEBUG_CHECK,
5920 * src/pic16/genarith.c: more debug in genPlus,
5921 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
5922 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
5923 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
5924 * (aopForSym): onStack symbols are re-placed in data memspace,
5925 and onStack flag is cleared,
5926 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
5927 copy temporary pcodeop,
5928 * (genPcall): added warning for not updating PCLATU,
5929 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
5930 always true for pic16 port,
5931 * (genMultOneWord): NEW, supports integer multiplication,
5932 * (genMult): modified to call genMultOneWord,
5933 * (ifxForOp): added warning when return NULL,
5934 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
5935 flag is set before call to operandFromSymbol for implicit
5937 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
5938 options.intlong_rent are set by default,
5939 * (_hasNativeMulFor): modified to allow port generation of integer
5941 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
5942 set regtype to REG_SFR for all registers, restricting seting the
5943 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
5945 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5947 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
5948 more than 500 times in the regression tests
5950 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5952 * support/Util/SDCCerr.h,
5953 * support/Util/SDCCerr.c,
5954 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5956 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
5957 for symbol conflicts.
5958 * support/valdiags/tests/enum.c,
5959 * support/valdiags/tests/tentdecl.c,
5960 * support/valdiags/tests/struct.c: expect possible error messages
5961 referring to original symbol definitions.
5962 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
5964 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
5966 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
5968 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
5970 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
5972 * src/pic16/ralloc.c (newReg): fixed bug #908929
5974 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5976 * src/ds390/gen.c: added missing #include "main.h"
5978 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
5980 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
5981 checking if symbol is already in set,
5982 * src/pic16/device.h: prototype for checkAddSym,
5983 * src/pic16/gen.c: (_G): added entry interruptvector,
5984 * (assignResultValue): removed some commented out lines,
5985 * (genFunction): check for ISR via sym->type, absolute section for
5986 interrupt code is created via a new pBlock, the goto instruction is
5987 placed now correctly at the interrupt vector position, changed all
5988 references from ivec to _G.interruptvector,
5989 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
5990 is the interrupt is a high priority one, same for return from ISR,
5991 * src/pic16/glue.c: changed all calls of addSetHead for publics and
5992 externs to calls of checkAddSym,
5993 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
5994 pic16_pcode_verbose flag is set,
5995 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
5996 * src/pic16/pcoderegs.c: message about how many registers are saved
5997 will only be emitted if pic16_pcode_verbose flag is set,
5999 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6001 * src/ds390/ralloc.h,
6002 * src/ds390/ralloc.c (ds390_regWithIdx),
6003 * src/ds390/gen.c (emitcode),
6005 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
6006 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6007 ds390operandCompare, getRegsRead, getRegsWritten,
6008 initializeAsmLineNode): customized instruction size calculation for
6009 ds390, started basis for some register optimizations
6010 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
6011 corresponding assembly output
6012 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
6013 missing push/pop of r0/r1. Optimized push/pops
6015 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6017 * src/mcs51/main.c (instructionSize): fixed ACALL size
6018 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
6020 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
6022 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
6023 the sorting of rlist with NULL elements
6024 * (print_idataType, print_idata): NEW to create idata sections
6025 * src/pic16/device.h: idataSymSet new variable
6026 * src/pic16/gen.c (genFunction): fixed some bugs in string
6027 comparing, improved the absolute section creation for ISRs,
6028 added FSR0L/FSR0H in registers that are saved in an ISR,
6029 * (genInline): fixed the processing of inline snippets,
6030 now they undergo no process by the peephole optimizer
6031 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6032 are placed in idataSymSet,
6033 * (pic16emitStaticSeg): extern symbols are added in externs,
6034 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6035 switching when aboslute variables are placed in access bank memory
6036 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6037 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6038 commented out with #if,
6039 * (pic16_packRegisters): reintroduce the check for CAST because some
6040 symbols are not correctly handled,
6041 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6042 pCodeInstruction instead of pCode,
6043 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6044 pCodeAsmDir definition,
6045 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6046 directive, then the argument directive is emitted without the leading
6047 tab, hack for inline labels which must be in the first column,
6048 * (compareLabel,pic16_findNextInstruction),
6049 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6050 * (insertBankSwitch): modified for the new pCodeAsmDir,
6052 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6053 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6055 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6057 * (pushSide): commented out with #if,
6058 * (assignResultValue): fixed some typos in saving
6060 * (genPcall): FIXED and sync'ed with genCall,
6061 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6062 * (genNearPointerGet): fixed to handle some more cases,
6063 implementation scheme via table reads,
6064 * (genConstPointerGet): modified to access code memory correct,
6065 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
6066 and improved to handle some cases
6067 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
6068 instead of "RETLW" for init data
6069 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
6070 not IN_DIRSPACE, work around to reduce bank switching when aboslute
6071 variables are placed in access bank memory (<0x80 and >=0xf80),
6072 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
6073 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
6074 TBLWT_POSTDEC,TBLWT_PREINC
6075 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
6076 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
6078 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
6079 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
6080 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
6081 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
6083 2004-02-29 Borut Razem <borut.razem AT siol.net>
6085 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
6086 support/Util/findme.h, support/Util/system.h: enhance binary relative
6087 search for lib and include by using findProgramPath()
6089 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6092 * src/SDCCpeeph.c (pcDistance),
6094 * src/mcs51/ralloc.h,
6095 * src/mcs51/ralloc.c (mcs51_regWithIdx),
6097 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
6098 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6099 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
6100 size calculation port specific, started basis for some register
6102 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
6103 missing push/pop of r0/r1. Optimized push/pops
6104 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
6105 * device/lib/_modsint.c (_modsint),
6106 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
6107 and stack version so regression tests pass
6109 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
6111 * src/Makefile.in (dep): include SLIBOBJS in dependency check
6112 * src/SDCCast.c (decorateType): catch another small optimization
6114 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
6115 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
6116 modified to finally use computeType() all over SDCC,
6117 see Feature Request #877103
6118 * src/SDCCval.h: cosmetic
6119 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
6120 valCompare(); regression tested in muldiv.c
6121 * support/regression/tests/muldiv.c (testMod): mod sign follows
6124 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
6126 * src/SDCCast.c (decorateType): fixed bug #902362
6127 * doc/INSTALL.txt: fixed install instructions for win32
6129 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
6131 * device/include/Makefile.in (install): fixed by replacing spaces
6134 * doc/INSTALL.txt: updated for release
6135 * doc/sdccman.lyx: added warning for --xstack being buggy
6137 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
6139 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
6140 to eliminate build warnings.
6141 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
6143 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
6144 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6146 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
6147 removed -penable-stack, added comment for stack pragma, added
6148 warning for not initializing the stack/frame registers, removed
6149 comment at interrupts section
6151 Stack is made permanent, there is no ability to disable stack usage.
6152 * src/pic16/device.h,
6153 * src/pic16/device.c: removed all references to USE_STACK macro,
6154 * src/pic16/device.c (pic16_dump_section): when no elements in
6155 rlist, free rlist before return,
6156 * (pic16_dump_int_registers): NEW, internal registers are a new set
6157 of general purpose registers reused by each function,
6158 * (checkAddReg): returns 1 if registers is added to set,
6159 * (pic16_groupRegistersInSection): when a registers is of type
6160 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
6161 * src/pic16/device.h: memRange and Assigned Memory are deleted,
6162 SRCASECMP macro is moved here from device.c
6163 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
6164 PO_PCLATU, PO_PRODL, PO_PRODH,
6165 * (pic16_pCodeOpType, genMinus,
6166 changed compares to "a" register, with AOP_ACC,
6167 * (pic16_genPlus): fixed some bugs and indented properly,
6168 * (pic16_addSign): changed size to size+offset in the MOVWF
6170 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
6171 multiply 8-bit operand by literal, result is 8-bit,
6172 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
6173 multiply 2 8-bit operand, result is 8-bit,
6174 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
6176 * src/pic16/gen.c: changed accUse to contain WREG only,
6177 * (pic16_emitcomment): renamed to pic16_emitpcomment,
6178 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
6179 true, do not use immediate addressing any more unless sym is a
6180 pointer in codespace,
6181 * (aopForRemat): do not use immediate addressing when symbol not in
6182 codespace and when symbol's address is requested,
6183 * (aopOp): for-loop in if(sym->accUse) is modified for the new
6185 * (aopGet): added case for AOP_ACC and don't return "accumulator
6186 bug" but WREG instead,
6187 * (popGetTempReg): pushes contents of temporary register in stack,
6188 * (popReleaseTempReg): pops contents of temporary register from
6189 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
6190 * (pic16_popGet): separated case AOP_ACC to return register WREG
6191 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
6192 or PO_IMMEDIATE and initializes their instance/offset appropriately,
6193 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
6194 the use of immediate pointers to certain cases only.
6196 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
6197 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
6198 * (assignResultValue, genCall, genRet): modified to use the new
6199 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
6200 genPcall is still broken,
6201 * (genFunction): added code to create 'A' type pBlocks when
6202 interrupt functions are generated, code not extensively tested yet,
6203 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
6204 * (genEndFunction): modified so ISRs pop stored registers from stack,
6205 * (genMultOneByte): cleanup,
6206 * (AccRsh): added flag andmask, to and result with appropriate mask,
6207 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
6208 * (genDataPointerGet): fixed and reenabled its use,
6209 * (genNearDataPointerGet): bugs fixed,
6210 * (genDataPointerSet): bugs fixed,
6211 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
6212 pic16_DumpSymbol, pic16_DumpOp,
6213 * src/pic16/genutils.h: function prototypes for the above functions,
6214 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6216 * (pic16emitRegularMap): many many many improvements, but needs a
6218 * src/pic16/main.c: enable_stack in pic16_options is removed,
6219 * (_pic16_parseOptions): removed command line options -penable-stack,
6220 * (_process_pragma): emit stack symbol only when stack pragma is
6222 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6223 redirected to FSR0L/FSR0H pair,
6224 * (pic16_get_op, pic16_get_op2): modifications and improvements,
6225 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6226 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6228 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6229 * (dumpPicOptype): NEW,
6230 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6231 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6232 with movff instruction,
6233 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6234 added pic16_int_regs, some packRegsFor* functions are commented out,
6235 because produce errors,
6236 * src/pic16/NOTES: minor modifications
6238 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6240 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6241 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6243 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6244 * as/mcs51/lkaomf51.c: fixed bug #895763
6246 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6248 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6250 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6252 * doc/sdccman.lyx: added details about the HC08 storage classes and
6253 interrupts, fixed the register usage info for z80 & gbz80
6255 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6257 * doc/sdccman.lyx: added more pic16 port documentation
6258 * device/include/pic16/: added header pic18fregs.h
6260 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6262 * doc/sdccman.lyx: added Vangelis' contribution
6264 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6266 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6267 extend to the next CALL or PCALL, not just to the next CALL.
6269 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6271 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6273 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6275 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6276 bug #895752 and a better fix for bug #716790
6278 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6280 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6282 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6284 * doc/sdccman.lyx: minor changes, minor changed
6286 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6288 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6289 which can't handle SDCC_NEWONEBYTEOPS,
6290 (geniCodeMultiply): removed conversion from mult to shift for pic14
6293 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6296 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6297 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6298 thus fixing bug #895406
6300 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6302 * device/lib/_modsint.c,
6303 * device/lib/_modslong.c: sign follows divisor only
6304 * src/hc08/gen.c (genMultOneByte): if result size is 1,
6305 signs or signedness can be ignored
6306 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6307 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6308 added optimization for IFX,
6309 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6311 reenabled optimization for IFX, which was removed on 2004-01-11
6312 * src/SDCCast.h: added return type IFX
6313 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6314 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6315 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6316 SDCC_OLDONEBYTEOPS selects the old behaviour
6317 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6318 changed again and commented promotion rule
6319 * src/SDCCval.c (valDiv): promotion no longer necessary
6320 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6321 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6323 * support/regression/tests/onebyte.c: added
6325 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6327 * gen.c (genInline): reverted to old code for assemnling inline
6328 code because of bug reported James Chadd
6330 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6332 * ralloc.h: missing declarations from previous patch,
6333 seems that patch for ralloc.h was never applied, fixed
6335 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6336 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6340 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6341 indirect addressing. Marked FSR0 as deprecated
6342 * gen.c (pointerCode): commented out, not needed now
6343 (pic16_popGet2p): new MOVFF helper function
6345 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6346 (shiftRLong): removed duplicate debugging info
6348 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6350 * src/ds390/gen.c (genNearPointerGet),
6351 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6352 optimization with bits, but not bitfields.
6353 * src/ds390/ralloc.c (packRegisters),
6354 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6356 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6358 * src/SDCCcse.c (algebraicOpts): copy operands before modification
6360 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6363 * src/SDCCicode.c (operandFromSymbol),
6364 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6365 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6366 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6367 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6368 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6369 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6371 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6372 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6373 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6374 * src/SDCCsymt.c (newSymbol),
6375 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6378 * src/SDCCval.c (newiList): fixed bug #885705
6380 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6382 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6383 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6385 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6387 * device/include/c8051f120.h,
6388 * device/include/c8051f300.h,
6389 * device/include/c8051f310.h: added/updated header files for Silicon
6390 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6391 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6392 in new section Submitting patches
6394 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6396 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6397 genFarPointerGet, genCodePointerGet, genGenPointerGet,
6398 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6400 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6401 genFarPointerGet, genCodePointerGet, genGenPointerGet,
6402 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6404 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6405 genFarPointerGet, genCodePointerGet, genGenPointerGet,
6406 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6408 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6409 genFarPointerGet, genCodePointerGet, genGenPointerGet,
6410 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6411 genGenPointerSet): fixed bug #892400
6412 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6413 to eliminate build warnings.
6414 * src/SDCCast.c (processParms),
6415 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6417 * support/valdiag/valdiag.py: added GCC to the list of defines active
6418 when compiling with gcc
6420 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6422 * support/Util/SDCCerr.h,
6423 * support/Util/SDCCerr.c,
6424 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6425 with an incomplete type (fixed bug #883734)
6426 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6428 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6430 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6432 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6434 * src/SDCCast.c (decorateType),
6435 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6436 function pointer implementation
6437 * support/regression/tests/funptrs.c: added tests to verify both forms
6438 of function pointers work correctly. Added tests to verify parameters
6439 are passed in the correct order.
6441 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
6443 * device.c (regCompare): registers are sorted by ascending
6444 address and increasing size,
6445 * main.c (_pic16_finaliseOptions): removed the declaration
6446 of compiler macro MCU. Now a macro of the format pic18fxxxx
6447 will be defined from the command line
6449 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6450 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6452 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6453 PCOP_RLCF was overwritten!
6454 * gen.c (genSkip): commented out calls to pic16_emitcode,
6455 * (genCmpEQ): fixed "long" compares, only high word did get compared,
6457 * (genRRC): added debugging info,
6458 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6459 overwritten while shifting,
6460 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6461 overwritten while shifting,
6464 * (shiftLLeftOrResult),
6465 * (shiftRLeftOrResult),
6467 * (shiftLLong): Implemented with pic16_emitpcode
6468 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6469 * (genLeftShift): Fixed bug, operand for shift by variable always
6470 was "and"ed with 0x0f,
6471 * (genLeftShiftLiteral),
6473 * (genRightShiftLiteral): added debugging info,
6474 * (genrshFour): added comment,
6475 * (genRightShift): determined signedness from operand "left"
6478 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6480 * src/SDCCicode.c (geniCodeParms),
6481 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6482 function pointers, fixed function pointer bugs #861242 and #861896
6484 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6486 * device/include/c8051f000.h,
6487 * device/include/c8051f120.h,
6488 * device/include/c8051f300.h: added header files for Silicon
6489 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6491 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6493 * src/SDCCast.c (processParams): added new type flow and restructured
6494 (gatherAutoInit): added new type flow
6495 (addCast): cosmetic changes
6496 (getLeftResultType): added new type flow for array indices, patch
6497 provided by Stas, see FR #877103
6498 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6499 array index patch by Stas
6500 * src/SDCCast.h: added prototype getResultTypeFromType()
6502 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6503 * src/pic/glue.c (pic14emitStaticSeg),
6504 * src/pic16/glue.c (pic16emitStaticSeg),
6505 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6506 for initialization of symbols
6507 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6508 * support/Util/SDCCerr.h:
6509 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6510 * .version: bumped version number to 2.3.8
6511 * device/include/Makefile.in (install),
6512 * doc/Makefile (install): changed to 'rm `find ...`' construct to
6515 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6517 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6518 Slade Rich fixed an optimization bug
6519 * src/pic/pcodepeep.c,
6520 * src/pic/pcoderegs.c
6521 * doc/Makefile (install): added test for directory
6523 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6525 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6526 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6527 * src/pic/ralloc.c (getRegPtr, getRegGpr),
6528 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6529 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6530 * as/mcs51/asexpr.c (term),
6531 * as/hc08/asexpr.c (term): fixed bug #887146
6533 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6535 * src/z80/gen.c (genMult): handle single byte result product
6536 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
6537 DUMMY_READ_VOLATILE (fixed bug #886367)
6539 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6541 * support/regression/tests/libmullong.c: fixed logic, on little endian
6542 hosts we ended without a mullong_wrapper()
6544 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6546 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6547 virus/worm forged address usage.
6549 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6551 Fixed promotion, it should be done on AST level:
6552 * src/SDCCast.c (addCast): added promotion to int
6553 (decorateType): updated call to upCast()
6554 * src/SDCCicode.c (geniCodeLeftShift): removed call to
6555 usualUnaryConversions()
6557 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
6559 * support/regression/tests/literalop.c (mulWrapper): Added a
6560 wrapper to remove integer overflow warnings.
6562 * support/regression/tests/float_trans.c: Made work on host.
6564 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6567 * support/regression/generate-cases.py (main): Changed from inline
6570 * doc/Makefile (install): Changed to depth first to get rid of
6571 missing directory install warning.
6573 * as/Makefile (install-doc): Made work on Mac.
6575 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6577 * src/SDCCast.c: added an additional type flow in decorateType() of
6578 opposite direction, see feature request #860006; it's enabled at runtime
6579 by setting the environment variable SDCC_NEWTYPEFLOW
6580 * src/SDCCast.h: changed prototype of decorateType()
6581 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6582 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6583 'char' to 'int' can be omitted, if both operands are 'unsigned char';
6584 see feature request #877103
6585 * src/SDCCval.c: updated call of decorateType()
6586 (valBitwise): fixed bug #882876
6587 (valMinus): added promotion
6588 (valLogicAndOr): result is unsigned
6589 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6590 * src/SDCCsymt.c (computeType),
6591 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6592 must not cause an unsigned operation
6593 * src/pic/glue (pic14emitRegularMap),
6594 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6596 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6598 * src/pic/pcode.c (PCodeID): commented out left over debug code
6600 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6602 * support/valdiag/tests/overflow.c: added shift tests
6610 * src/pic/pcodepeep.c,
6611 * src/pic/pcoderegs.c,
6613 * src/pic/ralloc.h: applied patch from Slade Rich;
6614 added support for multiple code pages and multiple RAM banks on the
6615 PIC 14 port. The ASM files now no longer simply assume all the
6616 code / RAM are in the same page / bank. This means the linker can
6617 safely allocate code/RAM of separate ASM files to different pages/banks.
6618 * doc/sdccman.lyx: added Slade's tips
6619 * src/mcs51/peeph.def: fixed bug #880768
6621 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6623 * src/hc08/ralloc.c (rematStr): fixed bug #879282
6624 * src/SDCCast.c (decorateType): fixed bug #880197
6626 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
6628 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
6631 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
6632 strtof is not part of C89 and isn't included with Mac OS X.
6634 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6636 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
6637 shiftL2Left2Result): fixed bug #879326
6638 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
6639 (genMultOneByte): fixed bug in signed vs unsigned multiplication
6640 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
6641 address fetch for clr instruction
6642 * device/lib/hc08/_mulint.c: created optimized assembly version
6643 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
6645 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
6647 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6648 proposed in FR #877103
6650 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6652 * src/SDCCval.c (cheapestVal): added missing checks
6653 * src/SDCCicode.c (usualBinaryConversions): fixed condition
6654 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
6656 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
6658 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
6661 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
6663 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
6664 loaded with the linker search paths (-L arguments) and the libraries
6665 to be linked with the current source (-l arguments). Changes
6666 currently will affect only the pic16 port.
6667 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
6668 include path the port specific paths and port specific libraries,
6669 * gplink command now contains the $3 argument,
6670 * src/pic16/device.h,
6671 * src/pic16/device.c,: structure PIC_device is made public and
6672 renamed to PIC16_device, the same for variable Pics which is renamed
6673 to Pics16. Updated all references to them.
6674 * src/pic16/glue.c (pic16glue): corrected bug with code
6675 initialization which bypassed the variable initializations block.
6677 * device/lib/pic16/Makefile.rules: removed --penable-stack from
6678 COMPILE_FLAGS and added the --nostdinc option
6680 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6682 * device/include/mc68hc908jb8.h: Register defs for another member
6683 of the hc08 family. Contributed by Bjorn Bringert - thanks!
6685 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
6687 Documenting changes from previous commits.
6688 * configure.in (version 1.56),
6689 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
6690 when generating output files to configure the pic16 library,
6691 but now I've commented it out, since gputils aren't installed in the
6692 SF compile farm, so library won't compile
6694 * device/lib/Makefile.in (version 1.56): initially I've added in
6695 target 'all' the prerequestive 'model-pic16' so it compiled the
6696 pic16 library, but now I've commented it out for the same reasons
6698 * added targets 'model-pic16' and 'objects-pic16' to compile the
6700 * added target 'port-specific-objects-pic16' to handle the
6701 generated libraries and copy them into the build/ directory
6702 * added target 'clean-intermediate-pic16' to clean intermediate
6703 files into pic16 directory
6704 * in target 'installdirs' added line to create directory pic16 in
6705 the installation path
6707 * device/include/Makefile.in (version 1.11): in target 'install'
6708 added lines to copy all header files to installation path,
6709 * in target 'installdirs' added line create directory for pic16
6710 headers in the installation path
6712 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
6714 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
6717 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
6720 * device/lib/configure.in,
6721 * device/lib/configure: fixed for autoconf 2.57
6723 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6725 * src/z80/main.c (_parseOptions): fixed the portmode= command line
6726 option so that it actually works. Made it specific to the z80, since
6727 the gbz80 doesn't have these kinds of I/O ports.
6729 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6731 * device/include/z180.h,
6732 * device/lib/_memcpy.c,
6733 * device/lib/_memmove.c,
6734 * device/lib/_mulint.c,
6735 * device/lib/ser_ir.c,
6736 * device/lib/ser_ir_cts_rts.c,
6737 * device/lib/_strcmp.c,
6738 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
6739 * src/z80/main.c (_process_pragma): add support for pragmas bank and
6740 portmode; added deprecation warning for bank= and protmode= forms.
6741 Also, guard against buffer overflow.
6742 * src/z80/gen.c (aopGet): generate better code for sfr banked read
6744 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6746 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
6747 changed interrupt vector table generation to only emit declared vectors.
6748 * device/include/Makefile.in: added missing backslash
6749 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
6751 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6753 Mainly changes to support compilation of the device libraries
6754 * src/pic16/device.c: stack is allocated via symbol and not
6755 via literal number. The symbol is placed in the corresponding
6756 position of the data ram
6757 * (pic16_dump_section): relocatable and absolute uninitialized
6758 data are now emitted in sorted order to reduce section naming,
6759 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
6760 weren't marked as being in the access bank,
6762 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6764 Added portion of GNU PIC Library under the directory
6765 device/include/pic16 and device/lib/pic16. These files
6766 contain the declarations of SFRs for the PIC18Fxx2 devices.
6767 The directory is initialized via configure from toplevel.
6769 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
6771 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
6772 the spilllocations to be compared correctly
6774 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6776 * src/SDCCast.c (decorateType): fixed bug introduced today
6778 2004-01-12 Borut Razem <borut.razem AT siol.net>
6780 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
6781 doc/sdccman.lyx: upper case pragmas are deprecated
6783 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6785 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
6786 in simpler and even better code
6788 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
6790 * src/SDCCicode.c (operandOperation): fixed bug #874819
6791 * src/SDCCast.c (decorateType): fixed
6792 char foo (unsigned long ul) { return ul > 0; }
6794 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6796 * doc/sdccman.lyx: Moved and added some sections, small changes
6797 all over. Telling LaTeX to be less strict with word spacing
6798 to better keep the right margin. Changed some notes about
6799 maintainance of the ports in section 3.2.1 - is it OK like this?
6801 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6803 SDCC source changes:
6804 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
6805 convilong): modified to inform the pic16 port that builtin functions
6808 PIC16 PORT specific changes:
6809 * src/pic16/device.c pic16_dump_equates() added,
6810 processor registers declared internally by the port are emitted in
6811 the translation as equates,
6812 * src/pic16/gen.c: inline code is passed unprocessed to the
6814 * (pic16_popGetLit2): fnuction modified to take second operand as
6815 pCodeOp pointer and not as literal,
6816 * (popRegFromIdx): prefixed with pic16_,
6817 * (pic16_popCombine2): modified to receive already allocated pCode
6819 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
6820 * (genFunction): initializes local stack frame and pushes on stack
6821 all the registers used by this function,
6822 * (genEndFunction): restores all registers from stack and restores
6824 * src/pic16/glue.c (pic16emitRegularMap): various changes and
6826 * (pic16glue): changed the program startup sequence,
6827 * added new dbName code 'A' for functions placed in absolute section
6828 * src/pic16/main.c: added function attribute _naked,
6829 * added pragma 'code' to place a fnuction at an absolute address,
6830 * added command line arguments --debug-ralloc and --pcode-verbose,
6831 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
6832 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
6833 * (pic16_newpCodeOpLit2): modified to take the second operand as
6835 * (pic16_printpBlock): modified to emit each function in a separate
6837 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
6838 UPPER for immediate operands,
6839 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
6841 * src/pic16/peeph.def: all peepholes with movff are commented out,
6842 because there is a problem in the pcode peep optimizer,
6843 * src/pic16/ralloc.c: the register allocator can now reuse local
6844 function symbols for another function. This saves register usage.
6845 * src/pic16/ralloc.h: added flag isLocal in structure regs,
6847 Added file src/pic16/NOTES with information about program writing on
6848 the current port version.
6850 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6852 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
6853 and peephole 252 (array access)
6855 2004-01-09 Borut Razem <borut.razem AT siol.net>
6857 * src/SDCCmain.c : fixed #872250: -l command line defined library
6858 files are scanned before standard library files
6860 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6862 * src/SDCCast.c (decorateType): fixed bug #874046
6864 2004-01-09 Borut Razem <borut.razem AT siol.net>
6866 * support/scripts/sdcc.nsi: remove previous installation
6868 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6870 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
6871 bytes for last interrupt vector (mcs51)
6872 * sdcc.spec: fixed typo
6874 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6876 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
6877 gen51Code): more efficient parameter receive for --model-large
6880 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6883 * src/z80/main.c: added missed needLinkerScript flags (more than
6884 one port structure defined in these file)
6885 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
6888 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
6890 * src/SDCCmain.c: removed various references to DEFAULT_PORT
6891 * src/port.h: added flag needLinkerScript in port->linker
6892 structure to inform whether to create a .lnk file or not,
6900 * src/z80/main.c: changed appropriately to configure
6901 needLinkerScript flag
6903 * src/pic16/gen.c (genAddrOf): fixed bug #863624
6904 * src/pic/glue.c: added variable udata_section_name to
6905 override default uninitialized data segment definition for
6906 devices only with SHAREBANK memory (reported from Erik Epetrich)
6907 * (pic14emitOverlay): modified to emit a commented overlay segment
6908 directive when no overlay data exist
6909 * (picglue): modified to emit uninitialized data segment
6910 according to udata_section_name
6911 * src/pic/main.c (_pic14_parseOptions): added command line
6912 options --udata-section-name=[name] to override default
6913 udata definition name
6914 * modified _linkCmd and _asmCmd to include compiler passed
6915 arguments via -W option
6916 * src/pic16/main.c: added $l in _asmCmd, changed extension for
6917 object file from '.rel' to '.o' in port->linker structure,
6918 changed size of fptr from 2 to 3 in port structure
6920 2004-01-07 Borut Razem <borut.razem AT siol.net>
6922 * support/scripts/sdcc.nsi: update PATH
6923 * support/scripts/sdcc.ico: craeted
6925 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
6927 * device/include/Makefile.in: fix install
6928 * doc/Makefile: fix install
6930 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6932 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
6934 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
6935 how the function variable allocation summary is displayed; also
6936 include information about variables allocated to the overlay
6939 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6941 * as/mcs51/lkmain.c: Help about -Y option
6942 * as/mcs51/lkarea.c: Fixed gcc warnings
6944 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6946 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
6948 * support/valdiag/tests/overflow.c: added
6949 * src/SDCCast.c (decorateType),
6950 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
6951 LEFT_OP (left shift)
6953 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6955 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
6956 (default behaviour).
6958 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6960 A python script to validate compiler diagnostic messages. It can be
6961 used to verify that sdcc complains about bad c source code and
6962 gives a good location of the error.
6963 * support/valdiag/Makefile,
6964 * support/valdiag/valdiag.py,
6965 * support/valdiag/tests/*
6967 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6969 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
6970 * src/SDCCsymt.c (newEnumType),
6972 * support/Util/SDCCerr.c,
6973 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
6975 * support/regression/tests/enum.c: added test for enum values that
6976 require at least 2 bytes of storage.
6978 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6980 * src/common.h: added ifndef/define/endif macros
6981 around the header file.
6982 Bug reported from Jesus Calvino-Fraga
6984 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6986 * sdcc.spec: updated
6987 * device/include/Makefile.in: don't install CVS directories
6988 * device/lib/Makefile.in: added removal of CVS directories after install
6989 * doc/Makefile: fixed install, added local_icons
6990 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
6991 * src/mcs51/gen.c (genRightShift): fixed bug #870788
6992 * src/ds390/gen.c (genRightShift): fixed bug #870788
6993 * src/SDCCast.c (decorateType): fixed bug #870781
6995 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6997 PIC16 port related changes:
6998 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
6999 added variable stackPos,
7001 * gen.c: genCall, assignResultValue: added support for
7002 pushing/retrieving function parameters to/from stack,
7003 genFunction,genEndFunction: setup stack frame for the
7005 genAddrOf: will be changed according to bug 863624
7007 * added files genutils.c and genutils.h which contain gen*
7008 debugged and optimised functions extracted from gen.c
7010 * glue.c: added variable 'externs' which holds extern symbols,
7011 pic16emitRegularMap: is modified to properly handle relocatable
7012 symbols under the new scheme,
7013 pic16createInterruptVect: is modified
7014 pic16printPublics: is modified to emit 'global' assembler directives,
7015 added pic16_printExterns to print extern symbols,
7016 pic16glue: initializes stack/frame pointer in the beginning of
7017 the assembly output. Temporary hack, will be corrected later,
7018 because gplink yet does not support stack and SDCC does not
7019 yet support a type of crt0.o object to create the final binary.
7021 * Removed many lines that contain 8051 legacy code.
7022 * The code is finally placed under a 'code' directive.
7023 * Added port specific options.
7025 * _process_pragma: simplified since now we do not need *special*
7026 include file to define SFR registers. But a separate header
7027 will be needed. This will be developed later.
7028 * _pic16_parseOptions: added, parses port specific options:
7029 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7030 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7031 --preplace-udata-with=
7033 * _pic16_setDefaultOptions: modified to initialize section names,
7034 but hack is temporarly out of order since it needs improvement.
7035 * _pic16_genAssemblerPreamble: configuration words are emitted by
7036 their address instead of their name. This part is incomplete and
7037 supports only the 18Fxx2 devices. Other devices will emit an error
7038 during assembly since they do not contain the same set of config
7040 * _pic16_genIVT: is modified,
7042 * pcode.c: added definitions for some hardware registers that are needed
7044 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7045 All PCI entries are updated. Now LFSR is supported.
7046 * Removed pic16_pciTRIS is mentioned by mdubuc in source
7047 * added pic16_newpCodeOpLit2 to support instructions with
7048 two literal arguments
7049 * pic16_pCode2str: corrected code that emits assembler instructions
7050 with two literal operands and those that have an access bit modifier
7051 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7052 this fixes a bug which caused some labels to be lost, when an
7053 assembler directive was added, i.e. banksel,
7054 * pic16_FixRegisterBanking: improved logic that causes the insertion
7056 * InlineFunction: functions that are called once, are not any more
7057 inlined. This can be a port option in the future,
7059 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7061 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7062 hold the corresponding uninitialized symbols,
7063 * pic16_allocProcessorRegister: registers have explicit marked the
7065 * pic16_allocInternalRegister: registers are explicit marked as
7067 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
7068 processing list, so bit registers were lost,
7071 * ralloc.h: added field 'accessBank' and original symbol operand
7072 in register definition,
7073 * removed the field isMapped from register definition,
7075 ** Several functions have been removed from various sources:
7076 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
7077 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
7078 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
7079 pic16_assignRelocatableRegisters
7081 ** others have been introduced:
7082 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
7083 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
7085 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
7087 * support/scripts/inc2h.pl: changed definition of BIT_AT
7088 to emit 'sbit at' instead of 'bit at'. This was a request.
7090 PIC16 port related preliminary changes:
7091 * gen.c: prefixed function popRegFromString with
7092 pic16_ and all references to it corrected
7093 * pcode.c: all pic16_pc_* hardware registers prefixed
7094 with underscore (_),
7095 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
7096 * ralloc.c: newReg(): when register is REG_SFR then
7097 set address to rIdx,
7098 pic16_allocProcessorRegister(): marks register wasUsed=0
7099 pic16_writeUsedRegs(): added a call to assign processor
7100 registers via pic16_assignFixedRegisters
7102 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7104 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
7105 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
7106 variables in unused register banks. Also the SSEG is placed
7107 wherever there is enough space for it, and IDATA can be anywhere
7108 in internal RAM. For now compile using -Wl-Y[stack_size].
7109 The mem file is different for this option as well, since it
7110 makes no sense of talking about DSEG lenght.
7112 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
7114 * src/SDCClrange.c: fixed bug 869095 that caused segfault
7115 in certain cases, e.g. when ROM assignment, patch provided
7116 from Albert den Haan.
7118 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
7120 Many signedness and type propagation fixes:
7121 * src/SDCCicode.c: made geniCodeCast() static
7122 replaced SPEC_ by IS_ (cosmetic)
7123 (operandOperation): fixed div and mod operation
7124 (usualBinaryConversions): added support for promotion of char
7125 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
7126 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
7127 (geniCodeAdd): an array index will stay unsigned, even if promoted
7129 (geniCodeArray): ditto
7130 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
7131 * src/SDCCsymt.c (computeType): added more support for char;
7132 promotion of char is selectable by promoteCharToInt, fixed signedness
7134 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7135 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7136 * src/SDCCval (val*): replaced signedness calculation by
7138 rearranged if-branches (cosmetic)
7139 (valShift): added warning W_SHIFT_CHANGED
7140 (valCompare): fixed problem with different types
7141 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
7142 * support/regression/tests/literalop.c: added many cases
7143 * support/regression/tests/ast_constant_folding.c: changed finally to
7145 * .version: new year, new version: 2.3.7
7146 * src/SDCCmain.c (main): applied patch #866468
7147 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
7148 provided by Scott Bronson
7149 * doc/sdccman.lyx: updated documentation for sdcdb
7150 updated and added chapter tips
7152 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7154 * src/SDCCsymt.h: missing from yesterday's commits
7156 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7158 * src/SDCC.y (struct_or_union_specifier),
7159 * support/Util/SDCCerr.c,
7160 * support/Util/SDCCerr.h: verify that struct & union tags are used
7163 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7165 * src/SDCCglobl.h: missing from yesterday's commits
7167 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7169 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
7170 sft_attributes, struct_declaration, parameter_declaration,
7171 type_name, start_block, declaration_list),
7172 * src/SDCC.lex (check_type): support redefinition of typedef names
7174 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7176 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
7177 aligned xdata arrays. Erik helped me with the if clause.
7179 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7181 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
7184 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7187 * src/SDCCast.c (newAst_),
7189 * src/SDCCicode.c (ast2iCode, newiCode),
7191 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
7192 expr, statement, expression_statement, selection_statement,
7193 iteration_statement, expr_opt, jump_statement): foundation for tracking
7195 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
7198 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7200 * support/Util/SDCCerr.c,
7202 * src/SDCCast.c (createCase, createDefault, decorateType),
7203 * src/SDCClabel.c (labelUnreach),
7204 * src/SDCC.y (labeled_statement, jump_statement): More improvements
7206 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
7207 (with thanks to Stas Sergeev)
7208 * device/include/time.h,
7209 * device/lib/time.c (CheckTime): suppress unreachable code warning
7211 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7213 * src/SDCCast.c (createIvalCharPtr),
7214 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7216 * support/regression/tests/nullstring.c: tests for these two bugs
7218 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7220 * support/Util/SDCCerr.h,
7221 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7222 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7223 about storage class and 'at' used inside struct or union
7224 * src/SDCCBBlock.c (iCodeFromeBBlock),
7225 * src/SDCCcse.c (ifxOptimize),
7226 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7227 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7228 printIval, emitStaticSeg, emitOverlay),
7229 * src/SDCClabel.c (deleteIfx),
7230 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7231 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7232 gatherAutoInit, processParms),
7233 * support/Util/SDCCerr.h,
7234 * support/Util/SDCCerr.c (werrorfl): Support for better error location
7235 reporting for post-parse errors.
7237 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7239 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7240 implicit casts via union; they don't work on big endian systems
7241 (possible fix for bug #861138)
7243 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7245 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7246 * src/mcs51/main.c: fixed the fix for bug #737001
7248 2003-12-15 Borut Razem <borut.razem AT siol.net>
7250 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7252 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7254 * support/makebin/makebin.c: put output in binary mode
7256 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7258 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7259 xdata and data memory on startup. Set the environment variable
7260 SDCC_NOGENRAMCLEAR to disable this.
7261 * src/mcs51/peephole.def,
7262 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7263 (allows non-interrupt and interrupt code to safely compete for a resource
7264 without the non-interrupt code having to disable interrupts)
7266 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7268 * src/SDCCicode.c (geniCodeAdd),
7269 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7270 with valFromType if type might be a pointer and host is big endian).
7271 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7272 types, not just integer types.
7273 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7274 multiply defined with mismatching "at" address.
7276 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7278 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7279 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7280 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7281 with embedded nulls (fixed bug #753752)
7283 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7285 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7286 Apparently this did not see much testing (endless loop)
7288 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7290 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7292 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7294 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7295 gracefully handle NULL memmap pointers
7297 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7299 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7300 instead of deleting the iCode when an operand is volatile
7301 * src/z80/gen.c (genDummyRead),
7302 * src/mcs51/gen.c (genDummyRead),
7303 * src/ds390/gen.c (genDummyRead),
7304 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7306 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7307 * src/SDCC.y: fixed bug #850420
7309 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7311 Applied z80 i/o port patch from Peter Townson and fixed some operators
7312 to better handle operands in A register.
7313 * device/include/z180.h
7319 * src/z80/peeph-z80.def
7323 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7325 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7327 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7329 * device/lib/hc08/_mullong.c: Removed extra #endif
7331 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7333 * sim/ucsim/hc08.src/inst.cc,
7334 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7336 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7337 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7338 * device/include/stdarg.h: fixed varargs for hc08
7339 * device/lib/Makefile.in,
7340 * device/lib/hc08/Makefile,
7341 * device/lib/hc08/_mulint.c,
7342 * device/lib/hc08/_mullong.c: fixed some endian problems
7344 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7346 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7347 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7348 * device/lib/_gptrget.c,
7349 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7351 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7353 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7354 * src/SDCCast.c (astErrors): fixed bug #846007
7355 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7357 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7359 * src/SDCCast.c (decorateType): disabled a transformation I added in
7360 revision 1.188 (access to fields of a structure at an absolute address);
7361 it breaks with bitfields, extern declarations, and gcse analysis.
7362 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7363 could be assigned through a pointer, so don't complain.
7364 * src/SDCCast.c (astErrors),
7366 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7368 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7370 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7371 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7372 output of __config directives, since gpasm now supports them
7373 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7374 pre-processor macro, i.e. -DMCU=p18f452
7375 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7376 and modified to handle 'cast' icode similarly to '=' icode
7377 * src/pic16/device.h (typedef struct PIC_device): added field
7378 'extMIface' to indicate that chip has external memory interface
7379 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7380 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7383 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7385 * src/SDCC.y (pointer): fixed bug #846006
7386 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7387 * src/SDCCast.c (decorateType): fixed bug #846009
7388 * src/ds390/peeph.def,
7389 * src/ds390/gen.c (genAnd, genOr),
7390 * src/mcs51/peeph.def,
7391 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7393 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7395 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7402 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7406 * src/SDCCbitv.c: added function to free a bitvector
7408 * src/SDCClrange.c: added function to recompute the liveranges
7410 * src/ds390/ralloc.c,
7411 * src/hc08/ralloc.c,
7412 * src/mcs51/ralloc.c,
7414 * src/pic16/ralloc.c,
7415 * src/xa51/ralloc.c,
7416 * src/z80/ralloc.c: recompute the liveranges after register packing
7418 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7420 * src/SDCCloop.c (newInduction): fixed bug #845630
7422 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7424 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7425 inadvertantly left behind from my 2003-11-12 change
7427 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7429 Updated headers I neglected to commit yesterday.
7433 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7435 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7436 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7437 * src/SDCCopt.c (eBBlockFromiCode),
7438 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7439 the creation of the key hash table from the sequencing so it can be used
7440 earlier (for some GCSE bug fixes still pending)
7442 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7444 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7445 * support/regression/tests/addsub.c: testing genPlus shortcut
7447 2003-11-15 Borut Razem <borut.razem AT siol.net>
7449 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7451 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7453 * src/SDCCcse.c (cseBBlock): fixed bug #527779
7454 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7455 ordering is immaterial.
7456 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7458 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7460 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7461 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7462 (SIGSEV) of bug #840381
7463 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7464 unlink new file before rename if new and old filenames are the same)
7466 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7468 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7469 uninitialized variables) for the mcs51. Set environment variable
7470 SDCC_GENRAMCLEAR to test.
7471 xdata initialization slightly shorter
7473 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7476 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7477 #838241 & 780691 (basicly the same bug)
7478 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7479 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7481 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7483 * src/SDCCmain.c (linkEdit): "fix" #834252
7485 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7487 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7489 * src/SDCC.y: fixed bug #819403
7491 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7493 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7494 the reentrant attribute.
7495 * src/hc08/gen.c (genPackBits): added missing stack readjustment
7496 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7498 * src/SDCCast.c (decorateType): fixed bug with storage class not being
7499 updated during pointer dereference; f.e. ~(((char *)1)*) was being
7500 erroneously reduced to a literal.
7501 * src/hc08/ralloc.c (packRegisters, rematStr),
7502 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7505 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7507 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7508 * doc/sdccman.lyx: changed from 'article' to 'book'
7509 * doc/Makefile: readded test_suite_spec and cdbfileformat
7511 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7513 * device/include/stdlib.h: include malloc.h to comply with ANSI
7514 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7516 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7518 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7519 * doc/clean.mk: also remove *.out files
7520 * doc/sdccman.lyx: some additions, larger top/bottom margins
7522 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7524 * src/SDCC.y: fixed bug #837365
7525 * support/regression/tests/bitopcse.c
7526 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7527 a symbol (might be valop instead)
7528 * device/lib/Makefile.in: added errno.c to HC08SOURCES
7529 * device/lib/clean.mk: added hc08 to the cleaning list
7531 2003-11-04 Borut Razem <borut.razem AT siol.net>
7533 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
7535 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7536 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
7537 malloc is declared in standard stdlib.h
7539 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7541 * device/lib/hc08/Makefile: need to clean .rel not .o files
7542 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7544 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7554 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7555 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7556 tests (which uses the port's oclsExpense function)
7562 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7564 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7566 * src/SDCCcse.c (ifxOptimize),
7567 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7568 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7569 deleting the IFX iCode.
7570 * src/hc08/ralloc.c: reduced unneeded slocs
7571 * src/hc08/gen.c: fixed bug in asmopToBoolean
7573 2003-11-04 Borut Razem <borut.razem AT siol.net>
7575 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7576 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7577 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7578 transferred to configure
7580 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7582 Use headers defined in the C[++] standards:
7583 * sim/ucsim/gui.src/serio.src/fileio.cc
7584 * sim/ucsim/gui.src/serio.src/frontend.cc
7585 * sim/ucsim/gui.src/serio.src/main.cc
7586 * sim/ucsim/gui.src/serio.src/posix_signal.cc
7587 * support/Util/NewAlloc.c
7593 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7595 * Added MSVC projects for hc08 assembler and linker:
7596 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7597 /as/hc08/link_hc08.dsp
7599 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7601 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7603 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7605 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7607 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7609 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7611 2003-10-31 Borut Razem <borut.razem AT siol.net>
7613 * support/cpp2/cpplib.h,
7614 support/cpp2/cpplib.c,
7615 support/cpp2/cpplex.c,
7616 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7617 to switch _asm block preprocessing on / off. Default is
7618 #pragma preproc_asm +
7620 2003-10-31 Borut Razem <borut.razem AT siol.net>
7622 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7623 when outputting comment blocks (when executed with -C option) and
7624 _asm (SDCPP specific) blocks
7626 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7628 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
7630 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
7632 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
7634 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
7636 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
7637 * src/SDCCast.c (decorateType): fixed bug #832664
7639 2003-10-31 Borut Razem <borut.razem AT siol.net>
7641 * support\cpp2\cpplex.c: fixed for SDCPP:
7642 comments(when executed with -C option) and _asm blocks
7643 were included even if they where in skipped #if block.
7644 Applied solution from GCC cpp 3.3.2
7646 2003-10-31 Borut Razem <borut.razem AT siol.net>
7648 * src/SDCC.lex: sdcc now understands both formats:
7649 '# <line_number> <file_name>' and
7650 '#line <line_number> <file_name>'
7651 * support/cpp2/cppmain.c: sdcpp now generates the standard
7652 '# <line_number> <file_name>' instead of former
7653 '#line <line_number> <file_name>'
7655 2003-10-30 Borut Razem <borut.razem AT siol.net>
7657 * support/cpp2/cpphash.h,
7658 * support/cpp2/cpplib.h
7659 * support/cpp2/cpplex.c,
7660 * support/cpp2/cppmain.c,
7661 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
7663 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7665 Fixed a number of problems revealed by bug #827883.
7666 * src/SDCCloop.c (loopInvariants): Spill location of the
7667 result operand should be recomputed if extracted from
7668 a loop. Also, don't extract assignments of an iTemp
7670 * src/SDCCast.c (isConformingBody): loop reversal should
7671 not occur if the control variable is involved with a
7672 relational operator.
7674 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7676 * .version: bumped to 2.3.6 to reflect the big improvements
7677 made by Erik and Klaus. Thanks!
7679 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
7681 Replaced the livrange code.
7682 * src/SDCClrange.c: added new LR code
7684 * src/SDCCBBlock.h: removed remainig parts from old LR code
7685 * src/ds390/ralloc.c,
7686 * src/ds390/gen.c: minor fixes to make it work with new code
7688 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7693 * src/hc08/ralloc.c: Fix various warnings related to the hc08
7694 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
7695 (tweaked fix for bug #818696)
7697 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7699 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
7701 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7704 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
7705 * src/mcs51/gen.c (gencjneshort),
7706 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
7707 more efficient (per Scott Bronson's suggestion)
7709 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7711 Extended the semantics of the critical keyword to include
7712 individual statements. See RFE #827755 and #799831
7717 * support/Util/SDCCerr.c
7718 * support/Util/SDCCerr.h
7723 2003-10-19 Borut Razem <borut.razem AT siol.net>
7725 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
7727 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7729 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
7731 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
7732 and predecrement operand is displayed
7734 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7736 * src/SDCCval.c (valMinus): fixed bug #826041
7738 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7740 Some hc08 related updates that I missed earlier
7741 * sim/ucsim/stypes.h
7742 * support/regression/ports/hc08/spec.mk
7744 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7746 New target "hc08" for the Motorola 68hc08 family of micros
7754 * sim/ucsim/hc08.src/*
7755 * sim/ucsim/configure.in
7756 * src/ucsim/configure
7757 * sim/ucsim/packages_in.mk
7760 * device/include/mc68hc908qy.h
7762 * device/lib/Makefile.in
7763 * support/regression/ports/hc08/*
7764 * support/regression/Makefile
7766 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7768 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
7770 * src/ds390/gen.c (genCast): fixed bug #821957
7772 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7774 * device/lib/logf.c: "fixed" overlay bug
7775 * support/regression/ports/host/spec.mk: added m library
7776 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
7777 * support/regression/tests/float_trans: added (for Eric)
7779 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
7781 * src/mcs51/gen.c (genCpl): fixed bug
7782 http://sf.net/mailarchive/message.php?msg_id=6263915
7784 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
7786 * src/SDCCast.c (decorateType): added extended constant folding
7787 * src/SDCCsymt.c (computeType): cleanup
7788 * src/SDCCval.c (valShift): minor optimization
7789 * support/regression/tests/ast_constant_folding.c: added
7791 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7793 * src/SDCCmain.c: removed some unintended changes
7795 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7797 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
7798 * src/z80/gen.c: fixed part of bug #817589
7799 * src/SDCCsymt.c (checkFunction): fixed bug #817895
7801 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
7803 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
7814 * src/ds390/ralloc.c
7816 * src/mcs51/ralloc.c
7818 * src/pic16/ralloc.c
7821 * src/z80/gen.c: removed unused label "release:"
7823 2003-10-06 Borut Razem <borut.razem AT siol.net>
7825 * src/SDCC.lex: removed definition of unused variables
7826 save_optimize and save_options
7828 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
7830 * clean.mk: removed '=' in "-maxdepth=1"
7831 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
7832 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
7834 2003-10-06 Borut Razem <borut.razem AT siol.net>
7836 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
7837 my_unput() replaced by unput()
7839 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
7841 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
7842 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
7843 type-punned pointer will break strict-aliasing rules"
7844 Old LR behaviour is again default; Klaus' LR can be choosen by
7845 defining the environment variable LRKLAUS
7849 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
7850 * clean.mk: fixed removal of files in bin/CVS/
7851 * device/lib/clean.mk: fixed removal of directories small and large
7852 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
7854 * src/SDCCval.c: removed superflous test for pedantic
7856 2003-10-05 Borut Razem <borut.razem AT siol.net>
7858 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
7859 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
7860 message "unmatched #pragma SAVE and #pragma RESTORE"
7862 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7864 * doc/sdccman.lyx: various additions and updates (interrupts, inline
7865 assembly, critical functions, atomic, nojtbound)
7867 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
7869 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
7875 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7878 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7880 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7882 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7883 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
7884 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
7886 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7888 * src/z80/gen.c (genRet): fixed bug #524753
7889 * src/z80/gen.c (genCast): fixed internal error on cast from
7891 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
7892 fix for bug #477835 to the z80
7893 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
7894 for tracking iCodes in the peephole optimizer for z80
7896 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7898 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
7899 the other part of bug #814548
7900 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
7902 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
7904 * src/SDCCcse.c: fixed part of bug #814548
7906 2003-09-28 Borut Razem <borut.razem AT siol.net>
7908 * src/asm.c: rewrite of printILine() to use temporary file instead
7910 * src/xa51/main.c: commented out declaration of int rewinds
7912 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7914 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
7916 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7918 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
7919 * src/asm.c (printILine): Fixed bug #811015
7921 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7923 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
7926 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7928 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
7929 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
7930 to correctly handle general case of AOP_PAIRPTR
7931 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
7933 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7935 * src/mcs51/ralloc.c (fillGaps),
7936 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
7937 register positioning bug)
7939 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
7941 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
7943 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7945 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
7946 genCodePointerGet, genGenPointerGet, genFarPointerSet,
7947 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
7948 (ralloc doesn't intentionally do this now, but perhaps later)
7949 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
7950 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
7951 register positioning bugs (Fixed bug #762602 and #795325)
7952 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
7954 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
7955 lines that --i-code-in-asm generates
7957 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7959 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
7960 trying to fclose a FILE* that was already closed.
7962 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7964 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
7965 of const struct should be treated as if const themselves)
7967 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
7969 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
7971 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7973 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
7974 Unix (/n) and DOS (/r/n) line terminations.
7976 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7978 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
7981 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7983 * src/mcs51/gen.c (genFunction, genEndFunction),
7984 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
7985 and restore of EA so that stack offsets to parameters are
7986 correct when using both critical and reentrant/stack-auto.
7987 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
7988 size (can be triggered in error if sloc is shared between
7989 different sized objects)
7990 * device/include/float.h: fixed macros to explicitly use
7991 unsigned long where needed
7993 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7995 Feature req. 799831: added code to allow nesting of critical functions
7996 * src/mcs51/gen.c (genFunction, genEndFunction)
7997 * src/ds390/gen.c (genFunction, genEndFunction)
7999 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8001 * src/SDCCsymt.c (sclsFromPtr),
8003 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
8004 support for standard C idiom of memory mapped variables; for
8005 example, *((xdata int*)0x1234) = 1 is now internally equivalent
8006 to xdata int at 0x1234 tempvar = 1.
8007 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
8008 provided by Akiya ISHIDA
8010 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
8012 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
8013 * src/SDCCval.c (constVal): added reduction from int to char
8014 * src/SDCCval.c (valMult, valDiv): fixed sign handling
8015 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
8016 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
8018 * support/regression/tests/shifts.c: fixed
8020 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8022 * src/z80/gen.c (genXor): Fixed bug #805445
8024 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8026 Fixed bug #621531 (const & volatile confusion in the type chain).
8027 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8028 refer to the const or volatile state of the pointer itself.
8040 * src/pic16/ralloc.c
8041 * support/regression/tests/const.c
8043 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8045 When checking for duplicated modules, use absolute paths
8046 instead of relative paths. Files changed:
8051 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8053 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8055 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8057 * device/include/string.h: added size_t typedef, changed
8058 prototypes to use size_t, eliminated separate reentrant and
8059 non-reentrant declarations, added _memmove declaration
8060 * device/lib/_memcpy.c: changed to use size_t instead of int,
8061 changed /4 to >>2 to avoid division library call
8062 * device/lib/_memcmp.c,
8063 * device/lib/_memset.c,
8064 * device/lib/_strncat.c,
8065 * device/lib/_strncpy.c,
8066 * device/lib/_strncmp.c: changed to use size_t instead of int
8067 * device/lib/_memmove.c: new file (fixed bug #772294)
8068 * device/lib/Makefile.in: added _memmove.c
8069 * device/lib/z80/asm_strings.s: fixed bug #772290
8070 * support/regression/tests/bitfields.c: attempt to fix host assertion
8071 failure on amd64-unknown-linux2.2
8073 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8075 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
8076 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
8077 * as/z80/asmain.c (main): fixed bug #801766
8079 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
8081 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
8084 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8086 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
8087 reported in bug #800609
8089 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
8091 * Top header beautifications in src/pic16 directory:
8092 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
8093 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
8094 pcoderegs.h, ralloc.c, ralloc.h
8095 * main.c: added top header and GPL license notice
8096 * pcode.c: fixed the if-conditional warning
8098 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
8100 * device/lib/_mullong.c: replaced int by short for gcc
8102 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8104 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
8105 and JUMPTABLE iCodes properly now (worked by accident before)
8106 * src/mcs51/gen.c (leftRightUseAcc),
8107 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
8108 iCode properly now. Use getSize instead of nRegs since a & b
8109 aren't part of the nRegs tally.
8111 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
8113 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
8114 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
8115 before instructions that use the _STATUS register
8117 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
8119 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
8120 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
8121 fetching of the pointer
8122 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
8123 copied from genNearPointerSet()
8124 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
8125 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
8126 If they pop r0/r1 they must be called in the opposite order than aopOp().
8127 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
8128 (resp. --stack-auto), prepared for --xstack
8130 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8132 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
8134 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
8136 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
8137 these ports have their own __sdcc_external_start()
8139 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
8141 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8142 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
8143 type for bits was changed. It resulted in bit variables becoming
8144 global, which is not permitted in PIC 14 assembly output.
8146 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8148 * doc/sdccman.lyx: various additions and updates. Rearranged sections
8150 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8152 Z80 and MCS51 linkers complaint if a public symbol is defined
8153 in more than one library module:
8157 * as/mcs51/Makefile.in
8159 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8161 A few small changes that speed up the peephole optimizer.
8165 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8167 Try to make the peephole optimizer smarter by maintaining
8168 an association between the assembly source code and the
8169 iCodes that originated them. Put this information to use
8170 with a new peephole rule condition "notVolatile" so that
8171 the rules can be aggressive yet still safe.
8176 * src/mcs51/peeph.def
8178 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8182 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
8183 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
8184 if the left or right operand symbols have the accuse flag set.
8186 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8188 Changed the type of the result of the ! (NOT) operator to char;
8189 previously it returned the same type as the source. This allows
8190 us to eliminate all the genFloatNot functions (all of its target
8191 implementations were very buggy) since !float can use the same
8194 * src/SDCCicode.c (ast2iCode): ! returns char
8195 * src/mcs51/gen.c (genNot, genNotFloat),
8196 * src/ds390/gen.c (genNot, genNotFloat),
8197 * src/z80/gen.c (genNot, genNotFloat),
8198 * src/pic/gen.c (genNot, genNotFloat),
8199 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
8201 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
8203 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8204 1. Interrupt would not compile properly. Ensure PCLATH register is saved
8205 during interrupts. Ensure WSAVE is located at a shared bank address.
8206 2. Fixed page selection in some places
8207 3. Fixed BTFSS/C to where necessary use registers directly and not simply
8208 the registers name strings.
8209 4. Fixed "signed / unsigned compare" compiler warnings.
8210 5. The PIC port manages its own allocation of the general purpose
8211 registers, but makes no attempt to reuse them. As a result when
8212 compiling it soon runs out of general purpose registers. Some
8213 additional code was added to the files pcode.c and device.c to walk
8214 through the function call tree and rename the registers so that they
8224 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8225 genPlus() & genMinus() when the result is the same as left or right
8227 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8229 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8231 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8233 Made bitfield a distinct type from bit so that bitfields
8234 convert as per ANSI C and bits retain their traditional
8235 boolean style behaviour. Implemented bitfield support in
8243 * src/ds390/gen.c: bit v bitfield split
8244 * src/z80/gen.c: New support for bitfields
8245 * support/regression/tests/bitfields.c: reenabled z80,
8248 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8250 Rules 246.x, 247.x relate to bitfields, the others speed up
8251 access to xdata mapped I/O devices.
8253 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8255 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8257 Cleaned up genPackBits and genUnpackBits and added two helper
8258 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8259 for literal assignments in genPackBits (thanks to Frieder for
8265 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8267 Fixed bug #748310 (pointer to function type mishandled when the
8268 function name is omitted). Also fixed a SIGSEGV when a function
8269 attribute (reentrant, etc) is used on a non-function or on a
8270 function but misplaced before the parameter list.
8272 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8274 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8275 * support/Util/SDCCerr.h,
8276 * support/Util/SDCCerr.c: Added func attr misuse error msg
8278 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
8280 Fixed bug #787649 by anonymous
8281 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8282 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8284 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8286 Fixed numerous bitfield problems.
8288 * src/SDCC.y: More bitfield related error checking
8290 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8291 * support/Util/SDCCerr.h,
8292 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8293 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8294 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8295 * support/regression/tests/bitfields.c: tests added
8297 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8299 Made the constant following the "interrupt" keyword optional. If
8300 omitted, the function will not automatically be given an entry
8301 in the interrupt vector table (similar to #pragma NOIV, but
8302 less syntacticly kludgy). The interrupt number is also now
8303 range checked. Also fixed a bug in the high order bit example
8310 * support/Util/SDCCerr.c
8311 * support/Util/SDCCerr.h
8314 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
8316 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8317 * src/SDCCicode.c (operandOperation): rewritten some ops
8318 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8319 * src/SDCCsymt.c (computeType): literals are handled the same way as any
8321 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8322 be re-activated by defining REDUCE_LITERALS)
8323 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8324 unsigned, but are signed by default
8325 * src/SDCCval.c (constVal): rearranged
8326 * src/SDCCval.c (valMod): preliminary fix
8327 * src/SDCCval.c (valCastLiteral): use TYPE_* types
8328 * support/regression/literalop.c: added, work in progress
8330 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8332 Generate warnings for useless declarations like "char data;"
8333 that don't do what new users expect.
8336 * support/Util/SDCCerr.h
8337 * support/Util/SDCCerr.c
8339 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
8341 * src/SDCCval.c (valMult): fix overflow detection of negative int
8343 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8345 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8347 Changes to support big endian targets:
8360 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
8362 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8363 * device/lib/time.c: fixed warning "integer overflow in expression"
8365 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
8367 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8368 * src/SDCCval.c (constVal): changed default to signed; hex and octal
8369 constants are unsigned; added recognition of "u" flag for unsigned
8370 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8371 * src/SDCCval.c (valDiv, valMod): fixed signdness
8372 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8373 signedness of modulo, left and right shift
8374 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8375 * support/Util/SDCCerr.h: added warning W_INT_OVL
8376 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8377 * src/SDCCast.c (ast_print): improved output of constants
8379 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8381 Fixed some warnings when building with MSVC:
8394 * support\cpp2\cpplib.c
8398 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
8400 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8402 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8404 * support\librarian\clean.mk: Do not remove Makefile.
8405 * support\librarian\Makefile: added.
8407 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8409 Added librarian to MSVC build:
8412 * support\librarian\librarian.dsp
8414 'configure' not needed for librarian, removed:
8415 * support\librarian\configure
8416 * support\librarian\configure.in
8417 * support\librarian\config_in.h
8418 * support\librarian\Makefile.in
8420 Hopefully these ones built the librarian and the rest of sdcc properly:
8422 * Makefile.common.in
8424 Messed up 'configure', so revert to previous version:
8428 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
8430 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8431 there, while the mantissa of a double is "only" 53 bits wide.
8433 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8435 Adding sdcclib to the build. MSVC project coming soon.
8436 Files added/changed:
8438 * support\librarian\clean.mk
8439 * support\librarian\configure
8440 * support\librarian\configure.in
8441 * support\librarian\config_in.h
8442 * support\librarian\Makefile.bcc
8443 * support\librarian\Makefile.in
8444 * support\librarian\sdcclib.c
8447 * Makefile.common.in
8451 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8453 Linker now complaints if linked modules have conflicting options, for
8454 example, one compiled using --model-large and another one compiled with
8455 --model-small. The following files were modified:
8477 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8479 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8480 as/mcs51/lklibr.c: Generate a warning when a library is not found.
8482 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
8484 * src/z80/mappings.i: fix _mul[us][int,long] entries
8486 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8488 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8490 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
8492 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8493 * support/regression/tests/bitopcse.c: added
8501 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8503 added support for new library format to z80, gbz80 linkers:
8509 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
8511 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8512 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8514 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
8516 added DUMMY_READ_VOLATILE:
8525 * src/SDCCcse.c (algebraicOpts): many improvements
8526 * src/SDCCcse.h: removed algebraicOpts()
8527 * src/SDCCicode.c (picDummyRead): added
8529 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8531 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8532 "Insufficient space in data memory".
8534 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8536 * src/mcs51/gen.c: fixed bug #771358
8537 * src/z80/gen.c: fixed bug #759087
8539 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
8541 * src/pic16/glue.c: minor cleanup by Vangelis
8543 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8545 * device/include/regc515c.h: fixed #758477
8546 * device/lib/_gptrget.c: saving some cycles in generic pointer get
8547 * device/lib/_gptrput.c: saved a few bytes
8548 * my tab spacing is 8, yours too?)
8549 * device/lib/_ser.c: process RX bytes earlier than TX bytes
8550 * device/lib/serial.c: process RX bytes earlier than TX bytes
8551 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8553 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8555 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8557 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8559 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8561 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
8563 * device/lib/Makefile.in: bad fix, reverted to 1.43
8565 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
8567 * device/lib/Makefile.in: added missing z80 object files
8569 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
8571 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8572 pic16 progress by Vangelis:
8587 * pic16/pcodepeep.c:
8590 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8592 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8594 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8596 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8597 added gbz80 build to MSVC project.
8598 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8599 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8600 from 8051 stuff and setup so it links using a .lnk file.
8602 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8604 * support/librarian/sdcclib.c: sdcc librarian.
8605 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8608 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8610 * as/mcs51/lkmain.c: properly handle extensions in function afile.
8612 2003-07-02 Borut Razem <borut.razem AT siol.net>
8614 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8615 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8616 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8617 src/xa51/main.c, src/z80/main.c:
8618 virtualization of glue() function: each port has it's own glue function,
8619 which is accessed by do_glue function pointer in PORT.general structure
8621 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8623 * DS800C400 fun, improved ROM interface and tinibios.
8625 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8627 * More support for DS80C400. Now includes beginning of interface to ROM.
8629 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
8631 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
8633 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8635 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
8637 2003-06-19 Borut Razem <borut.razem AT siol.net>
8639 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
8641 2003-06-19 Borut Razem <borut.razem AT siol.net>
8643 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
8644 fixed Z80 port - crt0.o: cannot open.
8646 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
8648 * support/Util/MySystem.c (merge_command): revert bad fix
8650 2003-06-18 Borut Razem <borut.razem AT siol.net>
8652 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
8654 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8656 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8657 option --use-stdout sends errors to stdout instead of stderr.
8659 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
8661 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
8663 2003-06-15 Borut Razem <borut.razem AT siol.net>
8665 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
8666 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
8667 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
8668 fixed width array of pointers replaced with sets;
8669 multiple include and lib paths ared transferred to preprocessor and linker
8670 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
8671 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
8672 fixed width array of pointers
8673 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
8674 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
8675 fixupPath(), getPathDifference()
8676 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
8677 fixed width array of pointers
8679 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
8681 * src/pic16/ralloc.c: fix warnings
8682 * src/pic16/pcode.c: fix warning
8684 2003-06-10 Scott Dattalo <scott AT dattalo.com>
8686 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
8687 know all the details, but essentially this set of changes enable
8688 the pic16 port to generate movff instructions and generate assembler
8693 * src/pic16/pcode.c:
8694 * src/pic16/device.c:
8696 * src/pic16/pcode.h:
8697 * src/pic16/pcoderegs.c:
8698 * src/pic16/ralloc.c:
8699 * src/pic16/ralloc.h:
8701 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8703 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8704 added option --vc, so sdcc errors and warnings are compatible with
8705 Microsoft Visual Studio.
8707 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8709 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
8710 device/lib/libfloat.lib: added atof function.
8712 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
8714 * doc/sdccman.lyx: updated to Lyx 1.3
8715 * doc/cdbfileformat.lyx: updated to Lyx 1.3
8716 * doc/test_suite_spec.lyx: updated to Lyx 1.3
8717 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
8719 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
8721 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
8723 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8725 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
8726 additions to the "related tools/documentation" section
8728 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
8730 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
8732 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
8734 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
8735 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
8737 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
8739 * doc/sdccman.lyx: fix double dash and other minor things
8740 * doc/Makefile: fix double dash
8742 2003-05-28 Karl Bongers(patches from Martin Helmling)
8743 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
8744 condition and ignore commands.
8746 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8748 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
8749 is in parts still quite out of date, I did changes as far as I felt makes sense
8750 for a non-native english speaker.
8751 Please feel free to add to the manual or to correct my changes.
8752 * doc/Makefile: undid touching the date of intermediate tex files.
8754 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8756 * doc/sdccman.lyx: Manual has an index now
8758 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
8760 Finalize muluint/mulsint and mululong/mulslong merging:
8761 * device/lib/_mulint.c
8762 * device/lib/_mullong.c
8763 * device/lib/gbz80/mul.s
8764 * device/lib/gbz80/stubs.s
8765 * device/lib/z80/mul.s
8766 * device/lib/z80/stubs.s
8767 * src/SDCCsymt.c (initCSupport)
8769 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8771 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
8772 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
8773 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
8774 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
8777 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8779 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
8780 the regression tests I'm not brave enough to enable 245.b, 245.c
8781 * doc/sdccman.lyx: added latex preamble for hyperref package.
8782 Using pdflatex this will give you a hyperlinked pdf file with
8783 bookmarks. (prepend '%' before /usepackage if this breaks something)
8785 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8787 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
8789 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
8791 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
8793 2003-05-21 <johan AT balder>
8795 * src/SDCCglue.c (printIval): fixed bug #739934
8797 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
8799 Applied patch from bug 737905 (renamed yylineo to mylineno):
8806 * src/pic16/pcode.c: Cleaned warnings
8807 * src/pic16/pcodeflow.c: Cleaned warnings
8808 * src/pic16/pcoderegs.c: Cleaned warnings
8810 2003-05-19 Scott Dattalo <scott AT dattalo.com>
8812 * src/pic16/pcode.c: Cleaned warnings
8813 * src/pic16/pcodepeep.c: Cleaned warnings
8814 * src/pic16/ralloc.c: Cleaned warnings
8816 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
8818 * doc/sdccman.lyx: fixed bug 739745
8819 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
8821 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
8823 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
8824 it can be defined with CFLAGS when running configure
8825 * src/SDCCmain.c: fixed compiling + linking with object files
8827 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
8829 * configure.in: configure for pic16 port,
8830 added --disable-pic16-port
8831 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
8832 * src/SDCCmain.c: linkOptions is changed to set *,
8833 added if/endif conditional macros to remove options help
8834 messages from optionsTable when a port is not configured, added
8835 support for the PIc16 port in the ports table, when executing
8836 the compiler with no port specified on command line, a default
8837 port is selected with the new macro DEFAULT_PORT which is
8838 defined in port.h, in setDefaultOptions() linkOptions is removed
8839 from initialization assignment, since now it is a set,
8840 parseCmdLine uses setParseWithComma for linkOptions, in
8841 linkEdit() linkOptions are accessed with new function indexSet()
8842 which returns the i'th item of a set variable. See SDCCset.c, in
8843 linkEdit() when calling buildCmdLine(), added linkOptions as
8844 last argument. Now users can pass arguments to gplink via the
8845 -Wl option, main() uses pic16glue() to glue up pic16 programs
8846 * src/SDCCpeeph.c: various changes to support pic16
8847 * src/SDCCset.c: added function void *indexSet(set *, int) to
8848 return the i'th item of the set
8849 * src/SDCCset.h: added function prototype for indexSet()
8850 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
8851 * src/clean.mk: added pic16 in CLEANALLPORTS variable
8852 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
8853 added macro DEFAULT_PORT
8854 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
8855 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
8857 * src/pic16/glue.c: commented out some error producing lines
8858 * src/pic16/main.c: __config directives are commented out to stop
8859 gpasm complaining and test the linkage with gplink, _linkCmd and
8860 _asmCmd changed to be more gplink and gpasm friendly
8861 * src/pic16/peeph.def: peep rule 3 is commented out, since it
8862 produced an error when parsed, peep rule 12 is added to utilize
8863 movff, but it is commented out since the pCode does not support
8864 yet a command with 2 address arguments
8866 2003-05-18 <johan AT balder>
8868 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8869 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8870 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
8872 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
8873 Added feature to script commands from file.
8875 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
8877 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
8878 * src/SDCCutil.c: include ctype.h for win32
8880 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
8882 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
8884 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
8886 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
8887 Fixed so you can set breakpoints prior to run, run does not stop
8888 on entry now. Add tbreak. Other enhancements and fixes for use
8891 2003-05-12 Borut Razem <borut.razem AT siol.net>
8893 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
8895 2003-05-11 Borut Razem <borut.razem AT siol.net>
8897 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
8898 the path of bin directory, so that PATH is the only env. variable, which has to be set
8899 in case of standard installation.
8900 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
8901 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
8902 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
8904 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
8906 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
8907 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
8908 temp files are in the port dir; clean the gen/test directory when
8909 generating new test.c
8910 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
8911 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
8912 * support/regression/tests/zeropad.c: added
8914 2003-05-09 <johan AT balder>
8916 * src/SDCCglue.c: fixed bug #597940
8918 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
8920 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8921 cache sfr, optimize next,step, fix off by one sourceline,
8922 support ddd list function.
8923 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
8925 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
8927 * support/regression/HTMLgen.py: added compare_s2f()
8928 * support/regression/Makefile: redo 1.27
8929 * support/regression/generate-cases.py: redo 1.5
8931 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
8933 * support/regression/tests/float.c: workaround 33 bit hex constant
8934 * support/regression/tests/simplefloat.c: fix division for host
8936 2003-04-29 Scott Dattalo <scott AT dattalo.com>
8938 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
8939 that tame's the PIC's over-aggressive optimizer.
8941 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8943 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
8946 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
8948 Initial support for DS80C400. "Hello world" runs on TINIm400
8951 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
8953 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8954 * Some notes on ddd usage added in debugger/README
8955 Martin Helmling adding more features and fixes for ddd GUI debugger.
8956 Code added for nexti, stepi, up, down, and other adjustments.
8958 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
8960 * src/pic/pCodepeep.c non-wildcard asmops are now handled
8961 * src/pic/peeph.def Added two rules to optimize carry manipulation
8962 * src/pic/* removed debug printfs
8964 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
8966 * debugger/mcs51/cmd.c: added header newalloc.h
8968 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
8970 * as/Makefile: new EXEEXT
8971 * as/z80/Makefile: remove trailing slash of BUILDIR
8972 * as/z80/clean.mk: new EXEEXT
8973 * Makefile.common.in: add to CFLAGS (and others), don't replace it
8974 * support/cpp2/Makefile.in: new EXEEXT
8975 * src/pic/glue.c (pic14emitRegularMap): fixed warning
8977 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
8979 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
8980 EXEEXT was introduced to fix all related problems with targets
8981 "clean", "install" and "uninstall"; a couple of further flaws
8982 especially with "clean" have been fixed too
8983 * as/mcs51/Makefile.in
8988 * debugger/mcs51/Makefile.in
8989 * debugger/mcs51/clean.mk
8991 * link/z80/Makefile.in
8994 * packihx/Makefile.in
8996 * sim/ucsim/Makefile
8997 * sim/ucsim/clean.mk
8998 * sim/ucsim/avr.src/Makefile.in
8999 * sim/ucsim/avr.src/clean.mk
9000 * sim/ucsim/s51.src/Makefile.in
9001 * sim/ucsim/s51.src/clean.mk
9002 * sim/ucsim/xa.src/Makefile.in
9003 * sim/ucsim/xa.src/clean.mk
9004 * sim/ucsim/z80.src/Makefile.in
9005 * sim/ucsim/z80.src/clean.mk
9006 * sim/ucsim/main_in.mk
9007 * sim/ucsim/packages_in.mk
9008 * sim/ucsim/gui.src/Makefile.in
9009 * sim/ucsim/gui.src/serio.src/Makefile.in
9010 * sim/ucsim/gui.src/serio.src/clean.mk
9013 * support/cpp2/Makefile.in
9014 * support/cpp2/clean.mk
9015 * support/makebin/Makefile
9016 * support/makebin/clean.mk
9017 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
9018 * doc/sdccman.lyx: --program-suffix no longer needed
9020 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
9022 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
9023 Martin Helmling added support for ddd GUI debugger.
9024 Code added to display assembly, set variables, and other commands
9025 to interface to ddd.
9027 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
9029 * as/Makefile: fix target clean
9030 * as/clean.mk: fix target clean
9031 * as/z80/clean.mk: fix target clean
9033 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
9035 * Makefile.common.in: added AT EXEEXT AT
9036 * configure.in: removed all mingw32 stuff
9037 * configure: rebuilt from configure.in
9038 * doc/sdccman.lyx: updated section "installation"
9039 * support/scripts/sdcc_mingw32: adapted to configure
9040 * support/scripts/sdcc_cygwin_mingw32: added
9042 2003-04-22 Scott Dattalo <scott AT dattalo.com>
9044 * src/pic Added object file support for the PIC port
9045 * src/pic Applied patch from Craig Franklin (this started the object file support)
9046 * src/regression Updated the PIC regression tests for object files
9048 2003-04-20 Borut Razem <borut.razem AT siol.net>
9050 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9051 lklex.c: In function `getfid':
9052 lklex.c:203: warning: array subscript has type `char'
9053 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9054 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9055 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9056 stack handling macros
9058 2003-04-19 Borut Razem <borut.razem AT siol.net>
9060 * "handling space characters in file path" task:
9061 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9062 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9063 * support/Util/MySystem.h: make it self-sufficient
9064 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9065 src/z80/main.c, sdcc/as/mcs51/lklex.c:
9066 handling space characters in file path
9067 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
9068 (it will be used by assemblers, which have their own includes, e.g. gpasm)
9069 * support/Util/MySystem.c: handling space characters in executable's path
9071 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
9073 * as/z80/Makefile: fix permanent rebuild of z80
9074 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
9075 * support/regression/tests/bitfields.c: added Johan's bitfields.c
9077 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
9079 * src/SDCCopt.c: add special case optimization to replace modulo by
9080 a power of two with a bitwise AND.
9082 2003-04-18 <johan AT balder>
9084 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
9086 2003-04-17 <johan AT balder>
9088 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
9089 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
9091 2003-04-13 Borut Razem <borut.razem AT siol.net>
9093 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
9094 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
9095 fixed mingw problem in adl_NORMALIZE_PATH
9097 2003-04-12 Borut Razem <borut.razem AT siol.net>
9099 * fixed "#pragma SAVE/RESTORE can not be nested":
9100 * src/SDCC.lex: reworked pragma handling functions
9101 * sdcc/src/SDCCglobl.h: reworked stack handling macros
9102 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
9104 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9106 * src/SDCCutil.c (pathEquivalent): defined but not used
9107 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
9108 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
9109 * configure: rebuilt from configure.in
9110 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9111 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9112 * device/include/Makefile.in: replace sdcc_datadir
9113 * device/lib/Makefile.in: replace sdcc_datadir
9114 * Makefile.common.in: add LDFLAGS from configure
9115 * packihx/Makefile.in: use LDFLAGS
9116 * src/Makefile.in: use LDFLAGS
9117 * support/cpp2/Makefile.in: add LDFLAGS from configure
9118 * support/makebin/Makefile: use LDFLAGS
9119 * .version: bumped version number to 2.3.5
9121 2003-04-12 Borut Razem <borut.razem AT siol.net>
9123 * completed "different paths" task:
9124 * src/SDCCmacro.c: fixed bug in handling quotes
9125 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
9126 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
9128 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9130 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
9132 2003-04-11 kevin Vigor <kevin AT vigor.nu>
9134 * ds390/gen.c ds390/peeph.def: fix bug 706781
9136 2003-04-11 Borut Razem <borut.razem AT siol.net>
9138 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
9140 2003-04-10 Scott Dattalo <scott AT dattalo.com>
9142 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
9143 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
9144 set - this bit used to not be set...).
9145 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
9146 bad code in PIC Port
9147 * src/regression/and2.c added to test bug 609268
9148 * src/regression/Makefile added and2.c to regression test
9151 2003-04-08 <johan AT CP255758-A>
9153 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
9154 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
9155 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
9157 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
9159 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
9161 * support/cpp2/Makefile.in: fix bug #487815
9162 * configure: rebuilt from configure.in
9163 * Makefile.common.in: docdir changed, new path suffixes
9164 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9165 * sdcc_vc_in.h: reflect changes from sdccconf.h
9166 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
9167 * src/SDCCutil.h: remove BINDIR hack
9168 * doc/sdccman.lyx: update new path hierarchy
9170 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
9172 * src/SDCCpeeph.c: added okToRemoveSLOC test
9174 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
9176 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
9178 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
9180 * src/SDCCpeeph.c: added labelIsReturnOnly test
9181 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
9183 2003-04-05 <johan AT balder>
9185 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
9186 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
9187 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
9188 * src/SDCCast.c: fixed a warning
9189 * src/SDCCast.h: fixed a warning
9190 * src/SDCCicode.c (operandFromAst): fixed a warning
9192 2003-04-04 <johan AT balder>
9194 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
9195 * src/SDCCast.c (decorateType): fixed bug #715076
9196 * src/SDCC.y: fixed bug #702907
9198 2003-04-03 <johan AT balder>
9200 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
9201 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
9202 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
9203 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
9204 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
9206 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
9208 * _decdptr.c: fix return values
9209 * _gptrget.c: fix return values
9210 * _gptrgetc.c: fix return values
9211 * _gptrput.c: fix return values
9212 * _mulint.c: fix return values
9213 * as/z80/Makefile: fix 'make -j' problem
9215 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
9217 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9218 * configure.in: big cleanup, updated to autoconf 2.5x
9219 * configure: rebuilt from configure.in
9220 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9221 * sdcc_vc_in.h: reflect changes from sdccconf.h
9222 * doc/Makefile: fixed a flaw in "make install"
9224 2003-04-02 <johan AT balder>
9226 * src/ds390/gen.c (genCmp): no comments
9227 * src/mcs51/gen.c (genCmp): no comments
9228 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9229 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9231 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
9233 * support/regression/generate-cases.py: place generated file in given sub directory
9234 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9235 * support/regression/Makefile: improvements for 'make -j';
9236 side effect: it's simpler and faster now
9238 2003-03-31 Borut Razem <borut.razem AT siol.net>
9240 * src/z80/main.c: link-{port} and as-{port} defined without path
9241 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9243 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
9245 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9247 2003-03-30 Borut Razem <borut.razem AT siol.net>
9249 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9250 changed type of list parameter to set
9251 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9252 * src/port.h: changed type of do_assemble() parameter to set
9253 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9254 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9255 definition of "cppoutfilename" macro with NULL value in preProcess()
9256 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9257 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9258 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9259 replaced with set *binPathSet
9260 * shash_add() deallocates the item, if allready exsists, before adding the new one
9261 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9263 2003-03-30 Scott Dattalo <scott AT dattalo.com>
9265 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9266 a nested for loop bug in the PIC port
9267 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9270 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9272 * support/Util/dbuf.h: remove C++ stuff to make it portable
9274 2003-03-28 Borut Razem <borut.razem AT siol.net>
9276 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9277 literal strings in stringLiteral()
9278 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9279 * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9282 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
9284 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9286 2003-03-26 <johan AT balder>
9288 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9289 * src/ds390/gen.c (saveRegisters): catched symbol abuse
9290 * src/SDCCast.c (decorateType): fixed " -v < 3"
9292 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9294 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9295 Added Lenny Story's debug infrastructure changes:
9296 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
9297 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9298 * src/cdbFile.c: added
9299 * src/SDCCdebug.c: added
9300 * src/SDCCdebug.h: added
9301 * src/SDCCast.c (createFunction)
9302 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9303 * src/SDCCmain.c (parseCmdLine, main)
9304 * src/SDCCmem.c (redoStackOffsets)
9305 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9308 * src/avr/gen.c (genAVRCode)
9309 * src/ds390/gen.c (gen390Code)
9310 * src/mcs51/gen.c (gen51Code)
9311 * src/pic/gen.c (genpic14Code)
9312 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9313 * src/xa51/gen.c (genXA51Code)
9314 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9316 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9318 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9319 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9321 2003-03-22 <johan AT balder>
9323 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9325 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
9327 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9328 * doc/cdbfileformat.lyx: added, written by Lenny Story
9329 * doc/Makefile: added cdbfileformat.lyx
9330 * doc/clean.mk: added cdbfileformat.lyx
9332 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
9334 * src/mcs51/peeph.def: fix bug #705773
9336 2003-03-20 <johan AT balder>
9338 An sfr/sbit can have an "at #" AND an initializer
9339 * src/SDCCsymt.c (checkSClass):
9340 * src/SDCCmem.c (allocGlobal):
9341 * src/SDCCmem.c (allocLocal):
9342 * src/SDCCast.c (createBlock):
9344 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
9346 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9348 2003-03-16 <johan AT balder>
9350 Undid the hackup of const and volatile, the problem is much bigger
9352 * src/SDCCast.c:1.171
9353 * src/SDCCglue.c:1.138
9354 * src/SDCCicode.c:1.146
9355 * src/SDCCsymt.c:1.150
9356 * src/SDCCval.c:1.65
9358 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
9360 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9361 * src/ds390/gen.c (genAddrOf): fixed bug #704087
9363 2003-03-13 <johan AT balder>
9365 Hackup const and volatile modifiers in type chains a bit:
9367 * src/SDCCast.c:1.169
9368 * src/SDCCglue.c:1.136
9369 * src/SDCCicode.c:1.143
9370 * src/SDCCsymt.c1.146
9371 * src/SDCCsymt.h1.59
9372 * src/SDCCval.c:1.63
9374 2003-03-12 <johan AT balder>
9376 * src/SDCCBBlock.h: more LRH debugging junk
9377 * src/SDCCcflow.h: more LRH debugging junk
9378 * src/SDCCloop.c: more LRH debugging junk
9379 * src/SDCC.y (struct_declaration): fixed bug #697590
9380 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9381 * src/ds390/gen.c (aopForRemat): fixed bug #700031
9382 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9384 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9385 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9386 test function names must now match exactly).
9387 * src/SDCCcse.c: added special case in findCheaperOp to allow
9388 extending a short integer. Makes less awful code for bug 700121 test case.
9390 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9392 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9393 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9395 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9397 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9398 actually called (operandsNotEqual() was called for all
9399 operandsNotEqualX tests).
9401 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9403 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9404 with shorter literals. Fixes bug 700121.
9406 2003-03-11 <johan AT balder>
9408 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9410 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
9412 * src/SDCCloop.c (mergeRegions): an evil beast is dead
9413 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9415 2003-03-10 Borut Razem <borut.razem AT siol.net>
9417 * src/SDCCmain.c: pipe preprocessor's output
9418 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9419 * sdcc_vc_in.h: define pclose as _pclose for WIN32
9420 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9421 which closes all pipes in pipeSet set
9422 * src/SDCCset.c: free deleted item in function deleteSetItem()
9423 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9424 moved from z80 to src subproject
9425 * .version: increased version number to 2.3.4
9427 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9429 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9430 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9431 * support/regression/ports/xa51/spec.mk: fix typo
9433 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9435 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9437 2003-03-09 Borut Razem <borut.razem AT siol.net>
9439 * src/SDCCmain.c: pipe preprocessor's output
9440 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9441 * sdcc_vc_in.h: define pclose as _pclose for WIN32
9442 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9443 which closes all pipes in pipeSet set
9444 * src/SDCCset.c: free deleted item in function deleteSetItem()
9445 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9446 moved from z80 to src subproject
9448 2003-03-09 Borut Razem <borut.razem AT siol.net>
9450 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9451 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9452 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9453 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9454 * src/SDCCglobl.h: unification of WIN32 native definitions
9456 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9458 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9460 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9462 * src/configure.in: check for endianess (even while cross-compiling)
9463 * src/configure: check for endianess (even while cross-compiling)
9464 * src/configure_in.h: check for endianess (even while cross-compiling)
9465 * src/avr/gen.c: remove old endianess stuff
9466 * src/mcs51/gen.c: remove old endianess stuff
9467 * src/ds390/gen.c: remove old endianess stuff
9468 * src/pic/gen.c: remove old endianess stuff
9469 * src/pic/genarith.c: remove old endianess stuff
9470 * src/pic/glue.c: fix endianess check
9471 * src/pic16/gen.c: remove old endianess stuff
9472 * src/pic16/genarith.c: remove old endianess stuff
9473 * src/pic16/glue.c: fix endianess check
9474 * src/xa51/gen.c: remove old endianess stuff
9475 * src/z80/gen.c: fix endianess check
9476 * src/SDCCglue.c: fix endianess check
9477 * src/ds390/peeph.def: fix bug 700036
9479 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9481 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9482 * src/configure: find appropriate data-types on host for SDCC's int and long
9483 * src/configure.in: find appropriate data-types on host for SDCC's int and long
9484 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9485 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9487 2003-03-07 <johan AT balder>
9490 some minor cleanups before the big shot
9491 OP_DEFS and OP_USES now use Kevin's protection
9492 new option --nolabelopt
9503 * src/ds390/ralloc.c:
9504 * src/mcs51/ralloc.c:
9506 * src/xa51/ralloc.c:
9509 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9511 * src/pic/pcode.c (get_op): fix 64 bit warnings
9512 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9513 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9514 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9515 * support/regression/tests/malloc.c: fix 64 bit warnings
9517 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
9519 * src/mcs51/gen.c (genMinus): fixed bug 696436
9521 2003-03-02 Borut Razem <borut.razem AT siol.net>
9523 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9525 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9527 * configure.in: test for mkstemp
9528 * sdccconf_in.h: add HAVE_MKSTEMP
9530 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
9532 * device/include/ctype.h: removed warning while using --stack-auto
9533 * device/include/malloc.h: removed warning while using --stack-auto
9534 * device/include/string.h: removed warning while using --stack-auto
9536 2003-02-23 Borut Razem <borut.razem AT siol.net>
9538 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9539 because NDEBUG is defined (see man assert)
9540 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9542 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9544 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9545 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9547 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9549 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9550 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9552 2003-02-18 <johan AT balder>
9554 * as/mcs51/asmain.c (asmbl): module can start with a digit
9555 * as/z80/asmain.c (asmbl): module can start with a digit
9557 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9559 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9560 * src/asm.c: fix pipe() for Mingw32
9562 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
9564 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9565 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9566 make -V work again; --c1mode reads now from stdin
9567 * doc/sdccman.lyx: added --c1mode
9568 * support/Util/SDCCerr.c: new messages for c1 mode
9569 * support/Util/SDCCerr.h: new messages for c1 mode
9570 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9572 2003-02-15 <johan AT balder>
9574 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9576 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
9578 * doc/sdccman.lyx: Environment variables, -o and other minor things
9580 2003-02-14 <johan AT balder>
9582 * src/xa51/main.c: before anyone really tries to use it :)
9584 * Install doc's in share/sdcc/doc
9585 * removed some obsolete files
9586 * Do a proper make distclean and uninstall
9587 M Makefile.common.in
9590 M device/include/Makefile.in
9591 M device/lib/Makefile.in
9594 M sim/ucsim/doc/Makefile.in
9597 R src/xa51/peeph.rul
9598 M support/cpp2/Makefile.in
9599 M support/makebin/Makefile
9602 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9604 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9606 2003-02-10 Borut Razem <borut.razem AT siol.net>
9608 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9609 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9610 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9611 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9612 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9613 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9614 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9615 src/z80/Makefile.bcc: Borland Makefile cleanup
9616 * as/z80/Makefile.bcc: Added Borland Makefile
9617 * support/cpp2/borland.h: Removed
9619 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
9621 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9622 * src/SDCC.lex: new pragma NOIV
9623 * src/SDCCglobl.h: new pragma NOIV
9624 * src/SDCCmem.c: new pragma NOIV
9626 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9628 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
9630 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9632 * src/SDCCmain.c: signal handling is switched off by --debug
9633 * doc/Makefile: small fix for install; use clean.mk again
9634 * doc/clean.mk: clean *.pdf and *.html too
9636 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
9638 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
9639 * device/lib/printfl.c: fix a ds390 bug by making it portable
9640 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
9641 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
9642 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
9643 * debugger/mcs51/cmd.c: converted multi-line string literals
9644 * sim/ucsim/globals.cc: converted multi-line string literals
9645 * src/SDCCmain.c: introduced signal handler to remove temp files
9646 * doc/Makefile: small tweaks, implement clean
9647 * doc: removed generated files
9649 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9651 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
9652 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
9653 Address Record is not correctly generated for DS390."
9655 2003-02-02 Borut Razem <borut.razem AT siol.net>
9657 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
9658 * as/mcs51/asm.h: fixed compilation with Borland C
9659 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
9660 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
9661 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
9662 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
9663 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
9664 src/z80/Makefile.bcc: delete $(LIB) only if exist
9665 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
9667 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
9669 * device/include/malloc.h: introduced NULL
9670 * device/include/string.h: introduced NULL
9671 * device/include/stdlib.h: introduced NULL
9672 * device/lib/_memcpy.c: removed NULL
9673 * device/lib/_strcat.c: removed NULL
9674 * device/lib/_strchr.c: removed NULL
9675 * device/lib/_strcmp.c: removed NULL
9676 * device/lib/_strcpy.c: removed NULL
9677 * device/lib/_strcspn.c: removed NULL
9678 * device/lib/_strlen.c: removed NULL
9679 * device/lib/_strncat.c: removed NULL
9680 * device/lib/_strncmp.c: removed NULL
9681 * device/lib/_strncpy.c: removed NULL
9682 * device/lib/_strpbrk.c: removed NULL
9683 * device/lib/_strrchr.c: removed NULL
9684 * device/lib/_strspn.c: removed NULL
9685 * device/lib/_strstr.c: removed NULL
9686 * device/lib/_strtok.c: removed NULL
9687 * device/lib/malloc.c: removed NULL, include own header
9689 2003-02-02 <johan AT balder>
9691 * 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
9692 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
9693 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
9694 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
9695 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
9696 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
9698 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9700 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
9703 2003-02-01 <johan AT balder>
9705 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
9707 2003-01-31 <johan AT CP255758-A>
9709 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
9711 2003-01-30 <johan AT balder>
9713 * src/SDCCBBlock.c: automatic bug detection
9714 * src/SDCCicode.c: automatic bug detection
9716 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9718 * src/SDCCglobl.h: now --xram-size 0 works
9719 * src/SDCCmain.c: now --xram-size 0 works
9721 2003-01-29 <johan AT balder>
9723 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
9725 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9727 * as/mcs51/aslink.h: Added options --xram-size and --code-size
9728 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
9729 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
9730 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
9731 * src/SDCCglobl.h: Added options --xram-size and --code-size
9732 * src/SDCCmain.c: Added options --xram-size and --code-size
9734 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
9736 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
9737 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
9739 2003-01-27 <johan AT balder>
9741 * src/SDCC.y: fixed bug #613764
9743 2003-01-26 <johan AT balder>
9745 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
9746 * src/SDCCsymt.h: fixed bug #673374
9747 * src/SDCCglue.c: fixed bug #661910
9748 * src/SDCCast.c: fixed bug #458099 and 673374
9750 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
9752 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
9753 * as/mcs51/strcmpi.h: added
9754 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
9755 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
9756 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
9757 * as/mcs51/assym.c: strcmpi -> as_strcmpi
9758 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
9759 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
9760 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
9761 * as/mcs51/Makefile.aslink: new module strcmpi
9762 * as/mcs51/Makefile.asx8051: new module strcmpi
9763 * as/mcs51/Makefil.bcc: new module strcmpi
9764 * as/mcs51/Makefile.in: new module strcmpi
9765 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
9767 2003-01-26 <johan AT balder>
9769 * src/SDCCglue.c: reverted back to 1.124
9770 * src/SDCCast.c: reverted back to 1.156
9771 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
9773 2003-01-25 <johan AT balder>
9775 * src/SDCCglue.c: A better fix for bug #661910
9776 * src/SDCCast.c: A better fix for bug #661910
9777 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
9779 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
9781 * src/Makefile.in: remove spawn.o
9782 * src/SDCCmain.c: remove spawn.h
9783 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
9784 * src/spawn.c: removed
9785 * src/spawn.h: removed
9786 * support/regression/ports/ds390/spec.mk: link with -r
9788 2003-01-24 <johan AT CP255758-A>
9790 * src/ds390/gen.c (aopOp): fixed bug #667458
9791 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
9792 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
9793 (createIvalCharPtr): an ival doesn't always have a storage class anymore
9795 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
9797 * src/mcs51/peeph.def: better assembler identation by Frieder
9798 * src/mcs51/gen.c: better assembler identation by Frieder
9800 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
9802 * as/z80/string.h: removed for gcc 3.2
9803 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
9804 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
9806 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
9808 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
9809 * src/SDCCpeeph.c (replaceRule): fix bug #663503
9810 * support/regression/Makefile: separate temp files for ports
9811 * support/regression/generate-cases.py: separate temp files for ports
9812 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9813 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9815 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
9817 * moved tinitalk to device/examples/ds390
9819 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
9821 * as/mcs51/lkmem.c: rflag is for DS390
9822 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
9823 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
9824 (linkEdit): move mem- and map-files the same way as ihx-files
9825 * src/z80/main.c (_setDefaultOptions): removed --generic
9826 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
9827 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
9828 * src/pic/glue.c (picglue): --c1mode works again
9829 * src/pic16/glue.c (pic16glue): --c1mode works again
9830 * src/asm.c (printCLine): fix #660034
9832 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
9834 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
9835 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
9836 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
9837 * as/mcs51/lkmem (summary): better fix for sp problem
9838 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
9839 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
9840 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
9841 remove --stack-after-data
9843 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9845 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
9846 * src/SDCCutil.c (join): ugly bug: missing '\0'
9847 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
9849 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
9851 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
9853 * src/pic/main.c (_asmCmd): gpasm supports -o
9854 * src/z80/main.c: more general macros
9855 * device/lib/Makefile.in: remove intermediate files
9857 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
9859 * .version: Bumped version number to 2.3.3
9860 * src/SDCCBBlock.c: new option -o
9861 * src/SDCCglobl.h: new option -o
9862 * src/SDCCglue.c: new option -o
9863 * src/SDCCmain.c: new option -o
9864 * src/asm.c: new option -o
9865 * src/ds390/main.c: new option -o
9866 * src/pic/glue.c: new option -o
9867 * src/pic/pcode.c: new option -o
9868 * src/pic/ralloc.c: new option -o
9869 * src/pic16/glue.c: new option -o
9870 * src/pic16/pcode.c: new option -o
9871 * src/pic16/ralloc.c: new option -o
9872 * src/z80/main.c: new option -o
9873 * device/lib/Makefile.in: use -o
9874 * support/regression/ports/ds390/spec.mk: use -o
9875 * support/regression/ports/gbz80/spec.mk: use -o
9876 * support/regression/ports/mcs51/spec.mk: use -o
9877 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
9878 * support/regression/ports/z80/spec.mk: use -o
9879 * support/regression/ports/ucz80/spec.mk: use -o
9880 * support/regression/ports/xa51/spec.mk: use -o
9881 * support/regression/fwk/lib/timeout.c: fix usage string
9883 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
9884 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
9886 2003-01-07 <johan AT balder>
9888 * src/SDCCast.c (decorateType): fixed bug #600035
9890 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
9891 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
9892 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
9893 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
9894 * src/pic/pcode.c: outcommented unused variable to remove warnings
9895 * src/pic/ralloc.c: outcommented unused variable to remove warnings
9897 2003-01-06 <karl AT turbobit.com>
9898 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
9901 2003-01-06 <johan AT balder>
9903 * src/SDCCicode.c: fixed array add
9905 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
9906 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
9907 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
9909 2003-01-04 <johan AT balder>
9911 * src/SDCCval.c (getNelements): fixed the initialized array of structures
9913 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9914 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
9916 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
9917 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
9918 * support/regression/tests/bug-524697.c: fit mem usage into 8032
9920 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
9921 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
9923 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
9924 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
9926 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
9927 * src/mcs51/main.c: removed {bindir}{sep} from aslink
9929 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9931 * in \sdcc\as\mcs51\ changed these files in order to create an
9932 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
9933 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
9934 following files to include the previous two files: aslink.dsp,
9935 Makefile.aslink, Makefile.bcc, and Makefile.in.
9937 * Changed \sdcc\src\SDCCmain.c so it creates files with extension
9938 .adb instead of .cdb
9940 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9942 * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
9943 value from option --iram-size.
9945 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9947 * \sdcc\as\mcs51\lklist.c: added boundary check before using
9950 2002-09-18 <wiml AT hhhh.org>
9952 * SDCClrange.h: exposed setFromRange() and setToRange()
9953 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
9954 packRegsForAccUse() (bug 542397)
9955 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
9956 multiple times and emitting the fetch operations more than once
9957 added aopGetUsesAcc() function to allow binary operators to
9958 fetch their operands in the correct order; made genMinus() emit
9959 compact code for X = LITERAL - Y
9961 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9962 * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
9963 sprintf() in line 1267.
9965 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9966 * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
9969 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9970 Changes to aslink (All the changes are marked with 'JCF'):
9972 * \sdcc\as\mcs51\aslink.h: External definition of sflag and
9975 * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
9976 area BSEG. Also moves, if possible, the DATA area down into the internal
9977 ram so more space is available.
9979 * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
9982 * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
9983 not bytes. Function summary() which creates a memory usage summary
9984 file with extension .mem. Reports of overlaping stack and small stack
9985 size. If the space for the stack is less than 16 bytes aslink trows a
9988 * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
9989 the 8051. Option 'y' for memory summary output file.
9991 Changes to sdcc (All the changes are marked with 'JCF'):
9993 * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
9995 * \sdcc\src\SDCCglue.c: If a register bank is used, creates an
9996 overlaying area for it (uses RegBankUsed[4]).
9998 * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
9999 bank zero as used by default. By default aslink locates the stack
10000 (equivalent to --stack-after-data). Pass option 'y' to aslink for
10001 the creation of the .mem file. Delegates the allocation of data area
10002 to aslink (it is not longer 0x30 by default). If --stack-loc passes
10003 the begining of the stack area to aslink.
10005 * \sdcc\src\SDCCmem.c: If a register bank is used, marks it so
10006 glue() in SDCCglue.c creates an area for it.
10008 2002-09-03 Borut Razem <borut.razem AT siol.net>
10009 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
10010 sdcc/src/pic/glue.c:
10011 introduced atexit() handler for teporay files removal in case of
10012 errors, assertions, ...
10014 2002-08-29 Borut Razem <borut.razem AT siol.net>
10015 * sdcc/support/cpp2/auto-host_vc_in.h:
10016 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
10017 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
10018 Maybe there is a similar problem with BORLANDC? It should be checked!
10020 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
10021 corrected improper use of assert: the assignment to clr variable was done inside the assert.
10022 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
10023 was not executed, and the compiler (cl) launched a warning:
10024 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10026 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
10027 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10029 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10030 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10032 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10033 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10034 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10035 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10036 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10037 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10038 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10039 - added Release configuration in VS projects
10040 - review of compiler an linker options
10041 - VC .exe files are generated in bin_vc directory, not to interfere
10042 with binaries generated from other projects (cygwin, mingw, bcc ...)
10044 * sdcc/src/yacc.dsp: added
10046 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10047 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10048 and insert the version number definitions from .version
10050 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10052 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10053 added - genarate auto-host.h using auto-host_vc_in.h as template
10056 removed from CVS, generated automatically
10058 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
10059 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10061 2002-08-11 Borut Razem <borut.razem AT siol.net>
10062 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10064 2002-08-10 Borut Razem <borut.razem AT siol.net>
10065 * src/SDCCmain.c (main):
10066 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
10067 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
10068 The consequence was that some temporary files were not removed.
10071 unification of code in functions tempfilename() and tempfile():
10072 function tempnam() is defined in Visual Studio 6.0 and .NET
10074 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
10076 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10077 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
10078 - removed compiler command line option /WX: Treats all warnings as errors
10079 - update a list of source files, included into the project
10081 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10082 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
10083 changed project type to Generic Project so that can be correcly converted to VS.NET project
10085 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
10087 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
10089 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
10091 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
10092 added return 0 statements after assert() to make compiler happy
10094 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
10095 added newline in the def file to keep MSC compiler satisfied
10097 * sdcc/src/z80/gen.c:
10098 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
10099 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
10100 - solved MSC error in function aopDump()
10102 * sdcc_vc.h: define PREFIX as "\\sdcc"
10104 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
10105 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
10107 2002-06-22 Scott Dattalo <scott AT dattalo.com>
10108 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
10109 - Rewrote the register banking algorithm.
10110 - Added pCode live-range analysis to registers (for now, only non-used and
10111 singly-used registers optimized away)
10113 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
10115 * 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.
10117 2002-05-10 Scott Dattalo <scott AT dattalo.com>
10118 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
10120 2002-04-22 Michael Hope <michaelh AT vroom>
10122 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
10124 * configure.in (DD_COPT): Added include support required for gbdk.
10126 * .version: Bumped version number just to increase it.
10128 * src/SDCCmain.c: Added -nostdinc to the default options.
10130 2002-04-15 Michael Hope <michaelh AT vroom>
10132 * device/lib/z80/printf.c (sprintf): Added.
10134 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
10136 * src/z80/peeph.def: Added transpose redundent load rule.
10138 * src/z80/main.c: Added force callee saves for jaune.
10140 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
10142 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
10144 2002-03-28 Johan Knol <johan AT balder>
10146 * src/SDCCval.c: fixed bug #532436
10148 2002-03-14 Scott Dattalo <scott AT dattalo.com>
10150 Added "char *Processor" field to the port structure.
10153 Added -p option. Allows port dependent processor to be specified.
10156 Initialized the new field char *Processor field to NULL in all ports
10159 Compiler generated registers for interrupt context saving
10160 were not getting allocated.
10162 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
10165 Fixed left shift. Will promote the left side of a left shift
10166 if a) left shifting more than size of operand or b) when assigned
10167 to something size > size of left side
10169 2002-03-14 Scott Dattalo <scott AT dattalo.com>
10171 tons of changes. Register allocation has been
10172 rewritten. Added customization for the various PICs. Flow
10173 analysis is restructured. ...
10175 * src/pic/device.h:
10178 * src/pic/device.c:
10179 Added. device.c is a PIC port hack to accomodate variations
10182 2002-03-13 Michael Hope <michaelh AT vroom>
10184 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
10186 2002-03-04 johanknol <johanknol AT manik>
10188 * /src/SDCCval.c: fixed
10190 const unsigned char arr[][2] = { { 0, 1 } };
10191 t18.c:1: error: Initializer element is not constant
10193 2002-03-04 bela <bela AT manik>
10195 * /device/include/mcs51reg.h:
10196 ds89c420 register definition update
10198 2002-03-03 <johan AT FRIJA>
10200 * support/Util/SDCCerr.c: did something, but don't no why anymore
10202 * support/regression/tests/bug-524691.c: made it a little less shy
10204 * src/SDCCast.c (decorateType): fixed bug #524697
10206 * src/SDCCast.c: made some lineno improvements
10208 * src/SDCCval.c (getNelements): changed warning to error
10210 * src/SDCCglue.c (printIvalArray): changed warning to error
10212 * src/SDCCicode.c: fixed a warning for mingw
10214 * src/SDCCast.c (decorateType): fixed the << promotion for ops
10216 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10218 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
10220 * src/ds390/peeph.def:
10221 Added some more peephole rules
10223 * src/ds390/gen.c: Various fixes & enhancements
10225 * src/SDCClrange.c, src/SDCClrange.h:
10226 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10228 * src/ds390/ralloc.c:
10229 various fixes & enhancements (ds390) specific
10231 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10232 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10235 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10237 2002-03-02 <johan AT FRIJA>
10239 * src/SDCCast.c (decorateType): fixed bug #524708
10241 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10243 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10245 2002-03-01 Michael Hope <michaelh AT vroom>
10247 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10249 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10251 2002-03-01 <johan AT FRIJA>
10253 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10255 * src/SDCCast.c (decorateType): fixed bug #524209
10257 * src/SDCCval.c (valNot): fixed bug #524195
10259 2002-02-26 <johan AT balder>
10261 * src/xa51/gen.c: fixed a warning
10263 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10265 * src/SDCCast.c (decorateType): fixed bug #522534
10267 2002-02-23 <johan AT balder>
10269 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10271 2002-02-22 <johan AT balder>
10273 * src/SDCCast.c: fixed bug #514865
10275 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10277 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
10279 * sdcc/src/SDCCloop.c:
10280 Previous fix was not good. basic blocks that have "break" or "return" are
10281 not really partof a loop , but live ranges used in these blocks should
10282 be live thru the entire loop, so set partOfLoop but don't add them to
10285 2002-02-21 <johan AT FRIJA>
10287 * src/SDCCcse.c: fixed bug #514308
10289 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
10292 Fixed BUG #519583. If a conditional block ended in a return/break
10293 statement inside a loop, it was not being considered part of the loop.
10295 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10297 2002-02-10 Karl Bongers <karl AT turbobit.com>
10300 Fixed up SDCDB debugger somewhat. Updated debugger/README
10301 with lots of comments and notes.
10303 * device/examples/test2.c:
10304 Fix bug, "red" variable not being initialized(compiler complained).
10306 * device/examples/Makefile, examples/test3.c:
10307 Add Makefile in device/examples folder, compiles test3.c
10308 for use as a multiple module SDCDB test case.
10310 * sim/ucsim/cmd.src/cmdset.cc:
10311 Took out debug printfs in ucsim "next" command.
10313 * sim/ucsim/xa.src:
10314 Karl and Johan start ucsim XA support. Most dissassembly working,
10315 about 75% emulation done(plenty of work remaining).
10317 * sim/ucsim/z80.src:
10318 Add Z80 support to ucsim, add test-ucz80 regression test,
10319 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10320 Notice z80 compiler fails on examples/test3.c/crc code.
10322 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
10324 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10325 Added support for --parms-in-bank1
10327 * src/ds390/peeph.def:
10328 added a few more peephole optimzations
10330 * src/ds390/main.c:
10331 1) added __builtin_inp & __builtin_outp used to read in data of given length
10332 from a memory mapped port
10333 2) added __builtin_memcmp
10334 3) added __builtin_swapw swap bytes of a short
10336 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10337 1) handle multiple send & receives from register bank1
10338 2) ralloc can now allocate DPTR1 to some liveRanges
10340 * src/SDCCsymt.c, src/SDCCsymt.h:
10341 changes to handle multiple sends & receives
10343 * src/SDCCptropt.h:
10344 added some pointer arithmetic optimization
10346 * src/SDCCptropt.c:
10347 added some pointer arithmetic optimizations but not stable yet so not
10348 called from anywhere (will get this working shortly)
10350 * src/SDCCopt.c: fixed for multiple sends & receives
10353 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10354 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10355 set preprocessor defines (depending on options)
10357 * src/SDCCicode.c, src/SDCCicode.h:
10358 changes made to handle multiple sends & receives
10361 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10363 * src/SDCCcse.c, src/SDCCcse.h:
10364 added function findbackward def (to be used in upcoming optimization)
10366 * src/SDCCcflow.c, src/SDCCcflow.h:
10367 added function returnAtEnd - to determine if a basic block terminates with
10370 * src/SDCCast.c, src/SDCCast.h:
10371 added option parms-in-bank1
10373 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10374 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10375 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10376 adjusted for --parms-in-bank1 option
10378 * device/include/string.h:
10379 donot redefine "reentrant" keyword
10381 * device/include/ds80c390.h: Added some more SFRs
10383 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
10385 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10387 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
10389 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10391 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
10393 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10395 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
10397 * Added --xram-movc option
10399 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10401 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10403 2002-01-11 Johan Knol
10405 * Added math lib of Jesus Calvino-Fraga
10407 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
10409 * src/SDCCmain.c (processFile): fix processing of ../../src.c
10410 * support/regression/Makefile: new target test-mcs51-stack-auto
10411 * support/regression/ports/mcs51-stack-auto/spec.mk: added
10413 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
10415 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10417 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
10419 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10421 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
10423 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10425 * src/SDCCglue.h: add definition for printIvalChar()
10427 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
10429 * src/SDCCast.c: fix #498138 by Johan
10431 * src/SDCCglue.c: fix #498138 by Johan
10433 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
10435 * support/regression/Makefile: fix clean
10437 * support/regression/ports/ds390/support.c: fix transmission of last character
10439 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
10441 * /sdcc/src/ds390/gen.c:
10442 a) improved computing address of stack variable
10443 b) took out some #if 0 code
10444 c) improved parmBytes adjustment
10445 d) improved genPlusIncr & genMinusIncr
10446 e) genCmp could generate bad code (when left assigned to DPTR)
10447 f) Fixed bug in hasInc
10449 * /sdcc/src/ds390/ralloc.c:
10450 a) packRegsForSupport could mess up live information (Fixed)
10451 b) packRegsDPTRuse could be incorrect for left & right shift
10453 * /sdcc/src/mcs51/ralloc.c:
10454 packRegsForSupport could mess up the live information (Fixed)
10456 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10458 * /sdcc/src/SDCCast.c:
10459 can reverse a loop even if function call is present as long
10460 as the loop control variable is local & is not passed as parameter
10462 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
10464 * /sdcc/ChangeLog: *** empty log message ***
10466 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10467 More builtin function additions for TININative
10469 * /sdcc/src/ds390/ralloc.c:
10470 Had broken the regression testsuite
10472 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10474 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10475 Added funcattr hasStackParms will be set for reentrant functions when there
10476 are paramteres on the stack, this helps in minimizing frame pointer generation
10477 typeFromStr can handle function pointers now
10479 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10480 *** empty log message ***
10482 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
10484 * /src/ds390/gen.c, /src/ds390/main.c:
10485 More builtin function additions for TININative
10487 * /src/ds390/ralloc.c:
10488 Had broken the regression testsuite
10490 * /src/SDCCast.c: Fixed a bug in dumptree
10492 * /src/SDCCsymt.c, /src/SDCCsymt.h:
10493 Added funcattr hasStackParms will be set for reentrant functions when there
10494 are paramteres on the stack, this helps in minimizing frame pointer generation
10495 typeFromStr can handle function pointers now
10497 * /doc/builtins.txt, /doc/TININative.txt:
10498 *** empty log message ***
10501 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
10503 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10504 ALPHA version for -mTININative
10506 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10507 updated to reflect changes in the port structure
10510 added function do_assemble (similar to do_link) if non-null this function
10511 will be called to do assembly (-mTININative) requires a multi command
10513 added function genAssemblerEnd will be called to generate assembler Epilogue
10516 added _JavaNative to debug info printing
10518 * /src/SDCCmain.c: added option --tini-libid
10519 added port->do_assemble function (-mTININative) has a multi command assemble
10521 * /src/SDCCglue.c: Disabled "constExpr" check
10522 added port->genAssemblerEnd function
10524 * /src/SDCCglobl.h: Added option --tini-libid value
10527 tookout optimizeCompare from the header (has no external references)
10529 * /src/SDCCast.c: made one more function "static"
10531 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
10533 * src/z80/mappings.i: Added z80asm support.
10535 * src/z80/main.c: Added z80asm support on --asm=z80asm
10537 * src/z80/gen.c: Fixed asm portability issues.
10539 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
10541 * src/SDCCglue.c (printExterns): Added global/extern split.
10543 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
10545 * support/regression/Makefile: added test for mcs51 model large
10547 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10549 * support/regression/ports/gbz80/spec.mk: added -mgbz80
10551 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
10553 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
10555 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
10557 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10559 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10561 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
10563 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10565 * support/regression/tests/simplefloat.c: Port to mcs51.
10567 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
10568 * support/regression/tests/bug-485362.c: Added.
10570 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10572 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10574 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10576 * src/z80/gen.c (aopDump): Added a dump function.
10578 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
10579 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10581 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10583 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10585 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10587 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10589 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10591 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10593 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10595 * support/regression/ports/ds390/support.c: Use tinibios.
10597 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10599 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10601 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10602 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10604 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10606 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10608 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
10610 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10612 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10613 (packRegsForIYUse): Created and optimised.
10615 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
10617 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10618 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
10620 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10622 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10624 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10626 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
10628 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
10630 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
10632 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
10634 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
10636 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
10638 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
10640 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
10642 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
10643 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
10644 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
10646 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
10648 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
10649 (genNotFloat): Added.
10650 (genUminusFloat): Added.
10652 * device/lib/z80/Makefile: Added floating pt stubs.
10654 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
10656 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
10658 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
10660 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
10662 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
10664 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
10666 * sdcc/support/regression/Makefile: Add port ds390.
10668 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
10670 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
10672 * sdcc/support/regression/ports/ds390/spec.mk: Added.
10674 * sdcc/support/regression/ports/ds390/support.c: Added.
10676 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
10678 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
10680 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
10682 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
10684 * device/include/malloc.h: Added z80 and gbz80 support.
10686 * device/lib/gbz80/heap.s: Added.
10688 * device/lib/z80/heap.s: Added.
10690 * device/lib/malloc.c: Added z80 and gbz80 support.
10692 * support/regression/tests/malloc.c (testMalloc): Added.
10694 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
10696 * support/regression/tests/bug-478094.c: Added.
10698 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
10700 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
10702 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
10704 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
10706 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
10708 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
10710 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
10712 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
10714 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
10716 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
10718 * support/regression/tests/bug-477927.c: Added.
10720 * src/z80/peeph.def: Added minor rules.
10722 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
10724 * src/z80/peeph.def: Added jump optimisation modification.
10726 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
10728 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
10730 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
10732 * support/regression/tests/funptrs.c: Added.
10734 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
10736 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
10738 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
10740 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
10742 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
10744 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
10745 (movLeft2ResultLong): Created.
10747 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
10748 (joinPushes): Added. Joins two char pushes into a word push.
10750 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
10752 * support/cpp2/Makefile.in (install): Added creation of dest dir.
10754 * support/makebin/Makefile (install): Added creation of dest dir.
10756 2001-10-24 Karl Bongers <karl AT turbobit.com>
10758 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
10760 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
10762 * src/z80/ralloc.c: Turned off faulty pack for one use.
10764 * src/z80/peeph-gbz80.def: Removed redundent restart options.
10766 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
10768 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
10770 * support/regression/Makefile: Improved clean
10772 * support/regression/ports/gbz80/spec.mk: Added clean
10774 * support/regression/ports/host/spec.mk: Added clean
10776 * support/regression/ports/z80/spec.mk: Added clean
10778 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
10780 * support/regression/ports/mcs51/timeout.c: little improvements
10782 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
10784 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
10786 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
10788 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
10790 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
10792 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
10794 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
10796 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
10797 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
10799 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
10801 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
10803 * src/mcs51/main.c (_linkCmd): Added bin path to command.
10805 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
10807 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
10809 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
10811 * support/regression/tests/longor.c: Added.
10813 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
10815 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
10817 * as/mcs51/aslink.h: define PATH_MAX
10819 * as/mcs51/asm.h: define PATH_MAX
10821 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
10823 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
10825 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
10827 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
10829 * src/SDCCglobl.h: define PATH_MAX
10831 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
10833 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
10835 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
10837 * src/z80/gen.c (gencjneshort): Fixed
10839 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
10841 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
10843 * support/regression/tests/bug-469671.c: Added.
10845 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
10847 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
10849 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
10851 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
10853 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
10855 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
10857 * src/device/lib/_mulint.c : removed hint: nooverlay bug
10859 * src/device/lib/_mullong.c : removed hint: nooverlay bug
10861 * src/device/lib/_divuint.c : removed hint: nooverlay bug
10863 * src/device/lib/_divulong.c: removed hint: nooverlay bug
10865 * src/device/lib/_moduint.c : removed hint: nooverlay bug
10867 * src/device/lib/_modulong.c: removed hint: nooverlay bug
10869 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
10871 * 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.
10873 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
10875 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
10877 2001-10-07 <johan AT FRIJA>
10879 * device/lib/gets.c (gets): fixed the return value.
10881 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
10882 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
10884 * 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.
10886 * 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.
10888 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
10890 * src/pic/gen.c: Removed Safe_strdup.
10892 * configure.in: Added option to enable libgc support.
10894 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
10895 (bitVectUnion): Optimised.
10896 (bitVectIntersect): Optimised.
10897 (bitVectBitsInCommon): Optimised.
10898 (bitVectCplAnd): Optimised.
10900 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
10902 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10904 * src/SDCCmain.c: distinguish between assembler debug and plain options
10906 * src/avr/main.c: remove standard assembler options
10908 * src/ds390/main.c: remove standard assembler options
10910 * src/mcs51/main.c: remove standard assembler options
10912 * src/port.h: removed "PENDING" comment
10914 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10916 * src/device/lib/_mulint.c : new, with assember functions
10918 * src/device/lib/_mullong.c : new, with assember functions
10920 * src/device/lib/_divuint.c : with assember functions
10922 * src/device/lib/_divsint.c : with assember functions
10924 * src/device/lib/_divulong.c: with assember functions
10926 * src/device/lib/_divslong.c: with assember functions
10928 * src/device/lib/_moduint.c : with assember functions
10930 * src/device/lib/_modsint.c : with assember functions
10932 * src/device/lib/_modulong.c: with assember functions
10934 * src/device/lib/_modslong.c: with assember functions
10936 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
10938 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
10940 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
10941 replaced _mululong.c and _mulslong.c by _mullong.c
10943 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10945 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
10947 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10949 * src/SDCCglue.c: test, if win32api is available for MINGW
10951 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10953 * src/SDCCsymt.c: no more _modifier in printTypeChain()
10954 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
10955 * support/regression/ports/gbz80/spec.mk: removed GENERIC
10956 * support/regression/ports/host/spec.mk: removed GENERIC
10957 * support/regression/ports/mcs51/spec.mk: removed GENERIC
10958 * support/regression/ports/z80/spec.mk: removed GENERIC
10960 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
10962 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
10964 * support/regression/tests/bug-467035.c: Created.
10966 2001-10-01 <johan AT FRIJA>
10968 * src/SDCC.y: fixed bug #466586 part 1
10970 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
10972 * SDCCicode.c: z80 has no generic pointers
10973 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
10975 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
10977 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
10979 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
10981 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
10983 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
10985 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
10987 * configure.in: Fixed up so that ucsim is only configured once.
10989 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
10991 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
10992 (getPathDifference): As above.
10994 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
10996 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
10998 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
10999 * .version: Updated to 2.3.1
11001 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
11002 Added copyright header.
11004 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
11005 (assemble): Added support for macro based assembler commands.
11006 (linkEdit): Added support for macro based linker commands.
11007 (preProcess): Changed the pre-processor to use macros.
11008 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
11009 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
11011 * device/lib/z80/crt0.s: Added module name for debugging.
11013 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
11015 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11017 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
11019 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
11021 * src/Makefile.in: Added SDCCmacro and SDCCutil
11023 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
11025 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11027 2001-09-16 <johan AT FRIJA>
11029 * 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.
11031 2001-09-15 <johan AT FRIJA>
11033 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11034 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11036 2001-09-11 <johan AT FRIJA>
11038 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11040 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
11042 * support/regression/tests/bug-460444.c: Added test case.
11044 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11045 (genCast): Added justification for all of the asserts.
11047 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
11049 * support/regression/support.c: _xdata replaced by xdata
11051 * support/regression/spec.mk: removed _generic
11053 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
11055 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11057 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11058 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11060 * src/z80/peeph.def: Added a rule to optimise shift then compare.
11062 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11064 * support/regression/tests/bug-460010.c: Added test case.
11066 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
11068 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
11070 * support/regression/Makefile: inter-port-clean adjusted for mcs51
11072 * support/regression/testfwk.c: removed workaround for bug #436344
11074 * support/regression/tests/bp.c: use less memory with mcs51
11076 * support/regression/tests/bug-441448.c: use less memory
11078 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
11080 * support/regression/collate-results.py: typo
11082 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
11084 * support/regression/tests/fetchoverlap.c: Added new test case.
11086 * support/regression/tests/bp.c: Added new test case.
11088 * support/regression/tests/bug-448984.c: Added new test case.
11090 * support/regression/tests/pow2shifts.c: Added new test case.
11092 * src/z80/gen.c: Turned off the noise it normally generates for the release.
11093 (genlshTwo): Fixed right shift for count > 8.
11095 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
11097 2001-09-08 <johan AT FRIJA>
11099 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
11101 2001-09-07 <johan AT FRIJA>
11103 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
11105 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
11107 2001-09-06 <johan AT FRIJA>
11109 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
11110 * bernhard noted me at this: "() equals to (void)" (1.38)
11112 2001-09-05 <johan AT FRIJA>
11114 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
11116 2001-09-04 <johan AT FRIJA>
11118 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
11121 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
11123 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
11125 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
11127 * link/z80/aslink.h: Fixed path for PATH_MAX
11129 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
11131 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
11133 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
11135 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
11137 * 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.
11139 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
11141 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
11142 (genCmp): Fixed up genCmp for the GB with longs.
11144 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
11146 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
11148 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
11150 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
11152 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
11154 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
11156 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
11158 * 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.
11160 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
11162 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
11164 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
11166 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
11168 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
11170 * sim/ucsim/configure: little improvement of Cygwin-detection
11171 * sim/ucsim/configure.in: little improvement of Cygwin-detection
11172 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
11173 * support/regression/tests/bug-221100.c: small changes for mcs51
11174 * support/regression/tests/bug-221168.c: small changes for mcs51
11175 * support/regression/tests/bug-227710.c: small changes for mcs51
11176 * support/regression/tests/staticinit.c: small changes for mcs51
11177 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
11178 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
11179 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601